rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
print "link audioconvert to effect" acnum += 1
def PrepareEffectsBin(self): aclistnum = 1
12ad6fe216cf76333193172f8584e7ab2222adcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/12ad6fe216cf76333193172f8584e7ab2222adcd/Instrument.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7730, 29013, 9913, 12, 2890, 4672, 7895, 376, 2107, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7730, 29013, 9913, 12, 2890, 4672, 7895, 376, 2107, 273, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"Parse an XML document from a system identifier or an InputSource."
"Parse an XML document from a system identifier or an InputSource."
def parse(self, source):
27c75fe806fd4e5fcdccb398bd43691a6d25d3ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/27c75fe806fd4e5fcdccb398bd43691a6d25d3ca/xmlreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1084, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1084, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if pmap[0] == "v": self.__graph.ShiftVertexProperty(pmap[1].get_map(), index)
if pmap[0] == "v" and pmap[1]() != None and \ pmap[1]() != self.__vertex_index._PropertyMap__map: self.__graph.ShiftVertexProperty(pmap[1]().get_map(), index)
def remove_vertex(self, vertex, reindex_edges=True): """Remove a vertex from the graph""" k = vertex.in_degree() + vertex.out_degree() index = self.vertex_index[vertex] for pmap in self.__known_properties: if pmap[0] == "v": self.__graph.ShiftVertexProperty(pmap[1].get_map(), index) self.__graph.RemoveVertex(vertex)
ccebfe0034da6556a6a4315e06d413bbdc24a74c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3516/ccebfe0034da6556a6a4315e06d413bbdc24a74c/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 15281, 12, 2890, 16, 5253, 16, 17492, 67, 8746, 33, 5510, 4672, 3536, 3288, 279, 5253, 628, 326, 2667, 8395, 417, 273, 5253, 18, 267, 67, 21361, 1435, 397, 5253, 18, 659, 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, 1206, 67, 15281, 12, 2890, 16, 5253, 16, 17492, 67, 8746, 33, 5510, 4672, 3536, 3288, 279, 5253, 628, 326, 2667, 8395, 417, 273, 5253, 18, 267, 67, 21361, 1435, 397, 5253, 18, 659, 67,...
print(i, j)
with test_support.captured_output('stdout'): print (i, j)
def run(r1, r2): result = [] for i, j in izip_longest(r1, r2, fillvalue=0): print(i, j) result.append((i, j)) return result
4da5faae212b31bf24efcc72e03a1484166a2917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/4da5faae212b31bf24efcc72e03a1484166a2917/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 86, 21, 16, 436, 22, 4672, 563, 273, 5378, 364, 277, 16, 525, 316, 277, 4450, 67, 5748, 395, 12, 86, 21, 16, 436, 22, 16, 3636, 1132, 33, 20, 4672, 598, 1842, 67, 13261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 86, 21, 16, 436, 22, 4672, 563, 273, 5378, 364, 277, 16, 525, 316, 277, 4450, 67, 5748, 395, 12, 86, 21, 16, 436, 22, 16, 3636, 1132, 33, 20, 4672, 598, 1842, 67, 13261, ...
val = int(value) self.write("<value><int>%s</int></value>\n" % val)
if value > MAXINT or value < MININT: raise OverflowError, "long int exceeds XML-RPC limits" self.write("<value><int>%s</int></value>\n" % int(value))
def dump_long(self, value): val = int(value) self.write("<value><int>%s</int></value>\n" % val)
5449e08412a5abd83c21d59764ef6240c58872b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5449e08412a5abd83c21d59764ef6240c58872b0/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 5748, 12, 2890, 16, 460, 4672, 1244, 273, 509, 12, 1132, 13, 365, 18, 2626, 2932, 32, 1132, 4438, 474, 9822, 87, 1757, 474, 4695, 1132, 5333, 82, 6, 738, 1244, 13, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 67, 5748, 12, 2890, 16, 460, 4672, 1244, 273, 509, 12, 1132, 13, 365, 18, 2626, 2932, 32, 1132, 4438, 474, 9822, 87, 1757, 474, 4695, 1132, 5333, 82, 6, 738, 1244, 13, 2, -100,...
avail = self.pkgSack.returnNewestByNameArch(patterns=patterns, ignore_case=ic)
try: avail = self.pkgSack.returnNewestByNameArch(patterns=patterns, ignore_case=ic) except Errors.PackageSackError: avail = []
def doPackageLists(self, pkgnarrow='all', patterns=None, showdups=None, ignore_case=False): """generates lists of packages, un-reduced, based on pkgnarrow option"""
c15e86d0361988a21bf5dd0136c4a14a84c0df65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/c15e86d0361988a21bf5dd0136c4a14a84c0df65/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2261, 7432, 12, 2890, 16, 2365, 1600, 7815, 2218, 454, 2187, 6884, 33, 7036, 16, 2405, 72, 18294, 33, 7036, 16, 2305, 67, 3593, 33, 8381, 4672, 3536, 3441, 815, 6035, 434, 5907, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2261, 7432, 12, 2890, 16, 2365, 1600, 7815, 2218, 454, 2187, 6884, 33, 7036, 16, 2405, 72, 18294, 33, 7036, 16, 2305, 67, 3593, 33, 8381, 4672, 3536, 3441, 815, 6035, 434, 5907, 1...
obj = db.getObjectByID(int(feed)) obj.markAsViewed()
try: obj = db.getObjectByID(int(feed)) obj.markAsViewed() except database.ObjectNotFoundError: pass
def markFeedViewed(self, feed): obj = db.getObjectByID(int(feed)) obj.markAsViewed()
66cd59567782873cf9d224e773c01fba35baddd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/66cd59567782873cf9d224e773c01fba35baddd2/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 8141, 1767, 329, 12, 2890, 16, 4746, 4672, 1081, 273, 1319, 18, 588, 921, 13331, 12, 474, 12, 7848, 3719, 1081, 18, 3355, 1463, 1767, 329, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 2267, 8141, 1767, 329, 12, 2890, 16, 4746, 4672, 1081, 273, 1319, 18, 588, 921, 13331, 12, 474, 12, 7848, 3719, 1081, 18, 3355, 1463, 1767, 329, 1435, 2, -100, -100, -100, -100, -100, ...
locale.getlocale(locale.LC_TIME),
locale.getlocale(locale.LC_TIME)[0],
def test_lang(self): # Make sure lang is set self.failUnless(self.LT_ins.lang in (locale.getdefaultlocale()[0], locale.getlocale(locale.LC_TIME), ''), "Setting of lang failed")
5692e7bd83b12b043abe215d88306b6523f113ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5692e7bd83b12b043abe215d88306b6523f113ef/test_strptime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4936, 12, 2890, 4672, 468, 4344, 3071, 3303, 353, 444, 365, 18, 6870, 984, 2656, 12, 2890, 18, 12050, 67, 2679, 18, 4936, 316, 261, 6339, 18, 588, 1886, 6339, 1435, 63, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4936, 12, 2890, 4672, 468, 4344, 3071, 3303, 353, 444, 365, 18, 6870, 984, 2656, 12, 2890, 18, 12050, 67, 2679, 18, 4936, 316, 261, 6339, 18, 588, 1886, 6339, 1435, 63, 20, ...
except ZEO.zrpc.error.DisconnectedError: pass elif info is not None: p.client.info(info)
elif info is not None: p.client.info(info) except ZEO.zrpc.error.DisconnectedError: pass
def invalidate(self, conn, storage_id, tid, invalidated=(), info=None): """Internal: broadcast info and invalidations to clients.
5072a3fe1d68bab88bba2bb5c27dc7babc9c2f54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10048/5072a3fe1d68bab88bba2bb5c27dc7babc9c2f54/StorageServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11587, 12, 2890, 16, 1487, 16, 2502, 67, 350, 16, 11594, 16, 28711, 33, 9334, 1123, 33, 7036, 4672, 3536, 3061, 30, 8959, 1123, 471, 2057, 1012, 358, 7712, 18, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11587, 12, 2890, 16, 1487, 16, 2502, 67, 350, 16, 11594, 16, 28711, 33, 9334, 1123, 33, 7036, 4672, 3536, 3061, 30, 8959, 1123, 471, 2057, 1012, 358, 7712, 18, 2, -100, -100, -100, -10...
self.fail("a *= 2**16 didn't raise MemoryError")
self.fail("Array of size > maxsize created - MemoryError expected")
def test_alloc_overflow(self): a = array.array('d', [-1]*65536) try: a *= 65536 except MemoryError: pass else: self.fail("a *= 2**16 didn't raise MemoryError") b = array.array('d', [ 2.71828183, 3.14159265, -1]) try: b * 1431655766 except MemoryError: pass else: self.fail("a * 1431655766 didn't raise MemoryError")
9b37512d32e212ceee94505f88a6d6188672c0ff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/9b37512d32e212ceee94505f88a6d6188672c0ff/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9853, 67, 11512, 12, 2890, 4672, 279, 273, 526, 18, 1126, 2668, 72, 2187, 23059, 21, 5772, 26, 2539, 5718, 13, 775, 30, 279, 6413, 28652, 1335, 9251, 668, 30, 1342, 469, 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, 1842, 67, 9853, 67, 11512, 12, 2890, 4672, 279, 273, 526, 18, 1126, 2668, 72, 2187, 23059, 21, 5772, 26, 2539, 5718, 13, 775, 30, 279, 6413, 28652, 1335, 9251, 668, 30, 1342, 469, 30, ...
self.parser.switchPhase("rootElement") self.parser.processComment(data)
self.parser.document.appendChild(Comment(data))
def processComment(self, data): # XXX WRONG! self.parser.switchPhase("rootElement") self.parser.processComment(data)
a14f5cca78f9bbf02665d6288a092c954f12bce0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/a14f5cca78f9bbf02665d6288a092c954f12bce0/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 4469, 12, 2890, 16, 501, 4672, 468, 11329, 12984, 7390, 5, 365, 18, 4288, 18, 9610, 11406, 2932, 3085, 1046, 7923, 365, 18, 4288, 18, 2567, 4469, 12, 892, 13, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4469, 12, 2890, 16, 501, 4672, 468, 11329, 12984, 7390, 5, 365, 18, 4288, 18, 9610, 11406, 2932, 3085, 1046, 7923, 365, 18, 4288, 18, 2567, 4469, 12, 892, 13, 2, -100, -100, -100...
non_debug = True,
def pref_minimize_leave_out_PAM_bondpoints(): #bruce 080507 """ If enabled, bondpoints on PAM atoms are left out of simulations and minimizations, rather than being converted to H (as always occurred until now) or anchored or left unchanged (not yet possible). @warning: not yet fully implemented. """ res = debug_pref(...
f1e78937848c5c8d963598ffbca33488a935896c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/f1e78937848c5c8d963598ffbca33488a935896c/GlobalPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11307, 67, 1154, 10153, 67, 19574, 67, 659, 67, 52, 2192, 67, 26425, 4139, 13332, 468, 2848, 3965, 374, 3672, 3361, 27, 3536, 971, 3696, 16, 8427, 4139, 603, 453, 2192, 9006, 854, 2002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11307, 67, 1154, 10153, 67, 19574, 67, 659, 67, 52, 2192, 67, 26425, 4139, 13332, 468, 2848, 3965, 374, 3672, 3361, 27, 3536, 971, 3696, 16, 8427, 4139, 603, 453, 2192, 9006, 854, 2002, ...
def fl_get_select_item_by_text(obj, p2): """ fl_get_select_item_by_text(obj, p2) -> popup_entry """ retval = _fl_get_select_item_by_text(obj, p2)
def fl_get_select_item_by_text(pObject, p2): """ fl_get_select_item_by_text(pObject, p2) -> popup_entry """ retval = _fl_get_select_item_by_text(pObject, p2)
def fl_get_select_item_by_text(obj, p2): """ fl_get_select_item_by_text(obj, p2) -> popup_entry """ retval = _fl_get_select_item_by_text(obj, p2) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 4025, 67, 1726, 67, 1637, 67, 955, 12, 84, 921, 16, 293, 22, 4672, 3536, 1183, 67, 588, 67, 4025, 67, 1726, 67, 1637, 67, 955, 12, 84, 921, 16, 293, 22, 13, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 4025, 67, 1726, 67, 1637, 67, 955, 12, 84, 921, 16, 293, 22, 4672, 3536, 1183, 67, 588, 67, 4025, 67, 1726, 67, 1637, 67, 955, 12, 84, 921, 16, 293, 22, 13, 31...
sage: G = graphs.PetersenGraph()
def edge_boundary(self, vertices1, vertices2=None, labels=True): """ Returns a list of edges `(u,v,l)` with `u` in ``vertices1`` and `v` in ``vertices2``. If ``vertices2`` is ``None``, then it is set to the complement of ``vertices1``.
7b9afb3b66d010e574487a319d86af01cd22bcc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7b9afb3b66d010e574487a319d86af01cd22bcc7/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 16604, 12, 2890, 16, 6928, 21, 16, 6928, 22, 33, 7036, 16, 3249, 33, 5510, 4672, 3536, 2860, 279, 666, 434, 5231, 1375, 12, 89, 16, 90, 16, 80, 22025, 598, 1375, 89, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 16604, 12, 2890, 16, 6928, 21, 16, 6928, 22, 33, 7036, 16, 3249, 33, 5510, 4672, 3536, 2860, 279, 666, 434, 5231, 1375, 12, 89, 16, 90, 16, 80, 22025, 598, 1375, 89, 68, ...
EXAMPLES:
EXAMPLES::
def check_value(self, v): r""" Check that the given value is either a SageInputExpression or a PickleObject. Used for internal sanity checking.
a4aad1557cdf06ed8562711534ca467dff85c855 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/a4aad1557cdf06ed8562711534ca467dff85c855/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1132, 12, 2890, 16, 331, 4672, 436, 8395, 2073, 716, 326, 864, 460, 353, 3344, 279, 348, 410, 1210, 2300, 578, 279, 23038, 298, 921, 18, 10286, 364, 2713, 16267, 6728, 18, 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, 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, 866, 67, 1132, 12, 2890, 16, 331, 4672, 436, 8395, 2073, 716, 326, 864, 460, 353, 3344, 279, 348, 410, 1210, 2300, 578, 279, 23038, 298, 921, 18, 10286, 364, 2713, 16267, 6728, 18, 2, ...
Sync Smart channels based on Zypp repositories.
Sync Smart channels based on ZYpp repositories.
def syncZyppRepos(reposdir, force=None): """ Sync Smart channels based on Zypp repositories. """ seen = set() if os.path.isdir(reposdir): for entry in os.listdir(reposdir): if entry.endswith(".repo"): filepath = os.path.join(reposdir, entry) if os.path.isfile(filepath): seen.update(_loadRepoFile(filepath)) # Delete ...
d13ac66834ecdf2360c4bdd2fb9fd3d631ed0a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8317/d13ac66834ecdf2360c4bdd2fb9fd3d631ed0a0f/zyppchannelsync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 62, 879, 84, 28453, 12, 15564, 1214, 16, 2944, 33, 7036, 4672, 3536, 9721, 19656, 5750, 2511, 603, 2285, 61, 11858, 14531, 18, 3536, 225, 5881, 273, 444, 1435, 225, 309, 1140, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 62, 879, 84, 28453, 12, 15564, 1214, 16, 2944, 33, 7036, 4672, 3536, 9721, 19656, 5750, 2511, 603, 2285, 61, 11858, 14531, 18, 3536, 225, 5881, 273, 444, 1435, 225, 309, 1140, 18, ...
rpmdbdict[(name,arch)] = (epoch, ver, rel)
rpmdbdict[(name, arch)] = (epoch, ver, rel)
def rpmdbNevralLoad(nevral): rpmdbdict = {} db = openrpmdb() serverid = 'db' rpmloc = 'in_rpm_db' index = db.firstkey() while index: rpmdbh = db[index] (epoch, name, ver, rel, arch) = getENVRA(rpmdbh) # deal with multiple versioned dupes and dupe entries in localdb if not rpmdbdict.has_key((name, arch)): rpmdbdict[(nam...
e7852c63a5b8d228ffcaf8685bd9ef2f040a51ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/e7852c63a5b8d228ffcaf8685bd9ef2f040a51ef/clientStuff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8715, 27574, 6586, 18090, 287, 2563, 12, 4644, 18090, 287, 4672, 8715, 27574, 1576, 273, 2618, 1319, 273, 1696, 13832, 27574, 1435, 1438, 350, 273, 296, 1966, 11, 25228, 1829, 273, 296, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8715, 27574, 6586, 18090, 287, 2563, 12, 4644, 18090, 287, 4672, 8715, 27574, 1576, 273, 2618, 1319, 273, 1696, 13832, 27574, 1435, 1438, 350, 273, 296, 1966, 11, 25228, 1829, 273, 296, 26...
except OSError: logger.critical(u"Creation of MythVideo 'Miro' subdirectory path (%s) failed.\nThis may be due to a permissions error." % (path))
except OSError, e: logger.critical(u"Creation of MythVideo 'Miro' subdirectory path (%s) failed.\nError(%s)\nThis may be due to a permissions error." % (path, e))
def createMiroChannelSubdirectory(item): '''Create the Miro Channel subdirectory in MythVideo abort if the subdirectory cannot be made ''' global localhostname, vid_graphics_dirs, storagegroups, channel_id, flat, simulation, verbose miro = u'Miro' path = u"%s%s/%s" % (vid_graphics_dirs[u'mythvideo'], miro, sanitiseFil...
a8d5043d725156edafb512e07933f4a61203383d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/a8d5043d725156edafb512e07933f4a61203383d/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 49, 11373, 2909, 1676, 5149, 12, 1726, 4672, 9163, 1684, 326, 490, 11373, 5307, 29869, 316, 8005, 451, 10083, 6263, 309, 326, 29869, 2780, 506, 7165, 9163, 2552, 1191, 10358, 16, 1833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 49, 11373, 2909, 1676, 5149, 12, 1726, 4672, 9163, 1684, 326, 490, 11373, 5307, 29869, 316, 8005, 451, 10083, 6263, 309, 326, 29869, 2780, 506, 7165, 9163, 2552, 1191, 10358, 16, 1833...
<type 'none'>
<type 'NoneType'>
... def g():
6b20c0ac4a8142c61b5d42db794651cf7aea8c34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/6b20c0ac4a8142c61b5d42db794651cf7aea8c34/test_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 540, 1652, 314, 13332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 540, 1652, 314, 13332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
opts[opt] = (filename, parser.get(section,opt))
opt_dict[opt] = (filename, parser.get(section,opt))
def parse_config_files (self, filenames=None):
2cef47a4265957a44358e62355d96572d0624e43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2cef47a4265957a44358e62355d96572d0624e43/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1425, 67, 2354, 261, 2890, 16, 9066, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 1425, 67, 2354, 261, 2890, 16, 9066, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
successful[url] = {'Files':res['Value']['Files'],'Size':['Value']['Size']}
gLogger.info("SRM2Storage.removeDirectory: Successfully removed all files. Removing 'dirac_directory' file.") successful[url] = {'Files':res['Value']['Files'],'Size':res['Value']['Size']} diracDirectoryFile = "%s/%s" % (url,'dirac_directory') res = self.removeFile(diracDirectoryFile)
def removeDirectory(self,path): """Remove the recursively the files and sub directories """ if type(path) == types.StringType: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.removeDirectory: Supplied path must be string or list of strings") successful = {} failed = {} for...
0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 2853, 12, 2890, 16, 803, 4672, 3536, 3288, 326, 8536, 326, 1390, 471, 720, 6402, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 1327, 618, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2853, 12, 2890, 16, 803, 4672, 3536, 3288, 326, 8536, 326, 1390, 471, 720, 6402, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 1327, 618, 1...
self.infiniteDescentDir = p onBoundary = True
self.infDescent = True self.dir = p
def Solve( self ): if self.A is not None: if self.factorize and not self.factorized: self.Factorize() if self.b is not None: self.FindFeasible()
aaeba3373d0375cd9447e5d6a6205e7f4114f313 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13857/aaeba3373d0375cd9447e5d6a6205e7f4114f313/ppcg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 5390, 12, 365, 262, 30, 309, 365, 18, 37, 353, 486, 599, 30, 309, 365, 18, 6812, 554, 471, 486, 365, 18, 6812, 1235, 30, 365, 18, 6837, 554, 1435, 309, 365, 18, 70, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 5390, 12, 365, 262, 30, 309, 365, 18, 37, 353, 486, 599, 30, 309, 365, 18, 6812, 554, 471, 486, 365, 18, 6812, 1235, 30, 365, 18, 6837, 554, 1435, 309, 365, 18, 70, 353, 486, ...
if len(self._browser._forms) == 1: form = self._browser._forms[0]
if len(self._browser.forms()) == 1: form = self._browser.forms()[0]
def submit(self, fieldname): if not self._browser._forms: raise Exception("no forms on this page!") ctl = None form = self._browser.form if form is None: if len(self._browser._forms) == 1: form = self._browser._forms[0] else: raise Exception("more than one form; you must select one (use 'fv') before submitting")
13736726208ec80019457205a1c4fa1f8596d813 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/13736726208ec80019457205a1c4fa1f8596d813/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2890, 16, 14680, 4672, 309, 486, 365, 6315, 11213, 6315, 9741, 30, 1002, 1185, 2932, 2135, 10138, 603, 333, 1363, 4442, 13, 225, 21903, 273, 599, 225, 646, 273, 365, 6315, 1121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2890, 16, 14680, 4672, 309, 486, 365, 6315, 11213, 6315, 9741, 30, 1002, 1185, 2932, 2135, 10138, 603, 333, 1363, 4442, 13, 225, 21903, 273, 599, 225, 646, 273, 365, 6315, 1121...
file(node_floppy,"w").write(floppy)
file(floppy_file,"w").write(floppy_text)
def hexa2 (c): return chr((c>>4)+65) + chr ((c&16)+65)
c8a588799344db08a0317644ebb9ebfc6ebf9860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7598/c8a588799344db08a0317644ebb9ebfc6ebf9860/GetBootMedium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 69, 22, 261, 71, 4672, 327, 4513, 12443, 71, 9778, 24, 27921, 9222, 13, 397, 4513, 14015, 71, 10, 2313, 27921, 9222, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 69, 22, 261, 71, 4672, 327, 4513, 12443, 71, 9778, 24, 27921, 9222, 13, 397, 4513, 14015, 71, 10, 2313, 27921, 9222, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
doc += '<?xml version="1.0" encoding="utf-8"?>\n'
def indent(n): return ' ' * n * 2
aee20493d04f061e6b7733e808807326a455b076 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13031/aee20493d04f061e6b7733e808807326a455b076/mirrorlist_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3504, 12, 82, 4672, 327, 296, 296, 380, 290, 380, 576, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3504, 12, 82, 4672, 327, 296, 296, 380, 290, 380, 576, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
params = {'Name': name}
params = {} if name: params['Name'] = name
def register_image(self, name, description=None, image_location=None, architecture=None, kernel_id=None, ramdisk_id=None, root_device_name=None, block_device_map=None): """ Register an image.
08dc5c5396a6e85a64e7d59241edff8e3189356f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/08dc5c5396a6e85a64e7d59241edff8e3189356f/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 2730, 12, 2890, 16, 508, 16, 2477, 33, 7036, 16, 1316, 67, 3562, 33, 7036, 16, 27418, 33, 7036, 16, 5536, 67, 350, 33, 7036, 16, 24975, 10863, 67, 350, 33, 7036, 16, 1365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 2730, 12, 2890, 16, 508, 16, 2477, 33, 7036, 16, 1316, 67, 3562, 33, 7036, 16, 27418, 33, 7036, 16, 5536, 67, 350, 33, 7036, 16, 24975, 10863, 67, 350, 33, 7036, 16, 1365, ...
f(*args)
f1(*args)
def writeMessage(*args): try: f(*args) except socket.error: pass
8cd6187d475b60ed7e3a0542718a453c26f63649 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4752/8cd6187d475b60ed7e3a0542718a453c26f63649/dtella_fixtwisted.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1079, 30857, 1968, 4672, 775, 30, 284, 21, 30857, 1968, 13, 1335, 2987, 18, 1636, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1079, 30857, 1968, 4672, 775, 30, 284, 21, 30857, 1968, 13, 1335, 2987, 18, 1636, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
_reboot(ec2_conn, instance_id)
if _reboot(ec2_conn, instance_id): return False image_id = None
def rebundle(): """ Rebundles the EC2 instance that is passed as the -H parameter This script handles all aspects of the rebundling process and is (almost) fully automated. Two things should be edited and provided before invoking it: AWS account information and the desired size of the root volume for the new instance. ...
1075872875569b65c344e18b8f41e6176853b112 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11876/1075872875569b65c344e18b8f41e6176853b112/mi_fabfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 9991, 13332, 3536, 868, 22773, 326, 7773, 22, 791, 716, 353, 2275, 487, 326, 300, 44, 1569, 1220, 2728, 7372, 777, 30494, 434, 326, 283, 70, 1074, 2456, 1207, 471, 353, 261, 287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 9991, 13332, 3536, 868, 22773, 326, 7773, 22, 791, 716, 353, 2275, 487, 326, 300, 44, 1569, 1220, 2728, 7372, 777, 30494, 434, 326, 283, 70, 1074, 2456, 1207, 471, 353, 261, 287, ...
raise TypeError, "Brun's constant only available up to %s bits"%self.__bits
raise NotImplementedError, "Brun's constant only available up to %s bits"%self.__bits
def _mpfr_(self, R): """ EXAMPLES: sage: RealField(53)(brun) Traceback (most recent call last): ... TypeError: Brun's constant only available up to 41 bits sage: RealField(41)(brun) 1.90216058310 """ if R.precision() <= self.__bits: return R(self.__value) raise TypeError, "Brun's constant only available up to %s bits"%...
7354de985a9d5c99e174af0a8f74253ee1e4e7c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7354de985a9d5c99e174af0a8f74253ee1e4e7c1/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1291, 4840, 67, 12, 2890, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 15987, 974, 12, 8643, 21433, 70, 2681, 13, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1291, 4840, 67, 12, 2890, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 15987, 974, 12, 8643, 21433, 70, 2681, 13, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, ...
self.ppp_list.append(filename)
def initialize(self, atoms): self.numbers = atoms.get_atomic_numbers().copy() self.species = [] for a, Z in enumerate(self.numbers): if a in self.ghosts: Z = -Z if Z not in self.species: self.species.append(Z)
ee423440df9f83381052c22a64dda07e17e2fdb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/ee423440df9f83381052c22a64dda07e17e2fdb8/abinit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 9006, 4672, 365, 18, 13851, 273, 9006, 18, 588, 67, 27718, 67, 13851, 7675, 3530, 1435, 365, 18, 22657, 273, 5378, 364, 279, 16, 2285, 316, 4241, 12, 2890, 18, 1385...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 9006, 4672, 365, 18, 13851, 273, 9006, 18, 588, 67, 27718, 67, 13851, 7675, 3530, 1435, 365, 18, 22657, 273, 5378, 364, 279, 16, 2285, 316, 4241, 12, 2890, 18, 1385...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_add_canvas(type, x, y, w, h, label): """ fl_add_canvas(type, x, y, w, h, label) -> object """ retval = _fl_add_canvas(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 67, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 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, 1289, 67, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, ...
comments=comments)
comments=comments, precisions=(4, 2))
def codegen(name, map, comments=1): """ Returns Python source for the given map. Comments are included in the source, if comments is true (default). """ # Generate code decoding_map_code = python_mapdef_code( 'decoding_map', map, comments=comments) decoding_table_code = python_tabledef_code( 'decoding_table', map, c...
88a416f24d864b5c6b03a1e6abf27f80832face9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/88a416f24d864b5c6b03a1e6abf27f80832face9/gencodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23198, 12, 529, 16, 852, 16, 5678, 33, 21, 4672, 225, 3536, 2860, 6600, 1084, 364, 326, 864, 852, 18, 225, 23452, 854, 5849, 316, 326, 1084, 16, 309, 5678, 353, 638, 261, 1886, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23198, 12, 529, 16, 852, 16, 5678, 33, 21, 4672, 225, 3536, 2860, 6600, 1084, 364, 326, 864, 852, 18, 225, 23452, 854, 5849, 316, 326, 1084, 16, 309, 5678, 353, 638, 261, 1886, 2934, ...
result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From,Sender\n')
result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From\n')
def generate_checkgroups(config, passphrase=None, serial=None): """List the groups of the hierarchy.""" while serial not in range(0,100): try: print 'If it is your first checkgroups for today, leave it blank (default is 1).' print 'Otherwise, increment this revision number by one.' serial = int(raw_input('Revision to u...
b7a92e7a475b4249a82eb52e04a2c59fc090dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5987/b7a92e7a475b4249a82eb52e04a2c59fc090dcdf/signcontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1893, 4650, 12, 1425, 16, 15244, 33, 7036, 16, 2734, 33, 7036, 4672, 3536, 682, 326, 3252, 434, 326, 9360, 12123, 1323, 2734, 486, 316, 1048, 12, 20, 16, 6625, 4672, 775, 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, 2103, 67, 1893, 4650, 12, 1425, 16, 15244, 33, 7036, 16, 2734, 33, 7036, 4672, 3536, 682, 326, 3252, 434, 326, 9360, 12123, 1323, 2734, 486, 316, 1048, 12, 20, 16, 6625, 4672, 775, 30,...
self.canvasItemList.append(self.coercedCanvasItem)
canvasItemList.append(self.coercedCanvasItem)
def MakeCanvasItems(self, resort=False): """ makes new canvas items based on self.visibleItems """ if resort: self.visibleItems.sort(self.sortByStartTime) self.canvasItemList = [] dragState = self.dragState if (dragState and dragState.currentDragBox): currentDragItem = dragState.currentDragBox.item else: currentDragI...
7d56069a60f477cdec4efe4dbd5ed23ddcfdb9f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7d56069a60f477cdec4efe4dbd5ed23ddcfdb9f4/TimedCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 12971, 3126, 12, 2890, 16, 400, 499, 33, 8381, 4672, 3536, 7297, 394, 5953, 1516, 2511, 603, 365, 18, 8613, 3126, 3536, 309, 400, 499, 30, 365, 18, 8613, 3126, 18, 3804, 12, 2890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 12971, 3126, 12, 2890, 16, 400, 499, 33, 8381, 4672, 3536, 7297, 394, 5953, 1516, 2511, 603, 365, 18, 8613, 3126, 3536, 309, 400, 499, 30, 365, 18, 8613, 3126, 18, 3804, 12, 2890...
def __setattr(self, name, value):
def __setattr__(self, name, value):
def __setattr(self, name, value): setattr(twill.get_browser(), name, value)
1e8703fe73096420e6aee27e42a74c7319d4f77b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/1e8703fe73096420e6aee27e42a74c7319d4f77b/better_twill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 9241, 12, 11246, 737, 18, 588, 67, 11213, 9334, 508, 16, 460, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 9241, 12, 11246, 737, 18, 588, 67, 11213, 9334, 508, 16, 460, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.db_book_uuid_cache = set()
def __init__(self): self.db_book_uuid_cache = set() self.device_error_dialog = error_dialog(self, _('Error'), _('Error communicating with device'), ' ') self.device_error_dialog.setModal(Qt.NonModal) self.device_connected = None self.emailer = Emailer() self.emailer.start() self.device_manager = DeviceManager(Dispatche...
8a71ef735f3f430b683fa8406fd5a597ffa42804 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/8a71ef735f3f430b683fa8406fd5a597ffa42804/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5964, 67, 1636, 67, 12730, 273, 555, 67, 12730, 12, 2890, 16, 389, 2668, 668, 19899, 389, 2668, 668, 8391, 335, 1776, 598, 2346, 19899, 296, 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, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5964, 67, 1636, 67, 12730, 273, 555, 67, 12730, 12, 2890, 16, 389, 2668, 668, 19899, 389, 2668, 668, 8391, 335, 1776, 598, 2346, 19899, 296, 8...
'5.20.1'
'5.22.1'
def version(self): """ Return the version of Maxima that Sage includes. EXAMPLES:: sage: maxima.version() '5.20.1' """ return maxima_version()
ee335d2a4ec9692f34eed2c12089bf86c01fd8aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ee335d2a4ec9692f34eed2c12089bf86c01fd8aa/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 12, 2890, 4672, 3536, 2000, 326, 1177, 434, 4238, 13888, 716, 348, 410, 6104, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 943, 13888, 18, 1589, 1435, 296, 25, 18, 3787, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1177, 12, 2890, 4672, 3536, 2000, 326, 1177, 434, 4238, 13888, 716, 348, 410, 6104, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 943, 13888, 18, 1589, 1435, 296, 25, 18, 3787, ...
a direction is actually set. Similarly, when two bonds have directions set, we don't consider whether their directions are consistent.
a direction is actually set (except for atoms with more than one open bond, to disambiguate bare chain ends). Similarly, when two bonds have directions set, we don't consider whether their directions are consistent. (One reason is that we need to grow a chain that covers both bonds so the user can set the entire chain...
def directional_bond_chain_status(self): # bruce 071016 """ Return a tuple (statuscode, bond1, bond2) indicating the status of self's bonds with respect to chains of directional bonds. The possible return values are:
b3d3b4204968d9ec14db67ceed383b3f2dd65c7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b3d3b4204968d9ec14db67ceed383b3f2dd65c7e/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4068, 287, 67, 26425, 67, 5639, 67, 2327, 12, 2890, 4672, 468, 5186, 3965, 10934, 15168, 26, 3536, 2000, 279, 3193, 261, 2327, 710, 16, 8427, 21, 16, 8427, 22, 13, 11193, 326, 1267, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4068, 287, 67, 26425, 67, 5639, 67, 2327, 12, 2890, 4672, 468, 5186, 3965, 10934, 15168, 26, 3536, 2000, 279, 3193, 261, 2327, 710, 16, 8427, 21, 16, 8427, 22, 13, 11193, 326, 1267, 43...
maxPos = len(self.parent.value) * self.parent.vals[1] print maxPos
maxPos = len(self.parent.value) * len(self.parent.vals[1]) + len(self.parent.value)
def checkValues(self): maxPos = len(self.parent.value) * self.parent.vals[1] print maxPos if self.markedPos >= maxPos: self.markedPos = maxPos - 1 if self.markedPos < 0: self.markedPos = 0
bd9b9d79572ecb649b26f86dd6bb07d5e6f20766 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/bd9b9d79572ecb649b26f86dd6bb07d5e6f20766/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1972, 12, 2890, 4672, 943, 1616, 273, 562, 12, 2890, 18, 2938, 18, 1132, 13, 380, 562, 12, 2890, 18, 2938, 18, 4524, 63, 21, 5717, 397, 562, 12, 2890, 18, 2938, 18, 1132, 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, 866, 1972, 12, 2890, 4672, 943, 1616, 273, 562, 12, 2890, 18, 2938, 18, 1132, 13, 380, 562, 12, 2890, 18, 2938, 18, 4524, 63, 21, 5717, 397, 562, 12, 2890, 18, 2938, 18, 1132, 13, ...
raise RuntimeError, "You must intall the optional gap_packages package."
raise RuntimeError, "You must install the optional gap_packages package."
def homology(self, n, p = 0): r""" Computes the group homology `H_n(G, F)`, where `F = \ZZ` if `p=0` and `F = \ZZ / p \ZZ` if `p > 0` is a prime. Wraps HAP's ``GroupHomology`` function, written by Graham Ellis. REQUIRES: GAP package HAP (in gap_packages-\*.spkg). AUTHORS:
7003dbc2dc46fc768ef59e22f8fcb4712d870180 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7003dbc2dc46fc768ef59e22f8fcb4712d870180/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13995, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 13995, 4676, 1375, 44, 67, 82, 12, 43, 16, 478, 13, 9191, 1625, 1375, 42, 273, 521, 27096, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13995, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 13995, 4676, 1375, 44, 67, 82, 12, 43, 16, 478, 13, 9191, 1625, 1375, 42, 273, 521, 27096, ...
size = font.get_size(text, ptsize=24) rend = font.render_raw(text, ptsize=24) self.assertTrue(isinstance(rend, tuple)) self.assertEqual(len(rend), 2) r, s = rend self.assertTrue(isinstance(r, bytes_)) self.assertTrue(isinstance(s, tuple)) self.assertTrue(len(s), 2) self.assertTrue(isinstance(s[0], int)) self.assertTrue...
r, (w, h) = font.render_raw('', ptsize=24)
def test_freetype_Font_render_raw(self): font = self._TEST_FONTS['sans'] text = "abc" size = font.get_size(text, ptsize=24) rend = font.render_raw(text, ptsize=24) self.assertTrue(isinstance(rend, tuple)) self.assertEqual(len(rend), 2) r, s = rend self.assertTrue(isinstance(r, bytes_)) self.assertTrue(isinstance(s, t...
ec8e08cb8ff505eb92d360e0d43074f6ac9aba59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/ec8e08cb8ff505eb92d360e0d43074f6ac9aba59/freetype_font_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 74, 266, 5872, 67, 5711, 67, 5902, 67, 1899, 12, 2890, 4672, 225, 3512, 273, 365, 6315, 16961, 67, 42, 673, 8047, 3292, 87, 634, 3546, 225, 977, 273, 315, 18947, 6, 963, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 74, 266, 5872, 67, 5711, 67, 5902, 67, 1899, 12, 2890, 4672, 225, 3512, 273, 365, 6315, 16961, 67, 42, 673, 8047, 3292, 87, 634, 3546, 225, 977, 273, 315, 18947, 6, 963, 27...
yield RawBytes(self, "transaction", 4, "Signature used for transactions (must be zero)")
yield NullBytes(self, "transaction", 4, "Signature used for transactions (must be zero)")
def createFields(self): yield GUID(self, "clsid", "16 bytes GUID used by some apps") yield UInt16(self, "ver_min", "Minor version") yield UInt16(self, "ver_maj", "Minor version") if self["ver_maj"].value not in (3, 4): raise ParserError("Unknown Header version!") yield UInt16(self, "endian", "Endian (0xFFFE for Intel)"...
1187501c091976e1e6c040a77cfe46f572f5e0fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/1187501c091976e1e6c040a77cfe46f572f5e0fb/ole2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 20322, 12, 2890, 16, 315, 6429, 350, 3113, 315, 2313, 1731, 20322, 1399, 635, 2690, 8279, 7923, 2824, 29810, 2313, 12, 2890, 16, 315, 502, 67, 1154, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 20322, 12, 2890, 16, 315, 6429, 350, 3113, 315, 2313, 1731, 20322, 1399, 635, 2690, 8279, 7923, 2824, 29810, 2313, 12, 2890, 16, 315, 502, 67, 1154, 3113...
sage: L = add([line([[pf[0][0],0],[pf[0][0],pf[1](pf[0][0])]],rgbcolor=(0.7,0.6,0.6)) for pf in rsf.list()])
sage: L = add([line([[pf[0][0],0],[pf[0][0],pf[1](pf[0][0], substitute=True)]],rgbcolor=(0.7,0.6,0.6)) for pf in rsf.list()])
def riemann_sum(self,N,mode=None): """ Returns the piecewise line function defined by the Riemann sums in numerical integration based on a subdivision into N subintervals.
75220fc4386954abd4d441fd74891af28c947cc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/75220fc4386954abd4d441fd74891af28c947cc3/piecewise.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12347, 351, 1072, 67, 1364, 12, 2890, 16, 50, 16, 3188, 33, 7036, 4672, 3536, 2860, 326, 11151, 2460, 980, 445, 2553, 635, 326, 21688, 351, 1072, 26608, 316, 17409, 12040, 2511, 603, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12347, 351, 1072, 67, 1364, 12, 2890, 16, 50, 16, 3188, 33, 7036, 4672, 3536, 2860, 326, 11151, 2460, 980, 445, 2553, 635, 326, 21688, 351, 1072, 26608, 316, 17409, 12040, 2511, 603, 279...
self.memcache = olmemcache.Client(settings["memcache_servers"]) else: self.memcache = None
self.infobase_conn = connection.MemcacheMiddleware(self.infobase_conn, settings['memcache_servers']) self.infobase_conn = connection.MigrationMiddleware(self.infobase_conn)
def __init__(self, settings): """Creates lists engine with the given settings. """ if "infobase_server" in settings: self.infobase_conn = client.RemoteConnection(settings["infobase_server"]) elif "db" in settings: web.config.db_parameters = settings['db'] self.infobase_conn = client.LocalConnection(**settings["db"]) el...
856d4051a9c0b2308eb9ccca5048b4f69fb4ba8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/856d4051a9c0b2308eb9ccca5048b4f69fb4ba8c/lists.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1947, 4672, 3536, 2729, 6035, 4073, 598, 326, 864, 1947, 18, 3536, 309, 315, 1376, 1969, 67, 3567, 6, 316, 1947, 30, 365, 18, 1376, 1969, 67, 4646, 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, 1001, 2738, 972, 12, 2890, 16, 1947, 4672, 3536, 2729, 6035, 4073, 598, 326, 864, 1947, 18, 3536, 309, 315, 1376, 1969, 67, 3567, 6, 316, 1947, 30, 365, 18, 1376, 1969, 67, 4646, 273, ...
// Expression statement. // We unget the current token to parse the expression as a whole.
def Statement(tokenizer, compilerContext) { var i, label, node, childNode, ss, tokenType = tokenizer.get(True) var builder = compilerContext.builder
58afad4d3cade0a037f53f0a04cb23589df417b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/58afad4d3cade0a037f53f0a04cb23589df417b1/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8056, 12, 2316, 1824, 16, 5274, 1042, 13, 288, 569, 277, 16, 1433, 16, 756, 16, 9465, 16, 5202, 16, 22302, 273, 10123, 18, 588, 12, 5510, 13, 569, 2089, 273, 5274, 1042, 18, 9574, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8056, 12, 2316, 1824, 16, 5274, 1042, 13, 288, 569, 277, 16, 1433, 16, 756, 16, 9465, 16, 5202, 16, 22302, 273, 10123, 18, 588, 12, 5510, 13, 569, 2089, 273, 5274, 1042, 18, 9574, 2,...
res = run_sql("""SELECT %s FROM %s WHERE id = %s""" \ % (value, table, ids[key]))
res = run_sql("""SELECT %%s FROM %s WHERE id = %%s""" % table, (value, ids[key]))
def headeritalic(**ids): """transform keyword=value pairs to string with value in italics. **ids - a dictionary of pairs to create string from """ output = '' value = '' table = '' for key in ids.keys(): if key in ['User', 'user']: value, table = 'email', 'user' elif key in ['Role', 'role']: value, table = 'name', '...
880b8bdf9919b6ee052a6dbe8c7a64f8b5b9c888 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/880b8bdf9919b6ee052a6dbe8c7a64f8b5b9c888/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1446, 7053, 335, 12, 636, 2232, 4672, 3536, 6547, 4932, 33, 1132, 5574, 358, 533, 598, 460, 316, 518, 287, 2102, 18, 225, 2826, 2232, 300, 279, 3880, 434, 5574, 358, 752, 533, 628, 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, 1446, 7053, 335, 12, 636, 2232, 4672, 3536, 6547, 4932, 33, 1132, 5574, 358, 533, 598, 460, 316, 518, 287, 2102, 18, 225, 2826, 2232, 300, 279, 3880, 434, 5574, 358, 752, 533, 628, 353...
entry[k] = val
try: entry[k] = val except KeyError: pass
def load(self): """Load entries.""" self.clear() self.stream = open(self.uri, 'rb') self.reader = csv.DictReader(self.stream) for row in self.reader: entry = Entry() for k in row: val = row[k].decode('utf-8') entry[k] = val self.add(entry) self.stream.close()
c97bea6ed31ba6dad067ad352f8aaf8e9518f9cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/c97bea6ed31ba6dad067ad352f8aaf8e9518f9cc/csv_backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 3536, 2563, 3222, 12123, 365, 18, 8507, 1435, 365, 18, 3256, 273, 1696, 12, 2890, 18, 1650, 16, 296, 6731, 6134, 365, 18, 10530, 273, 6101, 18, 5014, 2514, 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, 1262, 12, 2890, 4672, 3536, 2563, 3222, 12123, 365, 18, 8507, 1435, 365, 18, 3256, 273, 1696, 12, 2890, 18, 1650, 16, 296, 6731, 6134, 365, 18, 10530, 273, 6101, 18, 5014, 2514, 12, 28...
if not self.fd:
if self.fd is None:
def flushInput(self): """Clear input buffer, discarding all that is in the buffer.""" if not self.fd: raise portNotOpenError termios.tcflush(self.fd, TERMIOS.TCIFLUSH)
c6178260b0154cee256732353dc988e9464d50be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/c6178260b0154cee256732353dc988e9464d50be/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 1210, 12, 2890, 4672, 3536, 9094, 810, 1613, 16, 10388, 310, 777, 716, 353, 316, 326, 1613, 12123, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 2481, 7441, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 1210, 12, 2890, 4672, 3536, 9094, 810, 1613, 16, 10388, 310, 777, 716, 353, 316, 326, 1613, 12123, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 2481, 7441, 18, ...
errmsg = "Can't assemble device %s: %s" % (child, err) logging.error(errmsg) return False, errmsg
_Fail("Can't assemble device %s: %s", child, err)
def BlockdevCreate(disk, size, owner, on_primary, info): """Creates a block device for an instance. @type disk: L{objects.Disk} @param disk: the object describing the disk we should create @type size: int @param size: the size of the physical underlying device, in MiB @type owner: str @param owner: the name of the ins...
2cc6781aac8b53426d83d4cb8a42dc7c58efb8d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/2cc6781aac8b53426d83d4cb8a42dc7c58efb8d6/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3914, 5206, 1684, 12, 10863, 16, 963, 16, 3410, 16, 603, 67, 8258, 16, 1123, 4672, 3536, 2729, 279, 1203, 2346, 364, 392, 791, 18, 225, 632, 723, 4234, 30, 511, 95, 6911, 18, 6247, 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, 3914, 5206, 1684, 12, 10863, 16, 963, 16, 3410, 16, 603, 67, 8258, 16, 1123, 4672, 3536, 2729, 279, 1203, 2346, 364, 392, 791, 18, 225, 632, 723, 4234, 30, 511, 95, 6911, 18, 6247, 9...
return separator+" "+meta
meta = separator+" "+meta return meta
def add_meta(method, separator): """ Adds a section of metadata if it exists """ meta = None if hasattr(context, method): meta = context[method]() if meta: return separator+" "+meta
2bb7d20ee47938e537ca910656e6051e300f57db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10560/2bb7d20ee47938e537ca910656e6051e300f57db/rezension.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3901, 12, 2039, 16, 4182, 4672, 3536, 15605, 279, 2442, 434, 1982, 309, 518, 1704, 3536, 2191, 273, 599, 309, 3859, 12, 2472, 16, 707, 4672, 2191, 273, 819, 63, 2039, 65, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3901, 12, 2039, 16, 4182, 4672, 3536, 15605, 279, 2442, 434, 1982, 309, 518, 1704, 3536, 2191, 273, 599, 309, 3859, 12, 2472, 16, 707, 4672, 2191, 273, 819, 63, 2039, 65, 1435...
if param.has_key('finite_basis_corr') and param['finite_basis_corr'].lower() == 'true': energy_lines = filter(lambda s: s.startswith('Total energy corrected for finite basis set'), \
if param.has_key('finite_basis_corr') and param['finite_basis_corr'].lower() != 'none': energy_lines = filter(lambda s: s.startswith(' Total energy corrected for finite basis set'), \
def CastepOutputReader(castep_file, cluster=None, abort=True, save_params=False): """Parse .castep file, and return Atoms object with positions, energy, forces, and possibly stress and atomic populations as well""" if type(castep_file) == type(''): castep_file = open(castep_file,'r') castep_file = iter(castep_file) p...
ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19782, 881, 1447, 2514, 12, 4155, 881, 67, 768, 16, 2855, 33, 7036, 16, 6263, 33, 5510, 16, 1923, 67, 2010, 33, 8381, 4672, 3536, 3201, 263, 4155, 881, 585, 16, 471, 327, 7149, 87, 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, 19782, 881, 1447, 2514, 12, 4155, 881, 67, 768, 16, 2855, 33, 7036, 16, 6263, 33, 5510, 16, 1923, 67, 2010, 33, 8381, 4672, 3536, 3201, 263, 4155, 881, 585, 16, 471, 327, 7149, 87, 7...
folder = self.unrestrictedTraverse(folder_id, None)
folder = self._getOb(folder_id, None)
def xliff_import(self, file, REQUEST=None): """ XLIFF is the XML Localization Interchange File Format designed by a group of software providers. It is specified by www.oasis-open.org """
98559f0058a5e14069ec73ae7f1a9e698759303e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/98559f0058a5e14069ec73ae7f1a9e698759303e/NyGlossary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15643, 3048, 67, 5666, 12, 2890, 16, 585, 16, 12492, 33, 7036, 4672, 3536, 1139, 2053, 2246, 353, 326, 3167, 3566, 1588, 5294, 3427, 1387, 4077, 26584, 635, 279, 1041, 434, 17888, 9165, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15643, 3048, 67, 5666, 12, 2890, 16, 585, 16, 12492, 33, 7036, 4672, 3536, 1139, 2053, 2246, 353, 326, 3167, 3566, 1588, 5294, 3427, 1387, 4077, 26584, 635, 279, 1041, 434, 17888, 9165, ...
If optional arg trace is true (default false), progress info is printed to sys.stderr.
If optional arg trace is non-zero (default zero), progress info is printed to sys.stderr. The higher the value, the more info you'll get.
def splitbins(t, trace=0): """t, trace=0 -> (t1, t2, shift). Split a table to save space. t is a sequence of ints. This function can be useful to save space if many of the ints are the same. t1 and t2 are lists of ints, and shift is an int, chosen to minimize the combined size of t1 and t2 (in C code), and where fo...
2622eef694d130c649bfad1efd483f3876f83f54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2622eef694d130c649bfad1efd483f3876f83f54/makeunicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 88, 16, 2606, 33, 20, 4672, 3536, 88, 16, 2606, 33, 20, 317, 261, 88, 21, 16, 268, 22, 16, 4654, 2934, 225, 5385, 279, 1014, 358, 1923, 3476, 18, 225, 268, 353, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 88, 16, 2606, 33, 20, 4672, 3536, 88, 16, 2606, 33, 20, 317, 261, 88, 21, 16, 268, 22, 16, 4654, 2934, 225, 5385, 279, 1014, 358, 1923, 3476, 18, 225, 268, 353, 27...
tag = Tag.objects.get( group = group, name__exact = tag_name )
tag = get_object_or_404(Tag, group = group, name__exact = tag_name )
def show_tag_posts(request, group, tag_name): categories = get_board_categories(group) if not categories: return render_to_response( 'sphene/sphblog/nocategory.html',{}, context_instance = RequestContext(request) ) tag = Tag.objects.get( group = group, name__exact = tag_name ) threads = get_posts_queryset(group, cate...
0bdcc513473a0af0fedede95c905a500b3855920 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11563/0bdcc513473a0af0fedede95c905a500b3855920/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 2692, 67, 11660, 12, 2293, 16, 1041, 16, 1047, 67, 529, 4672, 6477, 273, 336, 67, 3752, 67, 8995, 12, 1655, 13, 225, 309, 486, 6477, 30, 327, 1743, 67, 869, 67, 2740, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 2692, 67, 11660, 12, 2293, 16, 1041, 16, 1047, 67, 529, 4672, 6477, 273, 336, 67, 3752, 67, 8995, 12, 1655, 13, 225, 309, 486, 6477, 30, 327, 1743, 67, 869, 67, 2740, 12, ...
d['synopsis'] = s
d['synopsis'] = s.strip()
def get_cmd(cmd): d = {} attr = table[cmd] cmds = cmd.lstrip("^").split("|") d['cmd'] = cmds[0] d['aliases'] = cmd.split("|")[1:] d['desc'] = get_desc(attr[0].__doc__) d['opts'] = list(get_opts(attr[1])) s = 'hg ' + cmds[0] if len(attr) > 2: if not attr[2].startswith('hg'): s += ' ' + attr[2] else: s = attr[2] d['syn...
1d42e6df5a546d1751ab83bda564dbaea8a06d9c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/1d42e6df5a546d1751ab83bda564dbaea8a06d9c/gendoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4172, 12, 4172, 4672, 302, 273, 2618, 1604, 273, 1014, 63, 4172, 65, 13446, 273, 1797, 18, 80, 6406, 2932, 66, 20387, 4939, 2932, 96, 7923, 225, 302, 3292, 4172, 3546, 273, 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, 336, 67, 4172, 12, 4172, 4672, 302, 273, 2618, 1604, 273, 1014, 63, 4172, 65, 13446, 273, 1797, 18, 80, 6406, 2932, 66, 20387, 4939, 2932, 96, 7923, 225, 302, 3292, 4172, 3546, 273, 13...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 520) else quickfix.DoubleField.__init__(self, 520, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 3462, 13, 469, 9549, 904, 18, 5265, 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, 0, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 3462, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
domain_get = tools.cache()(domain_get)
return dom def clear_cache(self, cr, uid): cr.execute("""SELECT DISTINCT m.model FROM ir_rule r JOIN ir_model m ON r.model_id = m.id WHERE r.global OR EXISTS (SELECT 1 FROM rule_group_rel g_rel JOIN res_groups_users_rel u_rel ON g_rel.group_id = u_rel.gid WHERE g_rel.rule_group_id = r.id AND u_rel.uid = %s) """, (uid,...
def domain_get(self, cr, uid, model_name, mode='read', context=None): """ Retrieve the domain for some /model_name/. It will locate relevant rules (for uid != 1, aka admin), and put them together into an expression. Returns (where_clause, clause_params, tables) so that an SQL query can append the where_clause, feed it...
af8e96e02948d8fa4e9386e6d64da7f5368fdac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/af8e96e02948d8fa4e9386e6d64da7f5368fdac3/ir_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 16, 1965, 2218, 896, 2187, 819, 33, 7036, 4672, 3536, 10708, 326, 2461, 364, 2690, 342, 2284, 67, 529, 15865, 2597, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 16, 1965, 2218, 896, 2187, 819, 33, 7036, 4672, 3536, 10708, 326, 2461, 364, 2690, 342, 2284, 67, 529, 15865, 2597, 903, ...
reaquires it afterwards.
reacquires it afterwards.
def ARRAY(typ, len): return typ * len
4b8ee4d8c1af7de8c01dbb3b2436549f5d48c293 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/4b8ee4d8c1af7de8c01dbb3b2436549f5d48c293/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14884, 12, 12846, 16, 562, 4672, 327, 3815, 380, 562, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14884, 12, 12846, 16, 562, 4672, 327, 3815, 380, 562, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if len(self.startupCommands) > 0: cmd = self.startupCommands.pop(0).strip() if cmd != "": self.logger.debug('executing startup command %s' % cmd) self.processCommand(cmd, None, True) repeat = (len(startupCommands) > 0) packet = self.receiveMsg() if not packet is None: if packet.command == MSG2_USE_VEHICLE: data = str...
if self.connected: if len(self.startupCommands) > 0: cmd = self.startupCommands.pop(0).strip() if cmd != "": self.logger.debug('executing startup command %s' % cmd) self.processCommand(cmd, None, True) repeat = (len(startupCommands) > 0) packet = self.receiveMsg() if packet == False: self.logger.debug('server closed t...
def run(self): # get bot's uid s = hashlib.sha1() s.update("GameBot") #print s.hexdigest() # some default values self.uniqueid = s.hexdigest() self.password = "" self.username = "GameBot_"+str(self.cid) self.buffersize = 1 # 'data' - String self.truckname = "spectator" # dummy data to prevent timeouts dummydata = sel...
e5eb0b07ba830c92a8e9a1b07991824d9e1018c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5557/e5eb0b07ba830c92a8e9a1b07991824d9e1018c5/gamebot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 336, 2512, 1807, 4555, 272, 273, 15956, 18, 7819, 21, 1435, 272, 18, 2725, 2932, 12496, 6522, 7923, 468, 1188, 272, 18, 7118, 10171, 1435, 225, 468, 2690, 805,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 336, 2512, 1807, 4555, 272, 273, 15956, 18, 7819, 21, 1435, 272, 18, 2725, 2932, 12496, 6522, 7923, 468, 1188, 272, 18, 7118, 10171, 1435, 225, 468, 2690, 805,...
if methodGetParent is not None and methodGetChildren is not None: assert numberChildren == len (methodGetChildren (parent)) + 1
if numberChildren is not None: assert numberChildren == len (parent.GetChildren()) + 1
def unRender (self): for child in self.childrenBlocks: child.unRender() widget = getattr (self, 'widget', None)
37271e09169923ec4245f3f424f87093a14317b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/37271e09169923ec4245f3f424f87093a14317b8/Block.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 3420, 261, 2890, 4672, 364, 1151, 316, 365, 18, 5906, 6450, 30, 1151, 18, 318, 3420, 1435, 3604, 273, 3869, 261, 2890, 16, 296, 6587, 2187, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 640, 3420, 261, 2890, 4672, 364, 1151, 316, 365, 18, 5906, 6450, 30, 1151, 18, 318, 3420, 1435, 3604, 273, 3869, 261, 2890, 16, 296, 6587, 2187, 599, 13, 2, -100, -100, -100, -100, -10...
'maxTime' : maxTime / 10.
'maxTime' : maxTime / 10 , 'elapsedTime' : elapsedTime / 10 ,
def queryGame( self ) :
45d4f996af16b74a08c47af45bd03809288e613d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4604/45d4f996af16b74a08c47af45bd03809288e613d/bzfquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12496, 12, 365, 262, 294, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12496, 12, 365, 262, 294, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def on_defer_to_next_month(self, widget):
def on_schedule_for_next_month(self, widget):
def on_defer_to_next_month(self, widget): self.update_start_date(widget, "next month")
13bcc38004b51dd84cf05479f52678e9232c522f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/13bcc38004b51dd84cf05479f52678e9232c522f/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 10676, 67, 1884, 67, 4285, 67, 7496, 12, 2890, 16, 3604, 4672, 365, 18, 2725, 67, 1937, 67, 712, 12, 6587, 16, 315, 4285, 3138, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 10676, 67, 1884, 67, 4285, 67, 7496, 12, 2890, 16, 3604, 4672, 365, 18, 2725, 67, 1937, 67, 712, 12, 6587, 16, 315, 4285, 3138, 7923, 2, -100, -100, -100, -100, -100, -100, ...
if stack in self.s.rows: if not stack.cards and self.s.waste.cards: self.s.waste.moveMove(1, stack)
def fillStack(self, stack): if stack in self.s.rows: if not stack.cards and self.s.waste.cards: self.s.waste.moveMove(1, stack) self.fillAll()
58704aa73af1db2922c08114f0b53a5d0db44f10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11444/58704aa73af1db2922c08114f0b53a5d0db44f10/klondike.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 2624, 12, 2890, 16, 2110, 4672, 365, 18, 5935, 1595, 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, 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, 3636, 2624, 12, 2890, 16, 2110, 4672, 365, 18, 5935, 1595, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dir = os.path.expanduser("~/.local/share/Trash") for file in FileUtilities.children_in_directory(dir, False): yield file
dirname = os.path.expanduser("~/.local/share/Trash") for filename in FileUtilities.children_in_directory(dirname, False): yield filename
def list_files(self): dir = os.path.expanduser("~/.Trash") for file in FileUtilities.children_in_directory(dir, False): yield file # fixme http://www.ramendik.ru/docs/trashspec.html # http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html # GNOME 2.22, Fedora 9 ~/.local/share/Trash dir = os.path.expanduser...
737a941d1a6026b292895c42a857f9ec0bf05cea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/737a941d1a6026b292895c42a857f9ec0bf05cea/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 1577, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 29420, 7923, 364, 585, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, 12, 1214, 16, 1083, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 1577, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 29420, 7923, 364, 585, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, 12, 1214, 16, 1083, 467...
write('return u\'\'.join(buffer)')
write('return u\'\'.join(loopbuffer)')
write('def forloop(seq):')
80bfa43e0bf73e2c82c4b7b7f994b02ae7871b24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/80bfa43e0bf73e2c82c4b7b7f994b02ae7871b24/python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1045, 2668, 536, 364, 6498, 12, 5436, 13, 2497, 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, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1045, 2668, 536, 364, 6498, 12, 5436, 13, 2497, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tags= ['020', '037', '041', '080', '088', '100', '245', '246', '250', '260', '270', '300', '340', '490', '500', '502', '520', '590', '595', '650', '653', '690', '700', '710', '856','909','980','999'] t=[]
tags = ['020', '037', '041', '080', '088', '100', '245', '246', '250', '260', '270', '300', '340', '490', '500', '502', '520', '590', '595', '650', '653', '690', '700', '710', '856', '909', '980', '999'] t = []
def test_tags_created(self): """ bibrecord - demo file which tags are created """ ## check if the tags are correct tags= ['020', '037', '041', '080', '088', '100', '245', '246', '250', '260', '270', '300', '340', '490', '500', '502', '520', '590', '595', '650', '653', '690', '700', '710', '856','909','980','999'] t=[] ...
2f66588a97ca15909477d0a2e7e1dae76f187c9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2f66588a97ca15909477d0a2e7e1dae76f187c9d/bibrecord_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4156, 67, 4824, 12, 2890, 4672, 3536, 25581, 3366, 300, 21477, 585, 1492, 2342, 854, 2522, 3536, 7541, 866, 309, 326, 2342, 854, 3434, 2342, 273, 10228, 3103, 20, 2187, 296, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4156, 67, 4824, 12, 2890, 4672, 3536, 25581, 3366, 300, 21477, 585, 1492, 2342, 854, 2522, 3536, 7541, 866, 309, 326, 2342, 854, 3434, 2342, 273, 10228, 3103, 20, 2187, 296, 46...
self.Main.pack_start(self.hbox6, False, True, 3)
self.Main2.pack_start(self.hbox6, False, True, 3)
def __init__(self, create = True, accel_group = None, tooltips = None): if accel_group is None: self.accel_group = gtk.AccelGroup() else: self.accel_group = accel_group if tooltips is None: self.tooltips = gtk.Tooltips() else: self.tooltips = tooltips self.tooltips.enable() if create: self.SearchTab = gtk.Window() self...
363cba988d4bed5afdae4b3f448f4bf00e734531 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/363cba988d4bed5afdae4b3f448f4bf00e734531/nicotine_glade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 752, 273, 1053, 16, 15153, 67, 1655, 273, 599, 16, 358, 4397, 7146, 273, 599, 4672, 309, 15153, 67, 1655, 353, 599, 30, 365, 18, 30737, 67, 1655, 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, 1001, 2738, 972, 12, 2890, 16, 752, 273, 1053, 16, 15153, 67, 1655, 273, 599, 16, 358, 4397, 7146, 273, 599, 4672, 309, 15153, 67, 1655, 353, 599, 30, 365, 18, 30737, 67, 1655, 273, ...
revision = escape(csets[0].revision)
changeset = csets[0] revision = 'date "%s" && author "%s" && exact "%s"' % ( changeset.date.strftime("%a %b %d %H:%M:%S UTC %Y"), changeset.author, changeset.revision)
def _checkoutUpstreamRevision(self, basedir, repository, module, revision, subdir=None, logger=None, **kwargs): """ Concretely do the checkout of the upstream revision and return the last applied changeset. """
8a696f6b93c00827992825ff9b3cd7897b83bfa9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/8a696f6b93c00827992825ff9b3cd7897b83bfa9/darcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17300, 1211, 3256, 7939, 12, 2890, 16, 15573, 16, 3352, 16, 1605, 16, 6350, 16, 16921, 33, 7036, 16, 1194, 33, 7036, 16, 2826, 4333, 4672, 3536, 735, 71, 1349, 2357, 741, 326, 139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17300, 1211, 3256, 7939, 12, 2890, 16, 15573, 16, 3352, 16, 1605, 16, 6350, 16, 16921, 33, 7036, 16, 1194, 33, 7036, 16, 2826, 4333, 4672, 3536, 735, 71, 1349, 2357, 741, 326, 139...
if __debug__: class Foo: version = 1 class Foo: version = 2 class Foo: version = 3 def execfunc(x): exec x in y
def get_namespace(self): """Returns the single namespace bound to this name.
101651c128825a05a7ba7c1c556c90e22bfb86c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/101651c128825a05a7ba7c1c556c90e22bfb86c2/symtable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4937, 12, 2890, 4672, 3536, 1356, 326, 2202, 1981, 2489, 358, 333, 508, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4937, 12, 2890, 4672, 3536, 1356, 326, 2202, 1981, 2489, 358, 333, 508, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def write(self, data): if not self.writeable(): raise m2.Error("read-only") if self.closed: return 0 return m2.bio_write(self.bio, data)
def write(self, data): if not self.writeable(): raise m2.Error("read-only") if self.closed: return 0 return m2.bio_write(self.bio, data)
def write(self, data): if not self.writeable(): raise m2.Error("read-only") if self.closed: return 0 return m2.bio_write(self.bio, data)
52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 309, 486, 365, 18, 2626, 429, 13332, 1002, 312, 22, 18, 668, 2932, 896, 17, 3700, 7923, 309, 365, 18, 12204, 30, 327, 374, 327, 312, 22, 18, 21010, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 309, 486, 365, 18, 2626, 429, 13332, 1002, 312, 22, 18, 668, 2932, 896, 17, 3700, 7923, 309, 365, 18, 12204, 30, 327, 374, 327, 312, 22, 18, 21010, 67,...
""" Plots the sky map output of lalapps_skymap """ def __init__(self, options, cp, dir='',tag_base='SKY_PLOT'): """ """ self.__prog__ = 'pylal_skyPlotJob' self.__executable = string.strip(cp.get('fu-condor','pylal_skyPlotJob')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__execu...
""" Plots the sky map output of lalapps_skymap """ def __init__(self, options, cp, dir='',tag_base='SKY_PLOT'): """ """ self.__prog__ = 'pylal_skyPlotJob' self.__executable = string.strip(cp.get('fu-condor','pylal_skyPlotJob')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__execu...
def __init__(self, options, cp, dir='', tag_base='SKY_MAP'): """ """ self.__prog__ = 'lalapps_skyMapJob' self.__executable = string.strip(cp.get('fu-condor','lalapps_skymap')) self.__universe = "standard" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.se...
cbd6ac162cb6bf2eb4ad5ce9c3d03753b881f67f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/cbd6ac162cb6bf2eb4ad5ce9c3d03753b881f67f/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 2218, 11129, 61, 67, 8352, 11, 4672, 3536, 3536, 365, 16186, 14654, 972, 273, 296, 80, 287, 11411, 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, 1001, 2738, 972, 12, 2890, 16, 702, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 2218, 11129, 61, 67, 8352, 11, 4672, 3536, 3536, 365, 16186, 14654, 972, 273, 296, 80, 287, 11411, 6...
mm = cron_util.getProcessingDates(config,self.tableName,cursor,me.fileLogger,startDate=start,endDate=end)
mm = cron_util.getProcessingDates(config,self.tableName,None,cursor,me.fileLogger,startDate=start,endDate=end)
def testGetProcessingDates(self): config = {} config['processingDelay'] = datetime.timedelta(0) cursor = self.connection.cursor() self.connection.rollback() self.createBunny() now = datetime.datetime.now() midnight = now.replace(hour=0,minute=0,second=0,microsecond=0) defStart = midnight - cron_util.globalInitialDeltaD...
cafbae83143e839351f7e00f20999c211cfa9fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/cafbae83143e839351f7e00f20999c211cfa9fdb/testUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 7798, 15578, 12, 2890, 4672, 642, 273, 2618, 642, 3292, 10632, 6763, 3546, 273, 3314, 18, 31295, 12, 20, 13, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 365, 18, 4071, 18, 200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 7798, 15578, 12, 2890, 4672, 642, 273, 2618, 642, 3292, 10632, 6763, 3546, 273, 3314, 18, 31295, 12, 20, 13, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 365, 18, 4071, 18, 200...
'--tracking_branch="cros/master"',
'--tracking_branch="%s"' % tracking_branch,
def _UprevFromRevisionList(buildroot, revision_list): """Uprevs based on revision list.""" if not revision_list: Info('No packages found to uprev') return package_str = '' for package, revision in revision_list: package_str += package + ' ' package_str = package_str.strip() cwd = os.path.join(buildroot, 'src', 'scri...
a6b1390fc59562323fe9536da6fa2f7e019144e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/a6b1390fc59562323fe9536da6fa2f7e019144e8/cbuildbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1211, 9083, 1265, 7939, 682, 12, 3510, 3085, 16, 6350, 67, 1098, 4672, 3536, 1211, 266, 6904, 2511, 603, 6350, 666, 12123, 309, 486, 6350, 67, 1098, 30, 3807, 2668, 2279, 5907, 1392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1211, 9083, 1265, 7939, 682, 12, 3510, 3085, 16, 6350, 67, 1098, 4672, 3536, 1211, 266, 6904, 2511, 603, 6350, 666, 12123, 309, 486, 6350, 67, 1098, 30, 3807, 2668, 2279, 5907, 1392...
pattern = re.compile( '@(?P<dllname>.*),-(?P<index>\d+)(?:;(?P<comment>.*))?' ) matcher = pattern.match( spec )
pattern = re.compile('@(?P<dllname>.*),-(?P<index>\d+)(?:;(?P<comment>.*))?') matcher = pattern.match(spec)
def resolveMUITimeZone( spec ): """Resolve a multilingual user interface resource for the time zone name >>> result = resolveMUITimeZone( '@tzres.dll,-110' ) >>> expectedResultType = [type(None),unicode][sys.getwindowsversion() >= (6,)] >>> type( result ) is expectedResultType True spec should be of the format @path,-...
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 49, 5370, 16760, 12, 857, 262, 30, 3536, 8460, 279, 1778, 25853, 729, 1560, 1058, 364, 326, 813, 4157, 508, 4080, 563, 273, 2245, 49, 5370, 16760, 12, 4622, 12994, 455, 18, 27670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 49, 5370, 16760, 12, 857, 262, 30, 3536, 8460, 279, 1778, 25853, 729, 1560, 1058, 364, 326, 813, 4157, 508, 4080, 563, 273, 2245, 49, 5370, 16760, 12, 4622, 12994, 455, 18, 27670, ...
self.respond("230 User %s logged in." %self.username)
self.respond("230 User %s logged in." %self.username)
def ftp_PASS(self, line): # TODO - brute force protection: 'freeze'/'sleep' (without blocking the main loop) # PI for a certain amount of time if authentication fails. if not self.username: self.respond("503 Login with USER first") return if self.username == 'anonymous': line = '' if self.authorizer.has_user(self....
038a954425a48feb99b246b07f88389b6f601664 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/038a954425a48feb99b246b07f88389b6f601664/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 10884, 12, 2890, 16, 980, 4672, 468, 2660, 300, 5186, 624, 2944, 17862, 30, 296, 29631, 11, 2473, 19607, 11, 261, 13299, 9445, 326, 2774, 2798, 13, 468, 282, 7024, 364, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 10884, 12, 2890, 16, 980, 4672, 468, 2660, 300, 5186, 624, 2944, 17862, 30, 296, 29631, 11, 2473, 19607, 11, 261, 13299, 9445, 326, 2774, 2798, 13, 468, 282, 7024, 364, 279, ...
vdata = portal_archivist.retrieve(content, 1) obj = vdata.data.object
vdata = portal_repository.retrieve(content, 1) obj = vdata.object
def testFile(self): self.folder.invokeFactory(types['file'], id='file') file1 = open(os.path.join(PACKAGE_HOME, 'tests/img1.png'), 'rb').read() file2 = open(os.path.join(PACKAGE_HOME, 'tests/img2.png'), 'rb').read() portal_repository = self.portal_repository portal_archivist = self.portal_archivist content = self.folde...
0c55d14cc02ee6857398195362688d81907df2af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11952/0c55d14cc02ee6857398195362688d81907df2af/test_ATContentTypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 812, 12, 2890, 4672, 365, 18, 5609, 18, 14407, 1733, 12, 2352, 3292, 768, 17337, 612, 2218, 768, 6134, 585, 21, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 19077, 67, 14209, 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, 1842, 812, 12, 2890, 4672, 365, 18, 5609, 18, 14407, 1733, 12, 2352, 3292, 768, 17337, 612, 2218, 768, 6134, 585, 21, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 19077, 67, 14209, 16, ...
def check_rev_options(self, rev, dest):
def check_rev_options(self, rev, dest, rev_options):
def check_rev_options(self, rev, dest): """Check the revision options before checkout to compensate that tags and branches may need origin/ as a prefix""" revisions = self.get_tag_revs(dest) revisions.update(self.get_branch_revs(dest)) if rev in revisions: # if rev is a sha return [rev] inverse_revisions = dict((v,k) f...
7bb857aa487aef72245a17b5eaed0b3792eff17f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/7bb857aa487aef72245a17b5eaed0b3792eff17f/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9083, 67, 2116, 12, 2890, 16, 5588, 16, 1570, 16, 5588, 67, 2116, 4672, 3536, 1564, 326, 6350, 702, 1865, 13926, 358, 1161, 773, 340, 716, 2342, 471, 11483, 2026, 1608, 4026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9083, 67, 2116, 12, 2890, 16, 5588, 16, 1570, 16, 5588, 67, 2116, 4672, 3536, 1564, 326, 6350, 702, 1865, 13926, 358, 1161, 773, 340, 716, 2342, 471, 11483, 2026, 1608, 4026, ...
def format_exception_info(self, etype, evalue, newdoc):
def format_exception_info(self, etype, evalue, newdoc, frame):
def format_exception_info(self, etype, evalue, newdoc): exception = newdoc.createElement('exception') evalue = evalue.encode('ascii', 'xmlcharrefreplace') exception.appendChild(create_text_node(newdoc, 'type', etype)) exception.appendChild(create_text_node(newdoc, 'value', evalue)) return exception
b4ffc40d8fdb9956476a194ee42d0500baf47612 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12946/b4ffc40d8fdb9956476a194ee42d0500baf47612/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 4064, 67, 1376, 12, 2890, 16, 24700, 16, 425, 1132, 16, 394, 2434, 16, 2623, 4672, 1520, 273, 394, 2434, 18, 2640, 1046, 2668, 4064, 6134, 425, 1132, 273, 425, 1132, 18, 3015,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 4064, 67, 1376, 12, 2890, 16, 24700, 16, 425, 1132, 16, 394, 2434, 16, 2623, 4672, 1520, 273, 394, 2434, 18, 2640, 1046, 2668, 4064, 6134, 425, 1132, 273, 425, 1132, 18, 3015,...
print "FloatValue", x
print "IntValue", x
def int_value(self, x): print "FloatValue", x form = MonomialForm(x) print "Result:", form return form
10b87672e6a9d88cc5507355f2c5d13d43f901c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/10b87672e6a9d88cc5507355f2c5d13d43f901c3/monomials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 67, 1132, 12, 2890, 16, 619, 4672, 1172, 315, 1702, 620, 3113, 619, 646, 273, 490, 4708, 649, 1204, 12, 92, 13, 1172, 315, 1253, 2773, 16, 646, 327, 646, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 67, 1132, 12, 2890, 16, 619, 4672, 1172, 315, 1702, 620, 3113, 619, 646, 273, 490, 4708, 649, 1204, 12, 92, 13, 1172, 315, 1253, 2773, 16, 646, 327, 646, 2, -100, -100, -100, -1...
if regexp.match(mpdh.get(row, searchby).lower()):
if regexp.match(unicode(mpdh.get(row, searchby)).lower()):
def libsearchfilter_do_search(self, searchby, todo): if not self.prevlibtodo_base in todo: # Do library search based on first two letters: self.prevlibtodo_base = todo[:2] self.prevlibtodo_base_results = mpdh.call(self.client, 'search', searchby, self.prevlibtodo_base) subsearch = False else: subsearch = True # Now, us...
c855d56ed39764d70d6569e06061a748e58d665a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/c855d56ed39764d70d6569e06061a748e58d665a/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2561, 3072, 2188, 67, 2896, 67, 3072, 12, 2890, 16, 1623, 1637, 16, 10621, 4672, 309, 486, 365, 18, 10001, 2941, 9012, 67, 1969, 316, 10621, 30, 468, 2256, 5313, 1623, 2511, 603, 1122, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2561, 3072, 2188, 67, 2896, 67, 3072, 12, 2890, 16, 1623, 1637, 16, 10621, 4672, 309, 486, 365, 18, 10001, 2941, 9012, 67, 1969, 316, 10621, 30, 468, 2256, 5313, 1623, 2511, 603, 1122, ...
Science.write('Negative mosaic spread (%5.2)' % mosaic)
Science.write('Negative mosaic spread (%5.2f)' % mosaic)
def _mosflm_refine_cell(self): '''Perform the refinement of the unit cell. This will populate all of the information needed to perform the integration.'''
48a34413b60b3a05d6d5a2b9af557bc9374c9217 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3290/48a34413b60b3a05d6d5a2b9af557bc9374c9217/Mosflm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26719, 2242, 81, 67, 1734, 558, 67, 3855, 12, 2890, 4672, 9163, 4990, 326, 25994, 820, 434, 326, 2836, 2484, 18, 1220, 903, 6490, 777, 434, 326, 1779, 3577, 358, 3073, 326, 12040, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 26719, 2242, 81, 67, 1734, 558, 67, 3855, 12, 2890, 4672, 9163, 4990, 326, 25994, 820, 434, 326, 2836, 2484, 18, 1220, 903, 6490, 777, 434, 326, 1779, 3577, 358, 3073, 326, 12040, ...
text = text[:75] + ' ...'
textlines = text.splitlines() for i, line in enumerate(textlines): if len(line) > 79: textlines[i] = line[:75] + ' ...' text = '\n'.join(textlines)
def showtip(self, text, parenleft, parenright): """Show the calltip, bind events which will close it and reposition it. """ # truncate overly long calltip if len(text) >= 79: text = text[:75] + ' ...' self.text = text if self.tipwindow or not self.text: return
60edb2f34970014fef9ae013182ffcdd964a96ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/60edb2f34970014fef9ae013182ffcdd964a96ad/CallTipWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 14587, 12, 2890, 16, 977, 16, 22146, 4482, 16, 22146, 4083, 4672, 3536, 5706, 326, 745, 14587, 16, 1993, 2641, 1492, 903, 1746, 518, 471, 283, 3276, 518, 18, 3536, 468, 10310, 1879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 14587, 12, 2890, 16, 977, 16, 22146, 4482, 16, 22146, 4083, 4672, 3536, 5706, 326, 745, 14587, 16, 1993, 2641, 1492, 903, 1746, 518, 471, 283, 3276, 518, 18, 3536, 468, 10310, 1879...
point.pos[angle] = vector( dist_mm*c,0, dist_mm*s) point2.pos[angle] = vector( (quality + offset)*c,0, (quality + offset)*s) if not use_real_robot: f = open("OneRun_no_shield.txt", 'r') data_str = f.readlines()[6:] data = [ int(d,16) for d in data_str] for i in range(360): update_view(i, data[4*i], data[4*i+1], ...
if use_points : pointb.pos[angle] = vector( dist_x,0, dist_y) if use_intensity : point2b.pos[angle] = vector( (quality + offset)*c,0, (quality + offset)*s) if use_lines : lines[angle].color = (0.4,0,0) if use_outer_line : outer_line.color[angle] = (0.4,0,0) if use_lines : lines[angle].pos[1]=( dist_x, 0, dist_y) if use...
def update_view( angle, x, x1, x2, x3): global offset point.pos[angle] = vector( 0, 0, 0) pointb.pos[angle] = vector( 0, 0, 0) point2.pos[angle] = vector( 0, 0, 0) point2b.pos[angle] = vector( 0, 0, 0) #point3.pos[angle] = vector( 0, 0, 0) #point3b.pos[angle] = vector( 0, 0, 0) angle_rad = angle * pi / 180.0 c = cos(a...
7e79bd8b6a9f13952a2c0437da2cc4de3f87703c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13852/7e79bd8b6a9f13952a2c0437da2cc4de3f87703c/XV-11_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1945, 12, 5291, 16, 619, 16, 619, 21, 16, 619, 22, 16, 619, 23, 4672, 2552, 1384, 1634, 18, 917, 63, 4341, 65, 273, 3806, 12, 374, 16, 374, 16, 374, 13, 1634, 70, 18, 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, 1089, 67, 1945, 12, 5291, 16, 619, 16, 619, 21, 16, 619, 22, 16, 619, 23, 4672, 2552, 1384, 1634, 18, 917, 63, 4341, 65, 273, 3806, 12, 374, 16, 374, 16, 374, 13, 1634, 70, 18, 9...
</P> <P>If the error persists please contact the site maintainer.
</p> <p>If the error persists please contact the site maintainer.
def _error_html(self,title,body): # XXX could this try to use standard_error_message somehow? return ("""\
8f3efd0a3aa3bb2f0aba1e6360ba06506a1b8960 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8f3efd0a3aa3bb2f0aba1e6360ba06506a1b8960/HTTPResponse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1636, 67, 2620, 12, 2890, 16, 2649, 16, 3432, 4672, 468, 11329, 3377, 333, 775, 358, 999, 4529, 67, 1636, 67, 2150, 28578, 35, 327, 261, 8395, 64, 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, 1636, 67, 2620, 12, 2890, 16, 2649, 16, 3432, 4672, 468, 11329, 3377, 333, 775, 358, 999, 4529, 67, 1636, 67, 2150, 28578, 35, 327, 261, 8395, 64, 2, -100, -100, -100, -100, -100,...
register_exception(req=req)
register_exception(req=self)
def flush(self): self.send_http_header() if self.__buffer: self.__bytes_sent += len(self.__buffer) try: self.__write(self.__buffer) except IOError, err: if "failed to write data" in str(err) or "client connection closed" in str(err): ## Let's just log this expection without alerting the admin: register_exception(req=re...
5c82668871f37b667b259d65e2d220bc38f506cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/5c82668871f37b667b259d65e2d220bc38f506cc/webinterface_handler_wsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 4661, 67, 2505, 67, 3374, 1435, 309, 365, 16186, 4106, 30, 365, 16186, 3890, 67, 7569, 1011, 562, 12, 2890, 16186, 4106, 13, 775, 30, 365, 16186, 2626, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 4661, 67, 2505, 67, 3374, 1435, 309, 365, 16186, 4106, 30, 365, 16186, 3890, 67, 7569, 1011, 562, 12, 2890, 16186, 4106, 13, 775, 30, 365, 16186, 2626, 1...
text = _remove_empty_lines (text)
def create_layout (self, text, markup=True):
9fd84fa983fd32c081c9edfb2a02c844f13b0d49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8139/9fd84fa983fd32c081c9edfb2a02c844f13b0d49/slippy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6741, 261, 2890, 16, 977, 16, 9813, 33, 5510, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6741, 261, 2890, 16, 977, 16, 9813, 33, 5510, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
new_flags.sort()
def test_flags_irrelevant(self): # check that the result (numeric result + flags raised) of an # arithmetic operation doesn't depend on the current flags
8f43cec41b13ee97a688327601f799bda1742f61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8f43cec41b13ee97a688327601f799bda1742f61/test_decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7133, 67, 481, 27719, 12, 2890, 4672, 468, 866, 716, 326, 563, 261, 5246, 563, 397, 2943, 11531, 13, 434, 392, 468, 30828, 1674, 3302, 1404, 2447, 603, 326, 783, 2943, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7133, 67, 481, 27719, 12, 2890, 4672, 468, 866, 716, 326, 563, 261, 5246, 563, 397, 2943, 11531, 13, 434, 392, 468, 30828, 1674, 3302, 1404, 2447, 603, 326, 783, 2943, 2, -10...
fn(eval(param)) return True return False
s = fn(eval(param)) if s == None: return True else: return s return False
def _dispatch_key(self, map, key_code): for entry in map: keys, fn, param = entry if key_code in keys: if param == None: fn() else: fn(eval(param)) return True return False
f9234e30d9940219057d74f451169799ccebdf9a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3866/f9234e30d9940219057d74f451169799ccebdf9a/slap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 67, 856, 12, 2890, 16, 852, 16, 498, 67, 710, 4672, 364, 1241, 316, 852, 30, 1311, 16, 2295, 16, 579, 273, 1241, 309, 498, 67, 710, 316, 1311, 30, 309, 579, 422, 599, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 67, 856, 12, 2890, 16, 852, 16, 498, 67, 710, 4672, 364, 1241, 316, 852, 30, 1311, 16, 2295, 16, 579, 273, 1241, 309, 498, 67, 710, 316, 1311, 30, 309, 579, 422, 599, 3...
print '%s.%s%s =? %s... ' % (repr(input), method, args, output),
print '%s.%s%s =? %s... ' % (repr(input), method, args, repr(output)),
def test(method, input, output, *args): if verbose: print '%s.%s%s =? %s... ' % (repr(input), method, args, output), try: f = getattr(input, method) value = apply(f, args) except: value = sys.exc_type exc = sys.exc_info()[:2] else: exc = None if value != output: if verbose: print 'no' print '*',f, `input`, `output`, `v...
a403dac0d3e02f0c4b019936e66f78b10e3709c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a403dac0d3e02f0c4b019936e66f78b10e3709c5/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2039, 16, 810, 16, 876, 16, 380, 1968, 4672, 309, 3988, 30, 1172, 1995, 87, 7866, 87, 9, 87, 273, 35, 738, 87, 2777, 296, 738, 261, 12715, 12, 2630, 3631, 707, 16, 833, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2039, 16, 810, 16, 876, 16, 380, 1968, 4672, 309, 3988, 30, 1172, 1995, 87, 7866, 87, 9, 87, 273, 35, 738, 87, 2777, 296, 738, 261, 12715, 12, 2630, 3631, 707, 16, 833, 1...
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
7edb180e91b2e48f567f53d59d4294938a615b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7edb180e91b2e48f567f53d59d4294938a615b84/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
path: additional path rc_entry: entry to outfile, can be emtpy, one pattern (%% for chosen prog or 'none'), or one for each prog and 'none'. NOTE: if you do not want 'none' entry to be added to the RC file, specify an entry for each prog and use '' for 'none' entry. FIXME: under windows, we should check registry ins...
path: additional pathes rc_entry: entry to outfile, can be 1. emtpy: no rc entry will be added 2. one pattern: %% will be replaced by the first found program, or 'none' is no program is found. 3. several patterns for each prog and 'none'. This is used when different programs have different usages. If you do not want '...
def checkProg(description, progs, rc_entry = [], path = [] ): ''' This function will search a program in $PATH plus given path If found, return directory and program name (not the options). description: description of the program progs: check programs, for each prog, the first word is used for searching but the whole...
b6e30400f512a894fc87052293a47f0e958d4fe6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/b6e30400f512a894fc87052293a47f0e958d4fe6/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 626, 75, 12, 3384, 16, 450, 564, 16, 4519, 67, 4099, 273, 5378, 16, 589, 273, 5378, 262, 30, 9163, 1220, 445, 903, 1623, 279, 5402, 316, 271, 4211, 8737, 864, 589, 971, 1392, 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, 866, 626, 75, 12, 3384, 16, 450, 564, 16, 4519, 67, 4099, 273, 5378, 16, 589, 273, 5378, 262, 30, 9163, 1220, 445, 903, 1623, 279, 5402, 316, 271, 4211, 8737, 864, 589, 971, 1392, 16...
for key, value in nonces.items():
for nonce, value in nonces.items():
def check_nonces (): # deprecate old nonces for key, value in nonces.items(): noncetime = time.time() - value if noncetime > max_noncesecs: del nonces[nonce]
a9ecfa743f3d77d6172bb8694a2020e54d66ad71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/a9ecfa743f3d77d6172bb8694a2020e54d66ad71/ntlm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5836, 764, 1832, 30, 468, 443, 29246, 1592, 1661, 764, 364, 7448, 16, 460, 316, 1661, 764, 18, 3319, 13332, 1661, 71, 2374, 273, 813, 18, 957, 1435, 300, 460, 309, 1661, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5836, 764, 1832, 30, 468, 443, 29246, 1592, 1661, 764, 364, 7448, 16, 460, 316, 1661, 764, 18, 3319, 13332, 1661, 71, 2374, 273, 813, 18, 957, 1435, 300, 460, 309, 1661, 71, ...
from pandac.PandaModules import NotifySeverity
from pandac.PandaModules import NSDebug, NSInfo, NSWarning, NSError
def getSeverity(self): from pandac.PandaModules import NotifySeverity if self.getDebug(): return NotifySeverity.NSDebug elif self.getInfo(): return NotifySeverity.NSInfo elif self.getWarning(): return NotifySeverity.NSWarning else: return NotifySeverity.NSError
54a803d3583837c665d2ab85fb64a3ff3879d532 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/54a803d3583837c665d2ab85fb64a3ff3879d532/Notifier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 6084, 560, 12, 2890, 4672, 628, 293, 464, 1077, 18, 52, 464, 69, 7782, 1930, 11472, 2829, 16, 11472, 966, 16, 11472, 6210, 16, 11472, 668, 309, 365, 18, 588, 2829, 13332, 327, 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, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 6084, 560, 12, 2890, 4672, 628, 293, 464, 1077, 18, 52, 464, 69, 7782, 1930, 11472, 2829, 16, 11472, 966, 16, 11472, 6210, 16, 11472, 668, 309, 365, 18, 588, 2829, 13332, 327, 10...
TOP: [a,b,c], BACK_LEFT: [b,c,a], BACK_RIGHT: [a, c,b], FRONT_LEFT: [b,a,c], FRONT_RIGHT: [c,a,b],
TOP: [a[0], a[1], a[2]], BACK_LEFT: [a[3],a[4],a[5]], BACK_RIGHT: [a[6],a[7],a[8]], FRONT_LEFT: [a[9],a[10],a[11]], FRONT_RIGHT: [a[12],a[13],a[14]],
def get_config(t): t = t * speed a = 0.5 + 0.5 * cos(t * 1.0023234) b = 0.5 + 0.5 * sin(t * 1.1231) c = 0.5 + 0.5*cos(2*t)
955c5f705a1c8d4ef0dbc7249f9784e31f98248b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1128/955c5f705a1c8d4ef0dbc7249f9784e31f98248b/duckietown_lights.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1425, 12, 88, 4672, 268, 273, 268, 380, 8632, 279, 273, 374, 18, 25, 397, 374, 18, 25, 380, 4987, 12, 88, 380, 404, 18, 24908, 1578, 5026, 13, 324, 273, 374, 18, 25, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1425, 12, 88, 4672, 268, 273, 268, 380, 8632, 279, 273, 374, 18, 25, 397, 374, 18, 25, 380, 4987, 12, 88, 380, 404, 18, 24908, 1578, 5026, 13, 324, 273, 374, 18, 25, 397, ...
if (is_secure): self.connection = httplib.HTTPSConnection("%s:%d" % (server, port)) else: self.connection = httplib.HTTPConnection("%s:%d" % (server, port))
self.make_http_connection() self._last_rs = None def make_http_connection(self): if self.debug: print 'establishing HTTP connection' if (self.is_secure): self.connection = httplib.HTTPSConnection("%s:%d" % (self.server, self.port)) else: self.connection = httplib.HTTPConnection("%s:%d" % (self.server, self.port))
def __init__(self, server, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, debug=False):
8fbf3e8e2911f73f217e9bae429f7885f072770b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1098/8fbf3e8e2911f73f217e9bae429f7885f072770b/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 353, 67, 8869, 33, 5510, 16, 1756, 33, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 353, 67, 8869, 33, 5510, 16, 1756, 33, 703...
Optional `strict' argument when false adds a bunch of commonly found,
Optional `strict' argument when False adds a bunch of commonly found,
def guess_type(self, url, strict=1): """Guess the type of a file based on its URL.
00f4afff414f17f11401025d4fd9f2f9f25f525b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/00f4afff414f17f11401025d4fd9f2f9f25f525b/mimetypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 723, 12, 2890, 16, 880, 16, 5490, 33, 21, 4672, 3536, 15977, 326, 618, 434, 279, 585, 2511, 603, 2097, 1976, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 723, 12, 2890, 16, 880, 16, 5490, 33, 21, 4672, 3536, 15977, 326, 618, 434, 279, 585, 2511, 603, 2097, 1976, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if o in ("-p", "--popup"):
elif o in ("-p", "--popup"):
def __init__(self, window=None, sugar=False): try: gettext.install('sonata', os.path.join(__file__.split('/lib')[0], 'share', 'locale'), unicode=1) except: gettext.install('sonata', '/usr/share/locale', unicode=1) gettext.textdomain('sonata') # This is needed so that python-mpd correctly returns lowercase # keys for,...
df1f18bb16c3c23ef7b414c11125561f80b27d8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/df1f18bb16c3c23ef7b414c11125561f80b27d8e/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 33, 7036, 16, 26178, 33, 8381, 4672, 225, 775, 30, 24972, 18, 5425, 2668, 18682, 2187, 1140, 18, 803, 18, 5701, 12, 972, 768, 25648, 4939, 2668, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 33, 7036, 16, 26178, 33, 8381, 4672, 225, 775, 30, 24972, 18, 5425, 2668, 18682, 2187, 1140, 18, 803, 18, 5701, 12, 972, 768, 25648, 4939, 2668, 19...
def solve(self, x=None, multiplicities=False):
def solve(self, x=None, multiplicities=False, solution_dict=False):
def solve(self, x=None, multiplicities=False): """ Symbolically solve for the given variable.
1948782916276a6083a52afa954dc708919db7f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1948782916276a6083a52afa954dc708919db7f5/equations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 2890, 16, 619, 33, 7036, 16, 3309, 1780, 1961, 33, 8381, 16, 6959, 67, 1576, 33, 8381, 4672, 3536, 16455, 12164, 1230, 12439, 364, 326, 864, 2190, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 2890, 16, 619, 33, 7036, 16, 3309, 1780, 1961, 33, 8381, 16, 6959, 67, 1576, 33, 8381, 4672, 3536, 16455, 12164, 1230, 12439, 364, 326, 864, 2190, 18, 2, -100, -100, -100, -...
Output array of integers. Returns -1 if `sub` is not found.
Output array of ints. Returns -1 if `sub` is not found.
def index(a, sub, start=0, end=None): """ Like `find`, but raises `ValueError` when the substring is not found. Calls `str.index` element-wise. Parameters ---------- a : array_like of string_ or unicode_ sub : str or unicode start, end : int, optional Returns ------- out : ndarray Output array of integers. Returns ...
05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 69, 16, 720, 16, 787, 33, 20, 16, 679, 33, 7036, 4672, 3536, 23078, 1375, 4720, 9191, 1496, 14183, 1375, 23610, 68, 1347, 326, 3019, 353, 486, 1392, 18, 225, 23665, 1375, 701,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 69, 16, 720, 16, 787, 33, 20, 16, 679, 33, 7036, 4672, 3536, 23078, 1375, 4720, 9191, 1496, 14183, 1375, 23610, 68, 1347, 326, 3019, 353, 486, 1392, 18, 225, 23665, 1375, 701,...
self.conn.Server.q.country == '**'),
self.conn.Server.q.country != '**'),
def do_mirrorlist(self, subcmd, opts, *args): """${cmd_name}: generate a mirror list
18d073a53dec160b3393ea896a49563fc719289e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3890/18d073a53dec160b3393ea896a49563fc719289e/mirrordoctor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 27197, 1098, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 1968, 4672, 3536, 18498, 4172, 67, 529, 6713, 2103, 279, 15593, 666, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 27197, 1098, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 1968, 4672, 3536, 18498, 4172, 67, 529, 6713, 2103, 279, 15593, 666, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...