rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.abortConnection("Received payload > %d KB or < than 0 in size. Closing connection. payloadLength: %s" % ((OURMAXPAYLOADLENGTH / 2**10), str(payloadLength),))
self._abortConnection("Received payload > %d KB or < than 0 in size. Closing connection. payloadLength: %s" % ((OURMAXPAYLOADLENGTH / 2**10), str(payloadLength),))
def rawDataReceived(self, data): self.buf += data # XXX opportunity for future optimization --Zooko 2002-07-15 if len(self.buf) >= HEADERLENGTH: try: (payloadLength,) = struct.unpack(PAYLOADENCODING, self.buf[PAYLOADLENGTHOFFSET:HEADERLENGTH]) except struct.error, le: self.abortConnection("Received ill-formatted raw d...
b9cdcac8c6570b76f72db7d37d4350260766357e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b9cdcac8c6570b76f72db7d37d4350260766357e/gnutella.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16503, 8872, 12, 2890, 16, 501, 4672, 365, 18, 4385, 1011, 501, 468, 11329, 1061, 655, 13352, 364, 3563, 14850, 225, 1493, 62, 1184, 83, 4044, 22, 17, 8642, 17, 3600, 309, 562, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16503, 8872, 12, 2890, 16, 501, 4672, 365, 18, 4385, 1011, 501, 468, 11329, 1061, 655, 13352, 364, 3563, 14850, 225, 1493, 62, 1184, 83, 4044, 22, 17, 8642, 17, 3600, 309, 562, 12, 289...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 209) else quickfix.IntField.__init__(self, 209, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 4200, 29, 13, 469, 30, 9549, 904, 18, 1702, 974, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 4200, 29, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738...
def wrapperCall( self, *args ):
def wrapperCall( *args ):
def wrapperCall( self, *args ): """Wrapper with all save returnValues""" pyArgs = tuple( calculate_pyArgs( args )) cArgs = tuple(calculate_cArgs( pyArgs )) cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: err.args = err.args + (cArgum...
37819bfb0a23b29e5197cbb47fad0e486a1708d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1545/37819bfb0a23b29e5197cbb47fad0e486a1708d3/wrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 1477, 12, 380, 1968, 262, 30, 3536, 3611, 598, 777, 1923, 327, 1972, 8395, 2395, 2615, 273, 3193, 12, 4604, 67, 2074, 2615, 12, 833, 8623, 276, 2615, 273, 3193, 12, 11162, 67, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 1477, 12, 380, 1968, 262, 30, 3536, 3611, 598, 777, 1923, 327, 1972, 8395, 2395, 2615, 273, 3193, 12, 4604, 67, 2074, 2615, 12, 833, 8623, 276, 2615, 273, 3193, 12, 11162, 67, 71...
document = self.__get_document() xpath_context = document.xpathNewContext()
xpath_context = self.__get_xpath_context()
def get_element_list(self, xpath_expression): document = self.__get_document() xpath_context = document.xpathNewContext() result = xpath_context.xpathEval(xpath_expression) xpath_context.xpathFreeContext() # TODO only element nodes return [odf_element(e) for e in result]
a7faba6c222e979b28e51d790ab0dd09d2bdadf0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/a7faba6c222e979b28e51d790ab0dd09d2bdadf0/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2956, 67, 1098, 12, 2890, 16, 6748, 67, 8692, 4672, 6748, 67, 2472, 273, 365, 16186, 588, 67, 18644, 67, 2472, 1435, 563, 273, 6748, 67, 2472, 18, 18644, 13904, 12, 18644, 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, 336, 67, 2956, 67, 1098, 12, 2890, 16, 6748, 67, 8692, 4672, 6748, 67, 2472, 273, 365, 16186, 588, 67, 18644, 67, 2472, 1435, 563, 273, 6748, 67, 2472, 18, 18644, 13904, 12, 18644, 67,...
elif opt in ("-u", "--url=") and arg:
elif opt in ("-u", "--url") and arg:
def args(self, argv, config): "Getting params of default input"
743592d88dab2964394ae1a0a7a16d49c98eb769 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2232/743592d88dab2964394ae1a0a7a16d49c98eb769/swaml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 833, 12, 2890, 16, 5261, 16, 642, 4672, 315, 19213, 859, 434, 805, 810, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 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, 833, 12, 2890, 16, 5261, 16, 642, 4672, 315, 19213, 859, 434, 805, 810, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if os.name in ('nt', 'os2'):
if os.name in ('nt', 'os2') or sys.platform == 'cygwin':
def setUp(self): TestMailbox.setUp(self) if os.name in ('nt', 'os2'): self._box.colon = '!'
36289a559bb10cdd94139298674874b3c299e9c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/36289a559bb10cdd94139298674874b3c299e9c7/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 7766, 30239, 18, 542, 1211, 12, 2890, 13, 309, 1140, 18, 529, 316, 7707, 496, 2187, 296, 538, 22, 6134, 578, 2589, 18, 9898, 422, 296, 2431, 75, 8082, 4278, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 7766, 30239, 18, 542, 1211, 12, 2890, 13, 309, 1140, 18, 529, 316, 7707, 496, 2187, 296, 538, 22, 6134, 578, 2589, 18, 9898, 422, 296, 2431, 75, 8082, 4278, 365,...
if d.paranoia:
if DICT.paranoia:
def ll_dict_lookup(d, key, hash): entries = d.entries mask = len(entries) - 1 i = hash & mask # do the first try before any looping if entries.valid(i): checkingkey = entries[i].key if checkingkey == key: return i # found the entry if d.keyeq is not None and entries.hash(i) == hash: # correct hash, maybe the key is e...
b86136571c76f374cc935e36e08edfb66beae936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/b86136571c76f374cc935e36e08edfb66beae936/rdict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 1576, 67, 8664, 12, 72, 16, 498, 16, 1651, 4672, 3222, 273, 302, 18, 8219, 3066, 273, 562, 12, 8219, 13, 300, 404, 277, 273, 1651, 473, 3066, 468, 741, 326, 1122, 775, 1865...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 1576, 67, 8664, 12, 72, 16, 498, 16, 1651, 4672, 3222, 273, 302, 18, 8219, 3066, 273, 562, 12, 8219, 13, 300, 404, 277, 273, 1651, 473, 3066, 468, 741, 326, 1122, 775, 1865...
shutil.rmtree(self._ctx._repo.wjoin(self._path))
def onerror(function, path, excinfo): if function is not os.remove: raise s = os.stat(path) if (s.st_mode & stat.S_IWRITE) != 0: raise os.chmod(path, stat.S_IMODE(s.st_mode) | stat.S_IWRITE) os.remove(path) shutil.rmtree(self._ctx._repo.wjoin(self._path), onerror=onerror)
def remove(self): if self.dirty(): self._ui.warn(_('not removing repo %s because ' 'it has changes.\n' % self._path)) return self._ui.note(_('removing subrepo %s\n') % self._path) shutil.rmtree(self._ctx._repo.wjoin(self._path))
d35cb5b48ab1d3361c68532af71ecfc223931859 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/d35cb5b48ab1d3361c68532af71ecfc223931859/subrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 4672, 309, 365, 18, 18013, 13332, 365, 6315, 4881, 18, 8935, 24899, 2668, 902, 9427, 3538, 738, 87, 2724, 296, 296, 305, 711, 3478, 8403, 82, 11, 738, 365, 6315, 803, 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, 1206, 12, 2890, 4672, 309, 365, 18, 18013, 13332, 365, 6315, 4881, 18, 8935, 24899, 2668, 902, 9427, 3538, 738, 87, 2724, 296, 296, 305, 711, 3478, 8403, 82, 11, 738, 365, 6315, 803, 3...
self('import "%s" %s'%(os.path.abspath(filename),options))
self('import %s "%s"'%(options, os.path.abspath(filename)))
def import_patch(self, filename, options=''): """ Import an ordered set of patches from patch file, i.e., a plain text file created using the export command.
d413d2ffe7f6788ab5b1aadc15185b885919c03b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d413d2ffe7f6788ab5b1aadc15185b885919c03b/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2272, 12, 2890, 16, 1544, 16, 702, 2218, 11, 4672, 3536, 6164, 392, 5901, 444, 434, 16482, 628, 4729, 585, 16, 277, 18, 73, 12990, 279, 7351, 977, 585, 2522, 1450, 326, 3359,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2272, 12, 2890, 16, 1544, 16, 702, 2218, 11, 4672, 3536, 6164, 392, 5901, 444, 434, 16482, 628, 4729, 585, 16, 277, 18, 73, 12990, 279, 7351, 977, 585, 2522, 1450, 326, 3359,...
Return a pair ([source_lines], starting line number) of the source code associated to obj, or None.
Return a pair ([source_lines], starting line number) of the source code associated to obj, or None.
def sage_getsourcelines(obj, is_binary=False): r""" Return a pair ([source_lines], starting line number) of the source code associated to obj, or None. At this time we ignore is_binary in favour of a 'do our best' strategy. AUTHOR: -- William Stein -- Extensions by Nick Alexander """ # If we can handle it, we do. Th...
ff3a930779391a1fcd9c918bbd6ab38775abd6da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ff3a930779391a1fcd9c918bbd6ab38775abd6da/sageinspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 14665, 477, 2183, 1465, 12, 2603, 16, 353, 67, 8578, 33, 8381, 4672, 436, 8395, 2000, 279, 3082, 23265, 3168, 67, 3548, 6487, 5023, 980, 1300, 13, 434, 326, 1084, 981, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 14665, 477, 2183, 1465, 12, 2603, 16, 353, 67, 8578, 33, 8381, 4672, 436, 8395, 2000, 279, 3082, 23265, 3168, 67, 3548, 6487, 5023, 980, 1300, 13, 434, 326, 1084, 981, 36...
if str(file) not in potfiles and trans.search(open(str(file)).read()): potfiles.append(relativePath(str(file), env.subst('$TOP_SRCDIR')))
rel_file = relativePath(str(file), env.subst('$TOP_SRCDIR')) if rel_file not in potfiles and trans.search(open(str(file)).read()): potfiles.append(rel_file)
def env_potfiles(target, source, env): '''Build po/POTFILES.in''' # command # grep -l '_(\".*\")' `find src \( -name '*.h' -o -name '*.cpp' -o -name '*.cpp.in' \) -print` | grep -v -e "src/support/Package.cpp$$" | sort | uniq # is used under *nix but windows users have to do these all in python target_file = open(str...
5eea42b9ebccb4aa7a920a0440ae23142260ccbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/5eea42b9ebccb4aa7a920a0440ae23142260ccbf/scons_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1550, 67, 13130, 2354, 12, 3299, 16, 1084, 16, 1550, 4672, 9163, 3116, 8275, 19, 52, 1974, 12669, 18, 267, 26418, 468, 1296, 468, 282, 23366, 300, 80, 2070, 23031, 4509, 2412, 2506, 1375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1550, 67, 13130, 2354, 12, 3299, 16, 1084, 16, 1550, 4672, 9163, 3116, 8275, 19, 52, 1974, 12669, 18, 267, 26418, 468, 1296, 468, 282, 23366, 300, 80, 2070, 23031, 4509, 2412, 2506, 1375...
elif fname == "lock_status": row.append(self.lock_status)
def GetInfo(self, fields): """Returns information about a job.
9bdab6219839d70dcea52ad9ffa3b4b449794854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/9bdab6219839d70dcea52ad9ffa3b4b449794854/jqueue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 966, 12, 2890, 16, 1466, 4672, 3536, 1356, 1779, 2973, 279, 1719, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 966, 12, 2890, 16, 1466, 4672, 3536, 1356, 1779, 2973, 279, 1719, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
d = error_dialog(self.window, _('Cannot read'),
d = error_dialog(self, _('Cannot read'),
def select_cover(self, checked): files = choose_images(self, 'change cover dialog', _('Choose cover for ') + unicode(self.title.text())) if not files: return _file = files[0] if _file: _file = os.path.abspath(_file) if not os.access(_file, os.R_OK): d = error_dialog(self.window, _('Cannot read'), _('You do not have per...
0a8048345427f1e21d512f91c908701c49489001 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/0a8048345427f1e21d512f91c908701c49489001/metadata_single.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3165, 12, 2890, 16, 5950, 4672, 1390, 273, 9876, 67, 7369, 12, 2890, 16, 296, 3427, 5590, 6176, 2187, 389, 2668, 24529, 5590, 364, 8624, 397, 5252, 12, 2890, 18, 2649, 18, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3165, 12, 2890, 16, 5950, 4672, 1390, 273, 9876, 67, 7369, 12, 2890, 16, 296, 3427, 5590, 6176, 2187, 389, 2668, 24529, 5590, 364, 8624, 397, 5252, 12, 2890, 18, 2649, 18, 95...
L[-1] = dll.next_value[L[-1]]
L[-1] = available.next_value[L[-1]]
def iterator(self): """ An iterator for all permutations of k thinkgs from range(n).
8a5c67a6303ec7f0a1f412e482a2341e1f28b17c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8a5c67a6303ec7f0a1f412e482a2341e1f28b17c/permutation_nk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2775, 12, 2890, 4672, 3536, 1922, 2775, 364, 777, 26468, 434, 417, 15507, 564, 628, 1048, 12, 82, 2934, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2775, 12, 2890, 4672, 3536, 1922, 2775, 364, 777, 26468, 434, 417, 15507, 564, 628, 1048, 12, 82, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if not os.path.exists(nextline): file.close() raise UserInputException('%s is not a valid macro file because line %d ("%s") is followed by the filename "%s" which does not exist' % (filename,linenumber,currentline,nextline) )
def testMacroValidity(self,filename): specialMacroMarkups = ['end loop']
abae46ac242a5c403d574eba08c1a66f400ce23b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8973/abae46ac242a5c403d574eba08c1a66f400ce23b/MacroMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 17392, 19678, 12, 2890, 16, 3459, 4672, 4582, 17392, 13111, 87, 273, 10228, 409, 2798, 3546, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17392, 19678, 12, 2890, 16, 3459, 4672, 4582, 17392, 13111, 87, 273, 10228, 409, 2798, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
tx.moveCursor(offset + line.extraSpace, 0)
m = offset+line.extraSpace tx.moveCursor(m, 0)
def cleanBlockQuotedText(text): """This is an internal utility which takes triple- quoted text form within the document and returns (hopefully) the paragraph the user intended originally.""" stripped = string.strip(text) lines = string.split(stripped, '\n') trimmed_lines = map(string.lstrip, lines) return string.join(t...
52bd0f5ee571a9ff180340925cb777fdd03bc82b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/52bd0f5ee571a9ff180340925cb777fdd03bc82b/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 1768, 15919, 1528, 12, 955, 4672, 3536, 2503, 353, 392, 2713, 12788, 1492, 5530, 14543, 17, 9298, 977, 646, 3470, 326, 1668, 471, 1135, 261, 76, 1306, 4095, 13, 326, 10190, 326, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 1768, 15919, 1528, 12, 955, 4672, 3536, 2503, 353, 392, 2713, 12788, 1492, 5530, 14543, 17, 9298, 977, 646, 3470, 326, 1668, 471, 1135, 261, 76, 1306, 4095, 13, 326, 10190, 326, 72...
return scal(mul(x, gz), 2.0)
return scale(mul(x, gz), 2.0)
def grad(x, gz): return scal(mul(x, gz), 2.0)
9b27c788e7d2134a6d684c944022349650aa3cb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/9b27c788e7d2134a6d684c944022349650aa3cb2/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 92, 16, 14136, 4672, 327, 8292, 12, 16411, 12, 92, 16, 14136, 3631, 576, 18, 20, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 92, 16, 14136, 4672, 327, 8292, 12, 16411, 12, 92, 16, 14136, 3631, 576, 18, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.parser.parseError()
self.parser.parseError(_("Unexpected end tag (" + name +\ "). Ignored."))
def endTagIgnore(self, name): self.parser.parseError()
fe2bd16bbe7bb5e382e3e1c7474367b33f472f3c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/fe2bd16bbe7bb5e382e3e1c7474367b33f472f3c/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 3777, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 3777, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def fl_set_xyplot_key_font(obj, style, size): """ fl_set_xyplot_key_font(obj, style, size) """ _fl_set_xyplot_key_font(obj, style, size)
def fl_set_xyplot_key_font(pObject, style, size): """ fl_set_xyplot_key_font(pObject, style, size) """ _fl_set_xyplot_key_font(pObject, style, size)
def fl_set_xyplot_key_font(obj, style, size): """ fl_set_xyplot_key_font(obj, style, size) """ _fl_set_xyplot_key_font(obj, style, size)
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, 542, 67, 1698, 4032, 67, 856, 67, 5776, 12, 84, 921, 16, 2154, 16, 963, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 856, 67, 5776, 12, 84, 921, 16, 2154, 16, 963, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1698, 4032, 67, 856, 67, 5776, 12, 84, 921, 16, 2154, 16, 963, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 856, 67, 5776, 12, 84, 921, 16, 2154, 16, 963, 13, ...
if b in [4,5]:
if b in [4, 5]:
def draw_rods_and_beads(self, x, y): """ Override default in order to make a short rod """ rod_colors = ["#006ffe", "#007ee7", "#0082c4", "#0089ab", "#008c8b", "#008e68", "#008e4c", "#008900", "#5e7700", "#787000", "#876a00", "#986200", "#ab5600", "#d60000", "#e30038"]
fa60a06795f92967c0f5d82d623ad43d79cdc87b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7608/fa60a06795f92967c0f5d82d623ad43d79cdc87b/abacus_window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 303, 2377, 67, 464, 67, 70, 684, 87, 12, 2890, 16, 619, 16, 677, 4672, 3536, 1439, 805, 316, 1353, 358, 1221, 279, 3025, 721, 72, 3536, 721, 72, 67, 9724, 273, 8247, 7, 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, 3724, 67, 303, 2377, 67, 464, 67, 70, 684, 87, 12, 2890, 16, 619, 16, 677, 4672, 3536, 1439, 805, 316, 1353, 358, 1221, 279, 3025, 721, 72, 3536, 721, 72, 67, 9724, 273, 8247, 7, 7...
return {'confirmed': """Students who have clicked on the `Confirm Pre-Registration' button.""", 'attended' : """Students who attended %s""" % self.program.niceName(), 'studentrep': """All Student Representatives of ESP"""}
retVal = {'confirmed': """Students who have clicked on the `Confirm Pre-Registration' button.""", 'attended' : """Students who attended %s""" % self.program.niceName(), 'studentrep': """All Student Representatives of ESP"""} if self.program.program_allow_waitlist: retVal['waitlisted_students'] = """Students on the pro...
def studentDesc(self): return {'confirmed': """Students who have clicked on the `Confirm Pre-Registration' button.""", 'attended' : """Students who attended %s""" % self.program.niceName(), 'studentrep': """All Student Representatives of ESP"""}
7c4601767a8a13f15936b0af4c967b6ceeb3c5a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/7c4601767a8a13f15936b0af4c967b6ceeb3c5a3/studentregcore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18110, 4217, 12, 2890, 4672, 327, 13666, 21606, 4278, 3536, 19943, 4877, 10354, 1240, 17688, 603, 326, 1375, 11269, 2962, 17, 7843, 11, 3568, 1199, 6, 3113, 296, 270, 8140, 11, 294, 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, 18110, 4217, 12, 2890, 4672, 327, 13666, 21606, 4278, 3536, 19943, 4877, 10354, 1240, 17688, 603, 326, 1375, 11269, 2962, 17, 7843, 11, 3568, 1199, 6, 3113, 296, 270, 8140, 11, 294, 3536, ...
""" % Inliner.non_whitespace_escape_before, re.VERBOSE),)
""" % vars(Inliner), re.VERBOSE),)
def build_table_row(self, rowdata, tableline): row = nodes.row() for cell in rowdata: if cell is None: continue morerows, morecols, offset, cellblock = cell attributes = {} if morerows: attributes['morerows'] = morerows if morecols: attributes['morecols'] = morecols entry = nodes.entry(**attributes) row += entry if ''....
816927c350eab6c8d1baf3e3aa09f53b2caab704 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/816927c350eab6c8d1baf3e3aa09f53b2caab704/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
(os.getenv('USERPROFILE', ''), 'Local Settings', 'History',
(os.getenv('USERPROFILE', False), 'Local Settings', 'History',
def InternetExplorerHistoryPath(self): paths = ( # XP (os.getenv('USERPROFILE', ''), 'Local Settings', 'History', 'History.IE5', 'index.dat'), (os.getenv('APPDATA', ''), 'Microsoft', 'Windows', 'History', 'History.IE5', 'index.dat'), (os.getenv('APPDATA', ''), 'Microsoft', 'Windows', 'History', 'Low', 'History.IE5', 'i...
1647d5424a70f624d0cd52eb19742058f6087530 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/1647d5424a70f624d0cd52eb19742058f6087530/history_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21352, 20938, 5623, 743, 12, 2890, 4672, 2953, 273, 261, 468, 1139, 52, 261, 538, 18, 588, 3074, 2668, 4714, 22462, 2187, 1083, 3631, 296, 2042, 8709, 2187, 296, 5623, 2187, 296, 5623, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21352, 20938, 5623, 743, 12, 2890, 4672, 2953, 273, 261, 468, 1139, 52, 261, 538, 18, 588, 3074, 2668, 4714, 22462, 2187, 1083, 3631, 296, 2042, 8709, 2187, 296, 5623, 2187, 296, 5623, 1...
) self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "2" ), True ) os.remove(test_support.TESTFN + "2") f = open(test_support.TESTFN + "2", "wb") f.write("bar") f.close() self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "2" ), False ) finally: if not f...
), False ) finally: if not f.close(): f.close() self.assertRaises(TypeError, posixpath.samefile)
def test_samefile(self): f = open(test_support.TESTFN + "1", "wb") try: f.write("foo") f.close() self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "1" ), True ) # If we don't have links, assume that os.stat doesn't return resonable # inode information and thus, that samefile() doesn't ...
f8e88622cc87194c85117fc67584a2741a22071e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f8e88622cc87194c85117fc67584a2741a22071e/test_posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14307, 768, 12, 2890, 4672, 284, 273, 1696, 12, 3813, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 315, 9464, 7923, 775, 30, 284, 18, 2626, 2932, 11351, 7923, 284, 18, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14307, 768, 12, 2890, 4672, 284, 273, 1696, 12, 3813, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 315, 9464, 7923, 775, 30, 284, 18, 2626, 2932, 11351, 7923, 284, 18, 44...
def __init__(self, string = None, frequencies = None): r""" Constructor for Huffman INPUT: One among the following: - ``string`` -- a string from which the Huffman encoding should be created - ``frequencies`` -- a dictionary associating its frequency or its number of occurrences to each letter of the alphabet. EXA...
def __init__(self, string=None, table=None): r""" Constructor for Huffman. See the docstring of this class for full documentation. EXAMPLES:: sage: from sage.coding.source_coding.huffman import Huffman sage: str = "Sage is my most favorite general purpose computer algebra system" sage: h = Huffman(str) TESTS: If b...
def __init__(self, string = None, frequencies = None): r""" Constructor for Huffman
d36ada9fa8d1207afa7f17ab966193d7d807e471 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d36ada9fa8d1207afa7f17ab966193d7d807e471/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 533, 273, 599, 16, 18138, 273, 599, 4672, 436, 8395, 11417, 364, 670, 28581, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 533, 273, 599, 16, 18138, 273, 599, 4672, 436, 8395, 11417, 364, 670, 28581, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if os.path.exists(os.path.join(self.path,self.indexName)): loc = '' else: loc = '.idx' request.setHeader("location","http://%s%s/%s" % (
request.setHeader("location","http://%s%s/" % (
def render(self, request): "You know what you doing." try: mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime =\ os.stat(self.path) except OSError: # This part is quite hacky, but it gets the job done. What I'm # saying here is to redirect to .idx (the directory index) if this # is supposed to be an index.html...
e419d4581d33aee4ae2286e8dac97739a0d0ac11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e419d4581d33aee4ae2286e8dac97739a0d0ac11/static.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 590, 4672, 315, 6225, 5055, 4121, 1846, 9957, 1199, 775, 30, 1965, 16, 316, 83, 16, 4461, 16, 290, 1232, 16, 4555, 16, 11399, 16, 963, 16, 622, 494, 16, 13158, 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, 1743, 12, 2890, 16, 590, 4672, 315, 6225, 5055, 4121, 1846, 9957, 1199, 775, 30, 1965, 16, 316, 83, 16, 4461, 16, 290, 1232, 16, 4555, 16, 11399, 16, 963, 16, 622, 494, 16, 13158, 16...
"""
""" % locals()
def check_expected(fname, messages): flush_files() try: f = open(fname, "r") except IOError: print "Error opening file: %s" % (fname,) return False lineno = 0 for (msg, session, count) in messages: for i in range(1, count): expected_line = '%s %d/%d %s' % (msg, session, i, padding) read_line = f.readline().strip() lin...
34adcc3bd04fbd966369bee600e0a9f88ab3c9d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1177/34adcc3bd04fbd966369bee600e0a9f88ab3c9d8/func_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3825, 12, 12749, 16, 2743, 4672, 3663, 67, 2354, 1435, 775, 30, 284, 273, 1696, 12, 12749, 16, 315, 86, 7923, 1335, 8340, 30, 1172, 315, 668, 10890, 585, 30, 738, 87, 6, 738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3825, 12, 12749, 16, 2743, 4672, 3663, 67, 2354, 1435, 775, 30, 284, 273, 1696, 12, 12749, 16, 315, 86, 7923, 1335, 8340, 30, 1172, 315, 668, 10890, 585, 30, 738, 87, 6, 738...
query_result = run_sql("SELECT br.id_record,br.nb_order, fmt.value "\ "FROM basket_record br, bibfmt fmt "\ "WHERE br.id_basket=%s AND br.id_record=fmt.id_bibrec AND fmt.format='hb'"\
query_result = run_sql("SELECT br.id_record,br.nb_order "\ "FROM basket_record br "\ "WHERE br.id_basket=%s "\
def perform_display_public(uid, id_basket, basket_name, action, to_basket, mark, newname): out = "" if action=="EXECUTE": # perform actions if newname != "": # create a new basket to_basket = perform_create_basket(uid, newname) out += """The <I>private</I> basket <B>%s</B> has been created.<BR>\n""" % newname # copy th...
3a8ea0fba4fda25139d10609e40e739373b11485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/3a8ea0fba4fda25139d10609e40e739373b11485/webbasket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 5417, 67, 482, 12, 1911, 16, 612, 67, 26219, 16, 12886, 67, 529, 16, 1301, 16, 358, 67, 26219, 16, 2267, 16, 26722, 4672, 596, 273, 1408, 309, 1301, 31713, 15271, 9099, 6877,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 5417, 67, 482, 12, 1911, 16, 612, 67, 26219, 16, 12886, 67, 529, 16, 1301, 16, 358, 67, 26219, 16, 2267, 16, 26722, 4672, 596, 273, 1408, 309, 1301, 31713, 15271, 9099, 6877,...
'%s(`(?P<suffix>:%s:|__?)?)%s' % (non_whitespace_escape_before, simplename, end_string_suffix)),
r""" %(non_whitespace_escape_before)s ( ` (?P<suffix> (?P<role>:%(simplename)s:)? (?P<refend>__?)? ) ) %(end_string_suffix)s """ % locals(), re.VERBOSE),
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
9fe47ec4311156cad473d8ed8bf0dba5fd73c14e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/9fe47ec4311156cad473d8ed8bf0dba5fd73c14e/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
self._tab = 1
self._tab = 2
def on_click(self, event, params, vars=None): if params[0] == 'adduser': self._tab = 1 self._adding_user = True if params[0] == 'deluser': self._tab = 1 self.config.remove_option('users', params[1]) self.config.save()
7c4cce5c0d64fb1518551c9cb7ab234517f3b7c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/7c4cce5c0d64fb1518551c9cb7ab234517f3b7c3/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 7475, 12, 2890, 16, 871, 16, 859, 16, 4153, 33, 7036, 4672, 309, 859, 63, 20, 65, 422, 296, 1289, 1355, 4278, 365, 6315, 7032, 273, 576, 365, 6315, 3439, 67, 1355, 273, 1053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 7475, 12, 2890, 16, 871, 16, 859, 16, 4153, 33, 7036, 4672, 309, 859, 63, 20, 65, 422, 296, 1289, 1355, 4278, 365, 6315, 7032, 273, 576, 365, 6315, 3439, 67, 1355, 273, 1053...
make_classes( '../../lps/include/mcrl2/modal_formula/state_formula.h', STATE_FORMULA_CLASSES, 'state_formula') make_is_functions('../../lps/include/mcrl2/modal_formula/state_formula.h', STATE_FORMULA_CLASSES, 'state_formula') make_classes( '../../lps/include/mcrl2/modal_formula/regular_formula.h', REGULAR_FORM...
make_classes('../../bes/include/mcrl2/bes/boolean_expression.h', BOOLEAN_EXPRESSION_CLASSES, 'boolean_expression', generate_is_functions = True, superclass_aterm = 'BooleanExpression') make_classes('../../data/include/mcrl2/data/assignment.h', ASSIGNMENT_EXPRESSION_CLASSES, 'assignment_expression', add_constructor_over...
def make_is_functions(filename, class_text, classname, namespace = 'core'): TERM_TRAITS_TEXT = r''' /// \\brief Test for a %s expression /// \\param t A term /// \\return True if it is a %s expression inline bool is_%s(const %s& t) { return %s::detail::gsIs%s(t); }
5ed2a19ec2a0549e3e5846be6cbf059eee0cdf07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1522/5ed2a19ec2a0549e3e5846be6cbf059eee0cdf07/generate_classes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 291, 67, 10722, 12, 3459, 16, 667, 67, 955, 16, 7479, 16, 1981, 273, 296, 3644, 11, 4672, 20772, 49, 67, 20060, 10158, 67, 5151, 273, 436, 26418, 18378, 1736, 25888, 7766, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 291, 67, 10722, 12, 3459, 16, 667, 67, 955, 16, 7479, 16, 1981, 273, 296, 3644, 11, 4672, 20772, 49, 67, 20060, 10158, 67, 5151, 273, 436, 26418, 18378, 1736, 25888, 7766, 36...
tm = self.pool.get('res.users').browse(cr, uid, uid, context).company_id.project_time_mode
tm = self.pool.get('res.users').browse(cr, uid, uid, context).company_id.project_time_mode or False
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False): tm = self.pool.get('res.users').browse(cr, uid, uid, context).company_id.project_time_mode f = self.pool.get('res.company').fields_get(cr, uid, ['project_time_mode'], context) word = dict(f['project_time_mode']['selection']...
32c483bb6ec83f7efe7b474090f9bb8536249226 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/32c483bb6ec83f7efe7b474090f9bb8536249226/project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 4672, 6118, 273, 365, 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, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 4672, 6118, 273, 365, 18, ...
for conflict in self.ActionConflicts:
for conflict in actionConflicts:
def Resolve(self): for conflict in self.Conflicts: if conflict[0] == 'ConflictFeature': answer = self.AskUser(self.Plugin, conflict) if answer == gtk.RESPONSE_YES: disableConflicts = conflict[2][0].DisableConflicts con = PluginConflict(conflict[2][0], disableConflicts) if con.Resolve(): conflict[2][0].Enabled = False e...
39c582fd54eef3d931ec4d03997bda657ec6b655 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1272/39c582fd54eef3d931ec4d03997bda657ec6b655/Conflicts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9910, 12, 2890, 4672, 364, 7546, 316, 365, 18, 30897, 30, 309, 7546, 63, 20, 65, 422, 296, 10732, 4595, 4278, 5803, 273, 365, 18, 23663, 1299, 12, 2890, 18, 3773, 16, 7546, 13, 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, 9910, 12, 2890, 4672, 364, 7546, 316, 365, 18, 30897, 30, 309, 7546, 63, 20, 65, 422, 296, 10732, 4595, 4278, 5803, 273, 365, 18, 23663, 1299, 12, 2890, 18, 3773, 16, 7546, 13, 309, ...
res = self.client.get('/admin/test_app/foo/')
res = self.client.get('/admin/test_app/')
def test_app_index(self): self.client.login(username='staff', password='123') res = self.client.get('/admin/test_app/foo/') self.assertEqual(res.status_code, 200) self.assertContains(res, 'Foos') self.assertNotContains(res, 'Bars')
6cc360ec5504f72713a6359d8c450b89d95f6c9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3856/6cc360ec5504f72713a6359d8c450b89d95f6c9e/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2910, 67, 1615, 12, 2890, 4672, 365, 18, 2625, 18, 5819, 12, 5053, 2218, 31096, 2187, 2201, 2218, 12936, 6134, 400, 273, 365, 18, 2625, 18, 588, 2668, 19, 3666, 19, 3813, 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, 1842, 67, 2910, 67, 1615, 12, 2890, 4672, 365, 18, 2625, 18, 5819, 12, 5053, 2218, 31096, 2187, 2201, 2218, 12936, 6134, 400, 273, 365, 18, 2625, 18, 588, 2668, 19, 3666, 19, 3813, 67,...
result += "catch(%s if %s)%s" % (compress(catch.exception), compress(catch.guard), compress(catch.block))
result += "catch(%s if %s){%s}" % (compress(catch.exception), compress(catch.guard), statements(catch.block))
def __try(node): result = "try%s" % compress(node.tryBlock) for catch in node: if catch.type == "catch": if hasattr(catch, "guard"): result += "catch(%s if %s)%s" % (compress(catch.exception), compress(catch.guard), compress(catch.block)) else: result += "catch(%s)%s" % (compress(catch.exception), compress(catch.block...
6f918967544cbf433546239d7804de160ec1130f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/6f918967544cbf433546239d7804de160ec1130f/Compressor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 698, 12, 2159, 4672, 563, 273, 315, 698, 9, 87, 6, 738, 8099, 12, 2159, 18, 698, 1768, 13, 225, 364, 1044, 316, 756, 30, 309, 1044, 18, 723, 422, 315, 14683, 6877, 309, 3859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 698, 12, 2159, 4672, 563, 273, 315, 698, 9, 87, 6, 738, 8099, 12, 2159, 18, 698, 1768, 13, 225, 364, 1044, 316, 756, 30, 309, 1044, 18, 723, 422, 315, 14683, 6877, 309, 3859, ...
except sre_constants.error,e:
except sre_constants.error:
def __init__( self, quoteChar, escChar=None, escQuote=None, multiline=False, unquoteResults=True, endQuoteChar=None): """ Defined with the following parameters: - quoteChar - string of one or more characters defining the quote delimiting string - escChar - character to escape quotes, typically backslash (default=None) ...
33883f48f6824f787e8351de12e152523ca1309a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12364/33883f48f6824f787e8351de12e152523ca1309a/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 3862, 2156, 16, 2904, 2156, 33, 7036, 16, 2904, 10257, 33, 7036, 16, 19431, 33, 8381, 16, 25611, 3447, 33, 5510, 16, 679, 10257, 2156, 33, 7036, 4672, 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, 1001, 2738, 972, 12, 365, 16, 3862, 2156, 16, 2904, 2156, 33, 7036, 16, 2904, 10257, 33, 7036, 16, 19431, 33, 8381, 16, 25611, 3447, 33, 5510, 16, 679, 10257, 2156, 33, 7036, 4672, 353...
help_text="""Décrivez de la manière la plus complète possible votre évènement. Les balises HTML autorisées sont &lt;p&gt;, &lt;b&gt;, &lt;i&gt;, &lt;ul&gt;, &lt;ol&gt;, &lt;li&gt;, &lt;br/&gt;, &lt;a&gt;. Utilisez &lt;h3&gt; jusqu'à &lt;h5&gt; pour diviser votre texte au besoin. Merci d'utiliser ces balises pour format...
help_text="""Décrivez de la manière la plus complète possible votre événement. Les balises HTML autorisées sont &lt;p&gt;, &lt;b&gt;, &lt;i&gt;, &lt;ul&gt;, &lt;ol&gt;, &lt;li&gt;, &lt;br/&gt;, &lt;a&gt;. Utilisez &lt;h3&gt; jusqu'à &lt;h5&gt; pour diviser votre texte au besoin. Merci d'utiliser ces balises pour format...
def __unicode__ (self): return self.name
d018745b83cb053a2a524e543de3ace8efb0a735 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9565/d018745b83cb053a2a524e543de3ace8efb0a735/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 261, 2890, 4672, 327, 365, 18, 529, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 261, 2890, 4672, 327, 365, 18, 529, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if d > 1: for i in range(x.ncols()):
if d != 1: for i in range(x.nrows()):
def add_column(B, H_B, a): """ The add column procedure. INPUT: B -- a non-singular square matrix H_B -- the Hermite normal form of B a -- a column vector OUTPUT: x -- a vector such that H' = H_B.augment(x) is the HNF of A = B.augment(a). """ t0 = verbose('starting add_column') # We use a direct solve method w...
71532771ada7dcf97b478ef425845539287ba9e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/71532771ada7dcf97b478ef425845539287ba9e0/matrix_integer_dense_hnf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2827, 12, 38, 16, 670, 67, 38, 16, 279, 4672, 3536, 1021, 527, 1057, 12131, 18, 225, 12943, 30, 605, 282, 1493, 279, 1661, 17, 17835, 8576, 3148, 670, 67, 38, 1493, 326, 670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2827, 12, 38, 16, 670, 67, 38, 16, 279, 4672, 3536, 1021, 527, 1057, 12131, 18, 225, 12943, 30, 605, 282, 1493, 279, 1661, 17, 17835, 8576, 3148, 670, 67, 38, 1493, 326, 670...
visitor.document.reporter.debug('visit_' + self.__class__.__name__, category='nodes.Node.walkabout')
visitor.document.reporter.debug( 'calling dispatch_visit for %s' % self.__class__.__name__, category='nodes.Node.walkabout')
def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called.
3837e1561a35079abf202ea3b59429bef574c00d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3837e1561a35079abf202ea3b59429bef574c00d/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
self.assert_(len(read) == 1024, "Error performing sendall.") read = filter(lambda x: x == 'f', read) self.assert_(len(read) == 1024, "Error performing sendall.")
msg += read self.assertEqual(msg, 'f' * 2048)
def testSendAll(self): # Testing sendall() with a 2048 byte string over TCP while 1: read = self.cli_conn.recv(1024) if not read: break self.assert_(len(read) == 1024, "Error performing sendall.") read = filter(lambda x: x == 'f', read) self.assert_(len(read) == 1024, "Error performing sendall.")
e531e296fa178a3a8fc8ec708035e5255f327227 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e531e296fa178a3a8fc8ec708035e5255f327227/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3826, 1595, 12, 2890, 4672, 468, 7766, 310, 1366, 454, 1435, 598, 279, 21907, 1160, 533, 1879, 9911, 1323, 404, 30, 855, 273, 365, 18, 4857, 67, 4646, 18, 18334, 12, 2163, 3247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3826, 1595, 12, 2890, 4672, 468, 7766, 310, 1366, 454, 1435, 598, 279, 21907, 1160, 533, 1879, 9911, 1323, 404, 30, 855, 273, 365, 18, 4857, 67, 4646, 18, 18334, 12, 2163, 3247, ...
code = subprocess.call([os.path.join(dest_dir, 'bin', 'python'), pip_fn, 'install', package])
code = subprocess.call([os.path.join(dest_dir, 'bin', 'pip'), 'install', package])
def _test_packages(output, pending_fn): package = get_last_item(pending_fn) print 'Testing package %s' % package dest_dir = os.path.join(output, package) print 'Creating virtualenv in %s' % dest_dir code = subprocess.call(['virtualenv', dest_dir]) assert not code, "virtualenv failed" print 'Trying installation of %s' %...
0998217cacfef4e79a370c7a5d37b14dc15f9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12982/0998217cacfef4e79a370c7a5d37b14dc15f9d2e/test_all_pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 10308, 12, 2844, 16, 4634, 67, 4293, 4672, 2181, 273, 336, 67, 2722, 67, 1726, 12, 9561, 67, 4293, 13, 1172, 296, 22218, 2181, 738, 87, 11, 738, 2181, 1570, 67, 1214, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 10308, 12, 2844, 16, 4634, 67, 4293, 4672, 2181, 273, 336, 67, 2722, 67, 1726, 12, 9561, 67, 4293, 13, 1172, 296, 22218, 2181, 738, 87, 11, 738, 2181, 1570, 67, 1214, ...
try: val = _subst_vars(val, self.config_vars) except: import pdb; pdb.set_trace()
val = _subst_vars(val, self.config_vars)
def _expand_attrs(self, attrs): for attr in attrs: val = getattr(self, attr) if val is not None: if os.name == 'posix' or os.name == 'nt': val = os.path.expanduser(val) try: val = _subst_vars(val, self.config_vars) except: import pdb; pdb.set_trace() setattr(self, attr, val)
776e1408671cf29ceeec0649d3b9375f605a6772 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/776e1408671cf29ceeec0649d3b9375f605a6772/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 67, 7039, 12, 2890, 16, 3422, 4672, 364, 1604, 316, 3422, 30, 1244, 273, 3869, 12, 2890, 16, 1604, 13, 309, 1244, 353, 486, 599, 30, 309, 1140, 18, 529, 422, 296, 24463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12320, 67, 7039, 12, 2890, 16, 3422, 4672, 364, 1604, 316, 3422, 30, 1244, 273, 3869, 12, 2890, 16, 1604, 13, 309, 1244, 353, 486, 599, 30, 309, 1140, 18, 529, 422, 296, 24463, ...
if self.op.reboot_type not in [constants.INSTANCE_REBOOT_SOFT, constants.INSTANCE_REBOOT_HARD, constants.INSTANCE_REBOOT_FULL]: raise errors.ParameterError("reboot type not in [%s, %s, %s]" % (constants.INSTANCE_REBOOT_SOFT, constants.INSTANCE_REBOOT_HARD, constants.INSTANCE_REBOOT_FULL))
def ExpandNames(self): if self.op.reboot_type not in [constants.INSTANCE_REBOOT_SOFT, constants.INSTANCE_REBOOT_HARD, constants.INSTANCE_REBOOT_FULL]: raise errors.ParameterError("reboot type not in [%s, %s, %s]" % (constants.INSTANCE_REBOOT_SOFT, constants.INSTANCE_REBOOT_HARD, constants.INSTANCE_REBOOT_FULL)) self._E...
9ade2edaa7bc91212b5fd1faf26a19be1f99d8da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/9ade2edaa7bc91212b5fd1faf26a19be1f99d8da/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 1557, 12, 2890, 4672, 365, 6315, 12271, 1876, 2531, 1442, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 1557, 12, 2890, 4672, 365, 6315, 12271, 1876, 2531, 1442, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value)),
xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)),
def _marshaled_dispatch(self, data, dispatch_method = None): """Dispatches an XML-RPC method from marshalled (XML) data.
b303381c9c144da95fae19f5665221483f2a6696 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b303381c9c144da95fae19f5665221483f2a6696/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 3536, 5325, 281, 392, 3167, 17, 8087, 707, 628, 10893, 1259, 261, 4201, 13, 501, 18, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 3536, 5325, 281, 392, 3167, 17, 8087, 707, 628, 10893, 1259, 261, 4201, 13, 501, 18, 2, -100, -100, ...
if u'posterdir' in storagegroups.keys():
if u'posterdir' in storagegroups.keys() and not local_only:
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, sta...
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
s += space(False,result=s)
r += cls.space(False,result=r)
def closing(self, node): s = u'' # for loop if node.parent.type == "loop" and node.parent.get("loopType") == "FOR": s += write(";")
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7647, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 468, 364, 2798, 309, 756, 18, 2938, 18, 723, 422, 315, 6498, 6, 471, 756, 18, 2938, 18, 588, 2932, 6498, 559, 7923, 422, 315, 7473...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7647, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 468, 364, 2798, 309, 756, 18, 2938, 18, 723, 422, 315, 6498, 6, 471, 756, 18, 2938, 18, 588, 2932, 6498, 559, 7923, 422, 315, 7473...
import _curses _curses.setupterm() assert _curses.tigetstr('cup') == '\x1b[%i%p1%d;%p2%dH'
import _minimal_curses _minimal_curses.setupterm() assert _minimal_curses.tigetstr('cup') == '\x1b[%i%p1%d;%p2%dH'
def test_tigetstr(self): source = py.code.Source(""" import _curses _curses.setupterm() assert _curses.tigetstr('cup') == '\x1b[%i%p1%d;%p2%dH' print 'ok!' """) f = udir.join("test_tigetstr.py") f.write(source) child = self.spawn(['--withmod-_curses', str(f)]) child.expect('ok!')
c95324df53e2debbd866baecc3e8fd82bf3e3691 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/c95324df53e2debbd866baecc3e8fd82bf3e3691/test_curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 88, 360, 278, 701, 12, 2890, 4672, 1084, 273, 2395, 18, 710, 18, 1830, 2932, 3660, 1930, 389, 1154, 2840, 67, 1397, 2420, 389, 1154, 2840, 67, 1397, 2420, 18, 542, 3648, 1035...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 88, 360, 278, 701, 12, 2890, 4672, 1084, 273, 2395, 18, 710, 18, 1830, 2932, 3660, 1930, 389, 1154, 2840, 67, 1397, 2420, 389, 1154, 2840, 67, 1397, 2420, 18, 542, 3648, 1035...
"""
"""
def avg(lst): return sum(lst) / len(lst)
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11152, 12, 16923, 4672, 327, 2142, 12, 16923, 13, 342, 562, 12, 16923, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11152, 12, 16923, 4672, 327, 2142, 12, 16923, 13, 342, 562, 12, 16923, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ((100 <= self.status <= 199) or self.status in (204, 304) or
if ((100 <= self.status <= 199) or self.status in (204, 301, 303, 304, 307) or
def startBody(self): self.findExpectedLength() self.checkChunked() self.decideWillClose() if self.headerCallback: trap_call(self, self.headerCallback, self.makeResponse()) if self.state == 'closed': return # maybe the header callback cancelled this request if ((100 <= self.status <= 199) or self.status in (204, 304) or...
494c875b972ea2f814e7b56ae164c988f549ad80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/494c875b972ea2f814e7b56ae164c988f549ad80/httpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2250, 12, 2890, 4672, 365, 18, 4720, 6861, 1782, 1435, 365, 18, 1893, 5579, 329, 1435, 365, 18, 4924, 831, 13670, 4605, 1435, 309, 365, 18, 3374, 2428, 30, 23034, 67, 1991, 12, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2250, 12, 2890, 4672, 365, 18, 4720, 6861, 1782, 1435, 365, 18, 1893, 5579, 329, 1435, 365, 18, 4924, 831, 13670, 4605, 1435, 309, 365, 18, 3374, 2428, 30, 23034, 67, 1991, 12, 28...
while node != name
while node.name != name:
def endTagTableCell(self, name): if self.parser.elementInScope(name): self.parser.generateImpliedEndTags() node = self.parser.openElements[-1].name if node != name: self.parser.parseError() node = self.parser.openElements.pop() while node != name node = self.parser.openElements.pop() self.parser.clearActiveFormattingEl...
2642c664c6e0937a2fa4a65315b9736bd69d8b03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/2642c664c6e0937a2fa4a65315b9736bd69d8b03/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 1388, 4020, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 12, 529, 4672, 365, 18, 4288, 18, 7163, 2828, 2092, 1638, 3453, 1435, 756, 273, 365, 18, 4288, 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, 29765, 1388, 4020, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 12, 529, 4672, 365, 18, 4288, 18, 7163, 2828, 2092, 1638, 3453, 1435, 756, 273, 365, 18, 4288, 18, ...
display_art_location.append_text(_("custom filename"))
display_art_location.append_text(_("custom name"))
def prefs(self, widget): prefswindow = gtk.Dialog(_("Preferences"), self.window, flags=gtk.DIALOG_DESTROY_WITH_PARENT) prefswindow.set_resizable(False) prefswindow.set_has_separator(False) hbox = gtk.HBox() prefsnotebook = gtk.Notebook() # MPD tab table = gtk.Table(9, 2, False) table.set_col_spacings(3) mpdlabel = gtk....
f845d533464b50c0a6947ac893e19749c008e580 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/f845d533464b50c0a6947ac893e19749c008e580/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15503, 12, 2890, 16, 3604, 4672, 15503, 5668, 273, 22718, 18, 6353, 24899, 2932, 12377, 6, 3631, 365, 18, 5668, 16, 2943, 33, 4521, 79, 18, 2565, 18683, 67, 1639, 25870, 61, 67, 9147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15503, 12, 2890, 16, 3604, 4672, 15503, 5668, 273, 22718, 18, 6353, 24899, 2932, 12377, 6, 3631, 365, 18, 5668, 16, 2943, 33, 4521, 79, 18, 2565, 18683, 67, 1639, 25870, 61, 67, 9147, ...
self.jsScriptSrc(attrs.get('src'), lang) return
if self.jsScriptSrc(attrs.get('src', ''), lang): return
def jsStartElement (self, tag, attrs): """Check popups for onmouseout and onmouseover. Inline extern javascript sources (only in the same domain)""" changed = 0 for name in ('onmouseover', 'onmouseout'): if attrs.has_key(name) and self.jsPopup(attrs, name): del attrs[name] changed = 1 if tag=='form': name = attrs.get('...
48f4bfe5083772710aa5a3dfced631a192a1eb57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/48f4bfe5083772710aa5a3dfced631a192a1eb57/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 1685, 1046, 261, 2890, 16, 1047, 16, 3422, 4672, 3536, 1564, 10431, 87, 364, 603, 11697, 659, 471, 603, 11697, 1643, 18, 16355, 18885, 11341, 5550, 261, 3700, 316, 326, 1967, 2461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 1685, 1046, 261, 2890, 16, 1047, 16, 3422, 4672, 3536, 1564, 10431, 87, 364, 603, 11697, 659, 471, 603, 11697, 1643, 18, 16355, 18885, 11341, 5550, 261, 3700, 316, 326, 1967, 2461, ...
sys.argv.apend('pythonpoint.xml')
sys.argv.append('pythonpoint.xml')
def process(datafilename): parser = stdparser.PPMLParser() rawdata = open(datafilename).read() parser.feed(rawdata) pres = parser.getPresentation() pres.save() parser.close()
1d9d4b200b56ddcb685a8e77da39ab2c7ce1bb36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/1d9d4b200b56ddcb685a8e77da39ab2c7ce1bb36/pythonpoint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 892, 3459, 4672, 2082, 273, 2044, 4288, 18, 6584, 1495, 2678, 1435, 1831, 892, 273, 1696, 12, 892, 3459, 2934, 896, 1435, 2082, 18, 7848, 12, 1899, 892, 13, 4075, 273, 2082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 12, 892, 3459, 4672, 2082, 273, 2044, 4288, 18, 6584, 1495, 2678, 1435, 1831, 892, 273, 1696, 12, 892, 3459, 2934, 896, 1435, 2082, 18, 7848, 12, 1899, 892, 13, 4075, 273, 2082, ...
obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'states', obj_) self.content_.append(obj_) if hasattr(self, 'add_states'): self.add_states(obj_.value) elif hasattr(self, 'set_states'): self.set_states(obj_.value) elif nodeName_ == 'char':
self.states.append(obj_) elif nodeName_ == 'char':
def buildChildren(self, child_, nodeName_, from_subclass=False): if nodeName_ == 'states': type_name_ = child_.attrib.get('{http://www.w3.org/2001/XMLSchema-instance}type') if type_name_ is None: type_name_ = child_.attrib.get('type') if type_name_ is not None: type_names_ = type_name_.split(':') if len(type_names_) ==...
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 7992, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 7992, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 9...
self.job.setup_dep(['pgsql'])
self.job.setup_dep(['pgsql', 'mysql'])
def setup(self, tarball = 'dbt2-0.38.tar.gz'): tarball = unmap_url(self.bindir, tarball, self.tmpdir) extract_tarball_to_dir(tarball, self.srcdir) self.job.setup_dep(['pgsql'])
fc29b92c481478355099368d4370163198d1e676 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/fc29b92c481478355099368d4370163198d1e676/dbt2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 29441, 273, 296, 1966, 88, 22, 17, 20, 18, 7414, 18, 11718, 18, 9764, 11, 4672, 29441, 273, 640, 1458, 67, 718, 12, 2890, 18, 4376, 481, 16, 29441, 16, 365, 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, 3875, 12, 2890, 16, 29441, 273, 296, 1966, 88, 22, 17, 20, 18, 7414, 18, 11718, 18, 9764, 11, 4672, 29441, 273, 640, 1458, 67, 718, 12, 2890, 18, 4376, 481, 16, 29441, 16, 365, 18, ...
def getCurrentOutgoingAccount(view):
def getCurrentOutgoingAccount(view, ignorePassword=False):
def getCurrentOutgoingAccount(view): """ This function returns the default C{OutgoingAccount} account or the first C{OutgoingAccount} found if no default exists. @return C{OutgoingAccount} or None """ outgoingAccount = None # Get the current SMTP Account outgoingAccount = schema.ns('osaf.pim', view).currentOutgoingA...
da69f378e03cd4ad2f57bb44acaad5e047e5bd57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/da69f378e03cd4ad2f57bb44acaad5e047e5bd57/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 24866, 3032, 12, 1945, 16, 2305, 3913, 33, 8381, 4672, 3536, 1220, 445, 1135, 326, 805, 385, 95, 24866, 3032, 97, 2236, 578, 326, 1122, 385, 95, 24866, 3032, 97, 1392, 309, 1158, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 24866, 3032, 12, 1945, 16, 2305, 3913, 33, 8381, 4672, 3536, 1220, 445, 1135, 326, 805, 385, 95, 24866, 3032, 97, 2236, 578, 326, 1122, 385, 95, 24866, 3032, 97, 1392, 309, 1158, ...
os.rename(self.filename + '.new', self.filename)
def WriteBack(self, force=0): '''Write statistics changes back to persistent store''' if (self.dirty and (self.lastwrite + self.__min_write_delay__ <= time()) ) \ or force: #syslog(LOG_INFO, "Statistics: Updated statistics.xml") try: fout = open(self.filename + '.new', 'w') except IOError, ioerr: self.logger.error("Fai...
64094271640e11ea6a074a1df7e9fdebde65fd79 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/64094271640e11ea6a074a1df7e9fdebde65fd79/Statistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 2711, 12, 2890, 16, 2944, 33, 20, 4672, 9163, 3067, 7691, 3478, 1473, 358, 9195, 1707, 26418, 309, 261, 2890, 18, 18013, 471, 261, 2890, 18, 2722, 2626, 397, 365, 16186, 1154, 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, 2598, 2711, 12, 2890, 16, 2944, 33, 20, 4672, 9163, 3067, 7691, 3478, 1473, 358, 9195, 1707, 26418, 309, 261, 2890, 18, 18013, 471, 261, 2890, 18, 2722, 2626, 397, 365, 16186, 1154, 67, ...
def forward(app, codes): for code in codes: if not isinstance(code, int): raise TypeError('All status codes should be type int. ' '%s is not valid'%repr(code)) def error_codes_mapper(code, message, environ, global_conf, codes): if codes.has_key(code): return codes[code] else: return None return custom_forward(app, erro...
def forward(app, codes): for code in codes: if not isinstance(code, int): raise TypeError('All status codes should be type int. ' '%s is not valid'%repr(code)) def error_codes_mapper(code, message, environ, global_conf, codes): if codes.has_key(code): return codes[code] else: return None return custom_forward(app, erro...
def forward(app, codes): for code in codes: if not isinstance(code, int): raise TypeError('All status codes should be type int. ' '%s is not valid'%repr(code)) def error_codes_mapper(code, message, environ, global_conf, codes): if codes.has_key(code): return codes[code] else: return None return custom_forward(app, erro...
3e3fdd50bf8ecaa59f1aaba9d48581ae96b25d08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3e3fdd50bf8ecaa59f1aaba9d48581ae96b25d08/errordocument.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5104, 12, 2910, 16, 6198, 4672, 364, 981, 316, 6198, 30, 309, 486, 1549, 12, 710, 16, 509, 4672, 1002, 3580, 2668, 1595, 1267, 6198, 1410, 506, 618, 509, 18, 296, 1995, 87, 353, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5104, 12, 2910, 16, 6198, 4672, 364, 981, 316, 6198, 30, 309, 486, 1549, 12, 710, 16, 509, 4672, 1002, 3580, 2668, 1595, 1267, 6198, 1410, 506, 618, 509, 18, 296, 1995, 87, 353, 486, ...
return subject_covers(m.group(1))
return subjects_covers(m.group(1))
def GET(self, path_info): m = re_covers_json.match(path_info) if m: return subject_covers(m.group(1)) rows = 12 * 3 offset = 0 if not path_info: return 'subjects page goes here' (subject_type, key, full_key, q) = read_subject(path_info) # q = ' AND '.join('subject_key:"%s"' % url_quote(key.lower().replace('_', ' ')) fo...
5f9521eb78f25aac5af5649fdb3effa3298d6157 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/5f9521eb78f25aac5af5649fdb3effa3298d6157/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 589, 67, 1376, 4672, 312, 273, 283, 67, 14014, 414, 67, 1977, 18, 1916, 12, 803, 67, 1376, 13, 309, 312, 30, 327, 16782, 67, 14014, 414, 12, 81, 18, 1655, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 589, 67, 1376, 4672, 312, 273, 283, 67, 14014, 414, 67, 1977, 18, 1916, 12, 803, 67, 1376, 13, 309, 312, 30, 327, 16782, 67, 14014, 414, 12, 81, 18, 1655, 12, 2...
nick = author.findtext("", None).strip()
nick = author.text.strip()
def DownloadCL(ui, repo, clname): set_status("downloading CL " + clname) cl, err = LoadCL(ui, repo, clname) if err != "": return None, None, "error loading CL %s: %s" % (clname, ExceptionDetail()) # Grab RSS feed to learn about CL feed = XMLGet(ui, "/rss/issue/" + clname) if feed is None: return None, None, "cannot do...
0e816f5972b2bebe62960e6066cb87c75bb009dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6483/0e816f5972b2bebe62960e6066cb87c75bb009dd/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13059, 5017, 12, 4881, 16, 3538, 16, 927, 529, 4672, 444, 67, 2327, 2932, 7813, 310, 14934, 315, 397, 927, 529, 13, 927, 16, 393, 273, 4444, 5017, 12, 4881, 16, 3538, 16, 927, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13059, 5017, 12, 4881, 16, 3538, 16, 927, 529, 4672, 444, 67, 2327, 2932, 7813, 310, 14934, 315, 397, 927, 529, 13, 927, 16, 393, 273, 4444, 5017, 12, 4881, 16, 3538, 16, 927, 529, 1...
Value = pcd.Value
Value = pcd.DefaultValue
def CreateModulePcdCode(self, pcd): # # Write PCDs # #for TokenSpaceGuidCName in self.Module.Pcds: # Platform.PcdDatabase[ModuleSA]: # for C_Name in Platform.PcdDatabase[ModuleSA][TokenSpaceGuidCName]: # Pcd = Platform.PcdDatabase[ModuleSA][TokenSpaceGuidCName][C_Name] pcdTokenName = '_PCD_TOKEN_' + pcd.TokenCN...
502c7f8e852c690f3cb00ab852f2902d8eb0db4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/502c7f8e852c690f3cb00ab852f2902d8eb0db4f/AutoGen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3120, 52, 4315, 1085, 12, 2890, 16, 293, 4315, 4672, 468, 468, 2598, 453, 10160, 87, 468, 468, 1884, 3155, 3819, 22549, 39, 461, 316, 365, 18, 3120, 18, 28136, 2377, 30, 468, 118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3120, 52, 4315, 1085, 12, 2890, 16, 293, 4315, 4672, 468, 468, 2598, 453, 10160, 87, 468, 468, 1884, 3155, 3819, 22549, 39, 461, 316, 365, 18, 3120, 18, 28136, 2377, 30, 468, 118...
str += epytext.to_html(freturn.type())
str += dom_to_html(freturn.type(), container)
def _func_details(self, functions, cls, heading='Function Details'): """Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</table>'
ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6...
from reportlab.pdfbase.pdfmetrics import _py_stringWidth, _py_getFont, registerFont
from reportlab.pdfbase.pdfmetrics import _py_stringWidth, getFont, registerFont, _fonts
def testStringWidth(self): from _rl_accel import stringWidthU from reportlab.pdfbase.pdfmetrics import _py_stringWidth, _py_getFont, registerFont from reportlab.pdfbase.ttfonts import TTFont from sys import getrefcount ttfn = 'Luxi-Serif' t1fn = 'Times-Roman' registerFont(TTFont(ttfn, "luxiserif.ttf")) ttf = _py_getFon...
12e8e9cc55671e5cc6f4a8cba83406f53d6c3513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/12e8e9cc55671e5cc6f4a8cba83406f53d6c3513/test_rl_accel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 780, 2384, 12, 2890, 4672, 628, 389, 1321, 67, 30737, 1930, 533, 2384, 57, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 389, 2074, 67, 1080, 2384, 16, 18776, 16, 1744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 2384, 12, 2890, 4672, 628, 389, 1321, 67, 30737, 1930, 533, 2384, 57, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 389, 2074, 67, 1080, 2384, 16, 18776, 16, 1744, ...
except error, (errno, msg): if errno != ENOENT and errno != ENOTDIR: raise raise error, (errno, msg)
except error, e: tb = sys.exc_info()[2] if (e.errno != ENOENT and e.errno != ENOTDIR and saved_exc is None): saved_exc = e saved_tb = tb if saved_exc: raise error, saved_exc, saved_tb raise error, e, tb
def _execvpe(file, args, env=None): from errno import ENOENT, ENOTDIR if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ head, tail = path.split(file) if head: apply(func, (file,) + argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath ...
683c0fe41430d66e329279e164912cea62170f0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/683c0fe41430d66e329279e164912cea62170f0a/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 90, 347, 12, 768, 16, 833, 16, 1550, 33, 7036, 4672, 628, 8402, 1930, 29018, 16, 512, 4400, 4537, 225, 309, 1550, 353, 486, 599, 30, 1326, 273, 1196, 537, 1501, 8792, 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, 4177, 90, 347, 12, 768, 16, 833, 16, 1550, 33, 7036, 4672, 628, 8402, 1930, 29018, 16, 512, 4400, 4537, 225, 309, 1550, 353, 486, 599, 30, 1326, 273, 1196, 537, 1501, 8792, 273, ...
rubik = self G = rubik.group() if isinstance(state, str): leg = rubik.legal(state,"verbose") if not(leg[0]): return "Illegal or syntactically incorrect state. No solution." g = leg[1] else: g = state
G = self.group() try: g = self.parse(state) except TypeError: return "Illegal or syntactically incorrect state. No solution."
def solve(self,state): r""" Solves the cube in the \code{state}, given as a dictionary as in \code{legal}. This uses GAP's \code{EpimorphismFromFreeGroup} and \code{PreImagesRepresentative}.
b51bcae1e93724dd78085104a1c7a275916a0c9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b51bcae1e93724dd78085104a1c7a275916a0c9b/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 2890, 16, 2019, 4672, 436, 8395, 348, 355, 3324, 326, 18324, 316, 326, 521, 710, 95, 2019, 5779, 864, 487, 279, 3880, 487, 316, 521, 710, 95, 2013, 5496, 225, 1220, 4692, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 2890, 16, 2019, 4672, 436, 8395, 348, 355, 3324, 326, 18324, 316, 326, 521, 710, 95, 2019, 5779, 864, 487, 279, 3880, 487, 316, 521, 710, 95, 2013, 5496, 225, 1220, 4692, 61...
class Locale(Transform): """ Replace translatable nodes with their translated doctree. """ default_priority = 0 def apply(self): settings, source = self.document.settings, self.document['source'] parser = RSTParser() for node, msg in extract_messages(self.document): ctx = node.parent patch = new_document(source, setti...
def apply(self): for citnode in self.document.traverse(nodes.citation_reference): cittext = citnode.astext() refnode = addnodes.pending_xref(cittext, reftype='citation', reftarget=cittext) refnode += nodes.Text('[' + cittext + ']') citnode.parent.replace(citnode, refnode)
6a715f5d1ab41b100c6f73c7440b41262c29aaad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/6a715f5d1ab41b100c6f73c7440b41262c29aaad/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 4672, 364, 276, 305, 2159, 316, 365, 18, 5457, 18, 2033, 2476, 12, 4690, 18, 71, 8773, 67, 6180, 4672, 276, 305, 955, 273, 276, 305, 2159, 18, 689, 408, 1435, 1278, 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, 2230, 12, 2890, 4672, 364, 276, 305, 2159, 316, 365, 18, 5457, 18, 2033, 2476, 12, 4690, 18, 71, 8773, 67, 6180, 4672, 276, 305, 955, 273, 276, 305, 2159, 18, 689, 408, 1435, 1278, 2...
elif value._isRefs():
elif value is not None and value._isRefs():
def _collectChanges(self, view, flag, dirties, newChanges, changes, indexChanges, version, newVersion):
afbd15e80a24f502961975509a0cc0632917b75f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/afbd15e80a24f502961975509a0cc0632917b75f/Values.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14676, 7173, 12, 2890, 16, 1476, 16, 2982, 16, 1577, 88, 606, 16, 394, 7173, 16, 3478, 16, 770, 7173, 16, 1177, 16, 28906, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 14676, 7173, 12, 2890, 16, 1476, 16, 2982, 16, 1577, 88, 606, 16, 394, 7173, 16, 3478, 16, 770, 7173, 16, 1177, 16, 28906, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
def toggle2Click(self, obj, event, *args, **kargs): print "BT toggle2Cleck set on off spi hci servis" if self.btmc.getService()==obj.state_get(): return 0 if obj.state_get()==0: print "Turn off" os.system("/etc/init.d/bluetooth stop") else: print "Turn on" os.system("/etc/init.d/bluetooth start") def toggle3Click...
self.BtmodGUIupdate()
def toggle1Click(self, obj, event, *args, **kargs): print "BT toggle1Cleck set Visibility" if self.btmc.getVisibility()==obj.state_get(): return 0
96df52ecbc51e86f029c1e5a29cf17a34ae92540 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11428/96df52ecbc51e86f029c1e5a29cf17a34ae92540/shr_bt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 21, 6563, 12, 2890, 16, 1081, 16, 871, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 1172, 315, 38, 56, 10486, 21, 4756, 363, 444, 27791, 6, 309, 365, 18, 23602, 13952, 18, 588, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10486, 21, 6563, 12, 2890, 16, 1081, 16, 871, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 1172, 315, 38, 56, 10486, 21, 4756, 363, 444, 27791, 6, 309, 365, 18, 23602, 13952, 18, 588, 10...
self.wid.DisposeDialog()
def close(self): self.wid.DisposeDialog() self.do_postclose()
0400adab0292aefa021c42b1033420432d3a19a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0400adab0292aefa021c42b1033420432d3a19a9/FrameWork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 2896, 67, 2767, 4412, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 2896, 67, 2767, 4412, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
router = router_map[nodes[1]]
if nodes[1] in router_map: router = router_map[nodes[1]] if disk_only: if ranks: router.rank_history = ranks if bws: router.bw_history = bws continue elif disk_only: continue
def flag_ctr(f): if not f in flags[i]: flags[i][f] = 0 flags[i][f] += 1
a95a24bd7e0c23168169ad9e4bc2f956ff3f5a30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/a95a24bd7e0c23168169ad9e4bc2f956ff3f5a30/dist_check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2982, 67, 5735, 12, 74, 4672, 309, 486, 284, 316, 2943, 63, 77, 14542, 2943, 63, 77, 6362, 74, 65, 273, 374, 2943, 63, 77, 6362, 74, 65, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2982, 67, 5735, 12, 74, 4672, 309, 486, 284, 316, 2943, 63, 77, 14542, 2943, 63, 77, 6362, 74, 65, 273, 374, 2943, 63, 77, 6362, 74, 65, 1011, 404, 2, -100, -100, -100, -100, -100, ...
"DefaultDirName={pf}\RapidSVN-%s" % (self.version.str),
"DefaultDirName={pf}\RapidSVN-%s" % (self.version.str_nopatch),
def checkRapidsvnIss(self): fname = RAPIDSVN_ISS_FILE replace(fname, "AppName=[^\n]*", "AppName=RapidSVN-%s" % (self.version.str), "AppName") replace(fname, "AppVerName=[^\n]*", "AppVerName=RapidSVN-%s" % (self.version.str), "AppVerName") replace(fname, "OutputBaseFilename=[^\n]*", \ "OutputBaseFilename=RapidSVN-%s" % ...
ac5464c1d30a1dd1bd16b9fb4a385c0e7eecdedb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9898/ac5464c1d30a1dd1bd16b9fb4a385c0e7eecdedb/check-version.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 54, 438, 2232, 25031, 7568, 12, 2890, 4672, 5299, 273, 534, 2203, 19516, 58, 50, 67, 25689, 67, 3776, 1453, 12, 12749, 16, 315, 3371, 461, 33, 15441, 82, 5772, 3113, 315, 3371, 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, 866, 54, 438, 2232, 25031, 7568, 12, 2890, 4672, 5299, 273, 534, 2203, 19516, 58, 50, 67, 25689, 67, 3776, 1453, 12, 12749, 16, 315, 3371, 461, 33, 15441, 82, 5772, 3113, 315, 3371, 46...
if self.mq.applied and not force and not revs: raise util.Abort(_('source has mq patches applied'))
if self.mq.applied and not force: haspatches = True if revs: applied = set(e.node for e in self.mq.applied) haspatches = bool([n for n in revs if n in applied]) if haspatches: raise util.Abort(_('source has mq patches applied'))
def push(self, remote, force=False, revs=None, newbranch=False): if self.mq.applied and not force and not revs: raise util.Abort(_('source has mq patches applied')) return super(mqrepo, self).push(remote, force, revs, newbranch)
dfc617390a3e3be4a829226ffbf58f0ad8d4090c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/dfc617390a3e3be4a829226ffbf58f0ad8d4090c/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 16, 2632, 16, 2944, 33, 8381, 16, 5588, 87, 33, 7036, 16, 394, 7500, 33, 8381, 4672, 309, 365, 18, 11636, 18, 438, 3110, 471, 486, 2944, 30, 711, 30278, 273, 1053, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 16, 2632, 16, 2944, 33, 8381, 16, 5588, 87, 33, 7036, 16, 394, 7500, 33, 8381, 4672, 309, 365, 18, 11636, 18, 438, 3110, 471, 486, 2944, 30, 711, 30278, 273, 1053, 30...
print "cur_lambd = ",cur_lambd for idxT in range(len(F.terms)): res = (res * cur_u[idxT]**(cur_lambd[idxT]-1)/ sympy.factorial(cur_lambd[idxT]-1)) res = res * F.detM_fake**(-d/sympy.Number(2)) phi2count=0 for idxN in t_G.internal_nodes: node = G.nodes[idxN] if node.type == 2 and idxN not in excluded_phi2_nodes: line...
print F.detM print cur_u t_res = res for str_strech in F.graph.s_type: strech = sympy.var(str_strech) if F.graph.s_degree[str_strech]>=1: for idx in range(F.graph.s_degree[str_strech]): t_res = t_res.diff(strech) else: raise ValueError, "strech degree <1 (strech=%s,degree=%s)"%(str_strech,F.graph.s_degree[str_stre...
def scalar_prod_c(c1,c2,atom_list): res = 0 for idx1 in range(len(atom_list)): atom1=sympy.var(atom_list[idx1]) for idx2 in range(len(atom_list)): atom2 = sympy.var(atom_list[idx2]) if idx1 == idx2 : res = res + c1[idx1]*c2[idx2]*atom1**2 else: s_atom_lst=[str(atom1),str(atom2)] s_atom_lst.sort() s_atom_lst.insert(1,'x...
60a316f348c3b4db1acc8979f5e890248b71882b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4941/60a316f348c3b4db1acc8979f5e890248b71882b/phi3R1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4981, 67, 17672, 67, 71, 12, 71, 21, 16, 71, 22, 16, 7466, 67, 1098, 4672, 400, 273, 374, 364, 2067, 21, 316, 1048, 12, 1897, 12, 7466, 67, 1098, 3719, 30, 3179, 21, 33, 9009, 1291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4981, 67, 17672, 67, 71, 12, 71, 21, 16, 71, 22, 16, 7466, 67, 1098, 4672, 400, 273, 374, 364, 2067, 21, 316, 1048, 12, 1897, 12, 7466, 67, 1098, 3719, 30, 3179, 21, 33, 9009, 1291...
return '<span class="datefilteroper" id="operator%d">%s</span><input class="vDateField" id="filter%d" type="text" size="%d" value="%s" name="%s__%s" tabindex="%d"/>' \
return '<span class="datefilteroper" id="operator%d">%s</span><input class="vDateField filter" id="filter%d" type="text" size="%d" value="%s" name="%s__%s" tabindex="%d"/>' \
def output(self, row, number, args): global IntegerOperator res = [] rowfield = self.field or row[0] counter = number*10 for i in args: try: # Skip empty filters if args.get(i) == '': continue # Determine field and operator field, sep, operator = i.rpartition('__') if field == '': field = operator operator = 'exact' if...
a5f6e2d25582a1a04f480d493c50a2ece97b6dae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8604/a5f6e2d25582a1a04f480d493c50a2ece97b6dae/report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 12, 2890, 16, 1027, 16, 1300, 16, 833, 4672, 2552, 2144, 5592, 400, 273, 5378, 1027, 1518, 273, 365, 18, 1518, 578, 1027, 63, 20, 65, 3895, 273, 1300, 14, 2163, 364, 277, 316, 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, 876, 12, 2890, 16, 1027, 16, 1300, 16, 833, 4672, 2552, 2144, 5592, 400, 273, 5378, 1027, 1518, 273, 365, 18, 1518, 578, 1027, 63, 20, 65, 3895, 273, 1300, 14, 2163, 364, 277, 316, 8...
print '%s: %s - %s' % (p.channel_id, p.title, time.strftime('%b %d ' + config.TV_TIMEFORMAT, time.localtime(p.start)))
print '%s:%d: %s - %s' % (String(p['channel_id']), p['id'], String(p['title']), time.strftime('%b %d ' + config.TV_TIMEFORMAT, time.localtime(p['start']))) def test_func(): epg.expire_programs() sys.exit(0)
def search_progs(subs): print 'Results:' print '--------' programs = epg.search_programs(subs) for p in programs: print '%s: %s - %s' % (p.channel_id, p.title, time.strftime('%b %d ' + config.TV_TIMEFORMAT, time.localtime(p.start)))
af140f8d0f447b45cc9933fcbf250d414d848399 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/af140f8d0f447b45cc9933fcbf250d414d848399/epg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 685, 564, 12, 22284, 4672, 1172, 296, 3447, 2497, 1172, 296, 788, 11, 25038, 273, 31682, 18, 3072, 67, 12890, 87, 12, 22284, 13, 364, 293, 316, 25038, 30, 1172, 1995, 87, 531...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 685, 564, 12, 22284, 4672, 1172, 296, 3447, 2497, 1172, 296, 788, 11, 25038, 273, 31682, 18, 3072, 67, 12890, 87, 12, 22284, 13, 364, 293, 316, 25038, 30, 1172, 1995, 87, 531...
return self.passwordClass(self.__dict__["cryptedpass"])
return self.passwordClass(self._data["cryptedpass"])
def get_password(self): """returns a zikebase.Password object for testing against plaintext.""" return self.passwordClass(self.__dict__["cryptedpass"])
4acaa3d443b624ac5945cbff2bea07d26e3fdfbc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/4acaa3d443b624ac5945cbff2bea07d26e3fdfbc/User.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3664, 12, 2890, 4672, 3536, 6154, 279, 998, 2547, 1969, 18, 3913, 733, 364, 7769, 5314, 11917, 12123, 327, 365, 18, 3664, 797, 12, 2890, 6315, 892, 9614, 71, 4567, 5466, 6, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 3664, 12, 2890, 4672, 3536, 6154, 279, 998, 2547, 1969, 18, 3913, 733, 364, 7769, 5314, 11917, 12123, 327, 365, 18, 3664, 797, 12, 2890, 6315, 892, 9614, 71, 4567, 5466, 6, 57...
assert(self.debugPrint("setAvatarPhysicsIndicator()"))
assert self.notify.debugStateCall(self)
def setAvatarPhysicsIndicator(self, indicator): """ indicator is a NodePath """ assert(self.debugPrint("setAvatarPhysicsIndicator()")) self.cWallSphereNodePath.show()
279b0b95d73beb43864e40b8f39c02e406b03967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/279b0b95d73beb43864e40b8f39c02e406b03967/GravityWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23999, 3731, 1900, 2102, 13140, 12, 2890, 16, 10664, 4672, 3536, 10664, 353, 279, 2029, 743, 3536, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 365, 18, 71, 26558, 2274...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23999, 3731, 1900, 2102, 13140, 12, 2890, 16, 10664, 4672, 3536, 10664, 353, 279, 2029, 743, 3536, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 365, 18, 71, 26558, 2274...
(0.56109032345808163, 0.857926501456)
(0.561090323458081..., 0.857926501456)
def find_maximum_on_interval(self, a, b, var=None, tol=1.48e-08, maxfun=500): r""" Numerically find the maximum of the expression \code{self} on the interval [a,b] (or [b,a]) along with the point at which the maximum is attained.
65923c8273143f0844f996f9eadc4ebf1677d95b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/65923c8273143f0844f996f9eadc4ebf1677d95b/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 15724, 67, 265, 67, 6624, 12, 2890, 16, 279, 16, 324, 16, 569, 33, 7036, 16, 6085, 33, 21, 18, 8875, 73, 17, 6840, 16, 943, 12125, 33, 12483, 4672, 436, 8395, 16980, 1230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15724, 67, 265, 67, 6624, 12, 2890, 16, 279, 16, 324, 16, 569, 33, 7036, 16, 6085, 33, 21, 18, 8875, 73, 17, 6840, 16, 943, 12125, 33, 12483, 4672, 436, 8395, 16980, 1230, ...
print "move down: %d %d" % (dy, bead.state)
def move_bead(self, sprite, dy): """ Move a bead (or beads) up or down a rod from the middle. """
006f398bab4c9f6302a81f8e2528c22dd2b0b824 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7608/006f398bab4c9f6302a81f8e2528c22dd2b0b824/abacus_window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 70, 684, 12, 2890, 16, 16839, 16, 7732, 4672, 3536, 9933, 279, 506, 361, 261, 280, 506, 17318, 13, 731, 578, 2588, 279, 721, 72, 628, 326, 7689, 18, 3536, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3635, 67, 70, 684, 12, 2890, 16, 16839, 16, 7732, 4672, 3536, 9933, 279, 506, 361, 261, 280, 506, 17318, 13, 731, 578, 2588, 279, 721, 72, 628, 326, 7689, 18, 3536, 2, -100, -100, -1...
return cmp((f[0].degree(),f[1]), (g[0].degree(),g[1]))
return cmp((f[0].degree(),f[1],f[0]), (g[0].degree(),g[1],g[0]))
def _cmp(f,g): try: #return cmp(f[0].degree()*f[1], g[0].degree()*g[1]) return cmp((f[0].degree(),f[1]), (g[0].degree(),g[1])) except (AttributeError, NotImplementedError): return cmp(f[0], g[0])
dec1a08089ec5c694c8f4edd3a4ce121830d6bc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/dec1a08089ec5c694c8f4edd3a4ce121830d6bc3/factorization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 12, 74, 16, 75, 4672, 775, 30, 468, 2463, 9411, 12, 74, 63, 20, 8009, 21361, 1435, 14, 74, 63, 21, 6487, 314, 63, 20, 8009, 21361, 1435, 14, 75, 63, 21, 5717, 2463, 9411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 12, 74, 16, 75, 4672, 775, 30, 468, 2463, 9411, 12, 74, 63, 20, 8009, 21361, 1435, 14, 74, 63, 21, 6487, 314, 63, 20, 8009, 21361, 1435, 14, 75, 63, 21, 5717, 2463, 9411...
u'''^.+?/(?P<seriesname>[^/]+)/%(season)s%(slash)s '''+ u'''(?P<seasno>[0-9]+)/(?P<epno>[0-9]+).+$''',
def __init__(self, interactive = False, debug = False): """Initialize default configuration settings """ self.config = {} # Set all default variables self.config['interactive'] = interactive self.config['debug_enabled'] = debug self.config['flags_options'] = False self.config['local_language'] = u'en' self.config['simu...
5c9009ef7a0119d28e6ed446192c9ea2fad194e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/5c9009ef7a0119d28e6ed446192c9ea2fad194e9/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 12625, 273, 1083, 16, 1198, 273, 1083, 4672, 3536, 7520, 805, 1664, 1947, 3536, 365, 18, 1425, 273, 2618, 468, 1000, 777, 805, 3152, 365, 18, 1425, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12625, 273, 1083, 16, 1198, 273, 1083, 4672, 3536, 7520, 805, 1664, 1947, 3536, 365, 18, 1425, 273, 2618, 468, 1000, 777, 805, 3152, 365, 18, 1425, 3292, ...
import wikipedia, pagegenerators import welcome
import wikipedia as pywikibot import pagegenerators
__version__ = '$Id: 525ad67a96c705472993b47f77355f4836a38def $'
3e7506930193ed64965aabc3e2d1d58bf15e5c6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/3e7506930193ed64965aabc3e2d1d58bf15e5c6b/nowcommons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1001, 1589, 972, 273, 3365, 548, 30, 1381, 2947, 361, 9599, 69, 10525, 71, 27, 6260, 24, 9060, 2733, 23, 70, 9462, 74, 4700, 23, 2539, 74, 8875, 5718, 69, 7414, 536, 271, 11, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1001, 1589, 972, 273, 3365, 548, 30, 1381, 2947, 361, 9599, 69, 10525, 71, 27, 6260, 24, 9060, 2733, 23, 70, 9462, 74, 4700, 23, 2539, 74, 8875, 5718, 69, 7414, 536, 271, 11, 2, -100, -100...
outfile = codecs.open(filename, 'w', 'utf-8')
outfile = codecs.open(filename, 'w', 'utf-8', 'replace')
def write(self, filename=None, file=None): """Writes self.feed to a file, default self.filename. If fed filename, will write and close self.feed to file at filename. if fed file, will write to file, but closing it is up to you""" if file: self._write(self.feed, file) elif filename: outfile = codecs.open(filename, 'w', ...
15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 33, 7036, 16, 585, 33, 7036, 4672, 3536, 8368, 365, 18, 7848, 358, 279, 585, 16, 805, 365, 18, 3459, 18, 971, 22572, 1544, 16, 903, 1045, 471, 1746, 365, 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, 1045, 12, 2890, 16, 1544, 33, 7036, 16, 585, 33, 7036, 4672, 3536, 8368, 365, 18, 7848, 358, 279, 585, 16, 805, 365, 18, 3459, 18, 971, 22572, 1544, 16, 903, 1045, 471, 1746, 365, 18...
sys.setcheckinterval(1) try: for i in xrange(1, 1000):
try: for i in xrange(1, 100): sys.setcheckinterval(i // 5)
def test_enumerate_after_join(self): # Try hard to trigger #1703448: a thread is still returned in # threading.enumerate() after it has been join()ed. enum = threading.enumerate old_interval = sys.getcheckinterval() sys.setcheckinterval(1) try: for i in xrange(1, 1000): t = threading.Thread(target=lambda: None) t.start...
b62035f3c42ef32531fe3a28e880614f93a6ae73 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b62035f3c42ef32531fe3a28e880614f93a6ae73/test_threading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7924, 12600, 67, 5205, 67, 5701, 12, 2890, 4672, 468, 6161, 7877, 358, 3080, 468, 4033, 4630, 6334, 28, 30, 279, 2650, 353, 4859, 2106, 316, 468, 17254, 18, 7924, 12600, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7924, 12600, 67, 5205, 67, 5701, 12, 2890, 4672, 468, 6161, 7877, 358, 3080, 468, 4033, 4630, 6334, 28, 30, 279, 2650, 353, 4859, 2106, 316, 468, 17254, 18, 7924, 12600, 1435, ...
def __prettyPrint(self,object): """Internal function to pretty print an object.
def _prettyPrint(self,object): """Helper function to pretty print an object.
def __prettyPrint(self,object): """Internal function to pretty print an object. """ print self.pPrint.pformat(object)
c3f77bd500e00ef5e3c77c1c8e4e95571c3ccb7f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/c3f77bd500e00ef5e3c77c1c8e4e95571c3ccb7f/DiracProduction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19073, 5108, 12, 2890, 16, 1612, 4672, 3536, 2276, 445, 358, 7517, 1172, 392, 733, 18, 3536, 1172, 365, 18, 84, 5108, 18, 84, 2139, 12, 1612, 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, 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, 389, 19073, 5108, 12, 2890, 16, 1612, 4672, 3536, 2276, 445, 358, 7517, 1172, 392, 733, 18, 3536, 1172, 365, 18, 84, 5108, 18, 84, 2139, 12, 1612, 13, 2, -100, -100, -100, -100, -100, ...
elif id == menuQuit: self.emit(PYSIGNAL("endIcon()"), ()) app = QApplication(sys.argv)
managerMenu = QPopupMenu() optionsMenu = QPopupMenu() decoratorMenu = QPopupMenu() groupWM = QActionGroup(managerMenu, "groupWM", True) actionCompizWM=QAction("Compiz", 0, groupWM) actionCompizWM.setToggleAction(True) actionMetacityWM=QAction("Metacity", 0, groupWM) actionMetacityWM.setToggleAction(True) actionKwin...
def KDE_slot(): if initialized: if active_wm == compiz and get_decorator() != kwd: old_dec_list = get_decorator().split() old_decorator = old_dec_list[0] system('killall %s' % (old_decorator)) sleep(1) set_decorator(kwd)
06c0809ecced383d409950e61191dfef8a7a661c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/909/06c0809ecced383d409950e61191dfef8a7a661c/fusion-icon-qt3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1475, 1639, 67, 14194, 13332, 309, 6454, 30, 309, 2695, 67, 91, 81, 422, 1161, 452, 471, 336, 67, 19142, 1435, 480, 417, 3623, 30, 1592, 67, 4924, 67, 1098, 273, 336, 67, 19142, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1475, 1639, 67, 14194, 13332, 309, 6454, 30, 309, 2695, 67, 91, 81, 422, 1161, 452, 471, 336, 67, 19142, 1435, 480, 417, 3623, 30, 1592, 67, 4924, 67, 1098, 273, 336, 67, 19142, 7675, ...
self.add_worker_thread()
self.add_worker_thread(message='Response to lack of idle workers')
def add_task(self, task): """ Add a task to the queue """ self.logger.debug('Added task %s', task) if self.hung_check_period: self.requests_since_last_hung_check += 1 if self.requests_since_last_hung_check > self.hung_check_period: self.requests_since_last_hung_check = 0 self.logger.info('Calling periodic kill_hung_thr...
1a4a60600040d9f61e5bc617f380ebf3b4a36acf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/1a4a60600040d9f61e5bc617f380ebf3b4a36acf/httpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4146, 12, 2890, 16, 1562, 4672, 3536, 1436, 279, 1562, 358, 326, 2389, 3536, 365, 18, 4901, 18, 4148, 2668, 8602, 1562, 738, 87, 2187, 1562, 13, 309, 365, 18, 76, 20651, 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, 527, 67, 4146, 12, 2890, 16, 1562, 4672, 3536, 1436, 279, 1562, 358, 326, 2389, 3536, 365, 18, 4901, 18, 4148, 2668, 8602, 1562, 738, 87, 2187, 1562, 13, 309, 365, 18, 76, 20651, 67, ...
proc = subprocess.Popen(sys.executable, stdout=devnull, stderr=devnull)
proc = subprocess.Popen(PYTHON, stdout=devnull, stderr=devnull)
def test_kill(self): devnull = open(os.devnull, 'r+') proc = subprocess.Popen(sys.executable, stdout=devnull, stderr=devnull) psutil.Process(proc.pid).kill()
847d3cb18d5e0c74ad4f89a7562596550b05165c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7296/847d3cb18d5e0c74ad4f89a7562596550b05165c/test_psutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16418, 12, 2890, 4672, 4461, 2011, 273, 1696, 12, 538, 18, 5206, 2011, 16, 296, 86, 15, 6134, 5418, 273, 6652, 18, 52, 3190, 12, 16235, 20131, 16, 3909, 33, 5206, 2011, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16418, 12, 2890, 4672, 4461, 2011, 273, 1696, 12, 538, 18, 5206, 2011, 16, 296, 86, 15, 6134, 5418, 273, 6652, 18, 52, 3190, 12, 16235, 20131, 16, 3909, 33, 5206, 2011, 16, ...
acc=IAccessibleHandler.accessibleObjectFromPoint(x,y)
acc=IAccessibleHandler.accessibleObjectFromPoint(relation[0],relation[1])
def kwargsFromSuper(cls,relation=None,windowHandle=None): acc=None if isinstance(relation,tuple): acc=IAccessibleHandler.accessibleObjectFromPoint(x,y) elif relation=="focus": acc=IAccessibleHandler.accessibleObjectFromEvent(windowHandle,winUser.OBJID_CLIENT,0) elif relation!="parent": acc=IAccessibleHandler.accessible...
6086b1f5118379df3e438b713c44d65ff514c6d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/6086b1f5118379df3e438b713c44d65ff514c6d0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1205, 1265, 8051, 12, 6429, 16, 5488, 33, 7036, 16, 5668, 3259, 33, 7036, 4672, 4078, 33, 7036, 309, 1549, 12, 5488, 16, 8052, 4672, 4078, 33, 45, 10451, 1503, 18, 26037, 921, 1265, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1205, 1265, 8051, 12, 6429, 16, 5488, 33, 7036, 16, 5668, 3259, 33, 7036, 4672, 4078, 33, 7036, 309, 1549, 12, 5488, 16, 8052, 4672, 4078, 33, 45, 10451, 1503, 18, 26037, 921, 1265, 21...
log.Log.FatalError("Cannot get id for user or group name"
log.Log.FatalError("Cannot get id for user or group name "
def init_get_new_id(self, id_or_name): """Return id of id_or_name, failing if cannot. Used in __init__""" try: return int(id_or_name) except ValueError: try: id = self.name2id_func(id_or_name) except KeyError: log.Log.FatalError("Cannot get id for user or group name" + id_or_name) return id
58a9267306559d2dddf9c42dc363aa4476e24b67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/58a9267306559d2dddf9c42dc363aa4476e24b67/user_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 588, 67, 2704, 67, 350, 12, 2890, 16, 612, 67, 280, 67, 529, 4672, 3536, 990, 612, 434, 612, 67, 280, 67, 529, 16, 21311, 309, 2780, 18, 225, 10286, 316, 1001, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 588, 67, 2704, 67, 350, 12, 2890, 16, 612, 67, 280, 67, 529, 4672, 3536, 990, 612, 434, 612, 67, 280, 67, 529, 16, 21311, 309, 2780, 18, 225, 10286, 316, 1001, 2738, 972, ...
Cell.__init__(self, x, y, width, height, properties, tile)
Cell.__init__(self, i, j, width, height, properties, tile)
def __init__(self, x, y, height, properties, tile): width = hex_width(height) Cell.__init__(self, x, y, width, height, properties, tile)
ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 2072, 16, 1790, 16, 4769, 4672, 1835, 273, 3827, 67, 2819, 12, 4210, 13, 8614, 16186, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 1835...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 2072, 16, 1790, 16, 4769, 4672, 1835, 273, 3827, 67, 2819, 12, 4210, 13, 8614, 16186, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 1835...
self.UpdateDashboard()
return
def setHotSpot(self): """if called on a singlet, make that singlet the hotspot for the molecule. (if there's only one, it's automatically the hotspot) """ if self.o.selatom and self.o.selatom.element == Singlet: self.o.selatom.molecule.hotspot = self.o.selatom new = self.o.selatom.molecule.copy(None) new.move(-new.cen...
8f5d5b3814fbc29f18c022b0ff494ab349927e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8f5d5b3814fbc29f18c022b0ff494ab349927e2b/depositMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 25270, 17292, 12, 2890, 4672, 3536, 430, 2566, 603, 279, 4864, 1810, 16, 1221, 716, 4864, 1810, 326, 12811, 19032, 364, 326, 13661, 18, 225, 261, 430, 1915, 1807, 1338, 1245, 16, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 25270, 17292, 12, 2890, 4672, 3536, 430, 2566, 603, 279, 4864, 1810, 16, 1221, 716, 4864, 1810, 326, 12811, 19032, 364, 326, 13661, 18, 225, 261, 430, 1915, 1807, 1338, 1245, 16, 51...
res = self.__addAdditionalTransformationParameter(transID, paramName, paramValue, connection=connection)
res = self.__addAdditionalTransformationParameter( transID, paramName, paramValue, connection = connection )
def setTransformationParameter(self,transName,paramName,paramValue,author='',connection=False): """ Add a parameter for the supplied transformations """ res = self._getConnectionTransID(connection,transName) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] ...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 15292, 1662, 12, 2890, 16, 2338, 461, 16, 891, 461, 16, 891, 620, 16, 4161, 2218, 2187, 4071, 33, 8381, 4672, 3536, 1436, 279, 1569, 364, 326, 4580, 19245, 3536, 400, 273, 365, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 15292, 1662, 12, 2890, 16, 2338, 461, 16, 891, 461, 16, 891, 620, 16, 4161, 2218, 2187, 4071, 33, 8381, 4672, 3536, 1436, 279, 1569, 364, 326, 4580, 19245, 3536, 400, 273, 365, 63...
return 0
return False
def checkDMSStr(dmsStr): """Verifies a sexagesimal string; returns 1 if valid, 0 if not """ try: splitDMSStr(dmsStr) return 1 except: return 0
994804867e88210e2f2f130afe9f155048fe038b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/994804867e88210e2f2f130afe9f155048fe038b/StringUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 16125, 1260, 313, 12, 72, 959, 1585, 4672, 3536, 19802, 279, 19631, 1023, 2840, 533, 31, 1135, 404, 309, 923, 16, 374, 309, 486, 3536, 775, 30, 1416, 16125, 1260, 313, 12, 72, 959...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 16125, 1260, 313, 12, 72, 959, 1585, 4672, 3536, 19802, 279, 19631, 1023, 2840, 533, 31, 1135, 404, 309, 923, 16, 374, 309, 486, 3536, 775, 30, 1416, 16125, 1260, 313, 12, 72, 959...
listJobs(availableJobs)
listJobs(console, availableJobs)
def main(): if len(sys.argv[1:]) == 0: basename = os.path.basename(sys.argv[0]) print "Usage: %s [options]" % basename print "Try '%s -h' or '%s --help' to show the help message." % (basename, basename) sys.exit(1) parser = optparse.OptionParser(option_class=ExtendAction) # Common options parser.add_option("-c", "--c...
85a03f65985c9f6ec972f416eccb0e2fd32b67ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/85a03f65985c9f6ec972f416eccb0e2fd32b67ae/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 63, 21, 30, 5717, 422, 374, 30, 4882, 273, 1140, 18, 803, 18, 13909, 12, 9499, 18, 19485, 63, 20, 5717, 1172, 315, 5357, 30, 738, 87, 306,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 63, 21, 30, 5717, 422, 374, 30, 4882, 273, 1140, 18, 803, 18, 13909, 12, 9499, 18, 19485, 63, 20, 5717, 1172, 315, 5357, 30, 738, 87, 306,...
offset_to_length, True, needs_finalizer, contains_weakptr)
offset_to_length, True, needs_finalizer)
def malloc(self, typeid, length=0): size = self.fixed_size(typeid) needs_finalizer = bool(self.getfinalizer(typeid)) contains_weakptr = self.weakpointer_offset(typeid) != -1 assert needs_finalizer != contains_weakptr if self.is_varsize(typeid): assert not contains_weakptr itemsize = self.varsize_item_sizes(typeid) off...
180299e9c7370ce094b4aa82fe4a3516d397941e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/180299e9c7370ce094b4aa82fe4a3516d397941e/gc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 9853, 12, 2890, 16, 618, 350, 16, 769, 33, 20, 4672, 963, 273, 365, 18, 12429, 67, 1467, 12, 723, 350, 13, 4260, 67, 6385, 1824, 273, 225, 1426, 12, 2890, 18, 588, 6385, 1824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 9853, 12, 2890, 16, 618, 350, 16, 769, 33, 20, 4672, 963, 273, 365, 18, 12429, 67, 1467, 12, 723, 350, 13, 4260, 67, 6385, 1824, 273, 225, 1426, 12, 2890, 18, 588, 6385, 1824, ...
req.check_modified(chgset.date, diff_options[0] + ''.join(diff_options[1]))
req.check_modified(chgset.date, diff_options[0] + ''.join(diff_options[1]))
def process_request(self, req): req.perm.assert_permission(perm.CHANGESET_VIEW)
294ad5958b84e6670b05ec7b2263cef3638204e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/294ad5958b84e6670b05ec7b2263cef3638204e0/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 14473, 4043, 67, 12145, 13, 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, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 14473, 4043, 67, 12145, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print __doc__.replace('<N>', str(N))
print(__doc__.replace('<N>', str(N)))
def case8(): sys.stdout.writelines(Foo())
9f15c6d340640391c11dcb330679d39f12ed3228 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/9f15c6d340640391c11dcb330679d39f12ed3228/iter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 28, 13332, 2589, 18, 10283, 18, 5363, 14567, 12, 42, 5161, 10756, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 28, 13332, 2589, 18, 10283, 18, 5363, 14567, 12, 42, 5161, 10756, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pattern = b"Unable to decode the command from the command line:"
if p.returncode == 1: pattern = b"Unable to decode the command from the command line:" elif p.returncode == 0: pattern = b"'\\xff' " else: raise AssertionError("Unknown exit code: %s, output=%a" % (p.returncode, stdout))
def test_undecodable_code(self): # Raise SkipTest() if sys.executable is not encodable to ascii test.support.workaroundIssue8611()
08ecb6fc95f48bcbf56c16620e691250cbceaae4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/08ecb6fc95f48bcbf56c16620e691250cbceaae4/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 710, 12, 2890, 4672, 468, 20539, 6611, 4709, 1435, 309, 2589, 18, 17751, 353, 486, 17755, 429, 358, 11384, 1842, 18, 13261, 18, 1252, 12716, 12956, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 710, 12, 2890, 4672, 468, 20539, 6611, 4709, 1435, 309, 2589, 18, 17751, 353, 486, 17755, 429, 358, 11384, 1842, 18, 13261, 18, 1252, 12716, 12956, 529...
sage: [ ker * lp.facet_normal(i) for i in range(0,4) ]
sage: [ker * p.facet_normal(i) for i in range(p.nfacets())]
def facet_normal(self, i): r""" Return the inner normal to the ``i``-th facet of this polytope. If this polytope is not full-dimensional, facet normals will be parallel to the affine subspace spanned by this polytope. INPUT: - ``i`` -- integer, the index of the facet OUTPUT: - vectors -- the inner normal of the ``...
d3f0e4ca34fafb6808137a2658880304a3db8f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d3f0e4ca34fafb6808137a2658880304a3db8f29/lattice_polytope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11082, 67, 6130, 12, 2890, 16, 277, 4672, 436, 8395, 2000, 326, 3443, 2212, 358, 326, 12176, 77, 10335, 17, 451, 11082, 434, 333, 7573, 869, 347, 18, 225, 971, 333, 7573, 869, 347, 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, 11082, 67, 6130, 12, 2890, 16, 277, 4672, 436, 8395, 2000, 326, 3443, 2212, 358, 326, 12176, 77, 10335, 17, 451, 11082, 434, 333, 7573, 869, 347, 18, 225, 971, 333, 7573, 869, 347, 353...