rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if maxx>400 or maxyy>200: _,_,D = drawit(F,maxx,maxy)
if maxx>400 or maxy>200: _,_,D = drawit(F,maxx,maxy)
def drawit(F,w=400,h=200,fontSize=12,slack=2,gap=5): D = Drawing(w,h) th = 2*gap + fontSize*1.2 gh = gap + .2*fontSize y = h maxx = 0 for fontName in F: y -= th text = fontName+": I should be totally horizontal and enclosed in a box" textWidth = stringWidth(text, fontName, fontSize) maxx = max(maxx,textWidth+20) D.add(...
ffd6c439cc73c4d1b74b2cef92c3f17e52fa1fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/ffd6c439cc73c4d1b74b2cef92c3f17e52fa1fed/renderPM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 305, 12, 42, 16, 91, 33, 16010, 16, 76, 33, 6976, 16, 5776, 1225, 33, 2138, 16, 2069, 484, 33, 22, 16, 14048, 33, 25, 4672, 463, 273, 10184, 310, 12, 91, 16, 76, 13, 286, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 305, 12, 42, 16, 91, 33, 16010, 16, 76, 33, 6976, 16, 5776, 1225, 33, 2138, 16, 2069, 484, 33, 22, 16, 14048, 33, 25, 4672, 463, 273, 10184, 310, 12, 91, 16, 76, 13, 286, 2...
return images[sel]['original']
return os.path.splitext(images[sel]['original'])[0] + ".jpg"
def get_url(self, movie, arttype, interactive): if arttype == "poster": images = movie['images'].posters elif arttype == "backdrop": images = movie['images'].backdrops if len(images) == 0: return None if interactive: for image in images: print images.index(image), image['original'] sel = prompt_sel(images, arttype) els...
01ec5add786a2036cc3b178b4a62f2a4c415e981 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14583/01ec5add786a2036cc3b178b4a62f2a4c415e981/pyXBMCscrape.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 718, 12, 2890, 16, 21360, 16, 3688, 723, 16, 12625, 4672, 309, 3688, 723, 422, 315, 2767, 264, 6877, 4602, 273, 21360, 3292, 7369, 29489, 2767, 414, 1327, 3688, 723, 422, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 718, 12, 2890, 16, 21360, 16, 3688, 723, 16, 12625, 4672, 309, 3688, 723, 422, 315, 2767, 264, 6877, 4602, 273, 21360, 3292, 7369, 29489, 2767, 414, 1327, 3688, 723, 422, 315, ...
if 'date' not in vals and not camp.date and 'date_start' in vals and vals['date_start'] :
if 'date' not in vals and not camp.date and 'date_start' in vals and vals['date_start']:
def write(self, cr, uid, ids, vals, context=None): camp = self.pool.get('dm.campaign').browse(cr,uid,ids)[0] if not self.check_forbidden_country(cr, uid, camp.offer_id.id,camp.country_id.id): raise osv.except_osv("Error","You cannot use this offer in this country")
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 20787, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 14608, 16063, 25731, 12, 3353, 16, 1911, 16, 2232,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 20787, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 14608, 16063, 25731, 12, 3353, 16, 1911, 16, 2232,...
ATM, the values are not weighted in this mode."""
ATM, the values are not weighted with the polyline segment lengths in this mode."""
def __init__(self, map, gradSiv, resample = 0.1, tangents = None, Functor = hourglass.PolylineStatistics): """Init statistics for each edge. Possible values for Functor are: hourglass.PolylineStatistics (default) and hourglass.QuantileStatistics (needed if you want to use `quantile` or `dartQuantile`). The latter nee...
4ef96517287a1d5ca47341c77866d3cec450dc72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/4ef96517287a1d5ca47341c77866d3cec450dc72/statistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 852, 16, 6058, 55, 427, 16, 19220, 273, 374, 18, 21, 16, 268, 539, 4877, 273, 599, 16, 478, 6931, 280, 273, 6126, 75, 459, 18, 25519, 8569, 4672, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 852, 16, 6058, 55, 427, 16, 19220, 273, 374, 18, 21, 16, 268, 539, 4877, 273, 599, 16, 478, 6931, 280, 273, 6126, 75, 459, 18, 25519, 8569, 4672, 3536,...
v = self.db._db.getas(','.join(s))
view = self.db._db.getas(','.join(s))
def __getview(self): ''' Find the interface for a specific Class in the hyperdb.
8a26f1933d2876e464fe11a666ad363c83f287dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8a26f1933d2876e464fe11a666ad363c83f287dd/back_metakit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1945, 12, 2890, 4672, 9163, 4163, 326, 1560, 364, 279, 2923, 1659, 316, 326, 9512, 1966, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1945, 12, 2890, 4672, 9163, 4163, 326, 1560, 364, 279, 2923, 1659, 316, 326, 9512, 1966, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
viewPackages[viewId].insert(0, packageId)
viewPackages[viewId].append(packageId)
def processViews(viewDefs, loadDeps, runDeps, collapseViews, outputFile): global classes # Build bitmask ids for views viewBits = {} viewPos = 0 for viewId in viewDefs: viewBits[viewId] = 1<<viewPos viewPos += 1 # Find all used classes # Used to reduce loop size for further iterations (not using huge 'classes') pri...
978820638d4273f641ce423ff1160600bf29af2f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/978820638d4273f641ce423ff1160600bf29af2f/generator2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9959, 12, 1945, 14554, 16, 1262, 14430, 16, 1086, 14430, 16, 13627, 9959, 16, 15047, 4672, 2552, 3318, 282, 468, 3998, 24941, 3258, 364, 7361, 1476, 6495, 273, 2618, 1476, 1616, 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, 1207, 9959, 12, 1945, 14554, 16, 1262, 14430, 16, 1086, 14430, 16, 13627, 9959, 16, 15047, 4672, 2552, 3318, 282, 468, 3998, 24941, 3258, 364, 7361, 1476, 6495, 273, 2618, 1476, 1616, 273,...
sage: sr = mq.SR(10,4,4,8, star=True, allow_zero_inversions=True)
sage: sr = mq.SR(10, 4, 4, 8, star=True, allow_zero_inversions=True)
def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$. TESTS: sage: sr = mq.SR(10,4,4,8, star=True, allow_zero_inversions=True) sage: ki = sr.state_array() sage: for i in range(10): ... ki = sr.key_schedule(ki,i+1) sage: print sr.hex_str_matrix(ki) B4 3E 23 6F EF 92 E9 8F 5B E2 51 1...
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 10676, 12, 2890, 16, 417, 78, 16, 277, 4672, 3536, 2000, 271, 79, 67, 77, 8, 364, 279, 864, 271, 77, 8, 471, 271, 79, 67, 78, 8, 598, 271, 78, 273, 277, 17, 21, 8, 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, 498, 67, 10676, 12, 2890, 16, 417, 78, 16, 277, 4672, 3536, 2000, 271, 79, 67, 77, 8, 364, 279, 864, 271, 77, 8, 471, 271, 79, 67, 78, 8, 598, 271, 78, 273, 277, 17, 21, 8, 18,...
def __new__(cls, e): obj = str.__new__(cls, e[1])
def __new__(cls, e, append_msg=''): obj = str.__new__(cls, e[1] + append_msg)
def __new__(cls, e): obj = str.__new__(cls, e[1]) obj.code = int(e[0]) obj.module = e.__module__ obj.exception = e.__class__.__name__ return obj
903913f4027762e12ae20a207712fc80636d7a63 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6718/903913f4027762e12ae20a207712fc80636d7a63/mysqlconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 425, 16, 714, 67, 3576, 2218, 11, 4672, 1081, 273, 609, 16186, 2704, 972, 12, 6429, 16, 425, 63, 21, 65, 397, 714, 67, 3576, 13, 1081, 18, 710, 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, 2704, 972, 12, 6429, 16, 425, 16, 714, 67, 3576, 2218, 11, 4672, 1081, 273, 609, 16186, 2704, 972, 12, 6429, 16, 425, 63, 21, 65, 397, 714, 67, 3576, 13, 1081, 18, 710, 273, ...
print 'movies dir: %r' % movies_dir
def get_available_bytes_for_movies(): pool = NSAutoreleasePool.alloc().init() fm = NSFileManager.defaultManager() movies_dir = config.get(prefs.MOVIES_DIRECTORY) if not os.path.exists(movies_dir): try: os.makedirs(movies_dir) except IOError: del pool return -1 print 'movies dir: %r' % movies_dir info = fm.fileSystemAtt...
2b97346bb2cd582fe2019b0fe64b6b2a00c76b9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/2b97346bb2cd582fe2019b0fe64b6b2a00c76b9e/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5699, 67, 3890, 67, 1884, 67, 8683, 29028, 13332, 2845, 273, 423, 5233, 322, 479, 2508, 2864, 18, 9853, 7675, 2738, 1435, 10940, 273, 11472, 812, 1318, 18, 1886, 1318, 1435, 734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5699, 67, 3890, 67, 1884, 67, 8683, 29028, 13332, 2845, 273, 423, 5233, 322, 479, 2508, 2864, 18, 9853, 7675, 2738, 1435, 10940, 273, 11472, 812, 1318, 18, 1886, 1318, 1435, 734...
s = md5.new()
def dgst(file): import md5 BUFSIZE = 1024*1024 s = md5.new() f = open(file, 'r') while 1: buf = f.read(BUFSIZE) if not buf: break s.update(buf) return s.hexdigest() f.close()
f6ab6ccd67e924e7e96016725c9f6a7f620499db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10990/f6ab6ccd67e924e7e96016725c9f6a7f620499db/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14938, 334, 12, 768, 4672, 1930, 3481, 25, 10937, 42, 4574, 273, 6250, 14, 2163, 3247, 284, 273, 1696, 12, 768, 16, 296, 86, 6134, 1323, 404, 30, 1681, 273, 284, 18, 896, 12, 3000, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14938, 334, 12, 768, 4672, 1930, 3481, 25, 10937, 42, 4574, 273, 6250, 14, 2163, 3247, 284, 273, 1696, 12, 768, 16, 296, 86, 6134, 1323, 404, 30, 1681, 273, 284, 18, 896, 12, 3000, 4...
return map(None, seq, seq, [blue] * numchips)
return map(None, [red] * numchips, [green] * numchips, seq)
def constant_blue_generator(numchips, rgbtuple): blue = rgbtuple[2] seq = constant(numchips) return map(None, seq, seq, [blue] * numchips)
0f14467ddb4484e10347094b8daf3deb8d4e7723 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0f14467ddb4484e10347094b8daf3deb8d4e7723/PyncheWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5381, 67, 14081, 67, 8812, 12, 2107, 343, 7146, 16, 6917, 8052, 4672, 8024, 273, 6917, 8052, 63, 22, 65, 3833, 273, 5381, 12, 2107, 343, 7146, 13, 327, 852, 12, 7036, 16, 306, 1118, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5381, 67, 14081, 67, 8812, 12, 2107, 343, 7146, 16, 6917, 8052, 4672, 8024, 273, 6917, 8052, 63, 22, 65, 3833, 273, 5381, 12, 2107, 343, 7146, 13, 327, 852, 12, 7036, 16, 306, 1118, ...
if hasattr(self.current_item, 'stop'): try: self.current_item.stop() except OSError: log.info('ignore playlist event') return True pos = (pos-1) % len(self.playlist) self.current_item = self.playlist[pos] Playlist.play(self, True)
self.__next = self.playlist[pos-1] self.__current.stop()
def eventhandler(self, event, menuw=None): """ Handle playlist specific events """
5949d6a14c5ea1900f65dfd873a7ac49fa7e8687 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/5949d6a14c5ea1900f65dfd873a7ac49fa7e8687/playlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 16, 3824, 91, 33, 7036, 4672, 3536, 5004, 16428, 2923, 2641, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 871, 4176, 12, 2890, 16, 871, 16, 3824, 91, 33, 7036, 4672, 3536, 5004, 16428, 2923, 2641, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
while task.state not in task_complete_states: time.sleep(self._default_sleep)
self._wait_for_task(task)
def _timeout_tasks(self): """ Stop tasks that have met or exceeded the queue's timeout length. """ if self.timeout is None: return running_tasks = self.__storage.running_tasks() if not running_tasks: return now = datetime.now() for task in running_tasks: if now - task.start_time < self.timeout: continue thread = self._...
1a8bb80e63e020f71b0ec8f8713a437e2b1f745b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/1a8bb80e63e020f71b0ec8f8713a437e2b1f745b/fifo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4538, 67, 9416, 12, 2890, 4672, 3536, 5131, 4592, 716, 1240, 5100, 578, 12428, 326, 2389, 1807, 2021, 769, 18, 3536, 309, 365, 18, 4538, 353, 599, 30, 327, 3549, 67, 9416, 273, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4538, 67, 9416, 12, 2890, 4672, 3536, 5131, 4592, 716, 1240, 5100, 578, 12428, 326, 2389, 1807, 2021, 769, 18, 3536, 309, 365, 18, 4538, 353, 599, 30, 327, 3549, 67, 9416, 273, 36...
self._setup(self._connection_class(host, port))
self._setup(self._connection_class(host, port, strict))
def __init__(self, host='', port=None): "Provide a default host, since the superclass requires one."
10fb0cd552742f705321830d292919646e739dd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/10fb0cd552742f705321830d292919646e739dd2/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 2218, 2187, 1756, 33, 7036, 4672, 315, 20632, 279, 805, 1479, 16, 3241, 326, 12098, 4991, 1245, 1199, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 2218, 2187, 1756, 33, 7036, 4672, 315, 20632, 279, 805, 1479, 16, 3241, 326, 12098, 4991, 1245, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -1...
new.parent = self
self.setup_child(new)
def replace(self, old, new): """Replace one child `Node` with another child or children.""" index = self.index(old) if isinstance(new, Node): new.parent = self self[index] = new elif new is not None: self[index:index+1] = new
d30db31f101c2d47316eef6ce1160f81923e3106 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/d30db31f101c2d47316eef6ce1160f81923e3106/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 2890, 16, 1592, 16, 394, 4672, 3536, 5729, 1245, 1151, 1375, 907, 68, 598, 4042, 1151, 578, 2325, 12123, 770, 273, 365, 18, 1615, 12, 1673, 13, 309, 1549, 12, 2704, 16, 2029,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 2890, 16, 1592, 16, 394, 4672, 3536, 5729, 1245, 1151, 1375, 907, 68, 598, 4042, 1151, 578, 2325, 12123, 770, 273, 365, 18, 1615, 12, 1673, 13, 309, 1549, 12, 2704, 16, 2029,...
cl, err = CommandLineCL(ui, repo, pats, opts)
cl, err = CommandLineCL(ui, repo, pats, opts, defaultcc=defaultcc)
def mail(ui, repo, *pats, **opts): """mail a change for review Uploads a patch to the code review server and then sends mail to the reviewer and CC list asking for a review. """ cl, err = CommandLineCL(ui, repo, pats, opts) if err != "": return err cl.Upload(ui, repo, gofmt_just_warn=True) if not cl.reviewer: return "...
6f6f731cdfefbe310bada9b6ae5aaf9170224b62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5761/6f6f731cdfefbe310bada9b6ae5aaf9170224b62/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4791, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 4408, 279, 2549, 364, 10725, 225, 9414, 87, 279, 4729, 358, 326, 981, 10725, 1438, 471, 1508, 9573, 4791, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4791, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 4408, 279, 2549, 364, 10725, 225, 9414, 87, 279, 4729, 358, 326, 981, 10725, 1438, 471, 1508, 9573, 4791, 358, ...
print "COL2:", self.tokens[self.pos:]
def parseColumn(self): print "COL:", self.tokens[self.pos:] token = self.token
2d335b6b121e50b275e620f9292470dea0d60585 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12391/2d335b6b121e50b275e620f9292470dea0d60585/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1494, 12, 2890, 4672, 1172, 315, 4935, 2773, 16, 365, 18, 7860, 63, 2890, 18, 917, 26894, 1147, 273, 365, 18, 2316, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1494, 12, 2890, 4672, 1172, 315, 4935, 2773, 16, 365, 18, 7860, 63, 2890, 18, 917, 26894, 1147, 273, 365, 18, 2316, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.audio_file = str(soup.html.title).split(' ')[0].strip('<title>')+'.ogg'
self.audio_file = str(soup.html.title).split(' ')[0].split('>')[1]+'.ogg' print self.audio_file
def look_for_audio(self): page = self.browser.get_html() #print page soup = BeautifulSoup('<html>'+str(page)+'</html>') div = soup.html.body.findAll('div', attrs={'id':'ogg_player_1'}) if div is None: print "No audio available" else: l = str(div).split(',') for i in l: if i.find('videoUrl')>0: self.download_url = i.sp...
eba433485830e647ddd80b79d3570b93a29200f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/eba433485830e647ddd80b79d3570b93a29200f4/wordgroupz_new.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2324, 67, 1884, 67, 11509, 12, 2890, 4672, 1363, 273, 365, 18, 11213, 18, 588, 67, 2620, 1435, 468, 1188, 1363, 15418, 273, 28132, 2668, 32, 2620, 1870, 15, 701, 12, 2433, 13, 6797, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2324, 67, 1884, 67, 11509, 12, 2890, 4672, 1363, 273, 365, 18, 11213, 18, 588, 67, 2620, 1435, 468, 1188, 1363, 15418, 273, 28132, 2668, 32, 2620, 1870, 15, 701, 12, 2433, 13, 6797, 17...
print 'Getting page failed'
error('Getting page failed')
def load_pages(force_update = False): for page, path in exclusion_file_list(): try: if not os.path.exists(path): print 'Creating file \'%s\' (%s)' % (wikipedia.shortpath(path), page.aslink()) force_update = True else: file_age = time.time() - os.path.getmtime(path) if file_age > 24 * 60 * 60: print 'Updating file \'%s\...
df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7267, 12, 5734, 67, 2725, 273, 1083, 4672, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 775, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1172, 296, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7267, 12, 5734, 67, 2725, 273, 1083, 4672, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 775, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1172, 296, 1...
def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes):
def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes, clobber_dr_vals=True):
def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes): """Raise BadDestroyMap if necessary, update dr_vals""" destroyed_idx_list = [] destroy_map = getattr(node.op, 'destroy_map', {}) for o_pos, i_pos_list in destroy_map.iteritems(): destroyed_idx_list.extend(i_pos_list) destroyed_res_list = [node.inputs[...
faee95e762012333695105ab3daa816283b05e9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/faee95e762012333695105ab3daa816283b05e9d/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 10029, 12, 2159, 16, 2502, 67, 1458, 16, 436, 67, 4524, 16, 5081, 67, 4524, 16, 2695, 67, 4690, 16, 30152, 67, 3069, 67, 4524, 33, 5510, 4672, 3536, 30570, 6107, 10740, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 10029, 12, 2159, 16, 2502, 67, 1458, 16, 436, 67, 4524, 16, 5081, 67, 4524, 16, 2695, 67, 4690, 16, 30152, 67, 3069, 67, 4524, 33, 5510, 4672, 3536, 30570, 6107, 10740, ...
break
continue
def rec(x): for i in x.index_set(): child = x.f(i); if child is None: break hasParent = False; for j in x.index_set(): if j == i: break if not child.e(j) == None: hasParent = True break if hasParent: break; if child is not None: for y in rec(child): yield y;
afa3801ebd748353dbe98466a085b4308a9aaf03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/afa3801ebd748353dbe98466a085b4308a9aaf03/crystals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1950, 12, 92, 4672, 364, 277, 316, 619, 18, 1615, 67, 542, 13332, 1151, 273, 619, 18, 74, 12, 77, 1769, 309, 1151, 353, 599, 30, 1324, 711, 3054, 273, 1083, 31, 364, 525, 316, 619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1950, 12, 92, 4672, 364, 277, 316, 619, 18, 1615, 67, 542, 13332, 1151, 273, 619, 18, 74, 12, 77, 1769, 309, 1151, 353, 599, 30, 1324, 711, 3054, 273, 1083, 31, 364, 525, 316, 619, ...
cmdclass = {
cmdclass = {
def run(self): # create startup script start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (opj(self.install_libbase, "openerp-server"), sys.executable) # write script f = open('openerp-server', 'w') f.write(start_script) f.close() install.run(self)
dfac979620bbcfaa34b0a00371dd5aa7d6f6d544 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/dfac979620bbcfaa34b0a00371dd5aa7d6f6d544/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 2...
if not self.atlas_cmtconfig in self.exclude_from_user_area: self.exclude_from_user_area.append( self.atlas_cmtconfig ) logger.debug("Remvoing cmt created directories %s from tarfile" % self.atlas_cmtconfig)
def prepare(self, athena_compile=True, NG=False, **options): """Prepare the job from the user area"""
acf582ef3001b5fad4cee4cdd86cbeb86fd8eef7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/acf582ef3001b5fad4cee4cdd86cbeb86fd8eef7/Athena.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 16, 225, 421, 24457, 67, 11100, 33, 5510, 16, 423, 43, 33, 8381, 16, 2826, 2116, 4672, 3536, 7543, 326, 1719, 628, 326, 729, 5091, 8395, 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, 2911, 12, 2890, 16, 225, 421, 24457, 67, 11100, 33, 5510, 16, 423, 43, 33, 8381, 16, 2826, 2116, 4672, 3536, 7543, 326, 1719, 628, 326, 729, 5091, 8395, 2, -100, -100, -100, -100, -100...
as necessary.
where necessary.
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert an argument tuple or a Fault instance to an XML-RPC request (or response, if the methodresponse option is used). In addition to the data object, the following options can be given as keyword arguments...
3edebf5466fcffcb907147e1bee2a0d7cb258fc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3edebf5466fcffcb907147e1bee2a0d7cb258fc6/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 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, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, ...
url1 = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title2.html')) url2 = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html'))
url1 = self.GetFileURLForDataPath('title2.html') url2 = self.GetFileURLForDataPath('title1.html')
def testSelect(self): """Verify omnibox popup selection.""" url1 = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title2.html')) url2 = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) title1 = 'Title Of Awesomeness' self.NavigateToURL(url1) self.NavigateToURL(url2) matches = self._GetOmniboxMa...
0d3995a34bdc2c93f537155d491227d1b9b86aff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/0d3995a34bdc2c93f537155d491227d1b9b86aff/omnibox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3391, 12, 2890, 4672, 3536, 8097, 8068, 82, 495, 2409, 10431, 4421, 12123, 880, 21, 273, 365, 18, 967, 812, 1785, 1290, 751, 743, 2668, 2649, 22, 18, 2620, 6134, 880, 22, 273, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3391, 12, 2890, 4672, 3536, 8097, 8068, 82, 495, 2409, 10431, 4421, 12123, 880, 21, 273, 365, 18, 967, 812, 1785, 1290, 751, 743, 2668, 2649, 22, 18, 2620, 6134, 880, 22, 273, 36...
system.exit( exitStatus )
sys.exit( exitStatus )
def runTests( self ) : try: import maya.standalone maya.standalone.initialize( name='IECoreMayaTest' ) except: sys.stderr.write( "Failed to initialize Maya %s in standalone application" % ( os.environ["MAYA_VERSION"] ) ) raise import maya.cmds maya.cmds.loadPlugin( "ieCore" ) if not self.testRunner: self.testRunner =...
23f1f10e84d90bc6848bae66e5b0dc5cab2d385e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/23f1f10e84d90bc6848bae66e5b0dc5cab2d385e/MayaUnitTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 14650, 12, 365, 262, 294, 775, 30, 1930, 2026, 69, 18, 10145, 12451, 2026, 69, 18, 10145, 12451, 18, 11160, 12, 508, 2218, 8732, 4670, 49, 528, 69, 4709, 11, 262, 1335, 30, 2589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14650, 12, 365, 262, 294, 775, 30, 1930, 2026, 69, 18, 10145, 12451, 2026, 69, 18, 10145, 12451, 18, 11160, 12, 508, 2218, 8732, 4670, 49, 528, 69, 4709, 11, 262, 1335, 30, 2589,...
@return: The id of the originalFile. (ID object, not value)
@return: The id of the originalFileLink child. (ID object, not value)
def uploadAndAttachFile(queryService, updateService, rawFileStore, parent, output, format, description=None): """ Uploads a local file to the server, as an Original File and attaches it to the parent (Project, Dataset or Image) @param queryService: The query service @param updateService: The update service @param rawF...
dbc30d8ec28fb369108468d301b49cf80bb87376 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/dbc30d8ec28fb369108468d301b49cf80bb87376/script_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 1876, 4761, 812, 12, 2271, 1179, 16, 1089, 1179, 16, 1831, 812, 2257, 16, 982, 16, 876, 16, 740, 16, 2477, 33, 7036, 4672, 3536, 9414, 87, 279, 1191, 585, 358, 326, 1438, 16, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 1876, 4761, 812, 12, 2271, 1179, 16, 1089, 1179, 16, 1831, 812, 2257, 16, 982, 16, 876, 16, 740, 16, 2477, 33, 7036, 4672, 3536, 9414, 87, 279, 1191, 585, 358, 326, 1438, 16, 4...
Output("self->ob_type->tp_base->tp_dealloc((PyObject *)self);")
Output("%s.tp_dealloc((PyObject *)self);", self.basetype)
def outputDealloc(self): Output() Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype) OutLbrace() self.outputCleanupStructMembers() if self.basetype: Output("self->ob_type->tp_base->tp_dealloc((PyObject *)self);") elif hasattr(self, 'output_tp_free'): # This is a new-style object with tp_free slot ...
de130e236ac4e5da812760f65fc17704d4dab115 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/de130e236ac4e5da812760f65fc17704d4dab115/bgenObjectDefinition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 758, 9853, 12, 2890, 4672, 3633, 1435, 3633, 2932, 3845, 918, 738, 87, 67, 323, 9853, 9275, 87, 380, 2890, 2225, 16, 365, 18, 3239, 16, 365, 18, 1612, 723, 13, 2976, 48, 70, 996...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 758, 9853, 12, 2890, 4672, 3633, 1435, 3633, 2932, 3845, 918, 738, 87, 67, 323, 9853, 9275, 87, 380, 2890, 2225, 16, 365, 18, 3239, 16, 365, 18, 1612, 723, 13, 2976, 48, 70, 996...
look.j = next.j + krawly krawly = -krawly
look.j = next.j + krawlj krawlj = -krawlj
def movebaddy(enemy): "Tactical movement for the bad guys." next = coord(); look = coord() irun = False # This should probably be just (game.quadrant in game.state.kcmdr) + (game.state.kscmdr==game.quadrant) if game.skill >= SKILL_EXPERT: nbaddys = (((game.quadrant in game.state.kcmdr)*2 + (game.state.kscmdr==game.quad...
9166a6df132fa18c32881b2019e1fcc41716a3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/9166a6df132fa18c32881b2019e1fcc41716a3ab/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
import unittest module = _normalize_module(module) tests = _find_tests(module)
def __init__(self, tester, name, doc, filename, lineno, setUp=None, tearDown=None): unittest.TestCase.__init__(self) (self.__tester, self.__name, self.__doc, self.__filename, self.__lineno, self.__setUp, self.__tearDown ) = tester, name, doc, filename, lineno, setUp, tearDown def setUp(self): if self.__setUp is not No...
def DocTestSuite(module=None): """Convert doctest tests for a module to a unittest TestSuite. The returned TestSuite is to be run by the unittest framework, and runs each doctest in the module. If any of the doctests fail, then the synthesized unit test fails, and an error is raised showing the name of the file conta...
1323871f770a1332c44031c18abe670abdf6c641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1323871f770a1332c44031c18abe670abdf6c641/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 4709, 13587, 12, 2978, 33, 7036, 4672, 3536, 2723, 31263, 395, 7434, 364, 279, 1605, 358, 279, 2836, 3813, 7766, 13587, 18, 225, 1021, 2106, 7766, 13587, 353, 358, 506, 1086, 635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 4709, 13587, 12, 2978, 33, 7036, 4672, 3536, 2723, 31263, 395, 7434, 364, 279, 1605, 358, 279, 2836, 3813, 7766, 13587, 18, 225, 1021, 2106, 7766, 13587, 353, 358, 506, 1086, 635, ...
f = open(self.tmpin, 'rb')
f = open(self.tmpin, 'r')
def test_decodetwice(self): # Verify that decode() will refuse to overwrite an existing file try: f = cStringIO.StringIO(encodedtextwrapped % (0644, self.tmpout))
3fa5e6ee4527219a9351413ac6ba425be8ea5dd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3fa5e6ee4527219a9351413ac6ba425be8ea5dd8/test_uu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 323, 1559, 278, 91, 1812, 12, 2890, 4672, 468, 8553, 716, 2495, 1435, 903, 1278, 1202, 358, 6156, 392, 2062, 585, 775, 30, 284, 273, 276, 780, 4294, 18, 780, 4294, 12, 10787,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 323, 1559, 278, 91, 1812, 12, 2890, 4672, 468, 8553, 716, 2495, 1435, 903, 1278, 1202, 358, 6156, 392, 2062, 585, 775, 30, 284, 273, 276, 780, 4294, 18, 780, 4294, 12, 10787,...
def url2link(percentname,incode,code):
def url2link(percentname, incode, code):
def url2link(percentname,incode,code): """Convert a url-name of a page into a proper name for an interwiki link the argument 'incode' specifies the encoding of the target wikipedia """ result = underline2space(percentname) x = url2unicode(result, language = code) e = code2encoding(incode) if e == 'utf-8': # utf-8 can h...
713cd30d5f8de84645fe8dcc2c11b8a7f4bf5b21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/713cd30d5f8de84645fe8dcc2c11b8a7f4bf5b21/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 22, 1232, 12, 8849, 529, 16, 316, 710, 16, 981, 4672, 3536, 2723, 279, 880, 17, 529, 434, 279, 1363, 1368, 279, 5338, 508, 364, 392, 1554, 13044, 1692, 326, 1237, 296, 267, 710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 22, 1232, 12, 8849, 529, 16, 316, 710, 16, 981, 4672, 3536, 2723, 279, 880, 17, 529, 434, 279, 1363, 1368, 279, 5338, 508, 364, 392, 1554, 13044, 1692, 326, 1237, 296, 267, 710, ...
simulationOptions = self.getConfigSetting("testRun/simulationOptions", None)
simulationOptions = self.getConfigSetting("testRun/simulationOptions", []) simulationOptions.append("branch=%s" %self.getConfigSetting("testRun/branch", "unknown branch"))
def getSimulationConfig(self, autName, configKey, browserConf): self.log.info("Getting configuration for %s on %s" %(autName,browserConf["browserId"])) #currentAppConf = self.configuration["testRun"][configKey][autName] currentAppConf = self.getConfigSetting("testRun/%s/%s" %(configKey,autName)) simConf = { "javaBin" :...
735372c8fdecb60ff4660254b2e95c1111266cf8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/735372c8fdecb60ff4660254b2e95c1111266cf8/testing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 381, 6234, 809, 12, 2890, 16, 2059, 461, 16, 26796, 16, 4748, 3976, 4672, 365, 18, 1330, 18, 1376, 2932, 19213, 1664, 364, 738, 87, 603, 738, 87, 6, 8975, 5854, 461, 16, 11213, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 381, 6234, 809, 12, 2890, 16, 2059, 461, 16, 26796, 16, 4748, 3976, 4672, 365, 18, 1330, 18, 1376, 2932, 19213, 1664, 364, 738, 87, 603, 738, 87, 6, 8975, 5854, 461, 16, 11213, ...
return {'value': {'factor': round(1/value['rate'], 6)}}
return {'factor': round(1/value['rate'], 6)} def _compute_qty(self, cursor, user, from_uom_id, qty, to_uom=False): """ Convert quantity for given uom's. from_uom and to_uom should be browse records. """ if not from_uom or not qty or not to_uom: return qty if from_uom.category.id <> to_uom.category.id: return qty if f...
def on_change_rate(self, cursor, user, ids, value, context=None): if value.get('rate', 0.0) == 0.0: return {'value': {'factor': 0}} return {'value': {'factor': round(1/value['rate'], 6)}}
ad6647255915d0fc47af43833b256f3b40803254 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/533/ad6647255915d0fc47af43833b256f3b40803254/uom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 5141, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 460, 16, 819, 33, 7036, 4672, 309, 460, 18, 588, 2668, 5141, 2187, 374, 18, 20, 13, 422, 374, 18, 20, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 5141, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 460, 16, 819, 33, 7036, 4672, 309, 460, 18, 588, 2668, 5141, 2187, 374, 18, 20, 13, 422, 374, 18, 20, 30, 327, ...
self._snapshot = (dec_flags, input_chunk, len(decoded))
self._snapshot = (dec_flags, input_chunk)
def seek(self, cookie, whence=0): if not self._seekable: raise IOError("underlying stream is not seekable") if whence == 1: # seek relative to current position if cookie != 0: raise IOError("can't do nonzero cur-relative seeks") # Seeking to the current position should attempt to # sync the underlying buffer with the c...
420084188486cbed54ef83ecc334c8781c1f1af3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/420084188486cbed54ef83ecc334c8781c1f1af3/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 3878, 16, 23692, 33, 20, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 23692, 422, 404, 30, 468, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 3878, 16, 23692, 33, 20, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 23692, 422, 404, 30, 468, 65...
ThreshKByte = int(rspec.get('net_thresh_kbyte', default_ThreshKByte))
ThreshKByte = int(rspec.get('net_thresh_kbyte', (MaxKByte * .8)))
def updateSliceAttributes(self, rspec): ''' Use respects from GetSlivers to PLC to populate slice object. Also do some sanity checking. '''
e17ccfdb44360782bd91e02b3b1df8cafb675f28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6995/e17ccfdb44360782bd91e02b3b1df8cafb675f28/bwmon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 5959, 2498, 12, 2890, 16, 436, 2793, 4672, 9163, 2672, 8762, 87, 628, 968, 3738, 6760, 358, 453, 13394, 358, 6490, 2788, 733, 18, 225, 8080, 741, 2690, 16267, 6728, 18, 9163, 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, 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, 1089, 5959, 2498, 12, 2890, 16, 436, 2793, 4672, 9163, 2672, 8762, 87, 628, 968, 3738, 6760, 358, 453, 13394, 358, 6490, 2788, 733, 18, 225, 8080, 741, 2690, 16267, 6728, 18, 9163, 2, ...
try: self.debug.show("m_id: %s" % m_id) except: self.debug.show("m_id: Bad UNICODE character")
def populate_with_results(self): w = self.widgets['add'] m_id = None if self.founded_results_id: self.debug.show("self.founded:results_id: %s" % self.founded_results_id) m_id = self.founded_results_id else: self.founded_results_id = 0 treeselection = self.widgets['results']['treeview'].get_selection() (tmp_model, tmp_i...
857111b23ef0b8ccb47e27488f526f4d8dfedbb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/857111b23ef0b8ccb47e27488f526f4d8dfedbb2/add.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 1918, 67, 4717, 12, 2890, 4672, 341, 273, 365, 18, 18148, 3292, 1289, 3546, 312, 67, 350, 273, 599, 309, 365, 18, 74, 12002, 67, 4717, 67, 350, 30, 365, 18, 4148, 18, 4500,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 1918, 67, 4717, 12, 2890, 4672, 341, 273, 365, 18, 18148, 3292, 1289, 3546, 312, 67, 350, 273, 599, 309, 365, 18, 74, 12002, 67, 4717, 67, 350, 30, 365, 18, 4148, 18, 4500,...
line1 = " +--------------+\n" line2 = " | %s %s %s |\n"%(lst[0],lst[1],lst[2]) line3 = " | %s top %s |\n"%(lst[3],lst[4]) line4 = " | %s %s %s |\n"%(lst[5],lst[6],lst[7]) line5 = " +--------------+--------------+----...
line1 = " +--------------+\n" line2 = " |%3d %3d %3d |\n"%(lst[0],lst[1],lst[2]) line3 = " |%3d top %3d |\n"%(lst[3],lst[4]) line4 = " |%3d %3d %3d |\n"%(lst[5],lst[6],lst[7]) line5 = "+------------+--------------+-------------+------------+\n" line6 = "|%3d %...
def display2d(self,mv): r""" Displays a 2d map of the Rubik's cube after the move mv has been made. Nothing is returned. EXAMPLES: sage: rubik = CubeGroup() sage: rubik.display2d("") +--------------+ | 1 2 3 | | 4 top 5 | | 6 7 8 | +--------------+--------------+--------------+--------------+ | 9 ...
6b71d6fb1b3d052821fa84e1e42ffabbd5a16187 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6b71d6fb1b3d052821fa84e1e42ffabbd5a16187/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 22, 72, 12, 2890, 16, 17509, 4672, 436, 8395, 9311, 87, 279, 576, 72, 852, 434, 326, 534, 373, 1766, 1807, 18324, 1839, 326, 3635, 7701, 711, 2118, 7165, 18, 13389, 353, 2106, 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, 2562, 22, 72, 12, 2890, 16, 17509, 4672, 436, 8395, 9311, 87, 279, 576, 72, 852, 434, 326, 534, 373, 1766, 1807, 18324, 1839, 326, 3635, 7701, 711, 2118, 7165, 18, 13389, 353, 2106, 18...
done, to_do = _req_pac_check(dep, "dep") if done and not done in pacs_queues["add"]: pacs_queues["add"].append(done)
done, to_do = self._execute_dep_check(dep, "dep") if done and not done in queue: queue.append(done)
def _req_pac_check(to_check, flag): to_do = []
fb043dc1229bc5467516bc193644c0d02ad942fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/fb043dc1229bc5467516bc193644c0d02ad942fd/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3658, 67, 84, 1077, 67, 1893, 12, 869, 67, 1893, 16, 2982, 4672, 358, 67, 2896, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3658, 67, 84, 1077, 67, 1893, 12, 869, 67, 1893, 16, 2982, 4672, 358, 67, 2896, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
dialog = gtk.Dialog(_('Confirmation'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG,)
dialog = gtk.Dialog(_('Confirmation'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
def sur(msg, parent): dialog = gtk.Dialog(_('Confirmation'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG,) dialog.set_icon(TRYTON_ICON) dialog.set_size_request(350, 143) hbox = gtk.HBox() image = gtk.Image() image.set_from_stock('tryton-dial...
bf70d1dcb2e37a22e80a16f76c2a6a9fef3fe232 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/bf70d1dcb2e37a22e80a16f76c2a6a9fef3fe232/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5056, 12, 3576, 16, 982, 4672, 6176, 273, 22718, 18, 6353, 24899, 2668, 17597, 19899, 982, 16, 22718, 18, 2565, 18683, 67, 6720, 1013, 571, 22718, 18, 2565, 18683, 67, 1639, 25870, 61, 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, 5056, 12, 3576, 16, 982, 4672, 6176, 273, 22718, 18, 6353, 24899, 2668, 17597, 19899, 982, 16, 22718, 18, 2565, 18683, 67, 6720, 1013, 571, 22718, 18, 2565, 18683, 67, 1639, 25870, 61, 6...
s += space(False,result=s) return s
r += cls.space(False,result=r) return r
def opening(self, node): s = u'' # for loop if node.parent.type == "loop" and node.parent.get("loopType") == "FOR": if node.parent.get("forVariant") == "iter": if not node.parent.hasChild("first") and not node.parent.hasChild("second") and not node.parent.hasChild("third"): s += write("(;;");
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 468, 364, 2798, 309, 756, 18, 2938, 18, 723, 422, 315, 6498, 6, 471, 756, 18, 2938, 18, 588, 2932, 6498, 559, 7923, 422, 315, 747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 468, 364, 2798, 309, 756, 18, 2938, 18, 723, 422, 315, 6498, 6, 471, 756, 18, 2938, 18, 588, 2932, 6498, 559, 7923, 422, 315, 747...
not self.instance.path or not self.instance.mirror_path):
not self.instance.path):
def _populate_hosting_service_fields(self): if (not self.instance or not self.instance.path or not self.instance.mirror_path): return
f045740583e00bb068a26c53b1dce282f7356891 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/f045740583e00bb068a26c53b1dce282f7356891/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19936, 67, 31415, 67, 3278, 67, 2821, 12, 2890, 4672, 309, 261, 902, 365, 18, 1336, 578, 486, 365, 18, 1336, 18, 803, 4672, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19936, 67, 31415, 67, 3278, 67, 2821, 12, 2890, 4672, 309, 261, 902, 365, 18, 1336, 578, 486, 365, 18, 1336, 18, 803, 4672, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
elif key_info.type == 11:
elif key_info.type == 1:
def configkeys(self): """ Returns list of all available config keys that can be passed to contructor. List contains a 3-tuples: 1. key name 2. default value of type: * bool * int * string * list of string 3. short description if None, then this key is undocumented is should not be used, unless one know what really do ...
e65d0e0d20572dccf9e931d56a11df6b77a2a5e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9112/e65d0e0d20572dccf9e931d56a11df6b77a2a5e3/pyaspell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 2452, 12, 2890, 4672, 3536, 2860, 666, 434, 777, 2319, 642, 1311, 716, 848, 506, 2275, 358, 356, 8813, 280, 18, 225, 987, 1914, 279, 890, 17, 17705, 30, 404, 18, 498, 508, 576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 2452, 12, 2890, 4672, 3536, 2860, 666, 434, 777, 2319, 642, 1311, 716, 848, 506, 2275, 358, 356, 8813, 280, 18, 225, 987, 1914, 279, 890, 17, 17705, 30, 404, 18, 498, 508, 576, ...
>>> result = ts.run()
>>> result = ts.apply_async()
def apply_async(self, connect_timeout=conf.BROKER_CONNECTION_TIMEOUT): """Run all tasks in the taskset.
721ec9475ab8769598d0fffe1651fa020acf9b96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/721ec9475ab8769598d0fffe1651fa020acf9b96/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 3810, 12, 2890, 16, 3077, 67, 4538, 33, 3923, 18, 38, 1457, 27221, 67, 15461, 67, 9503, 4672, 3536, 1997, 777, 4592, 316, 326, 1562, 542, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 3810, 12, 2890, 16, 3077, 67, 4538, 33, 3923, 18, 38, 1457, 27221, 67, 15461, 67, 9503, 4672, 3536, 1997, 777, 4592, 316, 326, 1562, 542, 18, 2, -100, -100, -100, -100, -100,...
'[Wlan-Lj] ' + (_("Router images for %s/%s") % (d['hostname'], d['ip'])),
_("Router images for %s/%s") % (d['hostname'], d['ip']),
def generate_image(d): """ Generates an image accoording to given configuration. """ print d if d['imagebuilder'] not in IMAGEBUILDERS: raise Exception("Invalid imagebuilder specified!") x = OpenWrtConfig() x.setOpenwrtVersion(d['openwrt_ver']) x.setArch(d['arch']) x.setWifiIface(d['iface_wifi'], d['driver'], d['chann...
21dafeeb885fa100697013f04a781b918e474d45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/21dafeeb885fa100697013f04a781b918e474d45/gennyd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2730, 12, 72, 4672, 3536, 31902, 392, 1316, 4078, 83, 517, 310, 358, 864, 1664, 18, 3536, 1172, 302, 309, 302, 3292, 2730, 9574, 3546, 486, 316, 10757, 3000, 2627, 4179, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2730, 12, 72, 4672, 3536, 31902, 392, 1316, 4078, 83, 517, 310, 358, 864, 1664, 18, 3536, 1172, 302, 309, 302, 3292, 2730, 9574, 3546, 486, 316, 10757, 3000, 2627, 4179, 55, ...
whole_image_md5sum = ppm_utils.image_md5sum(w, h, data)
def barrier_2(vm, words, params, debug_dir, data_scrdump_filename, current_step_num): if len(words) < 7: logging.error("Bad barrier_2 command line") return False cmd, dx, dy, x1, y1, md5sum, timeout = words[:7] dx, dy, x1, y1, timeout = map(int, [dx, dy, x1, y1, timeout]) # Timeout/5 is the time it took stepmaker to ...
ae93fca4978f7039ed284423b6f810d075b79a89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/ae93fca4978f7039ed284423b6f810d075b79a89/kvm_guest_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24651, 67, 22, 12, 3489, 16, 4511, 16, 859, 16, 1198, 67, 1214, 16, 501, 67, 24638, 8481, 67, 3459, 16, 783, 67, 4119, 67, 2107, 4672, 309, 562, 12, 3753, 13, 411, 2371, 30, 2907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24651, 67, 22, 12, 3489, 16, 4511, 16, 859, 16, 1198, 67, 1214, 16, 501, 67, 24638, 8481, 67, 3459, 16, 783, 67, 4119, 67, 2107, 4672, 309, 562, 12, 3753, 13, 411, 2371, 30, 2907, ...
if request.method == 'POST': return redirect('videosscreenedinscreening') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id") videosscreenedinscreening = VideosScreenedInScreening.objects.filter(screening__in = screenings).distinct().order...
if request.method == 'POST': return redirect('videosscreenedinscreening') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id") videosscreenedinscreening = VideosScreenedInScreening.objects.filter(screening__in = screenings).distinct().order...
def get_videosscreenedinscreening_online(request, offset, limit): if request.method == 'POST': return redirect('videosscreenedinscreening') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id") videosscreenedinscreening = VideosScreenedInScr...
7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6768, 538, 9252, 329, 267, 9252, 310, 67, 21026, 12, 2293, 16, 1384, 16, 1800, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 327, 3136, 2668, 6768, 538, 9252, 329, 267, 9252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6768, 538, 9252, 329, 267, 9252, 310, 67, 21026, 12, 2293, 16, 1384, 16, 1800, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 327, 3136, 2668, 6768, 538, 9252, 329, 267, 9252...
h = scale.Huber(norm=scale.norms.HuberT()) yield nptest.assert_almost_equal, scale.huber(chem)[0], h(chem)[0], 3 yield nptest.assert_almost_equal, scale.huber(chem)[1], h(chem)[1], 3
n = scale.norms.HuberT() n.t = 1.5 h = scale.Huber(norm=n) yield nptest.assert_almost_equal, scale.huber(chem)[0], h(chem)[0], 5 yield nptest.assert_almost_equal, scale.huber(chem)[1], h(chem)[1], 5
def test_chem(): """ MAD test from chem data set, using value in Venables & Ripley """ yield nptest.assert_almost_equal, np.mean(chem), 4.2804, 4 yield nptest.assert_almost_equal, np.median(chem), 3.385, 4 yield nptest.assert_almost_equal, scale.MAD(chem), 0.52632, 5 yield nptest.assert_almost_equal, scale.huber(chem)[...
0daaddf4280b13a100e92178320b4e9e0a8d37af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12658/0daaddf4280b13a100e92178320b4e9e0a8d37af/test_scale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1036, 13332, 3536, 490, 1880, 1842, 628, 19028, 501, 444, 16, 1450, 460, 316, 776, 275, 1538, 473, 534, 2444, 93, 3536, 2824, 290, 337, 395, 18, 11231, 67, 287, 10329, 67, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1036, 13332, 3536, 490, 1880, 1842, 628, 19028, 501, 444, 16, 1450, 460, 316, 776, 275, 1538, 473, 534, 2444, 93, 3536, 2824, 290, 337, 395, 18, 11231, 67, 287, 10329, 67, 97...
def _genEraseOps(self, list):
def _genEraseOps(self, list2):
def _genEraseOps(self, list): """Return a list of (operation, RpmPackage) for erasing RpmPackage's in list.""" if len(list) == 1: return [(OP_ERASE, list[0])] return RpmOrderer({}, {}, {}, list, self.resolver).order()
e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 41, 5648, 8132, 12, 2890, 16, 666, 22, 4672, 3536, 990, 279, 666, 434, 261, 7624, 16, 534, 7755, 2261, 13, 364, 6445, 11730, 534, 7755, 2261, 1807, 316, 666, 12123, 309, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 41, 5648, 8132, 12, 2890, 16, 666, 22, 4672, 3536, 990, 279, 666, 434, 261, 7624, 16, 534, 7755, 2261, 13, 364, 6445, 11730, 534, 7755, 2261, 1807, 316, 666, 12123, 309, 562...
sources = ['scipy_base.fastumathmodule.c','isnan.c']
sources = ['fastumathmodule.c','isnan.c']
def configuration(parent_package=''): parent_path = parent_package if parent_package: parent_package += '.' local_path = get_path(__name__) config = default_config_dict() config['packages'].append(parent_package+'scipy_base') config['package_dir'][parent_package+'scipy_base'] = local_path config['packages'].append(do...
38dbd4ba524b7d7f617b7ee5516b762cca431b23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/38dbd4ba524b7d7f617b7ee5516b762cca431b23/setup_scipy_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 982, 67, 803, 273, 982, 67, 5610, 309, 982, 67, 5610, 30, 982, 67, 5610, 1011, 2611, 1191, 67, 803, 273, 336, 67, 803, 12, 972, 529, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 982, 67, 803, 273, 982, 67, 5610, 309, 982, 67, 5610, 30, 982, 67, 5610, 1011, 2611, 1191, 67, 803, 273, 336, 67, 803, 12, 972, 529, 972, ...
>>> dump_tokens("01234567 > ~0x15") NUMBER '01234567' (1, 0) (1, 8) OP '>' (1, 9) (1, 10) OP '~' (1, 11) (1, 12) NUMBER '0x15' (1, 12) (1, 16) >>> dump_tokens("2134568 != 01231515")
>>> dump_tokens("1234567 > ~0x15") NUMBER '1234567' (1, 0) (1, 7) OP '>' (1, 8) (1, 9) OP '~' (1, 10) (1, 11) NUMBER '0x15' (1, 11) (1, 15) >>> dump_tokens("2134568 != 1231515")
... " def y(m): # A whitespace after the colon\\n"
cedf78e3b25d0a1162d649c68d90c601037f4456 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/cedf78e3b25d0a1162d649c68d90c601037f4456/test_tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
_FREEBSD = "freebsd" in sys.platform
_LINUX = "linux" in sys.platform
from pypy.interpreter.typedef import TypeDef
67b1de1c1b416bd2c975fb525426ce0417f74386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/67b1de1c1b416bd2c975fb525426ce0417f74386/interp_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 628, 18951, 93, 18, 2761, 11599, 18, 723, 536, 1930, 1412, 3262, 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, 628, 18951, 93, 18, 2761, 11599, 18, 723, 536, 1930, 1412, 3262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def __init__(self, map, file, callback):
def __init__(self, map, file, handler):
def __init__(self, map, file, callback): # Add self to map map[file.fileno()] = self self.handle_read_event = callback
04a1448feda26fc31294d57ea17d771d9b643819 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/04a1448feda26fc31294d57ea17d771d9b643819/pymplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 852, 16, 585, 16, 1838, 4672, 468, 1436, 365, 358, 852, 852, 63, 768, 18, 7540, 5764, 1435, 65, 273, 365, 365, 18, 4110, 67, 896, 67, 2575, 273, 1348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 852, 16, 585, 16, 1838, 4672, 468, 1436, 365, 358, 852, 852, 63, 768, 18, 7540, 5764, 1435, 65, 273, 365, 365, 18, 4110, 67, 896, 67, 2575, 273, 1348, ...
stdout=PIPE, stderr=STDOUT,
stdout=PIPE, stderr=PIPE,
def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None)) return if not quiet: print test sys.stdout.flush() # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.du...
0b02e9b20963e971a27586451a3eca5bdacf38dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/0b02e9b20963e971a27586451a3eca5bdacf38dc/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
(r'/(IP|CP-CND)/=P < {/-TPC-\d+:t$/a=T $ /(IP|CP-CND)/=S}', self.fix_topicalisation_with_gap), (r'/(IP|CP-CND)/=P < {/-TPC:T$/a=T $ /(IP|CP-CND)/=S }', self.fix_topicalisation_without_gap),
(r'/(IP|CP-CND)/=P < {/-TPC-\d+:t$/a=T $ /(IP|CP-CND)/=S }', self.fix_topicalisation_with_gap), (r'/(IP|CP-CND)/=P < {/-TPC:T$/a=T $ /(IP|CP-CND)/=S }', self.fix_topicalisation_without_gap),
def pattern(self): return list(( # /VP/ < { /VP:c/ < /V[PVEC]|VRD|VSB|VCD/ < /NP/=NP < /QP/=QP } < { /VP:c/ < /NP/ < /QP/ ! < /V[PVEC]|VRD|VSB|VCD/ } # must come before object extraction (r'*=TOP $ /-SBJ-d+/a=N < { * < /LB/=BEI } << { /NP-(?:TPC|OBJ)/ < ^/\*/ $ /V[PV]|VRD|VSB|VCD/=PRED }', self.fix_reduced_long_bei_gap...
6550bb6489583e5c02c61dbb907bc6e2b4b74174 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8383/6550bb6489583e5c02c61dbb907bc6e2b4b74174/fix_rc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1936, 12, 2890, 4672, 327, 666, 12443, 468, 342, 26152, 19, 411, 288, 342, 26152, 30, 71, 19, 411, 342, 58, 63, 52, 3412, 39, 12369, 10986, 40, 96, 58, 14541, 96, 58, 10160, 19, 411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1936, 12, 2890, 4672, 327, 666, 12443, 468, 342, 26152, 19, 411, 288, 342, 26152, 30, 71, 19, 411, 342, 58, 63, 52, 3412, 39, 12369, 10986, 40, 96, 58, 14541, 96, 58, 10160, 19, 411,...
class DbUserExporter(bulkloader.Exporter):
class AppEngineDbUserExporter(bulkloader.Exporter):
def __init__(self): bulkloader.Loader.__init__(self, 'DbUser', [('email', str) ])
f52986380d28d283aa7e99a55fe860d0af45b9b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10256/f52986380d28d283aa7e99a55fe860d0af45b9b6/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 8280, 6714, 18, 2886, 16186, 2738, 972, 12, 2890, 16, 296, 4331, 1299, 2187, 306, 2668, 3652, 2187, 609, 13, 308, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 8280, 6714, 18, 2886, 16186, 2738, 972, 12, 2890, 16, 296, 4331, 1299, 2187, 306, 2668, 3652, 2187, 609, 13, 308, 13, 2, -100, -100, -100, -100, -100, ...
"""Id should not be changed unless _at_rename_after_creation is set on the class."""
def test_id_change_with_without_marker(self): """Id should not be changed unless _at_rename_after_creation is set on the class.""" # Make our content type use auto generated ids from Products.Archetypes.examples.DDocument import DDocument try: del DDocument._at_rename_after_creation except (AttributeError, KeyError): p...
877f9050e50315c7f6aa342d4748c5a66f5e1d37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/877f9050e50315c7f6aa342d4748c5a66f5e1d37/test_functional.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 350, 67, 3427, 67, 1918, 67, 13299, 67, 11145, 12, 2890, 4672, 282, 468, 4344, 3134, 913, 618, 999, 3656, 4374, 3258, 628, 8094, 87, 18, 12269, 15180, 18, 16858, 18, 40, 2519...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 350, 67, 3427, 67, 1918, 67, 13299, 67, 11145, 12, 2890, 4672, 282, 468, 4344, 3134, 913, 618, 999, 3656, 4374, 3258, 628, 8094, 87, 18, 12269, 15180, 18, 16858, 18, 40, 2519...
vList.append( Violation(self, line.number, "failed '[&|+-*/]='") )
vList.append( Violation(self, line, "failed '[&|+-*/]='") )
def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines:
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 225, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 364, 980, 316, 2362, 30, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 225, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 364, 980, 316, 2362, 30, 2, -100, -100, ...
return if (cname, hash) not in self.packages[pname]:
if unknown:
def _handleClassInd(self, broker, codec, seq): kind = codec.read_uint8() pname = str(codec.read_str8()) cname = str(codec.read_str8()) hash = codec.read_bin128()
dc4e5689e88e42c1dc783761a2615aab45312cd6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/dc4e5689e88e42c1dc783761a2615aab45312cd6/qmfconsole.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 797, 3866, 12, 2890, 16, 8625, 16, 9196, 16, 3833, 4672, 3846, 225, 273, 9196, 18, 896, 67, 11890, 28, 1435, 19952, 273, 609, 12, 21059, 18, 896, 67, 701, 28, 10756, 18290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4110, 797, 3866, 12, 2890, 16, 8625, 16, 9196, 16, 3833, 4672, 3846, 225, 273, 9196, 18, 896, 67, 11890, 28, 1435, 19952, 273, 609, 12, 21059, 18, 896, 67, 701, 28, 10756, 18290, ...
self.assertEqual(self.execute('USER', 0),
self.assertEqual(self.execute('USER', 0).rstrip(),
def testUSER(self): self.assertEqual(self.execute('USER foo', 0), status_messages['PASS_REQUIRED']) self.assertEqual(self.execute('USER', 0), status_messages['ERR_ARGS'])
90d04321f031c84ce099735d79abab9afd55bb34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9635/90d04321f031c84ce099735d79abab9afd55bb34/test_ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4714, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 4714, 8431, 2187, 374, 3631, 1267, 67, 6833, 3292, 10884, 67, 14977, 19486, 365, 18, 11231, 5812, 12, 2890, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4714, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 4714, 8431, 2187, 374, 3631, 1267, 67, 6833, 3292, 10884, 67, 14977, 19486, 365, 18, 11231, 5812, 12, 2890, 18...
comment = self.ui.cmbTeamA.currenText() + ',' + self.ui.cmbTeamB.currentText() + ',' + self.ui.cmbChoice.currentText() + ',' + self.ui.dtDateMatch.date().toString(QtCore.Qt.ISODate)
comment = self.ui.cmbTeamA.currentText() + ',' + self.ui.cmbTeamB.currentText() + ',' + self.ui.cmbChoice.currentText() + ',' + self.ui.dtDateMatch.date().toString(QtCore.Qt.ISODate)
def BtnAdd_Clicked(self): """ Create the command to send to clipf and add it to the buffer. """ # parse comment? prod = self.ui.cmbProduct.currentText() if prod == 'bet.place': comment = self.ui.cmbTeamA.currenText() + ',' + self.ui.cmbTeamB.currentText() + ',' + self.ui.cmbChoice.currentText() + ',' + self.ui.dtDateMa...
8c7b134c941d42dbe493df1aca59b99543c3d7f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8618/8c7b134c941d42dbe493df1aca59b99543c3d7f8/lisa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 5088, 986, 67, 27633, 12, 2890, 4672, 3536, 1788, 326, 1296, 358, 1366, 358, 6807, 74, 471, 527, 518, 358, 326, 1613, 18, 3536, 468, 1109, 2879, 35, 10791, 273, 365, 18, 4881, 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, 605, 5088, 986, 67, 27633, 12, 2890, 4672, 3536, 1788, 326, 1296, 358, 1366, 358, 6807, 74, 471, 527, 518, 358, 326, 1613, 18, 3536, 468, 1109, 2879, 35, 10791, 273, 365, 18, 4881, 18,...
settings_defaults = {}
settings_defaults = {'output_encoding': 'latin-1'}
def setMode(self, mode): self.mode = mode
f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe/python_latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2309, 12, 2890, 16, 1965, 4672, 365, 18, 3188, 273, 1965, 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, 444, 2309, 12, 2890, 16, 1965, 4672, 365, 18, 3188, 273, 1965, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assert_(reuse == 0, "Error performing getsockopt.")
self.failIf(reuse != 0, "initial mode is reuse")
def testGetSockOpt(self): """Testing getsockopt().""" # We know a socket should start without reuse==0 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) reuse = sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) self.assert_(reuse == 0, "Error performing getsockopt.")
ddc3a9cbe4e4d25395318b17897b8adef97636d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ddc3a9cbe4e4d25395318b17897b8adef97636d3/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 55, 975, 6179, 12, 2890, 4672, 3536, 22218, 5571, 27844, 1435, 12123, 468, 1660, 5055, 279, 2987, 1410, 787, 2887, 11827, 631, 20, 7313, 273, 2987, 18, 7814, 12, 7814, 18, 679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 55, 975, 6179, 12, 2890, 4672, 3536, 22218, 5571, 27844, 1435, 12123, 468, 1660, 5055, 279, 2987, 1410, 787, 2887, 11827, 631, 20, 7313, 273, 2987, 18, 7814, 12, 7814, 18, 679...
method "PUT" -> view "put" <instance of BaseView>
method "PUT" -> view "http_put" <instance of BaseView>
def find_view_by_method(server, context): """Associating an uncommon HTTP or WebDAV method to a special view. method "PUT" -> view "put" <instance of BaseView> """ method_name = context.request.method context.view = context.resource.get_view(method_name.lower()) if context.view is None: raise NotImplemented
85ed0043246067c06d58033515bb2369ebebd11a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/85ed0043246067c06d58033515bb2369ebebd11a/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1945, 67, 1637, 67, 2039, 12, 3567, 16, 819, 4672, 3536, 5125, 1776, 392, 12704, 2586, 2239, 578, 2999, 17735, 707, 358, 279, 4582, 1476, 18, 707, 315, 4762, 6, 317, 1476, 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, 1104, 67, 1945, 67, 1637, 67, 2039, 12, 3567, 16, 819, 4672, 3536, 5125, 1776, 392, 12704, 2586, 2239, 578, 2999, 17735, 707, 358, 279, 4582, 1476, 18, 707, 315, 4762, 6, 317, 1476, 31...
b[i] = tuple(list(b[i]) + ['?']*100) c = b[i] eul = format(c, 13) reg = format(c, 2) plan = format(c, 16) perf = format(c, 19) vtran = format(c, 12) etran = format(c, 15)
eul = multiple_replace(to_bool,'%s'%b[i][13]) reg = multiple_replace(to_bool,'%s'%b[i][2]) plan = multiple_replace(to_bool,'%s'%b[i][16]) perf = multiple_replace(to_bool,'%s'%b[i][19]) vtran = multiple_replace(to_bool,'%s'%b[i][12]) etran = multiple_replace(to_bool,'%s'%b[i][15])
def display_all(self, query=None, layout='circular', graph6=None, num_vertices=None, \ num_edges=None, num_cycles=None, num_hamiltonian_cycles=None, \ eulerian=None, planar=None, perfect=None, lovasz_number=None, \ complement_graph6=None, aut_grp_size=None, num_orbits=None, \ num_fixed_points=None, vertex_transitive=No...
cbf0412a126348179163944ce2647c9b21bc6374 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/cbf0412a126348179163944ce2647c9b21bc6374/graph_database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 454, 12, 2890, 16, 843, 33, 7036, 16, 3511, 2218, 11614, 9559, 2187, 2667, 26, 33, 7036, 16, 818, 67, 17476, 33, 7036, 16, 521, 818, 67, 8746, 33, 7036, 16, 818, 67, 23976,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 454, 12, 2890, 16, 843, 33, 7036, 16, 3511, 2218, 11614, 9559, 2187, 2667, 26, 33, 7036, 16, 818, 67, 17476, 33, 7036, 16, 521, 818, 67, 8746, 33, 7036, 16, 818, 67, 23976,...
def loadStorage(cls, actioncls, filename):
def loadStorage(cls, actioncls):
def loadStorage(cls, actioncls, filename): storage=[] pathname = cls.getFile(filename) try: fh=open(pathname) for line in fh: storage.append(line.decode('utf8').rstrip()) except: pass actioncls.setStorage(storage)
c12a3acbd159917efed0b4f4a0d9c0f89cde8884 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/c12a3acbd159917efed0b4f4a0d9c0f89cde8884/openrecent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 3245, 12, 6429, 16, 1301, 6429, 4672, 2502, 33, 8526, 9806, 273, 2028, 18, 29925, 12, 3459, 13, 775, 30, 7625, 33, 3190, 12, 28336, 13, 364, 980, 316, 7625, 30, 2502, 18, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3245, 12, 6429, 16, 1301, 6429, 4672, 2502, 33, 8526, 9806, 273, 2028, 18, 29925, 12, 3459, 13, 775, 30, 7625, 33, 3190, 12, 28336, 13, 364, 980, 316, 7625, 30, 2502, 18, 6923, ...
try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e try: unicode('\xff') except Exception, e: sampleUnicodeDecodeError = e
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
65a30b76ffe79c7fe00873499d57246e65085c5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/65a30b76ffe79c7fe00873499d57246e65085c5a/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
EXAMPLES:
EXAMPLES::
def __repr__(self): r""" Print a TestAppendNonlist. Just prints as its underlying list.
3bed29c45c1270055cd235e22fd02f632971b39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3bed29c45c1270055cd235e22fd02f632971b39e/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 436, 8395, 3038, 279, 7766, 5736, 3989, 1098, 18, 225, 12526, 14971, 487, 2097, 6808, 666, 18, 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, 0, 0, 0, 0, 0, 0, 0, 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, 12715, 972, 12, 2890, 4672, 436, 8395, 3038, 279, 7766, 5736, 3989, 1098, 18, 225, 12526, 14971, 487, 2097, 6808, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def processTransformation(self,transDict):
def processTransformation( self, transDict ):
def processTransformation(self,transDict): transID = transDict['TransformationID'] # First get the LFNs associated to the transformation res = self.transDB.getTransformationFiles(condDict={'TransformationID':transID,'Status':'Unused'}) if not res['OK']: gLogger.error("%s.processTransformation: Failed to obtain input da...
5b98b3b45ce744b0fa8f66e9d9812d0b7910a0ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5b98b3b45ce744b0fa8f66e9d9812d0b7910a0ab/TransformationAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 15292, 12, 365, 16, 906, 5014, 262, 30, 906, 734, 273, 906, 5014, 3292, 15292, 734, 3546, 468, 5783, 336, 326, 18803, 10386, 3627, 358, 326, 8620, 400, 273, 365, 18, 2338, 2290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 15292, 12, 365, 16, 906, 5014, 262, 30, 906, 734, 273, 906, 5014, 3292, 15292, 734, 3546, 468, 5783, 336, 326, 18803, 10386, 3627, 358, 326, 8620, 400, 273, 365, 18, 2338, 2290, ...
piece = action.data().toInt()[0] part = self.itemattrlist[TabList[piece]]
piece = str(action.text()) part = self.itemattrlist[piece]
def moveTo(self, action): cur = self.itemattrlist[self.currentTabLabel] if cur.ActiveState != 'player': return piece = action.data().toInt()[0] part = self.itemattrlist[TabList[piece]] if cur == part: return if cur.next is None: item = Item(realm=self.realm,loc=self.currentTabLabel, state=cur.ActiveState) if cur.Active...
4871e7b90ac3ae938def5bc89e9ea84b3a33c81a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/4871e7b90ac3ae938def5bc89e9ea84b3a33c81a/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13863, 12, 2890, 16, 1301, 4672, 662, 273, 365, 18, 1726, 1747, 1098, 63, 2890, 18, 2972, 5661, 2224, 65, 309, 662, 18, 3896, 1119, 480, 296, 14872, 4278, 327, 11151, 273, 609, 12, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13863, 12, 2890, 16, 1301, 4672, 662, 273, 365, 18, 1726, 1747, 1098, 63, 2890, 18, 2972, 5661, 2224, 65, 309, 662, 18, 3896, 1119, 480, 296, 14872, 4278, 327, 11151, 273, 609, 12, 112...
self.chunksize = struct.unpack(strflag+'l', file.read(4))[0]
self.chunksize = struct.unpack(strflag+'L', file.read(4))[0]
def __init__(self, file, align=True, bigendian=True, inclheader=False): import struct self.closed = False self.align = align # whether to align to word (2-byte) boundaries if bigendian: strflag = '>' else: strflag = '<' self.file = file self.chunkname = file.read(4) if len(self.chunkname) < 4: raise EOFError try: ...
7b4e7c24df974b2590d5ef332910a020db355546 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7b4e7c24df974b2590d5ef332910a020db355546/chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 16, 5689, 33, 5510, 16, 5446, 22910, 33, 5510, 16, 2823, 3374, 33, 8381, 4672, 1930, 1958, 365, 18, 12204, 273, 1083, 365, 18, 7989, 273, 5689, 1377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 585, 16, 5689, 33, 5510, 16, 5446, 22910, 33, 5510, 16, 2823, 3374, 33, 8381, 4672, 1930, 1958, 365, 18, 12204, 273, 1083, 365, 18, 7989, 273, 5689, 1377...
self.assertRaises(Exception, test_view('sale'))
test_view('sale')
def test0005views(self): ''' Test views. ''' self.assertRaises(Exception, test_view('sale'))
8e7777ccf264c7acfd052d667183aaa4a723dd08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9306/8e7777ccf264c7acfd052d667183aaa4a723dd08/test_sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3784, 25, 7061, 12, 2890, 4672, 9163, 7766, 7361, 18, 9163, 365, 18, 11231, 12649, 6141, 12, 503, 16, 1842, 67, 1945, 2668, 87, 5349, 26112, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3784, 25, 7061, 12, 2890, 4672, 9163, 7766, 7361, 18, 9163, 365, 18, 11231, 12649, 6141, 12, 503, 16, 1842, 67, 1945, 2668, 87, 5349, 26112, 2, -100, -100, -100, -100, -100, -100, ...
elif hasattr(self.parser,"foonames"):
elif hasattr(self.parser,"fonames"):
def partition(self,indices=None):
e63238c5b16258f2618402b345cd358706deccfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/e63238c5b16258f2618402b345cd358706deccfe/population.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3590, 12, 2890, 16, 6836, 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, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3590, 12, 2890, 16, 6836, 33, 7036, 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,...
'''Obtains node if missing, and calls given substitution function.''' if not self.node:
'''Obtains file's changenode if commit node not given, and calls given substitution function.''' if self.commitnode: fnode = self.commitnode else:
def substitute(self, node, data, subfunc): '''Obtains node if missing, and calls given substitution function.''' if not self.node: c = context.filectx(self.repo, self.path, fileid=node) self.node = c.node()
f827809fb39d2874b9796416d6190206387ad91f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/f827809fb39d2874b9796416d6190206387ad91f/keyword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14811, 12, 2890, 16, 756, 16, 501, 16, 720, 644, 4672, 9163, 19351, 585, 1807, 9435, 20680, 309, 3294, 756, 486, 864, 16, 471, 4097, 864, 12785, 445, 1093, 6309, 309, 365, 18, 7371, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14811, 12, 2890, 16, 756, 16, 501, 16, 720, 644, 4672, 9163, 19351, 585, 1807, 9435, 20680, 309, 3294, 756, 486, 864, 16, 471, 4097, 864, 12785, 445, 1093, 6309, 309, 365, 18, 7371, 21...
'export TERMINFO=%s' % os.path.join( proPath, cliParans.platform, 'share', 'terminfo' ) ] )
'export TERMINFO=%s' % os.path.join( proPath, cliParams.platform, 'share', 'terminfo' ) ] )
def usage(): print "Usage %s <opts> <cfgFile>" % sys.argv[0] for cmdOpt in cmdOpts: print " %s %s : %s" % ( cmdOpt[0].ljust( 3 ), cmdOpt[1].ljust( 20 ), cmdOpt[2] ) sys.exit( 1 )
3b6875175db9f6d96036cc93a645d3f7a1f83f0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3b6875175db9f6d96036cc93a645d3f7a1f83f0c/dirac-install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 5357, 738, 87, 411, 4952, 34, 411, 7066, 812, 2984, 738, 2589, 18, 19485, 63, 20, 65, 364, 1797, 6179, 316, 1797, 5476, 30, 1172, 315, 738, 87, 738, 87, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 5357, 738, 87, 411, 4952, 34, 411, 7066, 812, 2984, 738, 2589, 18, 19485, 63, 20, 65, 364, 1797, 6179, 316, 1797, 5476, 30, 1172, 315, 738, 87, 738, 87, 294, ...
tm.add(_monitorDoLaterAppendTask, 'monitorDoLaterAppendTask')
tm.add(_monitorDoLaterAppendTask, 'monitorDoLaterAppendTask', priority=10)
def _monitorDoLaterAppendTask(task, tm=tm, l=l, doLaterTests=doLaterTests): if task.time > .02: assert l == [4,] doLaterTests[0] -= 1 return task.done return task.cont
d0c4d4f8fc308811e5e29043a0ac1583739f959c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/d0c4d4f8fc308811e5e29043a0ac1583739f959c/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10259, 3244, 20607, 5736, 2174, 12, 4146, 16, 6118, 33, 16925, 16, 328, 33, 80, 16, 741, 20607, 14650, 33, 2896, 20607, 14650, 4672, 309, 1562, 18, 957, 405, 263, 3103, 30, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10259, 3244, 20607, 5736, 2174, 12, 4146, 16, 6118, 33, 16925, 16, 328, 33, 80, 16, 741, 20607, 14650, 33, 2896, 20607, 14650, 4672, 309, 1562, 18, 957, 405, 263, 3103, 30, 1815, ...
tuple, or vector
tuple, or vector.
def ruler(start, end, ticks=4, sub_ticks=4, absolute=False, snap=False, **kwds): """ Draw a ruler in 3D, with major and minor ticks. INPUT: - ``start`` - the beginning of the ruler, as a list, tuple, or vector - ``end`` - the end of the ruler, as a list, tuple, or vector - ``ticks`` - (default: 4) the number of maj...
ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf/shapes2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 17040, 12, 1937, 16, 679, 16, 13003, 33, 24, 16, 720, 67, 11767, 33, 24, 16, 4967, 33, 8381, 16, 10915, 33, 8381, 16, 2826, 25577, 4672, 3536, 10184, 279, 436, 17040, 316, 890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 17040, 12, 1937, 16, 679, 16, 13003, 33, 24, 16, 720, 67, 11767, 33, 24, 16, 4967, 33, 8381, 16, 10915, 33, 8381, 16, 2826, 25577, 4672, 3536, 10184, 279, 436, 17040, 316, 890, ...
for i in range(1,KEY_LEN):
for i in range(0,KEY_LEN):
def rand_key(): key=str() for i in range(1,KEY_LEN): key += "%02x"%( random.randint( 0, 255) ) return key
7dff11251d55e20f3df8c11b11be90c292d2f193 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2962/7dff11251d55e20f3df8c11b11be90c292d2f193/gen_keyfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5605, 67, 856, 13332, 498, 33, 701, 1435, 364, 277, 316, 1048, 12, 20, 16, 3297, 67, 13017, 4672, 498, 1011, 2213, 3103, 92, 6, 17105, 2744, 18, 7884, 474, 12, 374, 16, 4561, 13, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5605, 67, 856, 13332, 498, 33, 701, 1435, 364, 277, 316, 1048, 12, 20, 16, 3297, 67, 13017, 4672, 498, 1011, 2213, 3103, 92, 6, 17105, 2744, 18, 7884, 474, 12, 374, 16, 4561, 13, 262...
s += tstmt_s[tstmt_s.index('{'):]
if tstmt_s.count('{') > 0: s += tstmt_s[tstmt_s.index('{'):] else: s += tstmt_s
def generate(self, tnode, indent = ' ', extra_indent = ' ', doloop_inc = False): '''To generate code that corresponds to the given AST'''
40477e477d1f49f3ec10912cad212dc82ba09314 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8417/40477e477d1f49f3ec10912cad212dc82ba09314/codegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 268, 2159, 16, 3504, 273, 296, 225, 2265, 2870, 67, 9355, 273, 296, 225, 2265, 302, 12854, 556, 67, 9523, 273, 1083, 4672, 9163, 774, 2103, 981, 716, 13955, 358, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 268, 2159, 16, 3504, 273, 296, 225, 2265, 2870, 67, 9355, 273, 296, 225, 2265, 302, 12854, 556, 67, 9523, 273, 1083, 4672, 9163, 774, 2103, 981, 716, 13955, 358, 32...
class PyWarningsDisplayTests(WarningsDisplayTests):
class PyWarningsDisplayTests(BaseTest, WarningsDisplayTests):
def test_showwarning(self): file_name = os.path.splitext(warning_tests.__file__)[0] + '.py' line_num = 3 expected_file_line = linecache.getline(file_name, line_num).strip() message = 'msg' category = Warning file_object = StringIO.StringIO() expect = self.module.formatwarning(message, category, file_name, line_num) sel...
c234aa4a542d628a9341637977fc458f47a485ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/c234aa4a542d628a9341637977fc458f47a485ae/test_warnings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4500, 8551, 12, 2890, 4672, 585, 67, 529, 273, 1140, 18, 803, 18, 4939, 408, 12, 8551, 67, 16341, 16186, 768, 972, 25146, 20, 65, 397, 2418, 2074, 11, 980, 67, 2107, 273, 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, 1842, 67, 4500, 8551, 12, 2890, 4672, 585, 67, 529, 273, 1140, 18, 803, 18, 4939, 408, 12, 8551, 67, 16341, 16186, 768, 972, 25146, 20, 65, 397, 2418, 2074, 11, 980, 67, 2107, 273, 8...
ccflag_no = CCFLAG('O', load_into_cc_no)
ccflag_no = CCFLAG('NO', load_into_cc_no)
def load_into_cc_ne(mc, srcop): mc.CMP(srcop, imm8(0))
76ac11fadfacd707448a46df011e11016a8819a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/76ac11fadfacd707448a46df011e11016a8819a6/operation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 18591, 67, 952, 67, 4644, 12, 13952, 16, 1705, 556, 4672, 6108, 18, 39, 4566, 12, 4816, 556, 16, 709, 81, 28, 12, 20, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 18591, 67, 952, 67, 4644, 12, 13952, 16, 1705, 556, 4672, 6108, 18, 39, 4566, 12, 4816, 556, 16, 709, 81, 28, 12, 20, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100...
if modulus != 'random' and cache.has_key(key): K = cache[key]() if not K is None: return K
if (modulus != 'random' and cache.has_key(key)): return cache[key]
def FiniteField(order, name=None, modulus=None, names=None, elem_cache=False, check_irreducible=True, *args, **kwds): """ Return the globally unique finite field of given order with generator labeled by the given name and possibly with given modulus. INPUT: order -- int name -- string; must be specified if not a ...
333d670584f443f05b200a36f5493eb597e484d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/333d670584f443f05b200a36f5493eb597e484d4/finite_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9458, 1137, 974, 12, 1019, 16, 508, 33, 7036, 16, 24770, 33, 7036, 16, 1257, 33, 7036, 16, 3659, 67, 2493, 33, 8381, 16, 866, 67, 481, 1118, 5286, 1523, 33, 5510, 16, 380, 1968, 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, 9458, 1137, 974, 12, 1019, 16, 508, 33, 7036, 16, 24770, 33, 7036, 16, 1257, 33, 7036, 16, 3659, 67, 2493, 33, 8381, 16, 866, 67, 481, 1118, 5286, 1523, 33, 5510, 16, 380, 1968, 16, ...
ok_builtin_modules = ('array', 'binascii', 'audioop', 'imageop', 'marshal', 'math', 'md5', 'parser', 'regex', 'rotor', 'select',
ok_builtin_modules = ('audioop', 'array', 'binascii', 'cmath', 'errno', 'imageop', 'marshal', 'math', 'md5', 'operator', 'parser', 'regex', 'rotor', 'select',
def reload(self, module, path=None): if path is None and hasattr(module, '__filename__'): head, tail = os.path.split(module.__filename__) path = [os.path.join(head, '')] return ihooks.ModuleImporter.reload(self, module, path)
19bd1da574b4daf24452a7875d9a48aa1a95e175 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/19bd1da574b4daf24452a7875d9a48aa1a95e175/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 16, 1605, 16, 589, 33, 7036, 4672, 309, 589, 353, 599, 471, 3859, 12, 2978, 16, 4940, 3459, 7250, 4672, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 16, 1605, 16, 589, 33, 7036, 4672, 309, 589, 353, 599, 471, 3859, 12, 2978, 16, 4940, 3459, 7250, 4672, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, ...
Returns information of all dictionaries as xml file
Returns information of all dictionaries as xml file (type string)
def dicts2XML(self): """ Returns information of all dictionaries as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.dictEvent['xmlEventID'] event_type = Sub(xml, "event_type") Sub(event_type, "value").text = "manual" Sub(event_type, "user").text = self.username Sub(event_type, "publi...
ab9958aae206e9224d2f8d4b3b220d6ce344c4d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/ab9958aae206e9224d2f8d4b3b220d6ce344c4d0/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 261, 723, 533, 13, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 261, 723, 533, 13, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, ...
aux = [ x.split('?')[0] for x in block ] if name in aux:
if name in block:
def get_subviews(self, name): for block in self.class_views: aux = [ x.split('?')[0] for x in block ] if name in aux: if len(block) == 1: return [] return block[:] return []
c0156ebb5ecdb64c9eb6b8f1385999766933992b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/c0156ebb5ecdb64c9eb6b8f1385999766933992b/Handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1717, 7061, 12, 2890, 16, 508, 4672, 364, 1203, 316, 365, 18, 1106, 67, 7061, 30, 309, 508, 316, 1203, 30, 309, 562, 12, 2629, 13, 422, 404, 30, 327, 5378, 327, 1203, 10531,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1717, 7061, 12, 2890, 16, 508, 4672, 364, 1203, 316, 365, 18, 1106, 67, 7061, 30, 309, 508, 316, 1203, 30, 309, 562, 12, 2629, 13, 422, 404, 30, 327, 5378, 327, 1203, 10531,...
return "fl.i = 0;"
return "/* cli */;"
def codegen_cli(self): return "fl.i = 0;"
8cf0c3c7a8428c608bbe912500420c8a19bc9730 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6757/8cf0c3c7a8428c608bbe912500420c8a19bc9730/sbt86.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23198, 67, 4857, 12, 2890, 4672, 327, 315, 2242, 18, 77, 273, 374, 4868, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23198, 67, 4857, 12, 2890, 4672, 327, 315, 2242, 18, 77, 273, 374, 4868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
print "Before Transfer Setup \n";
def deploySetup(self): self.logger.log(Log.DEBUG, "AbePipelineManager:deploySetup")
7c06e23fce83865fbdfe0d0f9e37b70137eebee0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6549/7c06e23fce83865fbdfe0d0f9e37b70137eebee0/AbePipelineManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7286, 7365, 12, 2890, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 37, 2196, 8798, 1318, 30, 12411, 7365, 7923, 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, 7286, 7365, 12, 2890, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 37, 2196, 8798, 1318, 30, 12411, 7365, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print uriref
def __init__(self, name=None, uriref=None): self.name = name self.value = uriref print uriref
412d296972d5f7f39bd0160b3b0a0d5fc5017a11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/412d296972d5f7f39bd0160b3b0a0d5fc5017a11/term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 33, 7036, 16, 8896, 577, 74, 33, 7036, 4672, 365, 18, 529, 273, 508, 365, 18, 1132, 273, 8896, 577, 74, 1172, 8896, 577, 74, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 33, 7036, 16, 8896, 577, 74, 33, 7036, 4672, 365, 18, 529, 273, 508, 365, 18, 1132, 273, 8896, 577, 74, 1172, 8896, 577, 74, 2, -100, -100, -100, ...
sys.stdout.write(s1.replace("\r\n", "\n"))
sys.stdout.write(normalize_output(s1))
def test_basic_pty(): try: debug("Calling master_open()") master_fd, slave_name = pty.master_open() debug("Got master_fd '%d', slave_name '%s'"%(master_fd, slave_name)) debug("Calling slave_open(%r)"%(slave_name,)) slave_fd = pty.slave_open(slave_name) debug("Got slave_fd '%d'"%slave_fd) except OSError: # " An optional...
84c95b94075f73e452539e71230537644a4932f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/84c95b94075f73e452539e71230537644a4932f8/test_pty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 67, 825, 13332, 775, 30, 1198, 2932, 19677, 4171, 67, 3190, 1435, 7923, 4171, 67, 8313, 16, 11735, 67, 529, 273, 293, 4098, 18, 7525, 67, 3190, 1435, 1198, 2932, 15617, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13240, 67, 825, 13332, 775, 30, 1198, 2932, 19677, 4171, 67, 3190, 1435, 7923, 4171, 67, 8313, 16, 11735, 67, 529, 273, 293, 4098, 18, 7525, 67, 3190, 1435, 1198, 2932, 15617, ...
for attr in slice.get('attributes'): attr_dict[attr['name']] = attr['value']
for attr in slice.get('attributes'): attr_dict[attr['tagname']] = attr['value']
def getPLCDefaults(data, config): ''' Get PLC wide defaults from _default system slice. Adds them to config class. ''' for slice in data.get('slivers'): if slice['name'] == config.PLC_SLICE_PREFIX+"_default": attr_dict = {} for attr in slice.get('attributes'): attr_dict[attr['name']] = attr['value'] if len(attr_dict):...
2db2c3cc4c3fb52894fc18ea87cbe84f686af717 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6995/2db2c3cc4c3fb52894fc18ea87cbe84f686af717/nm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 13394, 7019, 12, 892, 16, 642, 4672, 9163, 968, 453, 13394, 14812, 3467, 628, 389, 1886, 2619, 2788, 18, 225, 15605, 2182, 358, 642, 667, 18, 9163, 364, 2788, 316, 501, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 13394, 7019, 12, 892, 16, 642, 4672, 9163, 968, 453, 13394, 14812, 3467, 628, 389, 1886, 2619, 2788, 18, 225, 15605, 2182, 358, 642, 667, 18, 9163, 364, 2788, 316, 501, 18, 588, ...
print "Intersphinx hit:", target, uri
def missing_reference(app, env, node, contnode): """Attempt to resolve a missing reference via intersphinx references.""" type = node['reftype'] target = node['reftarget'] if type == 'mod': type, proj, version, uri = env.intersphinx_inventory.get(target, ('','','','')) if type != 'mod': return None target = 'module-' +...
b25c95b454919dbbb93c16ec5468245eaa124acd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/b25c95b454919dbbb93c16ec5468245eaa124acd/intersphinx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 6180, 12, 2910, 16, 1550, 16, 756, 16, 466, 2159, 4672, 3536, 7744, 358, 2245, 279, 3315, 2114, 3970, 1554, 87, 15922, 5351, 12123, 618, 273, 756, 3292, 1734, 723, 3546, 1018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 6180, 12, 2910, 16, 1550, 16, 756, 16, 466, 2159, 4672, 3536, 7744, 358, 2245, 279, 3315, 2114, 3970, 1554, 87, 15922, 5351, 12123, 618, 273, 756, 3292, 1734, 723, 3546, 1018, ...
editRestriction, moveRestriction = parseRestrictions(restrictions)
editRestriction, moveRestriction \ = parseRestrictions(restrictions)
def regex_parse(self): """ Generator which reads some lines from the XML dump file, and parses them to create XmlEntry objects. Stops when the end of file is reached.
cea3abc8955b082fe2ab3706db1a0ad41622e9af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/cea3abc8955b082fe2ab3706db1a0ad41622e9af/xmlreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3936, 67, 2670, 12, 2890, 4672, 3536, 10159, 1492, 6838, 2690, 2362, 628, 326, 3167, 4657, 585, 16, 471, 8940, 2182, 358, 752, 5714, 1622, 2184, 18, 934, 4473, 1347, 326, 679, 434, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3936, 67, 2670, 12, 2890, 4672, 3536, 10159, 1492, 6838, 2690, 2362, 628, 326, 3167, 4657, 585, 16, 471, 8940, 2182, 358, 752, 5714, 1622, 2184, 18, 934, 4473, 1347, 326, 679, 434, 585, ...
event(ch(trigger, 0), 10*us, "Stop" ) event(ch(trigger, 0), 20*us, "Play" )
def MOT(Start): event(ch(trigger, 0), 10*us, "Stop" ) event(ch(trigger, 0), 20*us, "Play" ) tDDS=Start+50*us event(ch(digitalOut, 4), Start+50*us, 0) event(ch(digitalOut, 4), Start+ 55*us, 1) event(ch(digitalOut, 4), Start + 60*us, 0) VCOScaleFactor=112.19421
c1d56ef8a4aa9928902c1c56fe6c4e2eb541917a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7379/c1d56ef8a4aa9928902c1c56fe6c4e2eb541917a/ddsTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 1974, 12, 1685, 4672, 565, 268, 40, 3948, 33, 1685, 15, 3361, 14, 407, 225, 871, 12, 343, 12, 28095, 1182, 16, 1059, 3631, 3603, 15, 3361, 14, 407, 16, 374, 13, 871, 12, 343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 1974, 12, 1685, 4672, 565, 268, 40, 3948, 33, 1685, 15, 3361, 14, 407, 225, 871, 12, 343, 12, 28095, 1182, 16, 1059, 3631, 3603, 15, 3361, 14, 407, 16, 374, 13, 871, 12, 343, ...
print("The Python SSL module was not built")
def find_working_perl(perls): for perl in perls: fh = os.popen(perl + ' -e "use Win32;"') fh.read() rc = fh.close() if rc: continue return perl print("Can not find a suitable PERL:") if perls: print(" the following perl interpreters were found:") for p in perls: print(" ", p) print(" None of these versions appear suita...
519c7eda1de7e7f4799720819b8e467a6c41d757 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/519c7eda1de7e7f4799720819b8e467a6c41d757/build_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20478, 67, 457, 80, 12, 457, 3251, 4672, 364, 1534, 80, 316, 1534, 3251, 30, 7625, 273, 1140, 18, 84, 3190, 12, 457, 80, 397, 296, 300, 73, 315, 1202, 21628, 1578, 4868, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20478, 67, 457, 80, 12, 457, 3251, 4672, 364, 1534, 80, 316, 1534, 3251, 30, 7625, 273, 1140, 18, 84, 3190, 12, 457, 80, 397, 296, 300, 73, 315, 1202, 21628, 1578, 4868, 61...
def sendSetZone(self, curZone, vizList): visibleZoneIds = [ToontownGlobals.UberZone, self.getZoneId(0)] for vz in vizList: visibleZoneIds.append(self.getZoneId(vz)) assert(uniqueElements(visibleZoneIds)) self.notify.debug('new viz list: %s' % visibleZoneIds) toonbase.tcr.sendSetZoneMsg(self.getZoneId(curZone), visi...
def enterZone(self, zoneNum): if not DistributedLevel.WantVisibility: return if zoneNum == self.curZoneNum: return print "enterZone %s" % zoneNum zoneSpec = self.spec['zones'][zoneNum] # use dicts to efficiently ensure that there are no duplicates visibleZoneNums = list2dict([zoneNum]) visibleZoneNums.update(list2dic...
27c5c611a4f9ab710881398ce4182fe339dde267 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/27c5c611a4f9ab710881398ce4182fe339dde267/DistributedLevel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 4226, 12, 2890, 16, 4157, 2578, 4672, 309, 486, 27877, 2355, 18, 59, 970, 10135, 30, 327, 225, 309, 4157, 2578, 422, 365, 18, 1397, 4226, 2578, 30, 327, 225, 1172, 315, 2328, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 4226, 12, 2890, 16, 4157, 2578, 4672, 309, 486, 27877, 2355, 18, 59, 970, 10135, 30, 327, 225, 309, 4157, 2578, 422, 365, 18, 1397, 4226, 2578, 30, 327, 225, 1172, 315, 2328, 422...
snr_position = float(gpsTime) - ( float(squareSnr_tuple[1]) + \ (segLenSec-segOverlapSec)*position ) chisq_position = float(gpsTime) - ( float(squareChisq_tuple[1]) + \ (segLenSec-segOverlapSec)*position )
snr_position = eval(gpsTime) - (gpsStart + gpsPosition* (segLenSec - segOverlapSec) ) chisq_position = snr_position
def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFile): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--sample-rate": sampleR...
257a3bd69c969abb8bbe9af038cceed4c13c21ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/257a3bd69c969abb8bbe9af038cceed4c13c21ab/plotsnrchisq_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 4672, 225, 3597, 85, 7614, 273, 374, 31, 225, 364, 1027, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 4672, 225, 3597, 85, 7614, 273, 374, 31, 225, 364, 1027, 316...
if self.db_type and self.db_type.find(':') != -1: (self._identifier, name) = self.db_type.split(':', 1) if name.find('|') != -1: (self._namespace, self._type) = name.rsplit('|', 1) else: self._namespace = None self._type = name else:
if self.db_type: k = self.db_type.split(':', 2) else: k = [] if len(k) < 2:
def parse_db_type(self): if self.db_type and self.db_type.find(':') != -1: (self._identifier, name) = self.db_type.split(':', 1) if name.find('|') != -1: (self._namespace, self._type) = name.rsplit('|', 1) else: self._namespace = None self._type = name else: # FIXME don't hardcode this self._identifier = "edu.utah.sci....
7e59568440f9e1eab6eb50daa7dd471a8c4b1231 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/7e59568440f9e1eab6eb50daa7dd471a8c4b1231/module_param.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1966, 67, 723, 12, 2890, 4672, 309, 365, 18, 1966, 67, 723, 30, 417, 273, 365, 18, 1966, 67, 723, 18, 4939, 2668, 30, 2187, 576, 13, 469, 30, 417, 273, 5378, 309, 562, 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, 1109, 67, 1966, 67, 723, 12, 2890, 4672, 309, 365, 18, 1966, 67, 723, 30, 417, 273, 365, 18, 1966, 67, 723, 18, 4939, 2668, 30, 2187, 576, 13, 469, 30, 417, 273, 5378, 309, 562, 12...
c_self = inputconst(pyobj_repr, '__self__') v = llops.genop('getattr', [v, c_self], resulttype=r_from)
c_self = inputconst(pyobj_repr, '__self__') v = llops.genop('getattr', [v, c_self], resulttype=r_from)
def convert_from_to((r_from, r_to), v, llops): if r_to.has_wrapper: init, context = llops.rtyper.get_wrapping_hint(r_to.classdef) if context is init: # saving an extra __new__ method, we create the instance on __init__ v_inst = r_to.new_instance(llops) v_cobj = into_cobject(v_inst, r_to, llops) c_self = inputconst(pyob...
27dd3ed947f0b2f06f4c6542a965dc791c143965 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/27dd3ed947f0b2f06f4c6542a965dc791c143965/rclass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 869, 12443, 86, 67, 2080, 16, 436, 67, 869, 3631, 331, 16, 328, 383, 1121, 4672, 309, 436, 67, 869, 18, 5332, 67, 8376, 30, 1208, 16, 819, 273, 328, 383, 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, 1765, 67, 2080, 67, 869, 12443, 86, 67, 2080, 16, 436, 67, 869, 3631, 331, 16, 328, 383, 1121, 4672, 309, 436, 67, 869, 18, 5332, 67, 8376, 30, 1208, 16, 819, 273, 328, 383, 1121, ...
box = (int(rect.left()+pos.x()),int(rect.top()+pos.y()),int(rect.right()+pos.x()),int(rect.bottom()+pos.y()))
box = (int(pos.x()),int(pos.y()),int(rect.width()+pos.x()),int(rect.height()+pos.y()))
def doOcr(self): import codecs aItems = self.scene().items() numItems = len(aItems)
02f4a6c73b42867905faef46b7958e062e0a5f7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2085/02f4a6c73b42867905faef46b7958e062e0a5f7b/ocrwidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 51, 3353, 12, 2890, 4672, 1930, 17437, 279, 3126, 273, 365, 18, 23694, 7675, 3319, 1435, 818, 3126, 273, 562, 12, 69, 3126, 13, 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, 51, 3353, 12, 2890, 4672, 1930, 17437, 279, 3126, 273, 365, 18, 23694, 7675, 3319, 1435, 818, 3126, 273, 562, 12, 69, 3126, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
to_addr = users.get_handler(to_addr)
to_addr = users.get_object(to_addr)
def _add_row(self, context): user = context.user root = context.root parent = self.parent users = root.get_object('users')
1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 492, 12, 2890, 16, 819, 4672, 729, 273, 819, 18, 1355, 1365, 273, 819, 18, 3085, 982, 273, 365, 18, 2938, 3677, 273, 1365, 18, 588, 67, 1612, 2668, 5577, 6134, 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, 389, 1289, 67, 492, 12, 2890, 16, 819, 4672, 729, 273, 819, 18, 1355, 1365, 273, 819, 18, 3085, 982, 273, 365, 18, 2938, 3677, 273, 1365, 18, 588, 67, 1612, 2668, 5577, 6134, 2, -100...