rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
find_file(['/usr/include', '/usr/local/include'] + self.include_dirs, 'db_185.h') ):
find_file(inc_dirs, 'db_185.h') ):
def detect_modules(self): # XXX this always gets an empty list -- hardwiring to # a fixed list lib_dirs = self.compiler.library_dirs[:] lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib'] exts = []
28f7904aa7a292dd7e787e5dfd6314cc0915149b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/28f7904aa7a292dd7e787e5dfd6314cc0915149b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 11329, 333, 3712, 5571, 392, 1008, 666, 1493, 7877, 91, 11256, 358, 468, 279, 5499, 666, 2561, 67, 8291, 273, 365, 18, 9576, 18, 12083, 67, 8291, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 11329, 333, 3712, 5571, 392, 1008, 666, 1493, 7877, 91, 11256, 358, 468, 279, 5499, 666, 2561, 67, 8291, 273, 365, 18, 9576, 18, 12083, 67, 8291, 1...
c.Run()
def call_instance_shutdown(self, node, instance): """Stops an instance.
ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1336, 67, 15132, 12, 2890, 16, 756, 16, 791, 4672, 3536, 20044, 392, 791, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1336, 67, 15132, 12, 2890, 16, 756, 16, 791, 4672, 3536, 20044, 392, 791, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
env.Append(CCFLAGS = '-pg') env.Append(LINKFLAGS = '-pg')
env.Append(CCFLAGS = ['-pg']) env.Append(LINKFLAGS = ['-pg'])
def IsGcc(context): context.Message("Checking if CC is really gcc...") result = context.TryAction(["%s --help | grep gcc" % env['CC']])[0] context.Result(result) return result
50ba4e889e3d144aba422fb2a117a16bf0be3173 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6561/50ba4e889e3d144aba422fb2a117a16bf0be3173/SConsUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
format_field = "%s_text_format" % field.getName() text_format = form.get(format_field, empty_marker)
if hasattr(field, 'allowable_content_types') and \ field.allowable_content_types: format_field = "%s_text_format" % field.getName() text_format = form.get(format_field, empty_marker)
def process_form(self, instance, field, form, empty_marker=None, emptyReturnsMarker=False, validating=True): """complex form processing, includes handling for text formatting and file objects""" # This is basically the old processing chain from base object text_format = None isFile = False value = None
f7c24772f8477316e3ed7b3e50de518e8bf5f593 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12165/f7c24772f8477316e3ed7b3e50de518e8bf5f593/Widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 687, 12, 2890, 16, 791, 16, 652, 16, 646, 16, 1008, 67, 11145, 33, 7036, 16, 1008, 1356, 7078, 33, 8381, 16, 18075, 33, 5510, 4672, 3536, 14259, 646, 4929, 16, 6104, 5057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 687, 12, 2890, 16, 791, 16, 652, 16, 646, 16, 1008, 67, 11145, 33, 7036, 16, 1008, 1356, 7078, 33, 8381, 16, 18075, 33, 5510, 4672, 3536, 14259, 646, 4929, 16, 6104, 5057, ...
join('/prefix','sub','sub2','sup','sup2','name'))
ajoin('prefix','sub','sub2','sup','sup2','name'))
def check_3(self): assert_equal(appendpath('/prefix/sub','/prefix/sup/name'), join('/prefix','sub','sup','name')) assert_equal(appendpath('/prefix/sub/sub2','/prefix/sup/sup2/name'), join('/prefix','sub','sub2','sup','sup2','name')) assert_equal(appendpath('/prefix/sub/sub2','/prefix/sub/sup/name'), join('/prefix','sub...
9c05eb88f275e99032415d2f39187273b4330872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/9c05eb88f275e99032415d2f39187273b4330872/test_misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 23, 12, 2890, 4672, 1815, 67, 9729, 12, 6923, 803, 2668, 19, 3239, 19, 1717, 17023, 19, 3239, 19, 2859, 19, 529, 19899, 1233, 2668, 19, 3239, 17023, 1717, 17023, 2859, 17023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 23, 12, 2890, 4672, 1815, 67, 9729, 12, 6923, 803, 2668, 19, 3239, 19, 1717, 17023, 19, 3239, 19, 2859, 19, 529, 19899, 1233, 2668, 19, 3239, 17023, 1717, 17023, 2859, 17023, ...
print " ", what.formats[output] % ( what.col1, what.col2, str(totalwrate) + " %", niceNum(totalws),niceNum(totalwf), str(totalsuccess*100/totaljobs) + " %", totalsuccess,totalfailed)
print " ", what.formats[output] % ( what.totalheaders[0], what.totalheaders[1], str(totalwrate) + " %", niceNum(totalws),niceNum(totalwf), str(totalsuccess*100/totaljobs) + " %", totalsuccess,totalfailed)
def GenericDailyStatus(what, when = datetime.date.today(), output = "text"): factor = 3600 # Convert number of seconds to number of hours if (output != "None") : if (what.title != "") : print what.title % ( DateToString(when,False) ) if (what.headline != "") : print what.headline % (DateToString(when,False)) print wh...
840d5408521dcd3fd349c48313ce276b0ab91bb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/840d5408521dcd3fd349c48313ce276b0ab91bb4/PSACCTReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7928, 40, 12857, 1482, 12, 23770, 16, 1347, 273, 3314, 18, 712, 18, 30064, 9334, 876, 273, 315, 955, 6, 4672, 5578, 273, 12396, 225, 468, 4037, 1300, 434, 3974, 358, 1300, 434, 7507, 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, 7928, 40, 12857, 1482, 12, 23770, 16, 1347, 273, 3314, 18, 712, 18, 30064, 9334, 876, 273, 315, 955, 6, 4672, 5578, 273, 12396, 225, 468, 4037, 1300, 434, 3974, 358, 1300, 434, 7507, 2...
sage: sr = mq.SR(1,2,2,4)
sage: sr = mq.SR(1, 2, 2, 4)
def varformatstr(self, name, n=None, rc=None, e=None): """ Return a format string which is understood by print et al.
26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 2139, 701, 12, 2890, 16, 508, 16, 290, 33, 7036, 16, 4519, 33, 7036, 16, 425, 33, 7036, 4672, 3536, 2000, 279, 740, 533, 1492, 353, 31727, 4773, 635, 1172, 3393, 524, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 569, 2139, 701, 12, 2890, 16, 508, 16, 290, 33, 7036, 16, 4519, 33, 7036, 16, 425, 33, 7036, 4672, 3536, 2000, 279, 740, 533, 1492, 353, 31727, 4773, 635, 1172, 3393, 524, 18, 2, -10...
debuglevel=0
def __init__(self, parent, wrapper, buffer, frame): MajorMode.__init__(self, parent, wrapper, buffer, frame) BitmapScroller.__init__(self, parent) self.stc = ImageSTCWrapper(self.buffer.stc, self) self.update() def update(self): fh = StringIO(self.stc.GetBinaryData(0,self.stc.GetTextLength()))
def CanRedo(self): return False
d7d8656b5d845270ad4bceef17471df7d111dff3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/d7d8656b5d845270ad4bceef17471df7d111dff3/image_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4480, 3715, 83, 12, 2890, 4672, 327, 1083, 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, 4480, 3715, 83, 12, 2890, 4672, 327, 1083, 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...
'fi' : lambda v: dh( v, u'%d00-luku', lambda i: i-1, lambda v: v[0]+1 ),
'en' : lambda v: multi( v, [ (lambda x: dh_constVal( x, 20, u'سده ۲۰ (میلادی)'), lambda p: p == 20)]), 'fi' : lambda v: dh( v, u'%d00-luku', lambda i: i-1, lambda ii: ii[0]+1 ),
def dh_knYearConverter( value ): if type(value) is int: # Encode an integer value into a textual form. return unicode(value).translate(_knDigitsToLocal) else: # First make sure there are no real digits in the string tmp = value.translate(_knDigitsToLocal) # Test if tmp == value: tmp = value.translate(_knLocalTo...
32e5f5c1a30bc02fc3075b9c456f10fafab05a66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/32e5f5c1a30bc02fc3075b9c456f10fafab05a66/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11007, 67, 21112, 5593, 5072, 12, 460, 262, 30, 309, 618, 12, 1132, 13, 353, 509, 30, 468, 6240, 392, 3571, 460, 1368, 279, 25774, 646, 18, 327, 5252, 12, 1132, 2934, 13929, 24899, 211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11007, 67, 21112, 5593, 5072, 12, 460, 262, 30, 309, 618, 12, 1132, 13, 353, 509, 30, 468, 6240, 392, 3571, 460, 1368, 279, 25774, 646, 18, 327, 5252, 12, 1132, 2934, 13929, 24899, 211...
self.Bind(wx.EVT_IDLE, self.OnIdle) self.Bind(wx.EVT_MENU, self.OnCommand, id=-1) self.Bind(wx.EVT_TOOL, self.OnCommand, id=-1) self.Bind(wx.EVT_UPDATE_UI, self.OnCommand, id=-1) self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroyWindow, id=-1) self.Bind(wx.EVT_SHOW, self.OnShow, id=-1) self.Bind(wx.EVT_KEY_DOWN, self.On...
def _displayHook(obj): if obj is not None: print repr(obj)
7bda8afccb100d6268f5d78f6968ba6c1568889e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7bda8afccb100d6268f5d78f6968ba6c1568889e/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5417, 5394, 12, 2603, 4672, 309, 1081, 353, 486, 599, 30, 1172, 8480, 12, 2603, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5417, 5394, 12, 2603, 4672, 309, 1081, 353, 486, 599, 30, 1172, 8480, 12, 2603, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
headers_path = path + '.mock-http-headers'
headers_path = file_path + '.mock-http-headers'
def FileHandler(self): """This handler sends the contents of the requested file. Wow, it's like a real webserver!"""
aa36f586cbe59a6e7c1e5f942a2340077678f23c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/aa36f586cbe59a6e7c1e5f942a2340077678f23c/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 1503, 12, 2890, 4672, 3536, 2503, 1838, 9573, 326, 2939, 434, 326, 3764, 585, 18, 225, 678, 543, 16, 518, 1807, 3007, 279, 2863, 732, 2266, 502, 5, 8395, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 1503, 12, 2890, 4672, 3536, 2503, 1838, 9573, 326, 2939, 434, 326, 3764, 585, 18, 225, 678, 543, 16, 518, 1807, 3007, 279, 2863, 732, 2266, 502, 5, 8395, 2, -100, -100, -100, -10...
self._pipe.setState(event.x, event.y, event.angle)
angle = 0 if event.x < 0.5 and event.y < 0.5: angle = event.angle self._pipe.setState(event.x, event.y, angle)
def PIPE_FOUND(self, event): """Update the state of the light, this moves the vehicle""" self._pipe.setState(event.x, event.y, event.angle)
f961f6ab5ed63f61ac39c2cfa1e282b0d4352bc6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/f961f6ab5ed63f61ac39c2cfa1e282b0d4352bc6/pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11716, 67, 9294, 12, 2890, 16, 871, 4672, 3536, 1891, 326, 919, 434, 326, 9052, 16, 333, 13934, 326, 24815, 8395, 5291, 273, 374, 309, 871, 18, 92, 411, 374, 18, 25, 471, 871, 18, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11716, 67, 9294, 12, 2890, 16, 871, 4672, 3536, 1891, 326, 919, 434, 326, 9052, 16, 333, 13934, 326, 24815, 8395, 5291, 273, 374, 309, 871, 18, 92, 411, 374, 18, 25, 471, 871, 18, 93...
def loginpage(mlist, doc, user, cgidata):
def loginpage(mlist, doc, user, lang):
def loginpage(mlist, doc, user, cgidata): realname = mlist.real_name actionurl = mlist.GetScriptURL('options') if user is None: title = _('%(realname)s list: member options login page') extra = _('email address and ') else: title = _('%(realname)s list: member options for user %(user)s') obuser = Utils.ObscureEmail(use...
d7486f36a2c21a3bf7f4e4354844f858131b0e0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d7486f36a2c21a3bf7f4e4354844f858131b0e0e/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 2433, 12, 781, 376, 16, 997, 16, 729, 16, 3303, 4672, 2863, 529, 273, 312, 1098, 18, 7688, 67, 529, 1301, 718, 273, 312, 1098, 18, 967, 3651, 1785, 2668, 2116, 6134, 309, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 2433, 12, 781, 376, 16, 997, 16, 729, 16, 3303, 4672, 2863, 529, 273, 312, 1098, 18, 7688, 67, 529, 1301, 718, 273, 312, 1098, 18, 967, 3651, 1785, 2668, 2116, 6134, 309, 729, ...
return apply(pow, params)
return pow(*params)
def _dispatch(self, method, params): if method == 'pow': return apply(pow, params) elif method == 'add': return params[0] + params[1] else: raise 'bad method'
6248a0e4c285ecf6ee6f0f27e490a8f28caa146c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6248a0e4c285ecf6ee6f0f27e490a8f28caa146c/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 12, 2890, 16, 707, 16, 859, 4672, 309, 707, 422, 296, 23509, 4278, 327, 7602, 30857, 2010, 13, 1327, 707, 422, 296, 1289, 4278, 327, 859, 63, 20, 65, 397, 859, 63, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 12, 2890, 16, 707, 16, 859, 4672, 309, 707, 422, 296, 23509, 4278, 327, 7602, 30857, 2010, 13, 1327, 707, 422, 296, 1289, 4278, 327, 859, 63, 20, 65, 397, 859, 63, 21, 65...
def read(self,size=None):
def read(self, size=None):
def read(self,size=None): if self.extrasize <= 0 and self.fileobj is None: return ''
2dc962ac75ac0d5fd2bd81608b9c0178fa7f2fdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2dc962ac75ac0d5fd2bd81608b9c0178fa7f2fdf/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 7036, 4672, 309, 365, 18, 23687, 554, 1648, 374, 471, 365, 18, 768, 2603, 353, 599, 30, 327, 875, 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, 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, 855, 12, 2890, 16, 963, 33, 7036, 4672, 309, 365, 18, 23687, 554, 1648, 374, 471, 365, 18, 768, 2603, 353, 599, 30, 327, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
check('c' in 'abc', "'c' not in 'abc'") check('d' not in 'abc', "'d' in 'abc'")
self.assert_('' in unicode('')) self.assert_(unicode('') in '') self.assert_(unicode('') in unicode('')) self.assert_('' in unicode('abc')) self.assert_(unicode('') in 'abc') self.assert_(unicode('') in unicode('abc'))
def check(ok, *args): if not ok: raise TestFailed, " ".join(map(str, args))
2ee30f8a6455291ff090aa80c6736686ef3f04e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/2ee30f8a6455291ff090aa80c6736686ef3f04e9/test_contains.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 601, 16, 380, 1968, 4672, 309, 486, 1529, 30, 1002, 7766, 2925, 16, 315, 3552, 5701, 12, 1458, 12, 701, 16, 833, 3719, 225, 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, 866, 12, 601, 16, 380, 1968, 4672, 309, 486, 1529, 30, 1002, 7766, 2925, 16, 315, 3552, 5701, 12, 1458, 12, 701, 16, 833, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not repo: repo = hg.repository(ui, path=path) ui = repo.ui
repo = hg.repository(ui, path=path) if not repo.local(): raise util.Abort(_("repository '%s' is not local") % path)
def print_time(): t = get_times() ui.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3]))
771267d706184f9e8e606c2cdb67ee9d756191e9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/771267d706184f9e8e606c2cdb67ee9d756191e9/cmdutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 957, 13332, 268, 273, 336, 67, 8293, 1435, 5915, 18, 8935, 24899, 2932, 950, 30, 2863, 12639, 23, 74, 18043, 261, 1355, 12639, 23, 74, 15, 9, 18, 23, 74, 2589, 12639, 23, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 957, 13332, 268, 273, 336, 67, 8293, 1435, 5915, 18, 8935, 24899, 2932, 950, 30, 2863, 12639, 23, 74, 18043, 261, 1355, 12639, 23, 74, 15, 9, 18, 23, 74, 2589, 12639, 23, 7...
unapplied_names = [] for name in orig_applied: if not name in applied_name_set: out.info('%s is now unapplied' % name) unapplied_names.append(name) for name in orig_unapplied: if name in applied_name_set: out.info('%s is now applied' % name) else: unapplied_names.append(name)
unapplied_name_set = set(p.patch for p in unapplied) patches_name_set = set(p.patch for p in patches) orig_patches = orig_applied + orig_unapplied orig_applied_name_set = set(orig_applied) orig_unapplied_name_set = set(orig_unapplied) orig_patches_name_set = set(orig_patches) for name in orig_patches_name_set - patches...
def name_taken(name): return name in names
2b049e124c85dcdbbc531c86ec336c7a9b41db36 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/2b049e124c85dcdbbc531c86ec336c7a9b41db36/assimilate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 29113, 12, 529, 4672, 327, 508, 316, 1257, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 29113, 12, 529, 4672, 327, 508, 316, 1257, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.status = self.set_data(data)
self.status = self.set_data(data, skip=['joinable_groups'])
def handle_set(self, action, data): self.auditer = ProfileAuditer(self.context) self.status = self.set_data(data)
3b878b790d3441ad053d77f9bdd2cbffe8f40e81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6273/3b878b790d3441ad053d77f9bdd2cbffe8f40e81/edit_profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 542, 12, 2890, 16, 1301, 16, 501, 4672, 365, 18, 24901, 2165, 273, 11357, 37, 1100, 2165, 12, 2890, 18, 2472, 13, 365, 18, 2327, 273, 365, 18, 542, 67, 892, 12, 892, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 542, 12, 2890, 16, 1301, 16, 501, 4672, 365, 18, 24901, 2165, 273, 11357, 37, 1100, 2165, 12, 2890, 18, 2472, 13, 365, 18, 2327, 273, 365, 18, 542, 67, 892, 12, 892, 16, ...
dir_part="dir_"+part.translate(DataPool.translation_table)
dir_part="dir_"+str(part).translate(DataPool.translation_table)
def write_hdf5(self,hdffile,where="/",name="data_pool", complib=None, complevel=None): if type(hdffile) is types.StringType: dump_file=tables.openFile(hdffile, mode="a") elif isinstance(hdffile,tables.File): dump_file=hdffile else: raise Exception("expecting hdffile or string")
0863d31be646bbf891d21a125a67eb94475cb2d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2646/0863d31be646bbf891d21a125a67eb94475cb2d7/DataPool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 26428, 25, 12, 2890, 16, 26428, 768, 16, 6051, 1546, 19, 3113, 529, 1546, 892, 67, 6011, 3113, 532, 6673, 33, 7036, 16, 1161, 2815, 33, 7036, 4672, 309, 618, 12, 26428, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 26428, 25, 12, 2890, 16, 26428, 768, 16, 6051, 1546, 19, 3113, 529, 1546, 892, 67, 6011, 3113, 532, 6673, 33, 7036, 16, 1161, 2815, 33, 7036, 4672, 309, 618, 12, 26428, 768, ...
def _resultFlags(self, result): """SF and ZF are set according to the result. (PF is not implemented.) """ return "fl.s=%s<0; fl.z=%s==0;" % ( signed(result), result.codegen()) def _subFlags(self, a, b, result): """Set flags after a subtraction. OF = signed borrow, CF = unsigned borrow. """ return "fl.s=%s<0; fl.z=%s=...
def _resultFlags(self, result): """SF and ZF are set according to the result. (PF is not implemented.) """ return "fl.s=%s<0; fl.z=%s==0;" % ( signed(result), result.codegen())
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, 389, 2088, 5094, 12, 2890, 16, 563, 4672, 3536, 22395, 471, 2285, 42, 854, 444, 4888, 358, 326, 563, 18, 261, 22026, 353, 486, 8249, 12998, 3536, 327, 315, 2242, 18, 87, 5095, 87, 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, 1, 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, 2088, 5094, 12, 2890, 16, 563, 4672, 3536, 22395, 471, 2285, 42, 854, 444, 4888, 358, 326, 563, 18, 261, 22026, 353, 486, 8249, 12998, 3536, 327, 315, 2242, 18, 87, 5095, 87, 32, ...
if self.aname_func: f = self.aname_func name = f(name)
self.typecode += '\n%sdef __init__(self, name=None, ns=None):'\ %(ID1)
3ba3fdc6d7934bdf581e98913d04bb6266bf48b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/3ba3fdc6d7934bdf581e98913d04bb6266bf48b1/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 723, 710, 1011, 2337, 82, 9, 87, 536, 1001, 2738, 972, 12, 2890, 16, 508, 33, 7036, 16, 3153, 33, 7036, 13, 2497, 64, 8975, 734, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 723, 710, 1011, 2337, 82, 9, 87, 536, 1001, 2738, 972, 12, 2890, 16, 508, 33, 7036, 16, 3153, 33, 7036, 13, 2497, 64, 8975, 734, 21, 13, 2, -100, -100, -100, -100, -100, -100, -...
__AllowedKeysVals = { 'nom':' ', 'type':' ', 'etiket':' ', 'ip1':-1,'ip2':-1,'ip3':-1, 'ni':-1,'nj':-1,'nk':-1, 'dateo':0, 'deet':0, 'npas':0, 'grtyp':'X', 'ig1':0,'ig2':0,'ig3':0,'ig4':0, 'datyp':0, 'nbits':0, 'handle':-2, 'nxt':0, 'fileref':None, 'datev':-1 }
def __init__(self,model=None,**args): FstParm.__init__(self,model,self.__AllowedKeysVals,args)
91fb3457fceaf01ce582b2fa492bc1d9a92f7ca3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1808/91fb3457fceaf01ce582b2fa492bc1d9a92f7ca3/rpnstd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2284, 33, 7036, 16, 636, 1968, 4672, 478, 334, 27144, 16186, 2738, 972, 12, 2890, 16, 2284, 16, 2890, 16186, 5042, 2396, 13169, 16, 1968, 13, 2, 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, 2284, 33, 7036, 16, 636, 1968, 4672, 478, 334, 27144, 16186, 2738, 972, 12, 2890, 16, 2284, 16, 2890, 16186, 5042, 2396, 13169, 16, 1968, 13, 2, -100, -1...
return self.artcmd('HEAD ' + id)
return self.artcmd('HEAD {0}'.format(id))
def head(self, id): """Process a HEAD command. Argument: - id: article number or message id Returns: - resp: server response if successful - nr: article number - id: message id - list: the lines of the article's header"""
933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 910, 12, 2890, 16, 612, 4672, 3536, 2227, 279, 14792, 1296, 18, 225, 5067, 30, 300, 612, 30, 7559, 1300, 578, 883, 612, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 300, 9884, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 910, 12, 2890, 16, 612, 4672, 3536, 2227, 279, 14792, 1296, 18, 225, 5067, 30, 300, 612, 30, 7559, 1300, 578, 883, 612, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 300, 9884, 30, ...
bug_project_name_format=bt.bug_project_name_format)
bug_project_name_format=bt.bug_project_name_format, bug_id_list_only=(bt.query_url_type=='tracker'))
def __init__(self): BugzillaBugTracker.__init__(self, base_url=bt.base_url, project_name=bt.project_name, bug_project_name_format=bt.bug_project_name_format)
22c798456d812994b94108f28c8f21fb9827bf17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/22c798456d812994b94108f28c8f21fb9827bf17/bugzilla.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 16907, 15990, 19865, 8135, 16186, 2738, 972, 12, 2890, 16, 1026, 67, 718, 33, 23602, 18, 1969, 67, 718, 16, 1984, 67, 529, 33, 23602, 18, 4406, 67, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 16907, 15990, 19865, 8135, 16186, 2738, 972, 12, 2890, 16, 1026, 67, 718, 33, 23602, 18, 1969, 67, 718, 16, 1984, 67, 529, 33, 23602, 18, 4406, 67, 529...
now = time()
def _create_connections(self): # order by last connection attempt addresses = [(timestamp, address) for address, timestamp in self._potential_peers.iteritems()] addresses.sort()
157fc3012a4da109750ba2f1445699bd4b263bd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/157fc3012a4da109750ba2f1445699bd4b263bd7/MiniBitTorrent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 13313, 12, 2890, 4672, 468, 1353, 635, 1142, 1459, 4395, 6138, 273, 306, 12, 5508, 16, 1758, 13, 364, 1758, 16, 2858, 316, 365, 6315, 26451, 67, 30502, 18, 2165, 3319, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 13313, 12, 2890, 4672, 468, 1353, 635, 1142, 1459, 4395, 6138, 273, 306, 12, 5508, 16, 1758, 13, 364, 1758, 16, 2858, 316, 365, 6315, 26451, 67, 30502, 18, 2165, 3319, 1...
else: return .0
return .0
def get_my(self): '''Gets movement in the Y direction (in [-1,1] for [top,bottom]).''' if self.js is None: keys = pygame.key.get_pressed() if keys[pygame.K_d]: return 1. elif keys[pygame.K_e]: return -1. else: return .0 else: return self.js.get_axis(1)
9b09cf6ef07d2ee54bff2ed908465c95a67128b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4253/9b09cf6ef07d2ee54bff2ed908465c95a67128b1/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4811, 12, 2890, 4672, 9163, 3002, 26017, 316, 326, 1624, 4068, 261, 267, 23059, 21, 16, 21, 65, 364, 306, 3669, 16, 9176, 5717, 1093, 6309, 309, 365, 18, 2924, 353, 599, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4811, 12, 2890, 4672, 9163, 3002, 26017, 316, 326, 1624, 4068, 261, 267, 23059, 21, 16, 21, 65, 364, 306, 3669, 16, 9176, 5717, 1093, 6309, 309, 365, 18, 2924, 353, 599, 30, ...
for j in range(len(self._input_reflection_file)):
for j in range(len(self._input_reflection_files)):
def _transform_input_files(self): '''Transform the input files to an order we can manage.'''
361426e5f8bc77ba9c792b11c847de461fc560d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/361426e5f8bc77ba9c792b11c847de461fc560d1/XScale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6547, 67, 2630, 67, 2354, 12, 2890, 4672, 9163, 4059, 326, 810, 1390, 358, 392, 1353, 732, 848, 10680, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6547, 67, 2630, 67, 2354, 12, 2890, 4672, 9163, 4059, 326, 810, 1390, 358, 392, 1353, 732, 848, 10680, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
preamble = """\ <?xml version="1.0" encoding="UTF-8"?>
preamble = """<?xml version="1.0" encoding="UTF-8"?>
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so just return return try: dagfile = open( self.__dag_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
af0d11174f59a33954bcf909dedc86e1d0c82d73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/af0d11174f59a33954bcf909dedc86e1d0c82d73/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 17801, 67, 30204, 12, 2890, 4672, 3536, 2598, 777, 326, 2199, 316, 326, 6095, 358, 326, 463, 2501, 585, 18, 3536, 309, 486, 365, 16186, 72, 651, 67, 768, 67, 803, 30, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 17801, 67, 30204, 12, 2890, 4672, 3536, 2598, 777, 326, 2199, 316, 326, 6095, 358, 326, 463, 2501, 585, 18, 3536, 309, 486, 365, 16186, 72, 651, 67, 768, 67, 803, 30, 468, ...
assert_equal(distance(xs[i],ys[j]),ds[i,j])
assert_almost_equal(distance(xs[i],ys[j]),ds[i,j])
def test_distance_matrix(): m = 10 n = 11 k = 4 xs = np.random.randn(m,k) ys = np.random.randn(n,k) ds = distance_matrix(xs,ys) assert_equal(ds.shape, (m,n)) for i in range(m): for j in range(n): assert_equal(distance(xs[i],ys[j]),ds[i,j])
d9e28ca6a06dfeff844a70ccc321e1622a9f7242 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/d9e28ca6a06dfeff844a70ccc321e1622a9f7242/test_kdtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8969, 67, 5667, 13332, 312, 273, 1728, 290, 273, 4648, 417, 273, 1059, 9280, 273, 1130, 18, 9188, 18, 7884, 82, 12, 81, 16, 79, 13, 16036, 273, 1130, 18, 9188, 18, 7884, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8969, 67, 5667, 13332, 312, 273, 1728, 290, 273, 4648, 417, 273, 1059, 9280, 273, 1130, 18, 9188, 18, 7884, 82, 12, 81, 16, 79, 13, 16036, 273, 1130, 18, 9188, 18, 7884, 82...
conn.exceptionListener = ExceptionListener()
def onException(self, exc): print exc, ':', exc.message
d343697b75a1cb479b374668ef3ecd948dedb388 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4106/d343697b75a1cb479b374668ef3ecd948dedb388/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 503, 12, 2890, 16, 3533, 4672, 1172, 3533, 16, 4290, 2187, 3533, 18, 2150, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 503, 12, 2890, 16, 3533, 4672, 1172, 3533, 16, 4290, 2187, 3533, 18, 2150, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
elif 'close' in self.headers.get('connection', ''):
elif 'close' in self.headers.get('connection', '').lower():
def decideWillClose(self): if self.shortVersion != 11: # Close all connections to HTTP/1.0 servers. self.willClose = True elif 'close' in self.headers.get('connection', ''): self.willClose = True elif not self.chunked and self.contentLength is None: # if we aren't chunked and didn't get a content length, we have to # a...
b0192d092ad24d92482b479bf4d7e3a99ad828db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/b0192d092ad24d92482b479bf4d7e3a99ad828db/httpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16288, 13670, 4605, 12, 2890, 4672, 309, 365, 18, 6620, 1444, 480, 4648, 30, 468, 3527, 777, 5921, 358, 2239, 19, 21, 18, 20, 7084, 18, 365, 18, 20194, 4605, 273, 1053, 1327, 296, 4412...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16288, 13670, 4605, 12, 2890, 4672, 309, 365, 18, 6620, 1444, 480, 4648, 30, 468, 3527, 777, 5921, 358, 2239, 19, 21, 18, 20, 7084, 18, 365, 18, 20194, 4605, 273, 1053, 1327, 296, 4412...
if dstStart <= dt.replace( tzinfo=None ) < dstEnd and not self.fixedStandardTime:
if dstStart < dstEnd: inDaylightSavings = dstStart <= dt.replace( tzinfo=None ) < dstEnd else: inDaylightSavings = not ( dstEnd < dt.replace( tzinfo=None ) <= dstStart ) if inDaylightSavings and not self.fixedStandardTime:
def dst( self, dt ): "Calculates the daylight savings offset according to the datetime.tzinfo spec" if dt is None: return assert dt.tzinfo is self result = self.standardBiasOffset
cf3fa811a57c8ceafc2a8592fc327ec3ba6fd3fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/677/cf3fa811a57c8ceafc2a8592fc327ec3ba6fd3fb/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3046, 12, 365, 16, 3681, 262, 30, 315, 10587, 326, 2548, 5099, 4087, 899, 1384, 4888, 358, 326, 3314, 18, 12994, 1376, 857, 6, 309, 3681, 353, 599, 30, 327, 1815, 3681, 18, 12994, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3046, 12, 365, 16, 3681, 262, 30, 315, 10587, 326, 2548, 5099, 4087, 899, 1384, 4888, 358, 326, 3314, 18, 12994, 1376, 857, 6, 309, 3681, 353, 599, 30, 327, 1815, 3681, 18, 12994, 1376...
continue
def validate(self, cr, uid, ids, context={}): if context and ('__last_update' in context): del context['__last_update'] ok = True for move in self.browse(cr, uid, ids, context): #unlink analytic lines on move_lines for obj_line in move.line_id: for obj in obj_line.analytic_lines: self.pool.get('account.analytic.line')....
65ddf755de8d52191634fd06a82995da790eef5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/65ddf755de8d52191634fd06a82995da790eef5e/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 819, 471, 7707, 972, 2722, 67, 2725, 11, 316, 819, 4672, 1464, 819, 3292, 972, 2722, 67, 2725, 3546, 1529, 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, 1954, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 819, 471, 7707, 972, 2722, 67, 2725, 11, 316, 819, 4672, 1464, 819, 3292, 972, 2722, 67, 2725, 3546, 1529, 273,...
self.existingBotRequests.remove(channel)
self.newBotRequests.remove(channel) log.msg("Removing channel %r on server %r from newBotRequests" % (channel, self.host))
def delChannel(self, channel): """Remove a channel from the list of those supported by the bots on this server, deleting any bots no longer necessary. """ # Remove it from our requested channel lists if it's there try: self.existingBotRequests.remove(channel) except: pass try: self.newBotRequests.remove(channel) except...
0e59b8074dbb9d1a5fd85936037861e1d4bb2334 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/0e59b8074dbb9d1a5fd85936037861e1d4bb2334/IRC.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 2909, 12, 2890, 16, 1904, 4672, 3536, 3288, 279, 1904, 628, 326, 666, 434, 5348, 3260, 635, 326, 2512, 87, 603, 333, 1438, 16, 12993, 1281, 2512, 87, 1158, 7144, 4573, 18, 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, 1464, 2909, 12, 2890, 16, 1904, 4672, 3536, 3288, 279, 1904, 628, 326, 666, 434, 5348, 3260, 635, 326, 2512, 87, 603, 333, 1438, 16, 12993, 1281, 2512, 87, 1158, 7144, 4573, 18, 3536, ...
global MESHLIGHTPOWER, DSAMPLES col=10; line=200; BGL.glRasterPos2i(col, line); Draw.Text("Meshlight:") col=100; line=195; MESHLIGHTPOWER=Draw.Number("Power", 2, col, line, 120, 18, MESHLIGHTPOWER.val, 1, 15) col=10; line=150; BGL.glRasterPos2i(col, line); Draw.Text("Lightserver:") col=100; line=147; DSAMPLES=Draw.Nu...
global MESHLIGHTPOWER, LAMPPOWER, DSAMPLES, CONVLAMP col=10; line=205; BGL.glRasterPos2i(col, line); Draw.Text("Global Options:") col=10; line=180; BGL.glRasterPos2i(col, line); Draw.Text("Meshlight:") col=110; line=175; MESHLIGHTPOWER=Draw.Number("Power", 2, col, line, 200, 18, MESHLIGHTPOWER.val, 1, 10000) col=10; li...
def drawLights(): global MESHLIGHTPOWER, DSAMPLES ## meshlight power slider col=10; line=200; BGL.glRasterPos2i(col, line); Draw.Text("Meshlight:") col=100; line=195; MESHLIGHTPOWER=Draw.Number("Power", 2, col, line, 120, 18, MESHLIGHTPOWER.val, 1, 15) ## lightserver settings col=10; line=150; BGL.glRasterPos2i(col, li...
cbe7db97c14dab7ad62f558e33819d3bd283fe7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/cbe7db97c14dab7ad62f558e33819d3bd283fe7b/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 48, 10730, 13332, 2552, 7733, 2664, 23516, 2419, 18839, 16, 8678, 8900, 11386, 7541, 6986, 5099, 7212, 18442, 645, 33, 2163, 31, 980, 33, 6976, 31, 605, 11261, 18, 7043, 18637, 1616,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 48, 10730, 13332, 2552, 7733, 2664, 23516, 2419, 18839, 16, 8678, 8900, 11386, 7541, 6986, 5099, 7212, 18442, 645, 33, 2163, 31, 980, 33, 6976, 31, 605, 11261, 18, 7043, 18637, 1616,...
delta = coord()
delta = Coord()
def targetcheck(w): "Return None if target is invalid, otherwise return a course angle." if not w.valid_sector(): huh() return None delta = coord() # FIXME: C code this was translated from is wacky -- why the sign reversal? delta.j = (w.j - game.sector.j); delta.i = (game.sector.i - w.i); if delta == coord(0, 0): skip(...
e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1018, 1893, 12, 91, 4672, 315, 990, 599, 309, 1018, 353, 2057, 16, 3541, 327, 279, 4362, 5291, 1199, 309, 486, 341, 18, 877, 67, 5709, 280, 13332, 366, 89, 76, 1435, 327, 599, 3622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1018, 1893, 12, 91, 4672, 315, 990, 599, 309, 1018, 353, 2057, 16, 3541, 327, 279, 4362, 5291, 1199, 309, 486, 341, 18, 877, 67, 5709, 280, 13332, 366, 89, 76, 1435, 327, 599, 3622, ...
return packet
return raw_packet
def get_campaign_raw(self, name): """ Downloads the named campaign and returns it as a raw binary WML packet. """ request = wmldata.DataSub("request_campaign") request.insert( wmldata.DataText("name", name) ) self.send_packet( self.makePacket( request ) ) raw_packet = self.read_packet() packet = self.decode( raw_packet...
dcc4b22d466b877dafc48152521076554db2c8f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9355/dcc4b22d466b877dafc48152521076554db2c8f6/campaignserver_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14608, 67, 1899, 12, 2890, 16, 508, 4672, 3536, 13059, 87, 326, 4141, 8965, 471, 1135, 518, 487, 279, 1831, 3112, 678, 1495, 4414, 18, 3536, 590, 273, 341, 781, 892, 18, 751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14608, 67, 1899, 12, 2890, 16, 508, 4672, 3536, 13059, 87, 326, 4141, 8965, 471, 1135, 518, 487, 279, 1831, 3112, 678, 1495, 4414, 18, 3536, 590, 273, 341, 781, 892, 18, 751, ...
write_utctime('DTSTAMP', localtime(milestone['due'])) write_date('DTSTART', localtime(milestone['due']))
write_utctime('DTSTAMP', due_ts) write_date('DTSTART', due_ts)
def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params)
517187fd8e15835f4c27204d1d2cef2e8fb9a563 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/517187fd8e15835f4c27204d1d2cef2e8fb9a563/roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
def _readPort(self, numBytes = 100): """Read numBytes from the serial port""" return self.ser.read(numBytes)
def _readPort(self): """Read data from the serial port""" print 'Reading from port...' while self.ser.inWaiting() == 0: pass m = '' input = 'xxx' while input != '': input = self._readByte() m += input return m
def _readPort(self, numBytes = 100): """Read numBytes from the serial port""" #print "waiting for %d bytes..." % numBytes return self.ser.read(numBytes)
698fd7e46191839f277d26d69c3357f26c088897 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3716/698fd7e46191839f277d26d69c3357f26c088897/plotter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 2617, 12, 2890, 16, 18633, 273, 2130, 4672, 3536, 1994, 18633, 628, 326, 2734, 1756, 8395, 468, 1188, 315, 20241, 364, 738, 72, 1731, 7070, 738, 18633, 327, 365, 18, 550, 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, 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, 896, 2617, 12, 2890, 16, 18633, 273, 2130, 4672, 3536, 1994, 18633, 628, 326, 2734, 1756, 8395, 468, 1188, 315, 20241, 364, 738, 72, 1731, 7070, 738, 18633, 327, 365, 18, 550, 18, ...
finally: for f in glob.glob(self.fn+"*"): os.unlink(f)
def test_ascii_file_shelf(self): try: s = shelve.open(self.fn, protocol=0) s['key1'] = (1,2,3,4) self.assertEqual(s['key1'], (1,2,3,4)) s.close() finally: for f in glob.glob(self.fn+"*"): os.unlink(f)
8d9db047d2dde9a36197449bd66ea8b0dc42286d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8d9db047d2dde9a36197449bd66ea8b0dc42286d/test_shelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9184, 67, 768, 67, 674, 19079, 12, 2890, 4672, 775, 30, 272, 273, 699, 292, 537, 18, 3190, 12, 2890, 18, 4293, 16, 1771, 33, 20, 13, 272, 3292, 856, 21, 3546, 273, 261, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9184, 67, 768, 67, 674, 19079, 12, 2890, 4672, 775, 30, 272, 273, 699, 292, 537, 18, 3190, 12, 2890, 18, 4293, 16, 1771, 33, 20, 13, 272, 3292, 856, 21, 3546, 273, 261, 2...
return mysqldump_command ("--no-data --compact -u%s %s%s --default-character-set=utf8 %s" % (user, "-p" if password else "", password, db))
host = config["db_host"] return mysqldump_command ("--no-data --add-lock=false --compact -u%s %s%s %s --default-character-set=utf8 %s" % (user, "-p" if password else "", password, "-h"+host if host <> 'localhost' else "", db))
def dump(): config = cmds.init.config() user = config["db_user"] password = config["db_pass"] db = config["db_db"] return mysqldump_command ("--no-data --compact -u%s %s%s --default-character-set=utf8 %s" % (user, "-p" if password else "", password, db))
79ef7a1880e122bd6db6fc218ec7bc58b60c4536 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4977/79ef7a1880e122bd6db6fc218ec7bc58b60c4536/dump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 13332, 642, 273, 13446, 18, 2738, 18, 1425, 1435, 729, 377, 273, 642, 9614, 1966, 67, 1355, 11929, 2201, 273, 642, 9614, 1966, 67, 5466, 11929, 1319, 4202, 273, 642, 9614, 1966, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 13332, 642, 273, 13446, 18, 2738, 18, 1425, 1435, 729, 377, 273, 642, 9614, 1966, 67, 1355, 11929, 2201, 273, 642, 9614, 1966, 67, 5466, 11929, 1319, 4202, 273, 642, 9614, 1966, 67...
for the particular linker being used).""" pass def link_shared_lib (self, objects, output_libname, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None): """Link a bunch of stuff together to create a shared library file. Has the same effect as 'link_static_lib()' except that t...
for the particular linker being used)."""
def link_static_lib (self, objects, output_libname, output_dir=None): """Link a bunch of stuff together to create a static library file. The "bunch of stuff" consists of the list of object files supplied as 'objects', the extra object files supplied to 'add_link_object()' and/or 'set_link_objects()', the libraries sup...
ad52244351623d70cabe2a37810a940852ec67bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ad52244351623d70cabe2a37810a940852ec67bb/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 3845, 67, 2941, 261, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 4672, 3536, 2098, 279, 25606, 434, 10769, 9475, 358, 752, 279, 760, 5313, 585, 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, 1692, 67, 3845, 67, 2941, 261, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 4672, 3536, 2098, 279, 25606, 434, 10769, 9475, 358, 752, 279, 760, 5313, 585, 18, ...
version='0.2.3',
version='0.2.4',
def append_if_valid(target, tuple): if os.path.exists(tuple[0]): target.append(tuple)
8c3779734162eb29db564e71c73414048e78bfa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/633/8c3779734162eb29db564e71c73414048e78bfa3/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 430, 67, 877, 12, 3299, 16, 3193, 4672, 309, 1140, 18, 803, 18, 1808, 12, 8052, 63, 20, 65, 4672, 1018, 18, 6923, 12, 8052, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 714, 67, 430, 67, 877, 12, 3299, 16, 3193, 4672, 309, 1140, 18, 803, 18, 1808, 12, 8052, 63, 20, 65, 4672, 1018, 18, 6923, 12, 8052, 13, 225, 2, -100, -100, -100, -100, -100, -100, ...
def setup(self, build_dir = None): if not build_dir: build_dir = self.srcdir os.mkdir(build_dir) def __init_tree(self, build_dir, version = None):
def __init_tree(self, version=None):
def setup(self, build_dir = None): if not build_dir: build_dir = self.srcdir os.mkdir(build_dir)
c165c11c6c397f0e290ddf6858a3e6d088599bf5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/c165c11c6c397f0e290ddf6858a3e6d088599bf5/kernbench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 1361, 67, 1214, 273, 599, 4672, 309, 486, 1361, 67, 1214, 30, 1361, 67, 1214, 273, 365, 18, 4816, 1214, 1140, 18, 26686, 12, 3510, 67, 1214, 13, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 12, 2890, 16, 1361, 67, 1214, 273, 599, 4672, 309, 486, 1361, 67, 1214, 30, 1361, 67, 1214, 273, 365, 18, 4816, 1214, 1140, 18, 26686, 12, 3510, 67, 1214, 13, 2, -100, -100, -1...
components = [ comp.strip() for comp in geoquery.encode('utf-8').split(',')]
logger.debug("geolookup_json: " + repr((geoquery, ))) components = [ comp.strip() for comp in geoquery.split(u',')]
def geolookup_json(place=None): ''' Transform to return the latitude/longitude of a place name, if found Sample request: * curl "http://localhost:8880/geolookup.json?place=Superior,%20CO" * curl "http://localhost:8880/geolookup.json?place=1600%20Amphitheatre%20Parkway,%20Mountain%20View,%20VA,%2094043" * curl "http://...
25f5e1bda200a89e78e95711a3c6d12e1a044acc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7225/25f5e1bda200a89e78e95711a3c6d12e1a044acc/geocoding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8244, 355, 4909, 67, 1977, 12, 964, 33, 7036, 4672, 9163, 11514, 358, 327, 326, 8904, 19, 16867, 434, 279, 3166, 508, 16, 309, 1392, 225, 11474, 590, 30, 380, 3363, 315, 2505, 2207, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8244, 355, 4909, 67, 1977, 12, 964, 33, 7036, 4672, 9163, 11514, 358, 327, 326, 8904, 19, 16867, 434, 279, 3166, 508, 16, 309, 1392, 225, 11474, 590, 30, 380, 3363, 315, 2505, 2207, 13...
"Version: %s %s\n%s" %
"Version: %s %s $Rev$\n%s" %
def botErrorReporter(text): dch = dtMain.dch if dch: dch.bot.say( "Something bad happened. You might want to email this to " "bugs@dtella.org so we'll know about it:\n" "Version: %s %s\n%s" % (local.hub_name, get_version_string()[3:], text))
8b65a6e720f2694c78ef98d0c16f2b1c8d13d4c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8524/8b65a6e720f2694c78ef98d0c16f2b1c8d13d4c1/dtella.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2512, 668, 13289, 12, 955, 4672, 302, 343, 273, 3681, 6376, 18, 72, 343, 309, 302, 343, 30, 302, 343, 18, 4819, 18, 87, 528, 12, 315, 24332, 5570, 17497, 18, 225, 4554, 4825, 2545, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2512, 668, 13289, 12, 955, 4672, 302, 343, 273, 3681, 6376, 18, 72, 343, 309, 302, 343, 30, 302, 343, 18, 4819, 18, 87, 528, 12, 315, 24332, 5570, 17497, 18, 225, 4554, 4825, 2545, 3...
if p not in binaries[arch][0] or \
if p in broken or p not in binaries[arch][0] or \
def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst()
1f9ba4410c75a5f4cafac19e8033b8218b3b49ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/1f9ba4410c75a5f4cafac19e8033b8218b3b49ba/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 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, 0, 0, 0, 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, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, -100, -100, -100, -100, -100, -100, -100, ...
container.set_payload(fp.read())
text = fp.read() if firstbodyline is not None: text = firstbodyline + '\n' + text container.set_payload(text)
def _parsebody(self, container, fp): # Parse the body, but first split the payload on the content-type # boundary if present. boundary = container.get_boundary() isdigest = (container.get_content_type() == 'multipart/digest') # If there's a boundary, split the payload text into its constituent # parts and parse each se...
b5bd43248ca2dd070eb68388c0c7e594cf6a0187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b5bd43248ca2dd070eb68388c0c7e594cf6a0187/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 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, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, ...
is_little_endian = True is_implicit_VR = True logger.debug("Using %s VR, %s Endian transfer syntax" %(("Explicit", "Implicit")[is_implicit_VR], ("Big", "Little")[is_little_endian]))
self._is_little_endian = True self._is_implicit_VR = True logger.debug("Using %s VR, %s Endian transfer syntax" %(("Explicit", "Implicit")[self._is_implicit_VR], ("Big", "Little")[self._is_little_endian]))
def __init__(self, fp, stop_when=None, force=False): """Read the preambleand meta info, prepare iterator for remainder
727d6ae2a1279c66f6d759d063ea5c9068af9d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5900/727d6ae2a1279c66f6d759d063ea5c9068af9d10/filereader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4253, 16, 2132, 67, 13723, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 1994, 326, 27841, 464, 2191, 1123, 16, 2911, 2775, 364, 10022, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4253, 16, 2132, 67, 13723, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 1994, 326, 27841, 464, 2191, 1123, 16, 2911, 2775, 364, 10022, 2, -100, -100, -100, ...
connection = DebugConnection()
def TestGenerated(): # Create an instance of the server. o=PyCOMTest.CoPyCOMTest() counter = o.GetSimpleCounter() TestCounter(counter, 1) counter = win32com.client.Dispatch("PyCOMTest.SimpleCounter") TestCounter(counter, 1) i1, i2 = o.GetMultipleInterfaces() if type(i1) != types.InstanceType or type(i2) != types.Inst...
5af16383253cf687ba26415b93fe945b32ae49ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/5af16383253cf687ba26415b93fe945b32ae49ae/testPyComTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 7823, 13332, 468, 1788, 392, 791, 434, 326, 1438, 18, 320, 33, 9413, 4208, 4709, 18, 4249, 9413, 4208, 4709, 1435, 3895, 273, 320, 18, 967, 5784, 4789, 1435, 7766, 4789, 12, 7476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 7823, 13332, 468, 1788, 392, 791, 434, 326, 1438, 18, 320, 33, 9413, 4208, 4709, 18, 4249, 9413, 4208, 4709, 1435, 3895, 273, 320, 18, 967, 5784, 4789, 1435, 7766, 4789, 12, 7476, ...
self.theDataList[num].set_points( None, None ) else: if self.scale == "log": if min(array(LoggerData)[:,1]) <= 0:
self.theDataList[num].set_points(None,None) elif yaxis == '': self.theDataList[num].set_points(None,None) else : if self.scale == 'log': if min(array(LoggerData)[:,1] ) <= 0:
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 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, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 2...
def server_response (self, response, statuscode, headers):
def server_response (self, response, statuscode, status, headers):
def server_response (self, response, statuscode, headers): """the server got a response""" # Okay, transfer control over to the real client if self.client.connected: config['requests']['valid'] += 1 self.server.client = self.client self.client.server_response(self.server, response, statuscode, headers) else: self.serve...
5aaaf0f8c7cbeb35466459a95e5888072c287921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5aaaf0f8c7cbeb35466459a95e5888072c287921/ClientServerMatchmaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 2740, 261, 2890, 16, 766, 16, 1267, 710, 16, 1267, 16, 1607, 4672, 3536, 5787, 1438, 2363, 279, 766, 8395, 468, 16154, 528, 16, 7412, 3325, 1879, 358, 326, 2863, 1004, 309, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 2740, 261, 2890, 16, 766, 16, 1267, 710, 16, 1267, 16, 1607, 4672, 3536, 5787, 1438, 2363, 279, 766, 8395, 468, 16154, 528, 16, 7412, 3325, 1879, 358, 326, 2863, 1004, 309, 3...
self.warning = "%s\nWarning: you have much more %s than %s - " \
self.warning = "Warning: you have much more %s than %s - " \
def createWorkers(self): """Using the options that were initialised in __init__ and then possibly overridden by the driver code, create the Bayes object, the Corpuses, the Trainers and so on.""" print "Loading database...", if self.isTest: self.useDB = True options["Storage", "persistent_storage_file"] = \ '_pop3proxy_...
ae0e3cca38666eb909c06886707365d5b81f09a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ae0e3cca38666eb909c06886707365d5b81f09a8/sb_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 15252, 12, 2890, 4672, 3536, 7736, 326, 702, 716, 4591, 30372, 316, 1001, 2738, 972, 471, 1508, 10016, 11000, 635, 326, 3419, 981, 16, 752, 326, 605, 528, 281, 733, 16, 326, 9557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 15252, 12, 2890, 4672, 3536, 7736, 326, 702, 716, 4591, 30372, 316, 1001, 2738, 972, 471, 1508, 10016, 11000, 635, 326, 3419, 981, 16, 752, 326, 605, 528, 281, 733, 16, 326, 9557, ...
( ( ( [a-zA-Z][a-zA-Z0-9.+-]*
(?P<whole> (?P<absolute> (?P<scheme> [a-zA-Z][a-zA-Z0-9.+-]*
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
72a0c19a34dcc90353f2d799116ebcadd510f22a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/72a0c19a34dcc90353f2d799116ebcadd510f22a/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
if self.debug > 1: print 'No change to atoms in set_atoms, returning'
log.debug('No change to atoms in set_atoms, returning')
def set_atoms(self, atoms): '''attach an atoms to the calculator and update the ncfile
e111e7f7da49e775bf6f578ffb8369e435e7a68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e111e7f7da49e775bf6f578ffb8369e435e7a68c/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 14937, 12, 2890, 16, 9006, 4672, 9163, 7331, 392, 9006, 358, 326, 15497, 471, 1089, 326, 8194, 768, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 14937, 12, 2890, 16, 9006, 4672, 9163, 7331, 392, 9006, 358, 326, 15497, 471, 1089, 326, 8194, 768, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if relation.type == 'FirstAlbumRelease' and relation.direction == 'backward': album._requests += 1 album.tagger.xmlws.get_release_by_id(relation.target, partial(_earliest_release_downloaded, album, metadata, relation.target), ['release-events'])
try: if relation.type == 'FirstAlbumRelease' and relation.direction == 'backward': album._requests += 1 album.tagger.xmlws.get_release_by_id(relation.target, partial(_earliest_release_downloaded, album, metadata, relation.target), ['release-events']) except AttributeError: pass
def original_release_date(album, metadata, release_node): # First find the earliest release from the release event list get_earliest_release_date(album, metadata) # Check for earliest release ARs and load those for relation_list in release_node.relation_list: if relation_list.target_type == 'Release': for relation in ...
2bced1890c4bb48f12cccd2ce021cd44060e7f07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12415/2bced1890c4bb48f12cccd2ce021cd44060e7f07/originalreleasedate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2282, 67, 9340, 67, 712, 12, 25090, 16, 1982, 16, 3992, 67, 2159, 4672, 468, 5783, 1104, 326, 20674, 3992, 628, 326, 3992, 871, 666, 336, 67, 2091, 17452, 67, 9340, 67, 712, 12, 25090,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2282, 67, 9340, 67, 712, 12, 25090, 16, 1982, 16, 3992, 67, 2159, 4672, 468, 5783, 1104, 326, 20674, 3992, 628, 326, 3992, 871, 666, 336, 67, 2091, 17452, 67, 9340, 67, 712, 12, 25090,...
if importer in (None, True, False):
if importer is None:
def get_importer(path_item): """Retrieve a PEP 302 importer for the given path item The returned importer is cached in sys.path_importer_cache if it was newly created by a path hook. If there is no importer, a wrapper around the basic import machinery is returned. This wrapper is never inserted into the importer cach...
8a611a4b2a6cca42fdd7bf76558cc424bfcdab44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8a611a4b2a6cca42fdd7bf76558cc424bfcdab44/pkgutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 381, 7988, 12, 803, 67, 1726, 4672, 3536, 5767, 279, 453, 10541, 22072, 15198, 364, 326, 864, 589, 761, 225, 1021, 2106, 15198, 353, 3472, 316, 2589, 18, 803, 67, 381, 7988, 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, 336, 67, 381, 7988, 12, 803, 67, 1726, 4672, 3536, 5767, 279, 453, 10541, 22072, 15198, 364, 326, 864, 589, 761, 225, 1021, 2106, 15198, 353, 3472, 316, 2589, 18, 803, 67, 381, 7988, 6...
" disabled.\r\n\r\n" + problem + \ "\r\n\r\nDo you wish to re-configure?"
" disabled.\r\n\r\n%s" \ "\r\n\r\nDo you wish to re-configure?") % (problem,)
def OnClicked(self, id): problem = self.window.manager.GetDisabledReason() if problem: q = "There appears to be a problem with SpamBayes' configuration" \ "\r\nIf you do not fix this problem, SpamBayes will be" \ " disabled.\r\n\r\n" + problem + \ "\r\n\r\nDo you wish to re-configure?" if self.window.manager.AskQuestio...
c9923df9c2fef063ce495c72775c5430c242ceeb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6126/c9923df9c2fef063ce495c72775c5430c242ceeb/processors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 27633, 12, 2890, 16, 612, 4672, 6199, 273, 365, 18, 5668, 18, 4181, 18, 967, 8853, 8385, 1435, 309, 6199, 30, 1043, 273, 315, 9828, 14606, 358, 506, 279, 6199, 598, 5878, 301, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 27633, 12, 2890, 16, 612, 4672, 6199, 273, 365, 18, 5668, 18, 4181, 18, 967, 8853, 8385, 1435, 309, 6199, 30, 1043, 273, 315, 9828, 14606, 358, 506, 279, 6199, 598, 5878, 301, 38...
newSigValue = self.rankSignalAspect(newSigState) oldSigValue = self.rankSignalAspect(oldSigState) self.msgText("compareSignalAspects: " + self.textSignalAspect(oldSigState) + " went " + self.textSignalAspect(newSigState) + "\n") if (newSigValue < oldSigValue) : ret = -1 elif (newSigValue > oldSigValue) :
if (oldSigState == None) :
def compareSignalAspects(self, oldSigState, newSigState) : ret = "0" if (newSigState == None or oldSigState == None) : # this is wrong self.msgText("compare signals got a None for a signal\n") self.doHalt() return newSigValue = self.rankSignalAspect(newSigState) oldSigValue = self.rankSignalAspect(oldSigState) self.msg...
219951f746f72f6210b1a985c486a3c0fe38a240 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1660/219951f746f72f6210b1a985c486a3c0fe38a240/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 11208, 17468, 87, 12, 2890, 16, 1592, 8267, 1119, 16, 394, 8267, 1119, 13, 294, 325, 273, 315, 20, 6, 309, 261, 2704, 8267, 1119, 422, 599, 578, 1592, 8267, 1119, 422, 599, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 11208, 17468, 87, 12, 2890, 16, 1592, 8267, 1119, 16, 394, 8267, 1119, 13, 294, 325, 273, 315, 20, 6, 309, 261, 2704, 8267, 1119, 422, 599, 578, 1592, 8267, 1119, 422, 599, 13, ...
self.intval = void_p.value
self.intval = intmask(void_p.value)
def __init__(self, void_p): self.intval = void_p.value
7cb0531c0769138b3ca4e1969b89239c5118cf8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/7cb0531c0769138b3ca4e1969b89239c5118cf8f/ll2ctypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 918, 67, 84, 4672, 365, 18, 474, 1125, 273, 918, 67, 84, 18, 1132, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 918, 67, 84, 4672, 365, 18, 474, 1125, 273, 918, 67, 84, 18, 1132, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if redDefault == red: redirKeywords = [red] + self.family.redirect[self.lang] redirKeywordsR = r'(?:redirect|' + '|'.join(redirKeywords) + ')' else: redirKeywords = [red] + self.family.redirect[self.lang] redirKeywordsR = r'(?:redirect|' + redDefault + '|'.join(redirKeywords) + ')'
redirKeywords = [u'redirect'] + self.family.redirect[self.lang] redirKeywordsR = r'(?:' + '|'.join(redirKeywords) + ')'
def redirectRegex(self): """Return a compiled regular expression matching on redirect pages.
83798679d6b85ad31b8994af82fc922f9bcabb64 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/83798679d6b85ad31b8994af82fc922f9bcabb64/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 6628, 12, 2890, 4672, 3536, 990, 279, 7743, 6736, 2652, 3607, 603, 3136, 4689, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 6628, 12, 2890, 4672, 3536, 990, 279, 7743, 6736, 2652, 3607, 603, 3136, 4689, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: f = Piecewise([[(0,pi/2),f1],[(pi/2,pi),f2]])
sage: f = Piecewise([[(-pi,pi/2),f1],[(pi/2,pi),f2]])
def fourier_series_partial_sum_filtered(self,N,L,F): r""" Returns the "filtered" partial sum \[ f(x) \sim \frac{a_0}{2} + \sum_{n=1}^N F_n*[a_n\cos(\frac{n\pi x}{L}) + b_n\sin(\frac{n\pi x}{L})], \] as a string, where $F = [F_1,F_2, ..., F_{N}]$ is a list of length $N$ consisting of real numbers.
07280a8b6fa4d850d9f2f5771eb969f4ee406c9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/07280a8b6fa4d850d9f2f5771eb969f4ee406c9c/piecewise.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12792, 2453, 67, 10222, 67, 11601, 67, 1364, 67, 12071, 12, 2890, 16, 50, 16, 48, 16, 42, 4672, 436, 8395, 2860, 326, 315, 12071, 6, 4702, 2142, 521, 63, 284, 12, 92, 13, 521, 9812, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12792, 2453, 67, 10222, 67, 11601, 67, 1364, 67, 12071, 12, 2890, 16, 50, 16, 48, 16, 42, 4672, 436, 8395, 2860, 326, 315, 12071, 6, 4702, 2142, 521, 63, 284, 12, 92, 13, 521, 9812, ...
self.stop_art_update = True while self.updating_art: gtk.main_iteration()
def choose_image(self, widget): self.stop_art_update = True while self.updating_art: gtk.main_iteration() self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) choose_dialog = gtk.Dialog(_("Choose Cover Art"), self.window, gtk.DIALOG_MODAL, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)) choosebutton = choose_dialog.add_button(_(...
7887607cb534b053442ac9710ec7241659a64004 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/7887607cb534b053442ac9710ec7241659a64004/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 2730, 12, 2890, 16, 3604, 4672, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 9876, 67, 12730, 273, 22718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 2730, 12, 2890, 16, 3604, 4672, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 9876, 67, 12730, 273, 22718, ...
s = idaapi.get_struc(id)
s = idaapi.get_struc(sid)
def GetMemberSize(id, member_offset): """ Get size of a member @param id: structure type ID @param member_offset: member offset. The offset can be any offset in the member. For example, is a member is 4 bytes long and starts at offset 2, then 2,3,4,5 denote the same structure member. @return: -1 if bad structure type...
76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4419, 1225, 12, 350, 16, 3140, 67, 3348, 4672, 3536, 968, 963, 434, 279, 3140, 225, 632, 891, 612, 30, 3695, 618, 1599, 632, 891, 3140, 67, 3348, 30, 3140, 1384, 18, 1021, 1384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4419, 1225, 12, 350, 16, 3140, 67, 3348, 4672, 3536, 968, 963, 434, 279, 3140, 225, 632, 891, 612, 30, 3695, 618, 1599, 632, 891, 3140, 67, 3348, 30, 3140, 1384, 18, 1021, 1384, ...
"""Does a conversion on the retrieved text from the wiki i.e. Esperanto X-conversion """ return getText
"""Does a conversion on the retrieved text from the wiki i.e. Esperanto X-conversion """ return getText
def post_get_convert(self, site, getText):
f80f31897808c39fd50c36b8ad3249f6637ac9cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/f80f31897808c39fd50c36b8ad3249f6637ac9cb/family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 588, 67, 6283, 12, 2890, 16, 2834, 16, 6701, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 588, 67, 6283, 12, 2890, 16, 2834, 16, 6701, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if 'stderr.gz' in os.listdir(job.outputdir) or 'stdout.txt.gz' in os.listdir(job.outputdir):
if 'stderr.gz' in os.listdir(job.outputdir) or 'stdout.txt.gz' in os.listdir(job.outputdir) or 'stdout.gz' in os.listdir(job.outputdir):
def collectStats(self): """Collect job statistics from different log files and fill dict Athena.stats""" import gzip, time, fileinput from Ganga.GPIDev.Lib.Job import Job job = self.getJobObject()
84e3ae30e08c8ceda99d70ae3612399670c70a4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/84e3ae30e08c8ceda99d70ae3612399670c70a4b/Athena.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 4195, 12, 2890, 4672, 3536, 10808, 1719, 7691, 628, 3775, 613, 1390, 471, 3636, 2065, 432, 15991, 69, 18, 5296, 8395, 1930, 10331, 16, 813, 16, 585, 2630, 628, 611, 539, 69, 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, 3274, 4195, 12, 2890, 4672, 3536, 10808, 1719, 7691, 628, 3775, 613, 1390, 471, 3636, 2065, 432, 15991, 69, 18, 5296, 8395, 1930, 10331, 16, 813, 16, 585, 2630, 628, 611, 539, 69, 18, ...
str += ' <TR><TD>'+term+'</TD>\n <TD>'
str += ' <tr><td width="10%">'+term+'</td>\n <td>'
def _index_to_html(self): str = self._header('Index') str += self._navbar('index') + '<br/>\n' str += self._start_of('Index')
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 67, 869, 67, 2620, 12, 2890, 4672, 609, 273, 365, 6315, 3374, 2668, 1016, 6134, 609, 1011, 365, 6315, 11589, 3215, 2668, 1615, 6134, 397, 2368, 2848, 19, 5333, 82, 11, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 67, 869, 67, 2620, 12, 2890, 4672, 609, 273, 365, 6315, 3374, 2668, 1016, 6134, 609, 1011, 365, 6315, 11589, 3215, 2668, 1615, 6134, 397, 2368, 2848, 19, 5333, 82, 11, 609, ...
tail = "maya\\foo\\scenes\\bar.mb"
tail = "\\maya\\foo\\scenes\\bar.mb"
def test_nt_letter_unc_substitution(self): tail = "maya\\foo\\scenes\\bar.mb" self.assertEquals(ProjectPath(SPOOL_LETTER, tail).path, ProjectPath(SPOOL_UNC, tail).path) self.assertEquals(ProjectPath(SPOOL_LETTER, tail).unc, ProjectPath(SPOOL_UNC, tail).unc) self.assertEquals(ProjectPath(SPOOL_LETTER, tail).ppath, Proje...
fff00df4175edbd4f2370e9acc8c19d5976dc853 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14622/fff00df4175edbd4f2370e9acc8c19d5976dc853/helpers_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 496, 67, 13449, 67, 551, 67, 1717, 14278, 12, 2890, 4672, 5798, 273, 8422, 24877, 69, 1695, 11351, 1695, 1017, 275, 281, 1695, 3215, 18, 1627, 6, 365, 18, 11231, 8867, 12, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 496, 67, 13449, 67, 551, 67, 1717, 14278, 12, 2890, 4672, 5798, 273, 8422, 24877, 69, 1695, 11351, 1695, 1017, 275, 281, 1695, 3215, 18, 1627, 6, 365, 18, 11231, 8867, 12, 41...
log.write('Pointgroup: %s\n' % spacegroup) log.write('Cell: %9.3f%9.3f%9.3f%9.3f%9.3f%9.3f\n' % cell) log.write('Processed %d images in %d (%s)\n' % \ (metadata['end'] - metadata['start'] + 1, int(duration), time.strftime('%Hh %Mm %Ss', time.gmtime(duration)))) log.close()
fout.write('Pointgroup: %s\n' % spacegroup) fout.write('Cell: %9.3f%9.3f%9.3f%9.3f%9.3f%9.3f\n' % cell) fout.write('Processed %d images in %d (%s)\n' % \ (metadata['end'] - metadata['start'] + 1, int(duration), time.strftime('%Hh %Mm %Ss', time.gmtime(duration)))) fout.close()
def main(): '''Main program - chain together all of the above steps.''' starting_directory = os.getcwd() start_time = time.time() step_time = time.time() print os.environ['CCP4'] print 'Generating metadata' metadata = read_command_line() # working_directory = tempfile.mkdtemp() working_directory = os.path.join( me...
a804b4416c6a57ed03555e688ee929e1fadf5fb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3290/a804b4416c6a57ed03555e688ee929e1fadf5fb5/fast_dp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 9163, 6376, 5402, 300, 2687, 9475, 777, 434, 326, 5721, 6075, 1093, 6309, 225, 5023, 67, 5149, 273, 1140, 18, 588, 11089, 1435, 225, 787, 67, 957, 273, 813, 18, 957, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 9163, 6376, 5402, 300, 2687, 9475, 777, 434, 326, 5721, 6075, 1093, 6309, 225, 5023, 67, 5149, 273, 1140, 18, 588, 11089, 1435, 225, 787, 67, 957, 273, 813, 18, 957, 1435, ...
'item': end_item, 'reference': end_reference,
'item': lambda self, tag, data: data[2:], 'reference': lambda self, tag, data: self._pickleids[data[1]['id']],
def end_item(self, tag, data): v=data[2:] return v
b3044d78409b750569423711b47a47edfd53dde3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b3044d78409b750569423711b47a47edfd53dde3/ppml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 1726, 12, 2890, 16, 1047, 16, 501, 4672, 331, 33, 892, 63, 22, 26894, 327, 331, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 679, 67, 1726, 12, 2890, 16, 1047, 16, 501, 4672, 331, 33, 892, 63, 22, 26894, 327, 331, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
popen.stdin.close()
def query_vcvarsall(version, arch="x86"): """Launch vcvarsall.bat and read the settings from its environment """ vcvarsall = find_vcvarsall(version) interesting = set(("include", "lib", "libpath", "path")) result = {} if vcvarsall is None: raise DistutilsPlatformError("Unable to find vcvarsall.bat") log.debug("Calling...
67a93ae4ed80df1e27828c49826047310f95b154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/67a93ae4ed80df1e27828c49826047310f95b154/msvc9compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 4227, 4699, 454, 12, 1589, 16, 6637, 1546, 92, 5292, 6, 4672, 3536, 9569, 12802, 4699, 454, 18, 28260, 471, 855, 326, 1947, 628, 2097, 3330, 3536, 12802, 4699, 454, 273, 1104, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 4227, 4699, 454, 12, 1589, 16, 6637, 1546, 92, 5292, 6, 4672, 3536, 9569, 12802, 4699, 454, 18, 28260, 471, 855, 326, 1947, 628, 2097, 3330, 3536, 12802, 4699, 454, 273, 1104, ...
return gst.event_new_any(st)
return createCustom(st)
def audio(physical): """Create and return a new audio event for the specified physical stream.""" st = gst.Structure('application/x-gst-dvd'); st.set_value('event', 'dvd-audio-stream-change') st.set_value('physical', physical, 'int') return gst.event_new_any(st)
473dc8e598b7381c585def115d0d76dc79e52f54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/473dc8e598b7381c585def115d0d76dc79e52f54/events.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7447, 12, 20441, 4672, 3536, 1684, 471, 327, 279, 394, 7447, 871, 364, 326, 1269, 11640, 1407, 12123, 384, 273, 314, 334, 18, 6999, 2668, 3685, 19, 92, 17, 75, 334, 17, 15679, 72, 8284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7447, 12, 20441, 4672, 3536, 1684, 471, 327, 279, 394, 7447, 871, 364, 326, 1269, 11640, 1407, 12123, 384, 273, 314, 334, 18, 6999, 2668, 3685, 19, 92, 17, 75, 334, 17, 15679, 72, 8284...
for the curve `y^2 + y = x^3 - x^2 - 120x - 2183`.::
for the curve `y^2 + y = x^3 - x^2 - 120x - 2183`::
def certain(self): r""" True if the last :meth:`two_descent` call provably correctly computed the rank. If :meth:`two_descent` hasn't been called, then it is first called by :meth:`certain` using the default parameters.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8626, 12, 2890, 4672, 436, 8395, 1053, 309, 326, 1142, 294, 27305, 28288, 15415, 67, 5569, 319, 68, 745, 17197, 6906, 8783, 8470, 326, 6171, 18, 225, 971, 294, 27305, 28288, 15415, 67, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8626, 12, 2890, 4672, 436, 8395, 1053, 309, 326, 1142, 294, 27305, 28288, 15415, 67, 5569, 319, 68, 745, 17197, 6906, 8783, 8470, 326, 6171, 18, 225, 971, 294, 27305, 28288, 15415, 67, 5...
self.code == space.unwrap(space.getattr(pycode, space.wrap('co_code')))
self.code = space.unwrap(space.getattr(pycode, space.wrap('co_code')))
def __init__(self, space, pycode): self.code == space.unwrap(space.getattr(pycode, space.wrap('co_code'))) self.raw = self.code self.w_file = space.getattr(pycode, space.wrap('co_filename')) self.name = space.getattr(pycode, space.wrap('co_name')) self.firstlineno = space.unwrap(space.getattr(pycode, space.wrap('co_fir...
1b5a497885ef9fd392601bf5cc9bd3c3f174223a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1b5a497885ef9fd392601bf5cc9bd3c3f174223a/appsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 2395, 710, 4672, 365, 18, 710, 273, 3476, 18, 318, 4113, 12, 2981, 18, 588, 1747, 12, 2074, 710, 16, 3476, 18, 4113, 2668, 2894, 67, 710, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 2395, 710, 4672, 365, 18, 710, 273, 3476, 18, 318, 4113, 12, 2981, 18, 588, 1747, 12, 2074, 710, 16, 3476, 18, 4113, 2668, 2894, 67, 710, 11,...
minDinstance = d
minDistance = d
def findClosestFoodToPointInList(list, point): minDistance = 999999 closest = None for el in list: d = util.manhattanDistance(el, point) if (d < minDistance): minDinstance = d closest = el return closest
853f59e2b950509c37a37a45c3d03c0f68f65277 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/840/853f59e2b950509c37a37a45c3d03c0f68f65277/searchAgents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4082, 7781, 42, 4773, 774, 2148, 24218, 12, 1098, 16, 1634, 4672, 1131, 7200, 273, 23841, 29, 9219, 273, 599, 364, 415, 316, 666, 30, 302, 273, 1709, 18, 4728, 76, 4558, 304, 720...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4082, 7781, 42, 4773, 774, 2148, 24218, 12, 1098, 16, 1634, 4672, 1131, 7200, 273, 23841, 29, 9219, 273, 599, 364, 415, 316, 666, 30, 302, 273, 1709, 18, 4728, 76, 4558, 304, 720...
r""" 1's-counting sequence: number of 1's in binary expansion of $n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000120;a 1's-counting sequence: number of 1's in binary expansion of n. sage: a(0) 0 sage: a(2) 1 sage: a(12) 2 sage: a.list(12) [0, 1, 1, 2, 1, 2, 2, 3...
def __init__(self): r""" 1's-counting sequence: number of 1's in binary expansion of $n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000120;a 1's-counting sequence: number of 1's in binary expansion of n. sage: a(0) 0 sage: a(2) 1 sage: a(12) 2 sage: a.list(12) [0,...
def _eval(self, n): return 1
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
lang_obj = self.pool.get('res.lang').browse(self._cr, self._uid,self.pool.get('res.lang').search(self._cr, self._uid,[('code','=',lang)])[0])
lang_obj_ids = self.pool.get('res.lang').search(self._cr, self._uid,[('code','=',lang)]) if not lang_obj_ids: raise Exception(_('Language %s is not defined in your system !\nDefine it through the Administration menu.') % (lang,)) lang_obj = self.pool.get('res.lang').browse(self._cr, self._uid,lang_obj_ids[0])
def __getitem__(self, name): if name == 'id': return self._id if name not in self._data[self._id]: # build the list of fields we will fetch
74725453064741a9ea1102f2a0bdc38677dc8cfe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/74725453064741a9ea1102f2a0bdc38677dc8cfe/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
msg = "%s:\n" % msg, second, first)
msg = "%s:\n" % msg
def DeepEq(self, first, second, msg=""): res = deep.compare(first, second) if msg: msg = "%s:\n" % msg, second, first) else: msg = "" if res: msg += "\nDiffered at " + res.render_full() self.failUnless(not res, msg)
df39312975e40e080eaa69d5cc5c1a57e527d496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/873/df39312975e40e080eaa69d5cc5c1a57e527d496/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17084, 19508, 12, 2890, 16, 1122, 16, 2205, 16, 1234, 1546, 6, 4672, 400, 273, 4608, 18, 9877, 12, 3645, 16, 2205, 13, 309, 1234, 30, 1234, 273, 2213, 87, 5581, 82, 6, 738, 1234, 469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17084, 19508, 12, 2890, 16, 1122, 16, 2205, 16, 1234, 1546, 6, 4672, 400, 273, 4608, 18, 9877, 12, 3645, 16, 2205, 13, 309, 1234, 30, 1234, 273, 2213, 87, 5581, 82, 6, 738, 1234, 469...
_winreg.SetValueEx(self._key, key, value[0], value[1])
SetValueEx(self._key, key, value[0], value[1])
def __setitem__ (self, key, value): """Set a registry key value. key is the key name, value is a tuple (type, val). For available types see the _winreg module documentation.""" key = self.__getitem__(key) _winreg.SetValueEx(self._key, key, value[0], value[1])
904d09594ad9da039c218c4b0c554983804ecbe9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/904d09594ad9da039c218c4b0c554983804ecbe9/winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 261, 2890, 16, 498, 16, 460, 4672, 3536, 694, 279, 4023, 498, 460, 18, 498, 353, 326, 498, 508, 16, 460, 353, 279, 3193, 261, 723, 16, 1244, 2934, 2457, 2319, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 1726, 972, 261, 2890, 16, 498, 16, 460, 4672, 3536, 694, 279, 4023, 498, 460, 18, 498, 353, 326, 498, 508, 16, 460, 353, 279, 3193, 261, 723, 16, 1244, 2934, 2457, 2319, 1...
self.cp.get("hooks-server", "update_client")
self.cp.get("hooks", "update_client_path")
def setup(self, config_file): """ Setup config object according to config_file content. """
8667a21147a53f85f3605fc77a2bf14ef85e1e9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/8667a21147a53f85f3605fc77a2bf14ef85e1e9b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 642, 67, 768, 4672, 3536, 10939, 642, 733, 4888, 358, 642, 67, 768, 913, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 642, 67, 768, 4672, 3536, 10939, 642, 733, 4888, 358, 642, 67, 768, 913, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
common = os.path.commonprefix((base[1], test[1]))
common = posixpath.commonprefix((base[1], test[1]))
def is_suburi(self, base, test): """Check if test is below base in a URI tree
f7989b7d9a14a1c7a33a2eeb3dcf598d8e672f09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7989b7d9a14a1c7a33a2eeb3dcf598d8e672f09/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1717, 1650, 12, 2890, 16, 1026, 16, 1842, 4672, 3536, 1564, 309, 1842, 353, 5712, 1026, 316, 279, 3699, 2151, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1717, 1650, 12, 2890, 16, 1026, 16, 1842, 4672, 3536, 1564, 309, 1842, 353, 5712, 1026, 316, 279, 3699, 2151, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
else:
if first:
def getaddrs(opt, prpt, default = None): addrs = opts.get(opt) or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(ui, prpt, default)).split(',') return [mail.addressencode(ui, a.strip(), _charsets, opts.get('test')) for a in addrs if a.strip()]
161e88d0557e915c167d3b3665ec2853e283966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/161e88d0557e915c167d3b3665ec2853e283966a/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, ...
print ("Match " + _ustr(expr) + " at loc " + loc + "(%d,%d)" % ( lineno(loc,instring), col(loc,instring) ))
print ("Match " + _ustr(expr) + " at loc " + _ustr(loc) + "(%d,%d)" % ( lineno(loc,instring), col(loc,instring) ))
def _defaultStartDebugAction( instring, loc, expr ): print ("Match " + _ustr(expr) + " at loc " + loc + "(%d,%d)" % ( lineno(loc,instring), col(loc,instring) ))
33883f48f6824f787e8351de12e152523ca1309a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12364/33883f48f6824f787e8351de12e152523ca1309a/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 1685, 2829, 1803, 12, 316, 1080, 16, 1515, 16, 3065, 262, 30, 1172, 7566, 2060, 315, 397, 389, 27008, 12, 8638, 13, 397, 315, 622, 1515, 315, 397, 389, 27008, 12, 1829, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 1685, 2829, 1803, 12, 316, 1080, 16, 1515, 16, 3065, 262, 30, 1172, 7566, 2060, 315, 397, 389, 27008, 12, 8638, 13, 397, 315, 622, 1515, 315, 397, 389, 27008, 12, 1829, 13, ...
sage: b = function('f', x).diff(x).diff(x)
sage: b = f(x).diff(x, x)
def derivative(self, ex, operator): """ EXAMPLES::
7612ee2120a60eefd18f1ae87983f5942390076d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7612ee2120a60eefd18f1ae87983f5942390076d/expression_conversions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16417, 12, 2890, 16, 431, 16, 3726, 4672, 3536, 5675, 8900, 11386, 2866, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16417, 12, 2890, 16, 431, 16, 3726, 4672, 3536, 5675, 8900, 11386, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
DoInterestManager.notify.warning('interest %s already in use' % handle)
DoInterestManager.notify.warning( 'interest %s already in use' % handle)
def _getNextHandle(self): handle = DoInterestManager._HandleSerialNum while True: handle = (handle + 1) & DoInterestManager._HandleMask # skip handles that are already in use if handle not in DoInterestManager._interests: break DoInterestManager.notify.warning('interest %s already in use' % handle) DoInterestManager._H...
e885b089652464a0464920a8904286ea79acb1ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e885b089652464a0464920a8904286ea79acb1ed/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 2134, 3259, 12, 2890, 4672, 1640, 273, 2256, 29281, 1318, 6315, 3259, 6342, 2578, 1323, 1053, 30, 1640, 273, 261, 4110, 397, 404, 13, 473, 2256, 29281, 1318, 6315, 3259, 5796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 2134, 3259, 12, 2890, 4672, 1640, 273, 2256, 29281, 1318, 6315, 3259, 6342, 2578, 1323, 1053, 30, 1640, 273, 261, 4110, 397, 404, 13, 473, 2256, 29281, 1318, 6315, 3259, 5796, ...
def lineReceived(self, line): self.proto.sendCommand(line)
return sendmail(self._host, self._from, self._to, s ).addCallback(self._messageSent).addErrback(self._sendError)
def lineReceived(self, line): self.proto.sendCommand(line)
487dbfc1cbc4989355b3fdd1bd9c24992b92a4a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/487dbfc1cbc4989355b3fdd1bd9c24992b92a4a7/smtpProtocolClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 8872, 12, 2890, 16, 980, 4672, 365, 18, 9393, 18, 4661, 2189, 12, 1369, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 8872, 12, 2890, 16, 980, 4672, 365, 18, 9393, 18, 4661, 2189, 12, 1369, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not isinstance(self.op.instances, list): raise errors.OpPrereqError("Invalid argument type 'instances'", errors.ECODE_INVAL)
def ExpandNames(self): self.needed_locks = {} self.share_locks = dict.fromkeys(locking.LEVELS, 1)
9ade2edaa7bc91212b5fd1faf26a19be1f99d8da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/9ade2edaa7bc91212b5fd1faf26a19be1f99d8da/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 1557, 12, 2890, 4672, 365, 18, 17471, 67, 23581, 273, 2618, 365, 18, 14419, 67, 23581, 273, 2065, 18, 2080, 2452, 12, 739, 310, 18, 10398, 55, 16, 404, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 1557, 12, 2890, 4672, 365, 18, 17471, 67, 23581, 273, 2618, 365, 18, 14419, 67, 23581, 273, 2065, 18, 2080, 2452, 12, 739, 310, 18, 10398, 55, 16, 404, 13, 2, -100, -100, -100, ...
str = "error"
if len (errorStrings) == 0: errorMessage = "An unknown error occurred." else: if len (errorStrings) == 1: str = "error" else: str = "errors"
def displaySMTPSendError (self, mailMessageUUID): """ Called when the SMTP Send generated an error. """ # Lookup the message mailMessageKind = Mail.MailParcel.getMailMessageKind () mailMessage = mailMessageKind.findUUID(mailMessageUUID) if mailMessage is not None and mailMessage.isOutbound: """DLDTBD - Select the mess...
170b17579100a9a3c257729b096ab3bb47d6cee6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/170b17579100a9a3c257729b096ab3bb47d6cee6/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 55, 14636, 3826, 668, 261, 2890, 16, 4791, 1079, 5562, 4672, 3536, 11782, 1347, 326, 18102, 2479, 4374, 392, 555, 18, 3536, 468, 8834, 326, 883, 4791, 1079, 5677, 273, 11542, 18, 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, 2562, 55, 14636, 3826, 668, 261, 2890, 16, 4791, 1079, 5562, 4672, 3536, 11782, 1347, 326, 18102, 2479, 4374, 392, 555, 18, 3536, 468, 8834, 326, 883, 4791, 1079, 5677, 273, 11542, 18, 6...
if pline.type == 'translation': trans_id = self.pool.get('dm.offer.translation').create(cr, uid, {'offer_id': pline.campaign_id.offer_id.id, 'date': pline.date_delivery, 'language_id': pline.campaign_id.lang_id.id, 'translator_id': po.partner_id.id, 'notes': pline.notes, })
def _state_get(self, cr, uid, ids, name, args, context={}): result = {} for pline in self.browse(cr, uid, ids): delivered=False ordered=False if pline.purchase_order_ids: for po in pline.purchase_order_ids: if delivered: continue if po.shipped: result[pline.id]='delivered' delivered=True if pline.type == 'translation':...
7f0d76ecb9c2a0d4b59841719deb210d02d747ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/7f0d76ecb9c2a0d4b59841719deb210d02d747ff/dm_purchase_advanced.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2019, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2618, 364, 886, 558, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2019, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2618, 364, 886, 558, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, ...
res = ManifestItem(item['href'], basedir=basedir, is_path=False)
href = item['href'] if unquote(href) == href: href = quote(href) res = ManifestItem(href, basedir=basedir, is_path=False)
def from_opf_manifest_item(item, basedir): if item.has_key('href'): res = ManifestItem(item['href'], basedir=basedir, is_path=False) mt = item.get('media-type', '').strip() if mt: res.mime_type = mt return res
7e211b06f074f5c18c167270c314bcb84e9efc32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/7e211b06f074f5c18c167270c314bcb84e9efc32/opf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 556, 74, 67, 14357, 67, 1726, 12, 1726, 16, 15573, 4672, 309, 761, 18, 5332, 67, 856, 2668, 7547, 11, 4672, 3897, 273, 761, 3292, 7547, 3546, 309, 25611, 12, 7547, 13, 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, 628, 67, 556, 74, 67, 14357, 67, 1726, 12, 1726, 16, 15573, 4672, 309, 761, 18, 5332, 67, 856, 2668, 7547, 11, 4672, 3897, 273, 761, 3292, 7547, 3546, 309, 25611, 12, 7547, 13, 422, ...
options.modes = [ options.mode ]
options.modes = [options.mode]
def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'Tes...
64e3ec7e167097dc0b4afb4eadc40bc6adec660f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/64e3ec7e167097dc0b4afb4eadc40bc6adec660f/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 4080, 702, 273, 1109, 1320, 1435, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 2774, 12, 2116, 13, 1083, 225, 6161, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 4080, 702, 273, 1109, 1320, 1435, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 2774, 12, 2116, 13, 1083, 225, 6161, 471,...
self.spam_folder = IMAPFolder(options.imap_spam_folder) self.unsure_folder = IMAPFolder(options.imap_unsure_folder)
def __init__(self): global imap imap = imaplib.IMAP4(options.imap_server, options.imap_port) self.spam_folder = IMAPFolder(options.imap_spam_folder) self.unsure_folder = IMAPFolder(options.imap_unsure_folder) if options.verbose: print "Loading database...", filename = options.pop3proxy_persistent_storage_file filenam...
78562f294fdc412cde22daf1b88e62102ccf5c10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/78562f294fdc412cde22daf1b88e62102ccf5c10/imapfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2552, 20226, 20226, 273, 709, 69, 6673, 18, 3445, 2203, 24, 12, 2116, 18, 12161, 67, 3567, 16, 702, 18, 12161, 67, 655, 13, 225, 309, 702, 18, 11369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2552, 20226, 20226, 273, 709, 69, 6673, 18, 3445, 2203, 24, 12, 2116, 18, 12161, 67, 3567, 16, 702, 18, 12161, 67, 655, 13, 225, 309, 702, 18, 11369, ...
TD(inexact),
TD(inexact)
def __init__(self, nin, nout, identity, docstring, *type_descriptions): self.nin = nin self.nout = nout if identity is None: identity = None_ self.identity = identity self.docstring = docstring self.type_descriptions = [] for td in type_descriptions: self.type_descriptions.extend(td) for td in self.type_descriptions: t...
10ed170a5d4e82024c2b4deff7d4c3549e3e4ff4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/10ed170a5d4e82024c2b4deff7d4c3549e3e4ff4/generate_umath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 267, 16, 290, 659, 16, 4215, 16, 14525, 16, 380, 723, 67, 30288, 4672, 365, 18, 82, 267, 273, 290, 267, 365, 18, 82, 659, 273, 290, 659, 309, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 267, 16, 290, 659, 16, 4215, 16, 14525, 16, 380, 723, 67, 30288, 4672, 365, 18, 82, 267, 273, 290, 267, 365, 18, 82, 659, 273, 290, 659, 309, 42...
SIGNAL("clicked()"), self.flip_image)
SIGNAL("clicked()"), self.flip_image)
def connect_or_disconnect_signals(self, isConnect): """ Connect or disconnect widget signals sent to their slot methods. This can be overridden in subclasses. By default it does nothing. @param isConnect: If True the widget will send the signals to the slot method. @type isConnect: boolean """ #TODO: Fix for bug: When...
6ca1728879e65f379512b44ee2623ad89c7a92ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6ca1728879e65f379512b44ee2623ad89c7a92ac/PlanePropertyManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 280, 67, 20177, 67, 29659, 12, 2890, 16, 353, 5215, 4672, 3536, 8289, 578, 9479, 3604, 11505, 3271, 358, 3675, 4694, 2590, 18, 1220, 848, 506, 11000, 316, 15320, 18, 2525, 805,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 280, 67, 20177, 67, 29659, 12, 2890, 16, 353, 5215, 4672, 3536, 8289, 578, 9479, 3604, 11505, 3271, 358, 3675, 4694, 2590, 18, 1220, 848, 506, 11000, 316, 15320, 18, 2525, 805,...
wikipedia.output(u"Waiting for %s seconds, %s" % (time_sleep, time.strftime("%d %b %Y %H:%M:%S (UTC)", time.localtime())))
time_zone = time.strftime("%d %b %Y %H:%M:%S (UTC)", time.localtime()) try: wikipedia.output(u"Waiting for %s seconds, %s" % (time_sleep, time_zone)) except UnicodeDecodeError: try: wikipedia.output(u"Waiting for %s seconds, %s" % (time_sleep, time_zone.decode('utf-8'))) except Exception, e: print e wikipedia.output(u...
def report(newtext, image, notification, head, notification2 = None, unver = True, commx = None): global botolist while 1: run = main(site = wikipedia.getSite()) secondrun = run.general(newtext, image, notification, head, botolist) if unver == True: try: resPutMex = run.put_mex() except wikipedia.NoPage: wikipedia.outp...
f61ef627271a72ba4ab76a07b78a34140f45e53e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/f61ef627271a72ba4ab76a07b78a34140f45e53e/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2704, 955, 16, 1316, 16, 3851, 16, 910, 16, 3851, 22, 273, 599, 16, 640, 502, 273, 1053, 16, 1543, 92, 273, 599, 4672, 2552, 2512, 355, 376, 1323, 404, 30, 1086, 273, 2774,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2704, 955, 16, 1316, 16, 3851, 16, 910, 16, 3851, 22, 273, 599, 16, 640, 502, 273, 1053, 16, 1543, 92, 273, 599, 4672, 2552, 2512, 355, 376, 1323, 404, 30, 1086, 273, 2774,...
The photo should be jpeg
def test_personPhotoView(): r"""Test for PersonPhotoView Let's create a new person: >>> from schoolbell.app.app import Person >>> person = Person() >>> person.__name__ = "Jonas" >>> person.title = "Jonas Petraitis" >>> person.photo = "I am a photo!" Let's create a person photo view >>> request = TestRequest() >>> fr...
5d1e5d9e4f62357cff332e9f67f2986d9f474f5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5d1e5d9e4f62357cff332e9f67f2986d9f474f5f/test_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12479, 19934, 1767, 13332, 436, 8395, 4709, 364, 11573, 19934, 1767, 225, 10559, 1807, 752, 279, 394, 6175, 30, 225, 4080, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 2910, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12479, 19934, 1767, 13332, 436, 8395, 4709, 364, 11573, 19934, 1767, 225, 10559, 1807, 752, 279, 394, 6175, 30, 225, 4080, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 2910, 1930, ...
if not self.has_key("install") and self.has_key("update"):
if not self.has_key("install") and not self.has_key("upgrade"):
def verify(self): for tag in self.REQUIRED_TAGS: if not self[tag]: raise ValueError, "ERROR: %s is required." % tag
9cc7423f60cca5b45023a475e29bc6f25c33bbee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/9cc7423f60cca5b45023a475e29bc6f25c33bbee/kickstart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 4672, 364, 1047, 316, 365, 18, 14977, 67, 29915, 30, 309, 486, 365, 63, 2692, 14542, 1002, 2068, 16, 315, 3589, 30, 738, 87, 353, 1931, 1199, 738, 1047, 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, 3929, 12, 2890, 4672, 364, 1047, 316, 365, 18, 14977, 67, 29915, 30, 309, 486, 365, 63, 2692, 14542, 1002, 2068, 16, 315, 3589, 30, 738, 87, 353, 1931, 1199, 738, 1047, 2, -100, -100, ...
return set(['depthGain', 'iDepthGain', 'dDepthGain', 'speed'])
return set(['depthGain', 'iDepthGain', 'dDepthGain', 'speed', 'planeThreshold'])
def getattr(): return set(['depthGain', 'iDepthGain', 'dDepthGain', 'speed'])
5d1f8f558172870f22e86bee9483ea1f86faa3eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10608/5d1f8f558172870f22e86bee9483ea1f86faa3eb/buoy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3869, 13332, 327, 444, 12, 3292, 5979, 43, 530, 2187, 296, 77, 6148, 43, 530, 2187, 296, 72, 6148, 43, 530, 2187, 296, 13871, 19486, 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, 3869, 13332, 327, 444, 12, 3292, 5979, 43, 530, 2187, 296, 77, 6148, 43, 530, 2187, 296, 72, 6148, 43, 530, 2187, 296, 13871, 19486, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
ValueError: Fractional ideal (1/984*a^7 - 71/1968*a^5 + 29/984*a^3 + 527/328*a) is not prime
ValueError: Fractional ideal (...) is not prime
def decomposition_group(self, P): """ Decomposition group of a prime ideal P, i.e. the subgroup of elements that map P to itself. This is the same as the Galois group of the extension of local fields obtained by completing at P.
9094f2e5c1e317cd9deabe0d09b63f4cdf1f4959 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9094f2e5c1e317cd9deabe0d09b63f4cdf1f4959/galois_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 67, 1655, 12, 2890, 16, 453, 4672, 3536, 26824, 3276, 1041, 434, 279, 17014, 23349, 453, 16, 277, 18, 73, 18, 326, 720, 1655, 434, 2186, 716, 852, 453, 358, 6174, 18, 1220, 353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 67, 1655, 12, 2890, 16, 453, 4672, 3536, 26824, 3276, 1041, 434, 279, 17014, 23349, 453, 16, 277, 18, 73, 18, 326, 720, 1655, 434, 2186, 716, 852, 453, 358, 6174, 18, 1220, 353,...