rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
scripts=['web/pyblosxom.cgi', 'web/xmlrpc.cgi'],
def Walk(root='.'): """ A really really scaled down version of what we have in tools.py. """ # initialize result = [] # must have at least root folder try: names = os.listdir(root) except os.error: return result # check each file for name in names: fullname = os.path.normpath(os.path.join(root, name)) # recursively ...
2a7ec182b59371d32fb2bca9aad506801e78f81e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/2a7ec182b59371d32fb2bca9aad506801e78f81e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7564, 12, 3085, 2218, 1093, 4672, 3536, 432, 8654, 8654, 12304, 2588, 1177, 434, 4121, 732, 1240, 316, 8513, 18, 2074, 18, 3536, 468, 4046, 563, 273, 5378, 225, 468, 1297, 1240, 622, 452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7564, 12, 3085, 2218, 1093, 4672, 3536, 432, 8654, 8654, 12304, 2588, 1177, 434, 4121, 732, 1240, 316, 8513, 18, 2074, 18, 3536, 468, 4046, 563, 273, 5378, 225, 468, 1297, 1240, 622, 452...
if menuw.menustack[1] == menuw.menustack[-1]: self.main_menu_selected = menuw.all_items.index(menuw.menustack[1].selected)
menu = menuw.menustack[1] sel = menu.choices.index(menu.selected)
def eventhandler(self, event = None, menuw=None): """ eventhandler for the main menu. The menu must be regenerated when a disc in a rom drive changes """ if event == rc.IDENTIFY_MEDIA: if not menuw: # this shouldn't happen menuw = menu.get_singleton()
c597eabb07d1d19996e3517901c2c154305ed589 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c597eabb07d1d19996e3517901c2c154305ed589/mediamenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 273, 599, 16, 3824, 91, 33, 7036, 4672, 3536, 871, 4176, 364, 326, 2774, 3824, 18, 1021, 3824, 1297, 506, 960, 7489, 1347, 279, 19169, 316, 279, 24137, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 273, 599, 16, 3824, 91, 33, 7036, 4672, 3536, 871, 4176, 364, 326, 2774, 3824, 18, 1021, 3824, 1297, 506, 960, 7489, 1347, 279, 19169, 316, 279, 24137, 14...
def render_title(self, ctx, data): t = data.get('ptitle') if t == '': t = data.get('ttitle') t = clean(t) return ctx.tag(value=t) def render_body(self, ctx, data): return ctx.tag[data.get('pbody')] def render_onclick(self, ctx, data): return ctx.tag(onclick="removeNode('replform_%s'); return \ false;" % (data.get('p...
def fillReply(ctx, d): ctx.tag.fillSlots('id', d.get('pid')) ctx.tag.fillSlots('edit', '/edit.xhtml') ctx.tag.fillSlots('permalink', '/permalink.xhtml') ctx.tag.fillSlots('title', d.get('ttitle')) ctx.tag.fillSlots('body', d.get('pbody')) ctx.tag.fillSlots('userpref', d.get('powner')+'.xhtml') ctx.tag.fillSlots('owner'...
def437b78d006d8dbb74e679b558c3e3d618e03a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2507/def437b78d006d8dbb74e679b558c3e3d618e03a/topic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 7817, 12, 5900, 16, 302, 4672, 1103, 18, 2692, 18, 5935, 16266, 2668, 350, 2187, 302, 18, 588, 2668, 6610, 26112, 1103, 18, 2692, 18, 5935, 16266, 2668, 4619, 2187, 1173, 4619, 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, 3636, 7817, 12, 5900, 16, 302, 4672, 1103, 18, 2692, 18, 5935, 16266, 2668, 350, 2187, 302, 18, 588, 2668, 6610, 26112, 1103, 18, 2692, 18, 5935, 16266, 2668, 4619, 2187, 1173, 4619, 18,...
self.bind( "<Button-1>", self._n_pressed1) self.bind( "<Shift-Button-1>", self._s_pressed1)
def set_bindings( self): if not Store.app.in_batch_mode: self.bind( "<B1-Motion>", self._drag1) self.bind( "<ButtonRelease-1>", self._release1) self.bind( "<Button-1>", self._n_pressed1) self.bind( "<Shift-Button-1>", self._s_pressed1) self.bind( "<Shift-B1-Motion>", self._drag1) self.bind( "<Delete>", self.key_pressed...
d467b50f30c771674063d4cf9ce49960de5c707b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/d467b50f30c771674063d4cf9ce49960de5c707b/paper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 15863, 12, 365, 4672, 309, 486, 4994, 18, 2910, 18, 267, 67, 5303, 67, 3188, 30, 365, 18, 4376, 12, 3532, 38, 21, 17, 29360, 2984, 16, 365, 6315, 15997, 21, 13, 365, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 15863, 12, 365, 4672, 309, 486, 4994, 18, 2910, 18, 267, 67, 5303, 67, 3188, 30, 365, 18, 4376, 12, 3532, 38, 21, 17, 29360, 2984, 16, 365, 6315, 15997, 21, 13, 365, 18, 4...
Information extracted for bpl11897_PJL-Reference.pdf which was
Information extracted for bpl11897.pdf which was
def __repr__(self): return self.message
89e10e8d55b2bda79ac7955ff0945ef536cd818f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/486/89e10e8d55b2bda79ac7955ff0945ef536cd818f/pjl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 365, 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, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 365, 18, 2150, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
res = user_obj.login(db, login, password) print 'login end' return res
return user_obj.login(db, login, password)
def login(db, login, password): print 'login' pool = pooler.get_pool(db) user_obj = pool.get('res.users') res = user_obj.login(db, login, password) print 'login end' return res
c076a2877bd920d48d1ba4881bbbfb1f3fcb421d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/c076a2877bd920d48d1ba4881bbbfb1f3fcb421d/security.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 1966, 16, 3925, 16, 2201, 4672, 1172, 296, 5819, 11, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 1966, 13, 729, 67, 2603, 273, 2845, 18, 588, 2668, 455, 18, 5577, 6134, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 1966, 16, 3925, 16, 2201, 4672, 1172, 296, 5819, 11, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 1966, 13, 729, 67, 2603, 273, 2845, 18, 588, 2668, 455, 18, 5577, 6134, 32...
dummy,method = vocab[0].split(',')
dummy,method = vocab[0].split(':')
def schema_update(self, fielddata, REQUEST, RESPONSE=None): """ update a single field"""
0978f40d66d33188558b2b77e7a170fbc66ebdaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/0978f40d66d33188558b2b77e7a170fbc66ebdaf/SchemaEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1963, 67, 2725, 12, 2890, 16, 7314, 292, 449, 396, 16, 225, 12492, 16, 20645, 33, 7036, 4672, 3536, 1089, 279, 2202, 652, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1963, 67, 2725, 12, 2890, 16, 7314, 292, 449, 396, 16, 225, 12492, 16, 20645, 33, 7036, 4672, 3536, 1089, 279, 2202, 652, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if env.get('_GYP'): prog = env.Program(target, source, *args, **kw) result = env.ChromeInstall('$TOP_BUILDDIR', prog) else: result = env.ComponentProgram(target, source, *args, **kw)
result = env.Program('$TOP_BUILDDIR/' + str(target), source, *args, **kw)
def ChromeProgram(env, target, source, *args, **kw): source = compilable_files(env, source) if env.get('_GYP'): prog = env.Program(target, source, *args, **kw) result = env.ChromeInstall('$TOP_BUILDDIR', prog) else: result = env.ComponentProgram(target, source, *args, **kw) if env.get('INCREMENTAL'): env.Precious(resul...
cda151c9d268687ee11acaf8c9a17869b45c87c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/cda151c9d268687ee11acaf8c9a17869b45c87c9/chromium_builders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15159, 9459, 12, 3074, 16, 1018, 16, 1084, 16, 380, 1968, 16, 2826, 9987, 4672, 1084, 273, 1161, 330, 429, 67, 2354, 12, 3074, 16, 1084, 13, 563, 273, 1550, 18, 9459, 2668, 8, 10462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15159, 9459, 12, 3074, 16, 1018, 16, 1084, 16, 380, 1968, 16, 2826, 9987, 4672, 1084, 273, 1161, 330, 429, 67, 2354, 12, 3074, 16, 1084, 13, 563, 273, 1550, 18, 9459, 2668, 8, 10462, ...
if __debug__ and not fileName: fileName = self.defaultFileName debugFile = open(self.defaultFileName, 'wt') try: debugFile.write(self.bodyString) finally: debugFile.close()
def execute(self, fileName=""): assert len(self.bodyString) > 0, "Empty script body"
6a2b9204b4048bdc1171dd3200c5ce719fe118ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6a2b9204b4048bdc1171dd3200c5ce719fe118ad/CPIAScript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 3968, 1546, 6, 4672, 1815, 562, 12, 2890, 18, 3432, 780, 13, 405, 374, 16, 315, 1921, 2728, 1417, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 3968, 1546, 6, 4672, 1815, 562, 12, 2890, 18, 3432, 780, 13, 405, 374, 16, 315, 1921, 2728, 1417, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tree2.writeNewick(filename)
tree2.write(filename)
def write_in_tree(filename, tree, labels): tree2 = tree.copy() rename_tree_with_ids(tree2, labels) for node in tree2.nodes.values(): node.dist = 0 tree2.writeNewick(filename)
fbcef0514ac80732a481ca1ada1150cfe23ed533 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8482/fbcef0514ac80732a481ca1ada1150cfe23ed533/phylip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 267, 67, 3413, 12, 3459, 16, 2151, 16, 3249, 4672, 2151, 22, 273, 2151, 18, 3530, 1435, 6472, 67, 3413, 67, 1918, 67, 2232, 12, 3413, 22, 16, 3249, 13, 364, 756, 316, 2151,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 267, 67, 3413, 12, 3459, 16, 2151, 16, 3249, 4672, 2151, 22, 273, 2151, 18, 3530, 1435, 6472, 67, 3413, 67, 1918, 67, 2232, 12, 3413, 22, 16, 3249, 13, 364, 756, 316, 2151,...
logger.info('%s upgraded from %s to %s', self, object_version, version)
def update(self, version): # We don't check the version is good getattr(self, 'update_%s' % version)() logger.info('%s upgraded from %s to %s', self, object_version, version) self.set_property('version', version)
d2528b3327b8196a6551de62a950218dde639b25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/d2528b3327b8196a6551de62a950218dde639b25/Handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 1177, 4672, 468, 1660, 2727, 1404, 866, 326, 1177, 353, 7494, 3869, 12, 2890, 16, 296, 2725, 10185, 87, 11, 738, 1177, 13, 1435, 365, 18, 542, 67, 4468, 2668, 1589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 1177, 4672, 468, 1660, 2727, 1404, 866, 326, 1177, 353, 7494, 3869, 12, 2890, 16, 296, 2725, 10185, 87, 11, 738, 1177, 13, 1435, 365, 18, 542, 67, 4468, 2668, 1589,...
if 0:
if PY_STRUCT_RANGE_CHECKING:
def test_1229380(): for endian in ('', '>', '<'): for cls in (int, long): for fmt in ('B', 'H', 'I', 'L'): any_err(struct.pack, endian + fmt, cls(-1)) any_err(struct.pack, endian + 'B', cls(300)) any_err(struct.pack, endian + 'H', cls(70000)) any_err(struct.pack, endian + 'I', sys.maxint * 4L) any_err(struct.pack, en...
e93b40650089282d5fa0fdd7310471a346fb037a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e93b40650089282d5fa0fdd7310471a346fb037a/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2138, 5540, 23, 3672, 13332, 364, 14759, 316, 7707, 2187, 7481, 16, 9138, 4672, 364, 2028, 316, 261, 474, 16, 1525, 4672, 364, 1325, 316, 7707, 38, 2187, 296, 44, 2187, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2138, 5540, 23, 3672, 13332, 364, 14759, 316, 7707, 2187, 7481, 16, 9138, 4672, 364, 2028, 316, 261, 474, 16, 1525, 4672, 364, 1325, 316, 7707, 38, 2187, 296, 44, 2187, 296, ...
key = (original, percent)
key = (original, request.cfg.siteid, percent)
def getText(original, request, lang, **kw): """ Return a translation of some original text. @param original: the original (english) text @param request: the request object @lang: the target language for the translation @keyword wiki: True to use the wiki parser/formatter on the translation result, False to return the ...
dfbb05e8b666a6b17bdfe97933c2e1da362db2c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/dfbb05e8b666a6b17bdfe97933c2e1da362db2c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6701, 12, 8830, 16, 590, 16, 3303, 16, 2826, 9987, 4672, 3536, 2000, 279, 4794, 434, 2690, 2282, 977, 18, 225, 632, 891, 2282, 30, 326, 2282, 261, 275, 13740, 13, 977, 632, 891, 590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6701, 12, 8830, 16, 590, 16, 3303, 16, 2826, 9987, 4672, 3536, 2000, 279, 4794, 434, 2690, 2282, 977, 18, 225, 632, 891, 2282, 30, 326, 2282, 261, 275, 13740, 13, 977, 632, 891, 590, ...
if not (u2 >= c * (2.0 - c) and u2 > c * _exp(1.0 - c)):
if u2 < c * (2.0 - c) or u2 <= c * _exp(1.0 - c):
def vonmisesvariate(self, mu, kappa): """Circular data distribution.
4aa9408036856a9acf52e0804055e17317b4e3e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4aa9408036856a9acf52e0804055e17317b4e3e6/random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 265, 81, 6141, 1401, 3840, 12, 2890, 16, 4129, 16, 23125, 4672, 3536, 25858, 501, 7006, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 265, 81, 6141, 1401, 3840, 12, 2890, 16, 4129, 16, 23125, 4672, 3536, 25858, 501, 7006, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if optional and len(params) == 1: line = line[m.end():] else:
def subconvert(self, endchar=None, depth=0): stack = [] line = self.line if DEBUG and endchar: self.err_write( "subconvert(%s)\n line = %s\n" % (`endchar`, `line[:20]`)) while line: if line[0] == endchar and not stack: if DEBUG: self.err_write("subconvert() --> %s\n" % `line[1:21]`) self.line = line return line m = _c...
bf2763cf07522d5ef19fe1c77b99de178484ab7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bf2763cf07522d5ef19fe1c77b99de178484ab7b/latex2esis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 6283, 12, 2890, 16, 679, 3001, 33, 7036, 16, 3598, 33, 20, 4672, 2110, 273, 5378, 980, 273, 365, 18, 1369, 309, 6369, 471, 679, 3001, 30, 365, 18, 370, 67, 2626, 12, 315, 1717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 6283, 12, 2890, 16, 679, 3001, 33, 7036, 16, 3598, 33, 20, 4672, 2110, 273, 5378, 980, 273, 365, 18, 1369, 309, 6369, 471, 679, 3001, 30, 365, 18, 370, 67, 2626, 12, 315, 1717, ...
sage: b.save() sage: (a*b).save() sage: (a+b).save()
sage: b.save('sage.gif') sage: (a*b).save('sage.gif') sage: (a+b).save('sage.gif')
def __mul__(self, other): """ Multiply two animations. This has the effect of appending the two animinations (the second comes after the first).
3fb70e537645114a76fb0d2132f72dc84f03fa76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3fb70e537645114a76fb0d2132f72dc84f03fa76/animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 3536, 5991, 1283, 2795, 25536, 18, 225, 1220, 711, 326, 5426, 434, 19997, 326, 2795, 10536, 10144, 261, 5787, 2205, 14535, 1839, 326, 1122, 2934...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16411, 972, 12, 2890, 16, 1308, 4672, 3536, 5991, 1283, 2795, 25536, 18, 225, 1220, 711, 326, 5426, 434, 19997, 326, 2795, 10536, 10144, 261, 5787, 2205, 14535, 1839, 326, 1122, 2934...
return q.filter(screenshot=screenshot_id)
q = q.filter(screenshot=screenshot_id) return q
def get_queryset(self, request, review_request_id, screenshot_id, *args, **kwargs): q = super(ScreenshotCommentResource, self).get_queryset( request, review_request_id, *args, **kwargs) return q.filter(screenshot=screenshot_id)
9e582837eb239498570b26edc98c805ba2ab59aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/9e582837eb239498570b26edc98c805ba2ab59aa/resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 21729, 12, 2890, 16, 590, 16, 10725, 67, 2293, 67, 350, 16, 17179, 67, 350, 16, 380, 1968, 16, 2826, 4333, 4672, 1043, 273, 2240, 12, 29354, 4469, 1420, 16, 365, 2934, 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, 336, 67, 21729, 12, 2890, 16, 590, 16, 10725, 67, 2293, 67, 350, 16, 17179, 67, 350, 16, 380, 1968, 16, 2826, 4333, 4672, 1043, 273, 2240, 12, 29354, 4469, 1420, 16, 365, 2934, 588, ...
pygame.init()
def show(): '''Set up the basic pypixel environment, like the main window.''' global _clock title(None) pygame.init() pygame.display.set_mode(SIZE, _WINDOW_OPTS) pygame.mouse.set_visible(False) _clock = pygame.time.Clock()
2e7901a7a4882d90575be3aa3a59dd77468aad36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13059/2e7901a7a4882d90575be3aa3a59dd77468aad36/pypixel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 13332, 9163, 694, 731, 326, 5337, 18951, 3556, 3330, 16, 3007, 326, 2774, 2742, 1093, 6309, 2552, 389, 18517, 2077, 12, 7036, 13, 2395, 13957, 18, 5417, 18, 542, 67, 3188, 12, 4574...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 13332, 9163, 694, 731, 326, 5337, 18951, 3556, 3330, 16, 3007, 326, 2774, 2742, 1093, 6309, 2552, 389, 18517, 2077, 12, 7036, 13, 2395, 13957, 18, 5417, 18, 542, 67, 3188, 12, 4574...
mysql_cur.execute("SELECT * FROM attachments WHERE bug_id = %s" % bugid)
mysql_cur.execute("SELECT * FROM attachments WHERE bug_id = %s" % bugid)
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue" # init Bugzilla environment print "Bug...
fd58378303b5d48d94b3e8bf7a1fb4935619a303 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/fd58378303b5d48d94b3e8bf7a1fb4935619a303/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
spaces += sequence.getString(type)
spaces += sequence.getString(regexp_type)
def getString(self, type = "strict"): """This has only been implemented with OR kind in mind. The result depends on `type`. If `type` is "strict" the representation will be the exact interval (@TODO ? except if the whole class is covered for \d and \s). If `type` is "lax" the representation of the class will be used fo...
9b3ed74c17dec8d9116a2102e8382fb7fa489058 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6399/9b3ed74c17dec8d9116a2102e8382fb7fa489058/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4997, 12, 2890, 16, 618, 273, 315, 13948, 6, 4672, 3536, 2503, 711, 1338, 2118, 8249, 598, 4869, 3846, 316, 22838, 18, 1021, 563, 10935, 603, 1375, 723, 8338, 971, 1375, 723, 68, 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, 4997, 12, 2890, 16, 618, 273, 315, 13948, 6, 4672, 3536, 2503, 711, 1338, 2118, 8249, 598, 4869, 3846, 316, 22838, 18, 1021, 563, 10935, 603, 1375, 723, 8338, 971, 1375, 723, 68, 353, ...
break
result.append(('', ''))
def getaddrlist(self): """Parse all addresses.
6526fb4e9fd8d35bff4b8afa929495a8443534ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6526fb4e9fd8d35bff4b8afa929495a8443534ee/_parseaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4793, 1098, 12, 2890, 4672, 3536, 3201, 777, 6138, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4793, 1098, 12, 2890, 4672, 3536, 3201, 777, 6138, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
mountopt +== ',newinstance'
mountopt += ',newinstance'
def _setupDev(self): # files in /dev mock.util.rmtree(self.makeChrootPath("dev")) mock.util.mkdirIfAbsent(self.makeChrootPath("dev", "pts")) mock.util.mkdirIfAbsent(self.makeChrootPath("dev", "shm")) prevMask = os.umask(0000) devFiles = ( (stat.S_IFCHR | 0666, os.makedev(1, 3), "dev/null"), (stat.S_IFCHR | 0666, os.mak...
08f7f800ae03b0b873e89c56c64906ca1cac829d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7328/08f7f800ae03b0b873e89c56c64906ca1cac829d/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 8870, 12, 2890, 4672, 468, 1390, 316, 342, 5206, 5416, 18, 1367, 18, 86, 17371, 12, 2890, 18, 6540, 782, 3085, 743, 2932, 5206, 6, 3719, 5416, 18, 1367, 18, 26686, 14711, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 8870, 12, 2890, 4672, 468, 1390, 316, 342, 5206, 5416, 18, 1367, 18, 86, 17371, 12, 2890, 18, 6540, 782, 3085, 743, 2932, 5206, 6, 3719, 5416, 18, 1367, 18, 26686, 14711, 12...
capCount += 1
def _autoCapitalize(self): name = self.get().decode('utf-8') # capitalize each word capName = '' # allow no more than two capital letters per word capCount = 0 capMax = 2 for i in xrange(len(name)): character = name[i] # is it a letter that can be capitalized? # This assumes that string.lower and string.upper will retu...
bb330009601b6e1b23d3c3d0166c77818a1d168a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/bb330009601b6e1b23d3c3d0166c77818a1d168a/DirectEntry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 4664, 7053, 554, 12, 2890, 4672, 508, 273, 365, 18, 588, 7675, 3922, 2668, 3158, 17, 28, 6134, 468, 17451, 1517, 2076, 3523, 461, 273, 875, 468, 1699, 1158, 1898, 2353, 2795, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6079, 4664, 7053, 554, 12, 2890, 4672, 508, 273, 365, 18, 588, 7675, 3922, 2668, 3158, 17, 28, 6134, 468, 17451, 1517, 2076, 3523, 461, 273, 875, 468, 1699, 1158, 1898, 2353, 2795, ...
'filestats': filestats,
'filestats': filestats, 'annotated': annotated,
def _content_changes(old_node, new_node): """Returns the list of differences.
392e553ca963dc76a3b1aed79183e1f26ec1b597 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/392e553ca963dc76a3b1aed79183e1f26ec1b597/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1745, 67, 6329, 12, 1673, 67, 2159, 16, 394, 67, 2159, 4672, 3536, 1356, 326, 666, 434, 16440, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 1745, 67, 6329, 12, 1673, 67, 2159, 16, 394, 67, 2159, 4672, 3536, 1356, 326, 666, 434, 16440, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return int(self.interp._runningeval),self.interp._stdout.read(),self.interp._stderr.read(),self.interp._stdin.HasInputRequest()
print >>sys.__stdout__,'returning result' result=(int(self.interp._runningeval),self.interp._stdout.read(),self.interp._stderr.read(),self.interp._stdin.HasInputRequest()) print >>sys.__stdout__,'returning result',result return result
def cont(self,stdin): self.interp._stdin.write(stdin) if self.interp._stdin.HasInputRequest(): self.interp._stdin.InputRequestNotify() self.lock.acquire() if self.interp._runningeval: self.lock.wait(self.timeout) self.lock.release() return int(self.interp._runningeval),self.interp._stdout.read(),self.interp._stderr.rea...
8bda109ca69a3384eb0e570c4fc302015e431e46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2579/8bda109ca69a3384eb0e570c4fc302015e431e46/interp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 466, 12, 2890, 16, 21772, 4672, 365, 18, 24940, 6315, 21772, 18, 2626, 12, 21772, 13, 309, 365, 18, 24940, 6315, 21772, 18, 5582, 1210, 691, 13332, 365, 18, 24940, 6315, 21772, 18, 1210,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 466, 12, 2890, 16, 21772, 4672, 365, 18, 24940, 6315, 21772, 18, 2626, 12, 21772, 13, 309, 365, 18, 24940, 6315, 21772, 18, 5582, 1210, 691, 13332, 365, 18, 24940, 6315, 21772, 18, 1210,...
if not hvm_pvdrv:
hvm_s_state = xc.hvm_get_param(self.domid, HVM_PARAM_ACPI_S_STATE) if not hvm_pvdrv or hvm_s_state != 0:
def shutdown(self, reason): """Shutdown a domain by signalling this via xenstored.""" log.debug('XendDomainInfo.shutdown(%s)', reason) if self._stateGet() in (DOM_STATE_SHUTDOWN, DOM_STATE_HALTED,): raise XendError('Domain cannot be shutdown')
46daade38adb8ef42669b6fc05827f9242ee082b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6195/46daade38adb8ef42669b6fc05827f9242ee082b/XendDomainInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5731, 12, 2890, 16, 3971, 4672, 3536, 10961, 279, 2461, 635, 1573, 454, 310, 333, 3970, 23048, 22601, 12123, 613, 18, 4148, 2668, 60, 409, 3748, 966, 18, 15132, 9275, 87, 13, 2187, 3971,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5731, 12, 2890, 16, 3971, 4672, 3536, 10961, 279, 2461, 635, 1573, 454, 310, 333, 3970, 23048, 22601, 12123, 613, 18, 4148, 2668, 60, 409, 3748, 966, 18, 15132, 9275, 87, 13, 2187, 3971,...
else:
elif shifts[2] == 16 and shifts[1] == 8 and shifts[0] == 0:
def pixels3d (surface): """pygame.numpyarray.pixels3d (Surface): return array reference pixels into a 3d array Create a new 3D array that directly references the pixel values in a Surface. Any changes to the array will affect the pixels in the Surface. This is a fast operation since no data is copied. This will only...
d84caf262965f3bfcdc549f16d00598b65c46c5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/d84caf262965f3bfcdc549f16d00598b65c46c5c/_numpysurfarray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8948, 23, 72, 261, 18266, 4672, 3536, 2074, 13957, 18, 15974, 1126, 18, 21084, 23, 72, 261, 11508, 4672, 327, 526, 225, 2114, 8948, 1368, 279, 890, 72, 526, 225, 1788, 279, 394, 890, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8948, 23, 72, 261, 18266, 4672, 3536, 2074, 13957, 18, 15974, 1126, 18, 21084, 23, 72, 261, 11508, 4672, 327, 526, 225, 2114, 8948, 1368, 279, 890, 72, 526, 225, 1788, 279, 394, 890, 4...
new = Request(newurl, req.get_data())
new = Request(newurl, req.get_data(), req.headers)
def http_error_302(self, req, fp, code, msg, headers): if headers.has_key('location'): newurl = headers['location'] elif headers.has_key('uri'): newurl = headers['uri'] else: return newurl = urlparse.urljoin(req.get_full_url(), newurl)
9b6c26fdd23687fbddc2e2daba87c16c76b2f32f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9b6c26fdd23687fbddc2e2daba87c16c76b2f32f/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 23, 3103, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 309, 1607, 18, 5332, 67, 856, 2668, 3562, 11, 4672, 394, 718, 273, 1607, 3292, 3562, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 23, 3103, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 309, 1607, 18, 5332, 67, 856, 2668, 3562, 11, 4672, 394, 718, 273, 1607, 3292, 3562, 35...
l = len(l) [self.posititonsOfUnmatchedPlus(i, dual=True, reverse=True)[l-1-j]
l = len(self) [self.positionsOfUnmatchedPlus(i, dual=True, reverse=True)[l-1-j]
def positionsOfUnmatchedMinus(self, i):
e2abaca418af8cb3ca8128b0fd154aed4615a689 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e2abaca418af8cb3ca8128b0fd154aed4615a689/crystals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6865, 951, 984, 11073, 18434, 12, 2890, 16, 277, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 6865, 951, 984, 11073, 18434, 12, 2890, 16, 277, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self._priorValuesStack.push({})
self._priorValuesStack.append({})
def _handleLockParams(self): # this will store the names of the parameters that are modified self._paramsSet = {} # this will store the values of modified params (from prior to # the lock). self._priorValuesStack.push({})
bc118592712a1b70a0b9a248ebe439604a6431c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/bc118592712a1b70a0b9a248ebe439604a6431c3/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 2531, 1370, 12, 2890, 4672, 468, 333, 903, 1707, 326, 1257, 434, 326, 1472, 716, 854, 4358, 365, 6315, 2010, 694, 273, 2618, 468, 333, 903, 1707, 326, 924, 434, 4358, 859, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 2531, 1370, 12, 2890, 4672, 468, 333, 903, 1707, 326, 1257, 434, 326, 1472, 716, 854, 4358, 365, 6315, 2010, 694, 273, 2618, 468, 333, 903, 1707, 326, 924, 434, 4358, 859, 2...
if x in y.packageDeps:
if x in y.packageDeps and y not in x.packageDeps:
def cmpFunc (x, y): if x.part_count != y.part_count: return cmp(x.part_count, y.part_count) else: if x in y.packageDeps: # y needs x, so x is "larger" (must be earlier) return 1 elif y in x.packageDeps: # other way round return -1 else: return 0
1ccdbb9cb94de1c871e12a7644cd6318422c9cb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/1ccdbb9cb94de1c871e12a7644cd6318422c9cb5/Part.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 2622, 261, 92, 16, 677, 4672, 309, 619, 18, 2680, 67, 1883, 480, 677, 18, 2680, 67, 1883, 30, 327, 9411, 12, 92, 18, 2680, 67, 1883, 16, 677, 18, 2680, 67, 1883, 13, 469, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 2622, 261, 92, 16, 677, 4672, 309, 619, 18, 2680, 67, 1883, 480, 677, 18, 2680, 67, 1883, 30, 327, 9411, 12, 92, 18, 2680, 67, 1883, 16, 677, 18, 2680, 67, 1883, 13, 469, 30,...
self.name="Composite{"+"".join(l)+"}"
self.name="Composite{"+",".join(l)+"}"
def __init__(self, inputs, outputs): self.inputs=copy(inputs) self.outputs=copy(outputs)
f6c713455fed941f05b6fb8a20c80f896a29700f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/f6c713455fed941f05b6fb8a20c80f896a29700f/basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4540, 16, 6729, 4672, 365, 18, 10029, 33, 3530, 12, 10029, 13, 365, 18, 12295, 33, 3530, 12, 12295, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4540, 16, 6729, 4672, 365, 18, 10029, 33, 3530, 12, 10029, 13, 365, 18, 12295, 33, 3530, 12, 12295, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100...
meta["embeds"] = _extractQxEmbeds(content)
meta["embeds"] = _extractQxEmbeds(content)
def getMeta(id): global classes entry = classes[id] path = entry["path"] cache = readCache(id, "meta", path) if cache != None: return cache meta = {} category = entry["category"] if category == "qx.doc": pass elif category == "qx.locale": meta["loadtimeDeps"] = ["qx.locale.Locale", "qx.locale.Manager"] elif categ...
e3364bd2416dfe75fd85aeea0ded427372ef3d08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/e3364bd2416dfe75fd85aeea0ded427372ef3d08/generator2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11312, 12, 350, 4672, 2552, 3318, 225, 1241, 273, 3318, 63, 350, 65, 589, 273, 1241, 9614, 803, 11929, 225, 1247, 273, 855, 1649, 12, 350, 16, 315, 3901, 3113, 589, 13, 309, 1247, 480,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11312, 12, 350, 4672, 2552, 3318, 225, 1241, 273, 3318, 63, 350, 65, 589, 273, 1241, 9614, 803, 11929, 225, 1247, 273, 855, 1649, 12, 350, 16, 315, 3901, 3113, 589, 13, 309, 1247, 480,...
'adj_move_id':fields.many2one('account.move', 'Expanse Entries', required=False, readonly=True),
'adj_move_id':fields.many2one('account.move', 'Adjustment Entries', required=False, readonly=True), 'other_move_id':fields.many2one('account.move', 'Other Payment', required=False, readonly=True),
def _calculate(self, cr, uid, ids, field_names, arg, context): res = {} for rs in self.browse(cr, uid, ids, context): allow = 0.0 deduct = 0.0 others = 0.0 obj = {'basic':rs.basic} for line in rs.line_ids: amount = 0.0 if line.amount_type == 'per': amount = line.amount * eval(line.category_id.base, obj) elif line.amo...
636663c0972dcecb1fe1891bee76266a5eb830e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/636663c0972dcecb1fe1891bee76266a5eb830e3/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 4672, 400, 273, 2618, 364, 3597, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 4672, 400, 273, 2618, 364, 3597, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819,...
if not recorded: x, y = gl.getsize() print x, 'x', y v.SetSize(x, y) v.BindGLWindow(win, SV.IN_REPLACE)
x, y = gl.getsize() print x, 'x', y v.SetSize(x, y) v.BindGLWindow(win, SV.IN_REPLACE)
def main(): QSIZE = 16 TIME = 5 audio = 0 num, den = 1, 1 opts, args = getopt.getopt(sys.argv[1:], 'aq:r:t:') for opt, arg in opts: if opt == '-a': audio = 1 elif opt == '-q': QSIZE = string.atoi(arg) elif opt == '-r': [nstr, dstr] = string.splitfields(arg, '/') num, den = string.atoi(nstr), string.atoi(dstr) elif opt...
dd2d726866c36f9ef98e011ae9958f47d4411fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dd2d726866c36f9ef98e011ae9958f47d4411fed/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2238, 4574, 273, 2872, 8721, 273, 1381, 7447, 273, 374, 818, 16, 5545, 273, 404, 16, 404, 225, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2238, 4574, 273, 2872, 8721, 273, 1381, 7447, 273, 374, 818, 16, 5545, 273, 404, 16, 404, 225, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, ...
sys.stdout.flush() os.system("/depot/gnu/plat/bin/rlog -r %s </dev/null 2>&1" % self.name)
p = os.popen("/depot/gnu/plat/bin/rlog -r %s </dev/null 2>&1" % self.name) output = p.read() p.close() print cgi.escape(output)
def do_info(self):
ad1a35314a5efa738d30d85899e3ba525e0af160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ad1a35314a5efa738d30d85899e3ba525e0af160/faqmain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1376, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1376, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
features.add_value( f.attr[ id_attribute ], f.iv )
feature_id = f.attr[ id_attribute ]
def count_reads_in_features( sam_filename, gff_filename, stranded, overlap_mode, feature_type, id_attribute, quiet ): features = HTSeq.GenomicArrayOfSets( [], stranded ) counts = {} for f in HTSeq.GFF_Reader( gff_filename ): if f.iv.chrom not in features.step_vectors.keys(): features.add_chrom( f.iv.chrom ) if f.type...
a4e70671af072650a170131c70e58179dc942f32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/596/a4e70671af072650a170131c70e58179dc942f32/count.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 67, 11904, 67, 267, 67, 7139, 12, 16260, 67, 3459, 16, 26534, 67, 3459, 16, 609, 5860, 16, 7227, 67, 3188, 16, 2572, 67, 723, 16, 612, 67, 4589, 16, 10902, 262, 30, 225, 4467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 67, 11904, 67, 267, 67, 7139, 12, 16260, 67, 3459, 16, 26534, 67, 3459, 16, 609, 5860, 16, 7227, 67, 3188, 16, 2572, 67, 723, 16, 612, 67, 4589, 16, 10902, 262, 30, 225, 4467, ...
end_index: End index (exclusive) of blob data to fetch. Must be
end_index: End index (inclusive) of blob data to fetch. Must be
def fetch_data(blob, start_index, end_index): """Fetch data for blob. Fetches a fragment of a blob up to MAX_BLOB_FETCH_SIZE in length. Attempting to fetch a fragment that extends beyond the boundaries of the blob will return the amount of data from start_index until the end of the blob, which will be a smaller size ...
8f150e70255d6abb8009e44fcc26670ea604103a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10629/8f150e70255d6abb8009e44fcc26670ea604103a/blobstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 892, 12, 10721, 16, 787, 67, 1615, 16, 679, 67, 1615, 4672, 3536, 5005, 501, 364, 4795, 18, 225, 8065, 281, 279, 5481, 434, 279, 4795, 731, 358, 4552, 67, 38, 6038, 67, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 892, 12, 10721, 16, 787, 67, 1615, 16, 679, 67, 1615, 4672, 3536, 5005, 501, 364, 4795, 18, 225, 8065, 281, 279, 5481, 434, 279, 4795, 731, 358, 4552, 67, 38, 6038, 67, 202...
</tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word)
</tr>""" % (nbhits, weburl, urllib.quote(phrase), urllib.quote(f), urlarg_colls, phrase)
def browse_pattern(req, colls, p, f, rg): """Browse either biliographic phrases or words indexes, and display it.""" ## do we search in words indexes? if not f: return browse_in_bibwords(req, p, f) ## prepare collection urlargument for later printing: p_orig = p urlarg_colls = "" for coll in colls: urlarg_colls += "&c=...
535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 4951, 12, 3658, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 4672, 3536, 27304, 3344, 324, 15700, 16983, 31413, 578, 4511, 5596, 16, 471, 2562, 518, 12123, 7541, 741, 732, 1623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 4951, 12, 3658, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 4672, 3536, 27304, 3344, 324, 15700, 16983, 31413, 578, 4511, 5596, 16, 471, 2562, 518, 12123, 7541, 741, 732, 1623...
self.users.append(connection.person.nickname());
ul = UserAndLocation(); ul.person = connection.person ul.latitude = connection.latitude ul.longitude = connection.longitude self.users.append(ul);
def dispatch(self): people_query = Connection.all(); self.users = []; for connection in people_query: self.users.append(connection.person.nickname()); people_query = Connection.all(); response = "{action: '"+self.action+"', users : "+simplejson.dumps(self.users)+"}"; for connection in people_query: channel.send_message...
aa9214f26c95d5e9400316ba56c88944fbf2090f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13529/aa9214f26c95d5e9400316ba56c88944fbf2090f/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3435, 12, 2890, 4672, 16951, 67, 2271, 273, 4050, 18, 454, 5621, 365, 18, 5577, 273, 5378, 31, 364, 1459, 316, 16951, 67, 2271, 30, 7493, 273, 2177, 1876, 2735, 5621, 7493, 18, 12479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3435, 12, 2890, 4672, 16951, 67, 2271, 273, 4050, 18, 454, 5621, 365, 18, 5577, 273, 5378, 31, 364, 1459, 316, 16951, 67, 2271, 30, 7493, 273, 2177, 1876, 2735, 5621, 7493, 18, 12479, ...
result = self.__getWorkingPartition('InputSandbox')
result = self.__getWorkingPartition(sandbox)
def storeFile(self,jobID,filename,fileString,sandbox): """ Store input sandbox ASCII file for jobID with the name filename which is given with its string body """
21ab1ebbd0d993e01e1c80373e4dcf1bc3448220 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/21ab1ebbd0d993e01e1c80373e4dcf1bc3448220/SandboxDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 812, 12, 2890, 16, 4688, 734, 16, 3459, 16, 768, 780, 16, 27004, 4672, 3536, 4994, 810, 15202, 11768, 585, 364, 28913, 598, 326, 508, 1544, 1492, 353, 864, 598, 2097, 533, 1417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 812, 12, 2890, 16, 4688, 734, 16, 3459, 16, 768, 780, 16, 27004, 4672, 3536, 4994, 810, 15202, 11768, 585, 364, 28913, 598, 326, 508, 1544, 1492, 353, 864, 598, 2097, 533, 1417, ...
elif o1_type == 'orphaned' or o1_type == 'ajaxorphaned':
elif o1_type == 'orphaned': manager.loadUserOrphanedImages(filter_user_id) elif o1_type == 'ajaxorphaned':
def manage_user_containers(request, o1_type=None, o1_id=None, o2_type=None, o2_id=None, o3_type=None, o3_id=None, **kwargs): request.session['nav']['menu'] = 'collaboration' request.session['nav']['whos'] = 'userdata' try: url = kwargs["url"] except: logger.error(traceback.format_exc()) try: request.session['nav']['v...
2036449251668eb4c0368b26bf12a9f5f2f749b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/2036449251668eb4c0368b26bf12a9f5f2f749b0/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 1355, 67, 20596, 12, 2293, 16, 320, 21, 67, 723, 33, 7036, 16, 320, 21, 67, 350, 33, 7036, 16, 320, 22, 67, 723, 33, 7036, 16, 320, 22, 67, 350, 33, 7036, 16, 320, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 1355, 67, 20596, 12, 2293, 16, 320, 21, 67, 723, 33, 7036, 16, 320, 21, 67, 350, 33, 7036, 16, 320, 22, 67, 723, 33, 7036, 16, 320, 22, 67, 350, 33, 7036, 16, 320, 23,...
for value in sample(xrange(1000000000), 255):
for value in sample(range(1000000000), 255):
def test_integer(self): for value in sample(xrange(1000000000), 255): words = split(Integer, value) self.assertEqual(len(words), 1) word = words[0] self.assertEqual(type(word), str) self.assertEqual(_decode(Integer, word), value)
c70ca5892efc93b48bc8ec06258a47c8f9c0bde7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/c70ca5892efc93b48bc8ec06258a47c8f9c0bde7/test_xapian.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7745, 12, 2890, 4672, 364, 460, 316, 3296, 12, 3676, 12, 23899, 11706, 3631, 4561, 4672, 4511, 273, 1416, 12, 4522, 16, 460, 13, 365, 18, 11231, 5812, 12, 1897, 12, 3753, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7745, 12, 2890, 4672, 364, 460, 316, 3296, 12, 3676, 12, 23899, 11706, 3631, 4561, 4672, 4511, 273, 1416, 12, 4522, 16, 460, 13, 365, 18, 11231, 5812, 12, 1897, 12, 3753, 363...
regl = "(\"|\')(.*?)(\"|\')(, |\))"
regl = r"(\"|\')(.*?)(\"|\')(, |\))"
def load_word_function(wsite, raw): # This is a function used to load the badword and the whitelist. list_loaded = list() pos = 0 # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure) while 1: regl = "(\"|\')(.*?)(\"|\')(, |\))" page = re.compile(regl, ...
32fd26c310458893520cdd1b4c1793561661ad3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/32fd26c310458893520cdd1b4c1793561661ad3f/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1095, 67, 915, 12, 91, 4256, 16, 1831, 4672, 468, 1220, 353, 279, 445, 1399, 358, 1262, 326, 5570, 1095, 471, 326, 10734, 18, 666, 67, 4230, 273, 666, 1435, 949, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1095, 67, 915, 12, 91, 4256, 16, 1831, 4672, 468, 1220, 353, 279, 445, 1399, 358, 1262, 326, 5570, 1095, 471, 326, 10734, 18, 666, 67, 4230, 273, 666, 1435, 949, 273, 374, ...
def_op('DUP_TOPX', 99)
def jabs_op(name, op): def_op(name, op) hasjabs.append(op)
c83c794daf437568919ac64eeb81141994d70bc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/c83c794daf437568919ac64eeb81141994d70bc0/opcode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 525, 5113, 67, 556, 12, 529, 16, 1061, 4672, 1652, 67, 556, 12, 529, 16, 1061, 13, 711, 78, 5113, 18, 6923, 12, 556, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 525, 5113, 67, 556, 12, 529, 16, 1061, 4672, 1652, 67, 556, 12, 529, 16, 1061, 13, 711, 78, 5113, 18, 6923, 12, 556, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
ret += ' <%s>%s</%s>\n' % (k, self.info[k], k) ret += ' </info>\n'
ret += u' <%s>' % k + Unicode(self.info[k]) + '</%s>\n' % k ret += u' </info>\n'
def print_info(self): """return info part for FXD writing""" ret = '' if self.info: ret = ' <info>\n' for k in self.info.keys(): ret += ' <%s>%s</%s>\n' % (k, self.info[k], k) ret += ' </info>\n' return ret
e4e4639f6ea3e57e463f291a7c76a06466bdd9d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e4e4639f6ea3e57e463f291a7c76a06466bdd9d8/fxdimdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1376, 12, 2890, 4672, 3536, 2463, 1123, 1087, 364, 478, 22953, 7410, 8395, 325, 273, 875, 309, 365, 18, 1376, 30, 325, 273, 296, 565, 411, 1376, 5333, 82, 11, 364, 417, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1376, 12, 2890, 4672, 3536, 2463, 1123, 1087, 364, 478, 22953, 7410, 8395, 325, 273, 875, 309, 365, 18, 1376, 30, 325, 273, 296, 565, 411, 1376, 5333, 82, 11, 364, 417, 316, ...
order = '%s.%s ASC' % (qn(meta.db_table), qn(column))
order = '%s.%s ASC' % (inner_table_name, qn(column)) else: new_order = [] for x in order.split(','): if x.find('.') != -1: tbl, col = x.rsplit('.', 1) else: col = x new_order.append('%s.%s' % (inner_table_name, col)) order = ', '.join(new_order)
def as_sql(self, with_limits=True, with_col_aliases=False): self._using_row_number = False # Get out of the way if we're not a select query or there's no limiting involved. check_limits = with_limits and (self.low_mark or self.high_mark is not None) if not isinstance(self, SqlServerQuery) or not check_limits: return s...
84296e99de66123e569a464b8019a01dabe63cc3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1254/84296e99de66123e569a464b8019a01dabe63cc3/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 67, 4669, 12, 2890, 16, 598, 67, 14270, 33, 5510, 16, 598, 67, 1293, 67, 13831, 33, 8381, 4672, 365, 6315, 9940, 67, 492, 67, 2696, 273, 1083, 225, 468, 968, 596, 434, 326, 4031...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 67, 4669, 12, 2890, 16, 598, 67, 14270, 33, 5510, 16, 598, 67, 1293, 67, 13831, 33, 8381, 4672, 365, 6315, 9940, 67, 492, 67, 2696, 273, 1083, 225, 468, 968, 596, 434, 326, 4031...
print '\t
print >> stream, '\t
def WriteClassBody(self, generator): # Write in alpha order. names = self.mapFuncs.keys() names.sort() specialItems = {"count":None, "item":None,"value":None,"_newenum":None} # If found, will end up with (entry, invoke_tupe) itemCount = None for name in names: entry=self.mapFuncs[name] # skip [restricted] methods, unle...
cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 2250, 12, 2890, 16, 4456, 4672, 468, 2598, 316, 4190, 1353, 18, 1257, 273, 365, 18, 1458, 10928, 18, 2452, 1435, 1257, 18, 3804, 1435, 4582, 3126, 273, 12528, 1883, 6877, 7036...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 2250, 12, 2890, 16, 4456, 4672, 468, 2598, 316, 4190, 1353, 18, 1257, 273, 365, 18, 1458, 10928, 18, 2452, 1435, 1257, 18, 3804, 1435, 4582, 3126, 273, 12528, 1883, 6877, 7036...
- ``prec`` - precision of the sqrt() calculation
- ``prec`` - precision of the ``sqrt()`` calculation
def _big_delta_coeff(aa, bb, cc, prec=None): r""" Calculates the Delta coefficient of the 3 angular momenta for Racah symbols. Also checks that the differences are of integer value. INPUT: - ``aa`` - first angular momentum, integer or half integer - ``bb`` - second angular momentum, integer or half integer - ``c...
c6a90d820f57455b2ff6063db98cb5e6f7a11f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c6a90d820f57455b2ff6063db98cb5e6f7a11f83/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14002, 67, 9878, 67, 18132, 12, 7598, 16, 7129, 16, 4946, 16, 13382, 33, 7036, 4672, 436, 8395, 26128, 326, 17799, 16554, 434, 326, 890, 11759, 10382, 69, 364, 534, 1077, 9795, 7963...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14002, 67, 9878, 67, 18132, 12, 7598, 16, 7129, 16, 4946, 16, 13382, 33, 7036, 4672, 436, 8395, 26128, 326, 17799, 16554, 434, 326, 890, 11759, 10382, 69, 364, 534, 1077, 9795, 7963...
def OnAutostart(evt=None):
def onChangeMode(evt=None):
def OnAutostart(evt=None): enbl=rb1.GetValue() favLbl.Enable(enbl) favCtrl.Enable(enbl) if evt is not None: evt.Skip()
203a74863f8acce3a987dc9b61eaf2234a615f8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/203a74863f8acce3a987dc9b61eaf2234a615f8b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24031, 2309, 12, 73, 11734, 33, 7036, 4672, 570, 3083, 33, 6731, 21, 18, 967, 620, 1435, 18180, 48, 3083, 18, 8317, 12, 275, 3083, 13, 18180, 12418, 18, 8317, 12, 275, 3083, 13, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24031, 2309, 12, 73, 11734, 33, 7036, 4672, 570, 3083, 33, 6731, 21, 18, 967, 620, 1435, 18180, 48, 3083, 18, 8317, 12, 275, 3083, 13, 18180, 12418, 18, 8317, 12, 275, 3083, 13, 309, ...
row = visualizer.graph.links.filter(u=(i,i), v=(j,j))
row = visualizer.graph.links.filter(u=(i+1,i+1), v=(j+1,j+1)) if len(row) == 0: row = visualizer.graph.links.filter(u=(j+1,j+1), v=(i+1,i+1)) indexes = [k for k, x in enumerate(visualizer.graph.links) if (str(int(x[0])) == str(j+1) and str(int(x[1])) == str(int(i+1)))] else: indexes = [k for k, x in enumerate(visualiz...
def addVisualizer(self, visualizer): self.visualizer = visualizer self.clear() self.nVertices = 0 self.nEdges = 0 self.vertexDegree = [] self.vertices_old = {} self.vertices = [] self.edges_old = {} self.nEdges = 0 self.networkCurve = NetworkCurve(self) self.edges = [] self.minEdgeWeight = sys.maxint self.maxEdgeWeigh...
1ea773271ebad1b2b9725cefa852042d154b040d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/1ea773271ebad1b2b9725cefa852042d154b040d/OWNetworkCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 25780, 1824, 12, 2890, 16, 11623, 1824, 4672, 365, 18, 26671, 1824, 273, 11623, 1824, 365, 18, 8507, 1435, 225, 365, 18, 82, 13371, 273, 374, 365, 18, 82, 10697, 273, 374, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 25780, 1824, 12, 2890, 16, 11623, 1824, 4672, 365, 18, 26671, 1824, 273, 11623, 1824, 365, 18, 8507, 1435, 225, 365, 18, 82, 13371, 273, 374, 365, 18, 82, 10697, 273, 374, 365, 18...
paren = paren + 1 if bracket: email = email + str str = '' elif not seen_bracket: email = email + str str = '' continue if bracket: if c == '>': bracket = 0 email = email + str str = ''
paren = 1 token = string.join(token, '') tokens.append((was_quoted, token)) was_quoted = 0 token = [] continue if c in string.whitespace: space = 1 continue if c in '<>@,;:.[]': token = string.join(token, '') tokens.append((was_quoted, token)) was_quoted = 0 token = [] tokens.append((0, c)) space = 0 continue if space:...
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
4fc35f6fe9840dd900330fa5e979466e53ea44e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4fc35f6fe9840dd900330fa5e979466e53ea44e5/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 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, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 2...
el1 = etree.SubElement(root, 'meta:initial-creator')
el1 = SubElement(root, 'meta:initial-creator')
def create_meta(self): root = etree.Element('office:document-meta', attrib=META_NAMESPACE_DICT) doc = etree.ElementTree(root) root = etree.SubElement(root, 'office:meta') el1 = etree.SubElement(root, 'meta:generator') el1.text = 'Docutils/rst2odf.py/%s' % (VERSION, ) s1 = os.environ.get('USER', '') el1 = etree.SubEleme...
57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3901, 12, 2890, 4672, 1365, 273, 12031, 18, 1046, 2668, 19789, 30, 5457, 17, 3901, 2187, 5885, 33, 19294, 67, 11368, 67, 31456, 13, 997, 273, 12031, 18, 1046, 2471, 12, 3085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3901, 12, 2890, 4672, 1365, 273, 12031, 18, 1046, 2668, 19789, 30, 5457, 17, 3901, 2187, 5885, 33, 19294, 67, 11368, 67, 31456, 13, 997, 273, 12031, 18, 1046, 2471, 12, 3085, ...
... form={'field.foo': u'&lt;h1&gt;&amp;copy;&lt;/h1&gt;'})
... form={'field.foo': u'<h1>&copy;</h1>'})
>>> def normalize(s):
1c686361fede1ef96bd2a1733633f37501e58912 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9522/1c686361fede1ef96bd2a1733633f37501e58912/editingwidgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 3883, 12, 87, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 3883, 12, 87, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print("SUCCESS: "+file+" converged"+" ("+str(round(dt,2))+"s)")
print("SUCCESS: File "+file+" converged successfully."+" ("+str(round(dt,2))+"s)")
def run_tests(argv): clean = 0 printerr = 1 #scan for --help and --clean if len(argv) > 1: for arg in argv: if "--help" in arg: do_help(); exit(0) if "--clean" in arg: clean = 1 if "--error" in arg: if printerr == 0: printerr = 1 if printerr == 1: printerr = 0 print("Starting autotest script") there_dir = os.getcwd()...
df94e5b8a9553981a05c88f42b7f6175b9153ec1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/43/df94e5b8a9553981a05c88f42b7f6175b9153ec1/validate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 16341, 12, 19485, 4672, 2721, 273, 374, 1172, 370, 273, 404, 468, 9871, 364, 1493, 5201, 471, 1493, 6200, 309, 562, 12, 19485, 13, 405, 404, 30, 364, 1501, 316, 5261, 30, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 16341, 12, 19485, 4672, 2721, 273, 374, 1172, 370, 273, 404, 468, 9871, 364, 1493, 5201, 471, 1493, 6200, 309, 562, 12, 19485, 13, 405, 404, 30, 364, 1501, 316, 5261, 30, 309...
if any(self.range) and any(filter(lambda r: r is None, self.range)):
if len(filter(lambda r: r is not None, self.range)) > 0 and \ len(filter(lambda r: r is None, self.range)) > 0:
def allowedValues(self): """ return a list representing the complete set of values that will be returned by recognize() (except None). This may raise an exception if hasStaticValueSet() returns False. """ if any(self.range) and any(filter(lambda r: r is None, self.range)): raise RuntimeError("identifier set (%s) is no...
005069717b34defa495d43dfcc4d1a776cbfe2f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6545/005069717b34defa495d43dfcc4d1a776cbfe2f4/id.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25080, 12, 2890, 4672, 3536, 327, 279, 666, 5123, 326, 3912, 444, 434, 924, 716, 903, 506, 2106, 635, 21431, 1435, 261, 14137, 599, 2934, 225, 1220, 2026, 1002, 392, 1520, 309, 711, 5788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25080, 12, 2890, 4672, 3536, 327, 279, 666, 5123, 326, 3912, 444, 434, 924, 716, 903, 506, 2106, 635, 21431, 1435, 261, 14137, 599, 2934, 225, 1220, 2026, 1002, 392, 1520, 309, 711, 5788...
Returns the b-statistic for the Dyck word corresponding to the bounce statistic of the Dyck word.
Returns the b-statistic for the Dyck word corresponding to the bounce statistic of the Dyck word.
def b_statistic(self): r""" Returns the b-statistic for the Dyck word corresponding to the bounce statistic of the Dyck word. One can view a balanced Dyck word as a lattice path from `(0,0)` to `(n,n)` in the first quadrant by letting '1's represent steps in the direction `(0,1)` and '0's represent steps in the direct...
8d61da4d6fedb82316ed36a28c821e2413b239d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8d61da4d6fedb82316ed36a28c821e2413b239d3/dyck_word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 67, 5642, 5846, 12, 2890, 4672, 436, 8395, 2860, 326, 324, 17, 5642, 5846, 364, 326, 463, 93, 363, 2076, 4656, 358, 326, 324, 8386, 21605, 434, 326, 463, 93, 363, 2076, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 67, 5642, 5846, 12, 2890, 4672, 436, 8395, 2860, 326, 324, 17, 5642, 5846, 364, 326, 463, 93, 363, 2076, 4656, 358, 326, 324, 8386, 21605, 434, 326, 463, 93, 363, 2076, 18, 225, ...
if op is r_operator: if self._r_assoc:
if rop._binary: if op is r_operator: if self._r_assoc: rparens = False elif self._precedence == rop._precedence: if self._r_assoc: rparens = False elif self._precedence < rop._precedence:
def _repr_(self, simplify=True): """ TESTS: sage: a = (1-1/r)^(-1); a 1/(1 - 1/r) sage: a.derivative(r) -1/((1 - 1/r)^2*r^2)
a3e1ab6e3ad7fae21c3295e0c62a4037d937329a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a3e1ab6e3ad7fae21c3295e0c62a4037d937329a/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 16, 16499, 33, 5510, 4672, 3536, 22130, 55, 30, 272, 410, 30, 279, 273, 261, 21, 17, 21, 19, 86, 13, 66, 19236, 21, 1769, 279, 404, 19, 12, 21, 300, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 67, 12, 2890, 16, 16499, 33, 5510, 4672, 3536, 22130, 55, 30, 272, 410, 30, 279, 273, 261, 21, 17, 21, 19, 86, 13, 66, 19236, 21, 1769, 279, 404, 19, 12, 21, 300, 404, ...
hb = gtk.HBox()
bb = gtk.HButtonBox() bb.set_layout(gtk.BUTTONBOX_END)
def cb_no_clicked(self): record.args[2](False)
a8c2edc09d07d2894c71210dc6abea06c13b427e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/a8c2edc09d07d2894c71210dc6abea06c13b427e/logmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 2135, 67, 7475, 329, 12, 2890, 4672, 1409, 18, 1968, 63, 22, 29955, 8381, 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, 2875, 67, 2135, 67, 7475, 329, 12, 2890, 4672, 1409, 18, 1968, 63, 22, 29955, 8381, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
megaprocess_config = {'name': 'megaprocess', 'pipeline': 'uiuiuiui', 'type': 'process', 'target': 'yay'} gst_config = {'name': 'supertest', 'pipeline': 'pppppl', 'type': 'gstreamer', 'target': 'yay'} coherence = self.CoherenceStump(transcoder=[gst_config, megaprocess_config])
coherence = self.CoherenceStump(transcoder=[self.gst_config, self.process_config])
def test_is_loading_multiple_from_config(self): megaprocess_config = {'name': 'megaprocess', 'pipeline': 'uiuiuiui', 'type': 'process', 'target': 'yay'}
57524504b476672a4f25a706269d224fefb63a33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/57524504b476672a4f25a706269d224fefb63a33/test_transcoder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 291, 67, 15174, 67, 9622, 67, 2080, 67, 1425, 12, 2890, 4672, 312, 1332, 438, 16127, 67, 1425, 273, 13666, 529, 4278, 296, 81, 1332, 438, 16127, 2187, 296, 14511, 4278, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 291, 67, 15174, 67, 9622, 67, 2080, 67, 1425, 12, 2890, 4672, 312, 1332, 438, 16127, 67, 1425, 273, 13666, 529, 4278, 296, 81, 1332, 438, 16127, 2187, 296, 14511, 4278, 296, ...
- ``childs``: a function returning a list (or iterable)
- ``children``: a function returning a list (or iterable)
def search_forest_iterator(roots, childs): """ INPUT: - ``roots``: a list (or iterable) - ``childs``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``child(x)`` returns the childs of the node ``x`` of the forest. EXAMPLES:: sage: from sag...
d1bfa2893dda8805bd4c6dd2e7784bcbd0f5a99d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d1bfa2893dda8805bd4c6dd2e7784bcbd0f5a99d/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 21619, 4672, 3536, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 5906, 10335, 30, 279, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 21619, 4672, 3536, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 5906, 10335, 30, 279, 445, ...
str = self._var_summary_row(var, container) private.write(str) if var.is_public(): public.write(str)
self._write_var_summary_row(public, private, var, container)
def _write_var_summary(self, public, private, variables, container, groups, heading='Variable Summary'): """ @return: The HTML code for a variable summary table. This is used by L{_module_to_html} to list the variables in a module; and by L{_class_to_html} to list instance variables and class variables. @rtype: C{stri...
6ecda71cd0e7e4752ddec3a0c1619699a3092855 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/6ecda71cd0e7e4752ddec3a0c1619699a3092855/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 1401, 67, 7687, 12, 2890, 16, 1071, 16, 3238, 16, 3152, 16, 1478, 16, 3252, 16, 11053, 2218, 3092, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 1401, 67, 7687, 12, 2890, 16, 1071, 16, 3238, 16, 3152, 16, 1478, 16, 3252, 16, 11053, 2218, 3092, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190,...
ref_code = int(open( '%s/%s/code.txt' % (self.base_path, cmdnum)).read())
ref_code = int( open('%s/%s/code.txt' % (self.base_path, cmdnum)).read() )
def RunCommand(self, cmdnum, batch=False):
4a39be2a839d5859b17f80ac690543414526444a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/4a39be2a839d5859b17f80ac690543414526444a/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 2189, 12, 2890, 16, 1797, 2107, 16, 2581, 33, 8381, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 2189, 12, 2890, 16, 1797, 2107, 16, 2581, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise RuntimeError( "%s lock already exists" % sLockName )
raise RuntimeError( "%s lock already exists" % sLockManagerName )
def createNewLockManager( self, sLockManagerName ): if sLockManagerName in self.dSubManagers.keys(): raise RuntimeError( "%s lock already exists" % sLockName ) self.dSubManagers[ sLockManagerName ] = LockManager( self.iMaxThreads ) return self.dSubManagers[ sLockManagerName ]
4e23a42fa63d81204c4c07e511944dde858100c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/4e23a42fa63d81204c4c07e511944dde858100c3/LockManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15291, 2531, 1318, 12, 365, 16, 272, 2531, 1318, 461, 262, 30, 309, 272, 2531, 1318, 461, 316, 365, 18, 72, 1676, 17570, 18, 2452, 13332, 1002, 7265, 12, 2213, 87, 2176, 1818, 1704, 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, 15291, 2531, 1318, 12, 365, 16, 272, 2531, 1318, 461, 262, 30, 309, 272, 2531, 1318, 461, 316, 365, 18, 72, 1676, 17570, 18, 2452, 13332, 1002, 7265, 12, 2213, 87, 2176, 1818, 1704, 6,...
if MODE == 'gmpy': LOG2_PREC_BSP = 14000 else: LOG2_PREC_BSP = 20000
def machin(coefs, prec, hyperbolic=False): """ Evaluate a Machin-like formula, i.e., a linear combination of acot(n) or acoth(n) for specific integer values of n, using fixed- point arithmetic. The input should be a list [(c, n), ...], giving c*acot[h](n) + ... """ extraprec = 10 s = MP_ZERO for a, b in coefs: s += MP_...
84b14fb5c4250081cf746822d6aa77dcdf0fe6a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11851/84b14fb5c4250081cf746822d6aa77dcdf0fe6a7/libelefun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25046, 267, 12, 8075, 2556, 16, 13382, 16, 9512, 70, 1415, 33, 8381, 4672, 3536, 18176, 279, 490, 497, 267, 17, 5625, 8013, 16, 277, 18, 73, 12990, 279, 9103, 10702, 434, 1721, 352, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25046, 267, 12, 8075, 2556, 16, 13382, 16, 9512, 70, 1415, 33, 8381, 4672, 3536, 18176, 279, 490, 497, 267, 17, 5625, 8013, 16, 277, 18, 73, 12990, 279, 9103, 10702, 434, 1721, 352, 12...
count += 1 item = iterator.next player.socket.sysmessage( "%i items have been removed from world" % count )
player.socket.sysmessage( "%i items have been removed from world" % len(serials) )
def wipeAllWorld( player, accept, state ): if not accept: player.socket.sysmessage( "Wipe command have been canceled" ) return 1 player.socket.sysmessage( "Removing all items from world, this may take a while" ) iterator = wolfpack.itemiterator() item = iterator.first count = 0 while item: if item.container == None: i...
8e27d7236d242c83066b1d476e81d2d40875b2b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/8e27d7236d242c83066b1d476e81d2d40875b2b7/wipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 3151, 1595, 18071, 12, 7291, 16, 2791, 16, 919, 262, 30, 309, 486, 2791, 30, 7291, 18, 7814, 18, 9499, 2150, 12, 315, 59, 3151, 1296, 1240, 2118, 17271, 6, 262, 327, 404, 225, 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, 341, 3151, 1595, 18071, 12, 7291, 16, 2791, 16, 919, 262, 30, 309, 486, 2791, 30, 7291, 18, 7814, 18, 9499, 2150, 12, 315, 59, 3151, 1296, 1240, 2118, 17271, 6, 262, 327, 404, 225, 7...
def do_hg_checkout(dir, remote, hgroot, hg): fulldir = os.path.join(topsrcdir, dir) repository = '%s/%s' % (hgroot, remote) check_call([hg, 'clone', repository, fulldir])
def do_hg_checkout(dir, remote, hgroot, hg): fulldir = os.path.join(topsrcdir, dir) repository = '%s/%s' % (hgroot, remote) check_call([hg, 'clone', repository, fulldir])
04320ce29e21ddac626ce28e2150dbca584ca20d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/04320ce29e21ddac626ce28e2150dbca584ca20d/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 26981, 67, 17300, 12, 1214, 16, 2632, 16, 22576, 3085, 16, 22576, 4672, 1983, 1214, 273, 1140, 18, 803, 18, 5701, 12, 3669, 4816, 1214, 16, 1577, 13, 3352, 273, 1995, 87, 5258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 26981, 67, 17300, 12, 1214, 16, 2632, 16, 22576, 3085, 16, 22576, 4672, 1983, 1214, 273, 1140, 18, 803, 18, 5701, 12, 3669, 4816, 1214, 16, 1577, 13, 3352, 273, 1995, 87, 5258...
self.handle_read_event = callback
self.handle_read_event = handler
def __init__(self, map, file, callback): # Add self to map map[file.fileno()] = self self.handle_read_event = callback
04a1448feda26fc31294d57ea17d771d9b643819 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/04a1448feda26fc31294d57ea17d771d9b643819/pymplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 852, 16, 585, 16, 1348, 4672, 468, 1436, 365, 358, 852, 852, 63, 768, 18, 7540, 5764, 1435, 65, 273, 365, 365, 18, 4110, 67, 896, 67, 2575, 273, 1348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 852, 16, 585, 16, 1348, 4672, 468, 1436, 365, 358, 852, 852, 63, 768, 18, 7540, 5764, 1435, 65, 273, 365, 365, 18, 4110, 67, 896, 67, 2575, 273, 1348, ...
raise self.failureException, \ (msg or '%r == %r within %r places' % (first, second, places))
raise self.failureException( msg or '%r == %r within %r places' % (first, second, places))
def failIfAlmostEqual(self, first, second, places=7, msg=None): """Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
f64c3e352b01b2c5c40815e4240b2d73462e2ba7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/f64c3e352b01b2c5c40815e4240b2d73462e2ba7/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 2047, 1067, 10329, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 12576, 33, 27, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 3959, 487, 11383, 635, 3675, 7114, 16729,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 2047, 1067, 10329, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 12576, 33, 27, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 3959, 487, 11383, 635, 3675, 7114, 16729,...
class handler(WSGIHandler): def alog_request(self, *args, **kwargs): pass
def do_zip_post(self, collection_id, post_data, is_new=False): try: metabook_data = post_data['metabook'] except KeyError, exc: return self.error_response('POST argument required: %s' % exc) base_url = post_data.get('base_url') template_blacklist = post_data.get('template_blacklist', '') template_exclusion_category = ...
7301f010396fc936f59b45a3f29b337a7ceb823a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/7301f010396fc936f59b45a3f29b337a7ceb823a/nserve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4450, 67, 2767, 12, 2890, 16, 1849, 67, 350, 16, 1603, 67, 892, 16, 353, 67, 2704, 33, 8381, 4672, 775, 30, 5100, 378, 1184, 67, 892, 273, 1603, 67, 892, 3292, 10578, 378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4450, 67, 2767, 12, 2890, 16, 1849, 67, 350, 16, 1603, 67, 892, 16, 353, 67, 2704, 33, 8381, 4672, 775, 30, 5100, 378, 1184, 67, 892, 273, 1603, 67, 892, 3292, 10578, 378, ...
sub_ids = ids2[i:i + cursor.IN_MAX]
sub_ids2 = ids2[i:i + cursor.IN_MAX]
def __where_calc(self, cursor, user, args, tables, tables_args, context=None): if context is None: context = {} i = 0 joins = [] while i < len(args): if args[i][1] not in ( 'child_of', '=', 'like', 'ilike', '', '!=', 'in', '<=', '>=', '<', '>'): raise Exception('ValidateError', 'Argument "%s" not supported' \ % args[i]...
3b8d24eb9af0ae512a40d9dd3d7071af95c9878a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/3b8d24eb9af0ae512a40d9dd3d7071af95c9878a/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6051, 67, 12448, 12, 2890, 16, 3347, 16, 729, 16, 833, 16, 4606, 16, 4606, 67, 1968, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 277, 273, 374, 13471, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6051, 67, 12448, 12, 2890, 16, 3347, 16, 729, 16, 833, 16, 4606, 16, 4606, 67, 1968, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 277, 273, 374, 13471, 273,...
print self.html etree.dump(html_tree) raise ODTExportError()
def select_id(self): """ Replace the HTML content by an element in the content. The element is selected by its HTML ID. """ try: html_tree = etree.fromstring(self.html) except etree.XMLSyntaxError: if self.options.verbose: raise else: raise ODTExportError("The XHTML is still not valid after " "Tidy's work, I can't conv...
b7a11cdadc408e117dc5f65bb99c6926035231e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/b7a11cdadc408e117dc5f65bb99c6926035231e3/xhtml2odt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 350, 12, 2890, 4672, 3536, 6910, 326, 3982, 913, 635, 392, 930, 316, 326, 913, 18, 1021, 930, 353, 3170, 635, 2097, 3982, 1599, 18, 3536, 775, 30, 1729, 67, 3413, 273, 12031,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 350, 12, 2890, 4672, 3536, 6910, 326, 3982, 913, 635, 392, 930, 316, 326, 913, 18, 1021, 930, 353, 3170, 635, 2097, 3982, 1599, 18, 3536, 775, 30, 1729, 67, 3413, 273, 12031,...
mysuffixes = ['.log' , '.fls' , targetext] for filename in out_files: base,ext = SCons.Util.splitext(filename) if ext in mysuffixes:
myfiles = [auxfilename, logfilename, flsfilename, targetbase+'.dvi',targetbase+'.pdf'] for filename in out_files[:]: if filename in myfiles:
def tex_emitter_core(target, source, env, graphics_extensions): """An emitter for TeX and LaTeX sources. For LaTeX sources we try and find the common created files that are needed on subsequent runs of latex to finish tables of contents, bibliographies, indices, lists of figures, and hyperlink references. """ targetbas...
7e6341a1012201a5cd10465412ee4f950cd46983 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/7e6341a1012201a5cd10465412ee4f950cd46983/tex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16573, 67, 27529, 67, 3644, 12, 3299, 16, 1084, 16, 1550, 16, 17313, 67, 9489, 4672, 3536, 979, 11520, 364, 28602, 60, 471, 21072, 21575, 60, 5550, 18, 2457, 21072, 21575, 60, 5550, 732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16573, 67, 27529, 67, 3644, 12, 3299, 16, 1084, 16, 1550, 16, 17313, 67, 9489, 4672, 3536, 979, 11520, 364, 28602, 60, 471, 21072, 21575, 60, 5550, 18, 2457, 21072, 21575, 60, 5550, 732,...
'''Returns selected text if any. If not, returns the current line'''
"""Returns selected text if any. If not, returns the current line"""
def GetSelectedTextOrLine(self): '''Returns selected text if any. If not, returns the current line''' selection = str(self.codeSubWin.GetSelectedText()) if selection == "": # get current line, return if not at an open '(' bracket currentLine = self.codeSubWin.GetLine(self.codeSubWin.GetCurrentLine()) selection = str(c...
cc443dd98e01d739acfd83b09946a7583c28ee2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14712/cc443dd98e01d739acfd83b09946a7583c28ee2f/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7416, 1528, 1162, 1670, 12, 2890, 4672, 3536, 1356, 3170, 977, 309, 1281, 18, 971, 486, 16, 1135, 326, 783, 980, 8395, 4421, 273, 609, 12, 2890, 18, 710, 1676, 18049, 18, 967, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7416, 1528, 1162, 1670, 12, 2890, 4672, 3536, 1356, 3170, 977, 309, 1281, 18, 971, 486, 16, 1135, 326, 783, 980, 8395, 4421, 273, 609, 12, 2890, 18, 710, 1676, 18049, 18, 967, 741...
tmprec = get_record(recid_to_display)
tmprec = get_record(recid)
def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=CFG_SITE_LANG, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress, search_pattern='', print_records_prologue_p=True, print_records_epilogue_p=True, verbose=0, tab=''): """ Prints list of records 'recIDs' for...
768179383f6b818b3f13d15262059d26304c992f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/768179383f6b818b3f13d15262059d26304c992f/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7094, 12, 3658, 16, 1950, 5103, 16, 525, 3927, 33, 21, 16, 14524, 33, 2163, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 6707, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7094, 12, 3658, 16, 1950, 5103, 16, 525, 3927, 33, 21, 16, 14524, 33, 2163, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 6707, ...
self.request.theme.add_msg(unicode(err), "error")
self.request.theme.add_msg(wikiutil.escape(unicode(err)), "error")
def execute(self): _ = self.request.getText try: self.setSlideNumber() language = self.page.pi['language'] self.request.setContentLanguage(language) self.request.write(self.template % self) except Error, err: self.request.theme.add_msg(unicode(err), "error") self.page.send_page()
f3aa7f2c7d8d8bbd8d1cbfbec1fedac8a0920ed5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/f3aa7f2c7d8d8bbd8d1cbfbec1fedac8a0920ed5/SlideShow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 775, 30, 365, 18, 542, 21068, 1854, 1435, 2653, 273, 365, 18, 2433, 18, 7259, 3292, 4923, 3546, 365, 18, 2293, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 775, 30, 365, 18, 542, 21068, 1854, 1435, 2653, 273, 365, 18, 2433, 18, 7259, 3292, 4923, 3546, 365, 18, 2293, 18, 542, ...
warn ("field '%s'" % field_name)
def handle_exact_field (m): field_name = m.group (0) warn ("field '%s'" % field_name) def gen (r): yield field_name return gen
2dc6cae27c55750383c97b249105ad8f1e12e949 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/2dc6cae27c55750383c97b249105ad8f1e12e949/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 17165, 67, 1518, 261, 81, 4672, 652, 67, 529, 273, 312, 18, 1655, 261, 20, 13, 225, 1652, 3157, 261, 86, 4672, 2824, 652, 67, 529, 327, 3157, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 17165, 67, 1518, 261, 81, 4672, 652, 67, 529, 273, 312, 18, 1655, 261, 20, 13, 225, 1652, 3157, 261, 86, 4672, 2824, 652, 67, 529, 327, 3157, 2, -100, -100, -100, -100, -10...
pieces.append(plural(self.hours, 'hour')) if minutes or len(pieces) == 0: self.pieces.append(self.plural(self.minutes, 'minute')) if len(self.pieces) == 1: return self.pieces[0] self.labelTime.set_text("Time: " + ", ".join(self.pieces[:-1]) + " and " + self.pieces[-1] + " ago")
self.pieces.append(self.__plural(self.hours, 'hour')) if self.minutes or len(self.pieces) == 0: self.pieces.append(self.__plural(self.minutes, 'minute')) self.labelTime.set_text("Time: " + ", ".join(self.pieces) + " ago")
def __calcsince(self, dtime):
6b3b3f0c89bc99da68c6a9f4f5106064aa3c0ad1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/943/6b3b3f0c89bc99da68c6a9f4f5106064aa3c0ad1/uigtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 771, 2143, 2410, 12, 2890, 16, 302, 957, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 771, 2143, 2410, 12, 2890, 16, 302, 957, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.disabled = False
self.disabled = 0
def __init__(self, control, widget, attribute): self.control = control self.widget = widget self.disabled = False
85741d6f825457214a1913669cf163505ff1d54e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/85741d6f825457214a1913669cf163505ff1d54e/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 3604, 16, 1566, 4672, 365, 18, 7098, 273, 3325, 365, 18, 6587, 273, 3604, 365, 18, 9278, 273, 1083, 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, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 3604, 16, 1566, 4672, 365, 18, 7098, 273, 3325, 365, 18, 6587, 273, 3604, 365, 18, 9278, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100...
DATA_DIR="/usr/share/sinthgunt/"
DATA_DIR=sys.prefix+"/share/sinthgunt/"
def main(): #################### # System checks #################### # Check to see if ffmpeg is installed if os.path.exists("/usr/bin/ffmpeg"): print('ffmpeg found. Starting Sinthgunt...')# carry on else: print('It seems, that ffmpeg is not installed on this computer. \nSee http://www.sinthgunt.org for installation i...
a41c0fa060f602f52cc8961cc779c8d4bc393441 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4607/a41c0fa060f602f52cc8961cc779c8d4bc393441/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 29570, 13151, 468, 2332, 4271, 29570, 13151, 468, 2073, 358, 2621, 309, 6875, 19951, 353, 5876, 309, 1140, 18, 803, 18, 1808, 2932, 19, 13640, 19, 4757, 19, 1403, 19951, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 29570, 13151, 468, 2332, 4271, 29570, 13151, 468, 2073, 358, 2621, 309, 6875, 19951, 353, 5876, 309, 1140, 18, 803, 18, 1808, 2932, 19, 13640, 19, 4757, 19, 1403, 19951, 6, ...
users = acl_folder.findUser(search_param='uid', search_term=p_username) if len(users) > 0: return unicode(users[0].get('cn', ''), 'iso-8859-1').encode('utf-8')
user = self._get_user_by_uid(p_username, acl_folder) if user is not None: return unicode(user.get('cn', ''), 'iso-8859-1').encode('utf-8')
def getUserFullName(self, p_username, acl_folder): #return the email of the given user id users = acl_folder.findUser(search_param='uid', search_term=p_username) if len(users) > 0: return unicode(users[0].get('cn', ''), 'iso-8859-1').encode('utf-8') else: return ''
8f2bab37694f9821eb7fab0b3216ecb523a3707b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/8f2bab37694f9821eb7fab0b3216ecb523a3707b/plugLDAPUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 19223, 12, 2890, 16, 293, 67, 5053, 16, 7895, 67, 5609, 4672, 468, 2463, 326, 2699, 434, 326, 864, 729, 612, 729, 273, 365, 6315, 588, 67, 1355, 67, 1637, 67, 1911, 12, 84, 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, 4735, 19223, 12, 2890, 16, 293, 67, 5053, 16, 7895, 67, 5609, 4672, 468, 2463, 326, 2699, 434, 326, 864, 729, 612, 729, 273, 365, 6315, 588, 67, 1355, 67, 1637, 67, 1911, 12, 84, 67,...
ttf_p =1
ttf_p = 1
def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil...
d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 5776, 1376, 261, 3459, 4672, 225, 7314, 273, 288, 296, 5711, 461, 11, 294, 1544, 16, 296, 9203, 461, 11, 225, 294, 1544, 16, 315, 6544, 6, 294, 296, 16819, 2187, 315, 7193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 5776, 1376, 261, 3459, 4672, 225, 7314, 273, 288, 296, 5711, 461, 11, 294, 1544, 16, 296, 9203, 461, 11, 225, 294, 1544, 16, 315, 6544, 6, 294, 296, 16819, 2187, 315, 7193, ...
box.pack_start(label,False)
box.pack_start(label, False)
def validedChanges(*args): """Check for a least one selected kana portion (display of a message if not the case), catch parameters, then close the window.
64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 13898, 7173, 30857, 1968, 4672, 3536, 1564, 364, 279, 4520, 1245, 3170, 417, 13848, 14769, 261, 5417, 434, 279, 883, 309, 486, 326, 648, 3631, 1044, 1472, 16, 1508, 1746, 326, 2742, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1244, 13898, 7173, 30857, 1968, 4672, 3536, 1564, 364, 279, 4520, 1245, 3170, 417, 13848, 14769, 261, 5417, 434, 279, 883, 309, 486, 326, 648, 3631, 1044, 1472, 16, 1508, 1746, 326, 2742, ...
timeList = timeVar.split( "/" ) dt = Time.fromString( "%s-%s-%s" % ( timeList[2], timeList[1], timeList[0] ) )
dt = Time.fromString( timeVar )
def __dateToSecs( self, timeVar ): timeList = timeVar.split( "/" ) dt = Time.fromString( "%s-%s-%s" % ( timeList[2], timeList[1], timeList[0] ) ) return int( Time.toEpoch( dt ) )
d4def2ae2fd949e033267ed5bcac2c4b59881e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/d4def2ae2fd949e033267ed5bcac2c4b59881e0b/activitiesMonitoring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 712, 774, 25059, 12, 365, 16, 813, 1537, 262, 30, 3681, 273, 2647, 18, 2080, 780, 12, 813, 1537, 262, 327, 509, 12, 2647, 18, 869, 14638, 12, 3681, 262, 262, 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, 1001, 712, 774, 25059, 12, 365, 16, 813, 1537, 262, 30, 3681, 273, 2647, 18, 2080, 780, 12, 813, 1537, 262, 327, 509, 12, 2647, 18, 869, 14638, 12, 3681, 262, 262, 2, -100, -100, -10...
if sys.platform!="win32": try: opts, args = getopt.getopt(sys.argv[1:], "a:dhn:s:v", ["affinity=", "debug", "help", "name=", "sleep=", "verbose"]) if len(args) > 0: serverUrl = args[0] except getopt.GetoptError, err: print str(err)
try: opts, args = getopt.getopt(sys.argv[1:], "a:dhn:s:v", ["affinity=", "debug", "help", "name=", "sleep=", "verbose"]) if len(args) > 0: serverUrl = args[0] except getopt.GetoptError, err: print str(err) usage() sys.exit(2) for o, a in opts: if o in ("-d", "--debug"): debug = True elif o in ("-h", "--help"):
def usage(): print ("Usage: worker [OPTIONS] [SERVER_URL]") print ("Start a Coalition worker using the server located at SERVER_URL.") print ("If no SERVER_URL is specified, the worker will try to locate the server using a broadcast.\n") print ("Options:") print (" -d, --debug\t\tRun without the main try/catch") print...
9a13fc78c38b554162109d47862641b7215d28f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11382/9a13fc78c38b554162109d47862641b7215d28f8/worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 7566, 5357, 30, 4322, 306, 12422, 65, 306, 4370, 67, 1785, 4279, 13, 1172, 7566, 1685, 279, 7695, 287, 608, 4322, 1450, 326, 1438, 13801, 622, 15061, 67, 1785, 1199, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 7566, 5357, 30, 4322, 306, 12422, 65, 306, 4370, 67, 1785, 4279, 13, 1172, 7566, 1685, 279, 7695, 287, 608, 4322, 1450, 326, 1438, 13801, 622, 15061, 67, 1785, 1199, 1...
print "configure: cygwin detected; path correction" srcdir = cmdOutput('cygpath -m ' + srcdir) print "srcdir = ", srcdir cygwin_path_fix = 'true'
print "configure: TeX engine needs windows-style paths in latex files" windows_style_tex_paths = 'true'
def checkCygwinPath(srcdir): ''' Adjust PATH for Win32 (Cygwin) ''' cygwin_path_fix = '' if os.name == 'nt': cygwin_path_fix = 'true' elif sys.platform == 'cygwin': from tempfile import mkstemp fd, tmpfname = mkstemp(suffix='.ltx', dir='/tmp') os.write(fd, r'''
44a5cfc89ced180ed4411bf0f46d3df3756725e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/44a5cfc89ced180ed4411bf0f46d3df3756725e5/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 39, 4338, 8082, 743, 12, 4816, 1214, 4672, 9163, 17720, 7767, 364, 21628, 1578, 261, 39, 4338, 8082, 13, 9163, 276, 4338, 8082, 67, 803, 67, 904, 273, 875, 309, 1140, 18, 529, 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, 866, 39, 4338, 8082, 743, 12, 4816, 1214, 4672, 9163, 17720, 7767, 364, 21628, 1578, 261, 39, 4338, 8082, 13, 9163, 276, 4338, 8082, 67, 803, 67, 904, 273, 875, 309, 1140, 18, 529, 422...
def export_getMask(self):
def export_getSiteMask(self):
def export_getMask(self): """ Get the site mask """
a17b10268d5924113e5a235bf0450339b3e4d546 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/a17b10268d5924113e5a235bf0450339b3e4d546/WMSAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 588, 4956, 5796, 12, 2890, 4672, 3536, 968, 326, 2834, 3066, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 588, 4956, 5796, 12, 2890, 4672, 3536, 968, 326, 2834, 3066, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.data = loads(data)
self.buffer += data
def feed(self, data): self.data = loads(data)
da7b064f5668525046a4109193b067aa28165775 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11734/da7b064f5668525046a4109193b067aa28165775/jsonrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4746, 12, 2890, 16, 501, 4672, 365, 18, 892, 273, 6277, 12, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4746, 12, 2890, 16, 501, 4672, 365, 18, 892, 273, 6277, 12, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"%d" % VERSION.tiny, VERSION.releaseType, cvsTag)
relNo, VERSION.releaseType, cvsTag)
def main(): shortargs = 'ho:i:s:t:v:p' longargs = ['help', 'outdir=', 'iconfile=', 'sourcedir=', 'tag=', 'version=', 'premature-exit'] try: opts, args = getopt.getopt(sys.argv[1:], shortargs, longargs) except getopt.GetoptError: usage() sys.exit(2) currentDir = os.getcwd() appName = "nanoENGINEER-1" rootDir = None if...
5467066082091151fda196867fcba1ae38aa6032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5467066082091151fda196867fcba1ae38aa6032/autoBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3025, 1968, 273, 296, 15008, 30, 77, 30, 87, 30, 88, 30, 90, 30, 84, 11, 1525, 1968, 273, 10228, 5201, 2187, 296, 659, 1214, 33, 2187, 296, 3950, 768, 33, 2187, 296, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3025, 1968, 273, 296, 15008, 30, 77, 30, 87, 30, 88, 30, 90, 30, 84, 11, 1525, 1968, 273, 10228, 5201, 2187, 296, 659, 1214, 33, 2187, 296, 3950, 768, 33, 2187, 296, 316...
lallappsNewcorseNodeCombined[cat] = lalapps_newcorse_node(lalappsNewcorseJobCombined, dag, "vetoes", " ".join(db[cat]), n, [lallappsNewcorseNode[cat]], mass_bins=None, categories="oninstruments", rank="uncombined-ifar");n+=1 upperlimit_fnames = {} upperlimit_nodes = {} for cat in cats: upperlimit_fnames[cat] = [] upp...
lalappsNewcorseNodeCombined[cat] = lalapps_newcorse_node(lalappsNewcorseJobCombined, dag, "vetoes", " ".join(db[cat]), n, [lalappsNewcorseNode[cat]], mass_bins=None, categories="oninstruments", rank="uncombined-ifar");n+=1 farPlotNode[cat] = far_plot_node(farPlotJob, dag, " ".join(db[cat]), n, [lalappsNewcorseNodeCom...
def grep_pieces_and_append(string, inname, outname, append_cache=None): expr = re.compile(string) new_list = filter(expr.search,open(inname).readlines()) new_list.sort() print len(new_list) outnames = [] try: os.mkdir(outname) except: pass # To make sure that includes slides and zero lag for i in range(len(new_list)): ...
0b97313a1079214d63930999cbf916815e37ccaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b97313a1079214d63930999cbf916815e37ccaf/highmass_post_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23366, 67, 31016, 67, 464, 67, 6923, 12, 1080, 16, 316, 529, 16, 596, 529, 16, 714, 67, 2493, 33, 7036, 4672, 3065, 273, 283, 18, 11100, 12, 1080, 13, 394, 67, 1098, 273, 1034, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23366, 67, 31016, 67, 464, 67, 6923, 12, 1080, 16, 316, 529, 16, 596, 529, 16, 714, 67, 2493, 33, 7036, 4672, 3065, 273, 283, 18, 11100, 12, 1080, 13, 394, 67, 1098, 273, 1034, 12, ...
self.hboxlayout9 = QtGui.QHBoxLayout() self.hboxlayout9.setMargin(0) self.hboxlayout9.setSpacing(6) self.hboxlayout9.setObjectName("hboxlayout9") self.vboxlayout8 = QtGui.QVBoxLayout() self.vboxlayout8.setMargin(0) self.vboxlayout8.setSpacing(6) self.vboxlayout8.setObjectName("vboxlayout8") self.fill_type_lbl = QtGui...
self.perspective_radioButton = QtGui.QRadioButton(self.default_projection_grpBox) self.perspective_radioButton.setChecked(False) self.perspective_radioButton.setObjectName("perspective_radioButton") self.gridlayout10.addWidget(self.perspective_radioButton,0,0,1,1) self.orthographic_radioButton = QtGui.QRadioButton(sel...
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
if self.c.search(value): self.has_details = True
if self.c.search(value): self.has_differences = True if self.d.search(value): self.has_differences = True
def addmsg(self, value): if not self.data.has_key('msg'): self.data['msg'] = [] self.data['msg'].append(value) if self.r.search(value): self.has_details = True if self.c.search(value): self.has_details = True
86fd67bcd60f0c6e3754d4313c994f1726dd05aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/86fd67bcd60f0c6e3754d4313c994f1726dd05aa/split_changelog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3576, 12, 2890, 16, 460, 4672, 309, 486, 365, 18, 892, 18, 5332, 67, 856, 2668, 3576, 11, 4672, 365, 18, 892, 3292, 3576, 3546, 273, 5378, 365, 18, 892, 3292, 3576, 29489, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3576, 12, 2890, 16, 460, 4672, 309, 486, 365, 18, 892, 18, 5332, 67, 856, 2668, 3576, 11, 4672, 365, 18, 892, 3292, 3576, 3546, 273, 5378, 365, 18, 892, 3292, 3576, 29489, 6923, ...
def commit(message, files = [], parents = [], allowempty = False,
def commit(message, files = None, parents = None, allowempty = False,
def commit(message, files = [], parents = [], allowempty = False, cache_update = True, tree_id = None, author_name = None, author_email = None, author_date = None, committer_name = None, committer_email = None): """Commit the current tree to repository """ # Get the tree status if cache_update and parents != []: change...
9216b6023d6840c457172b375e14443189f7ef89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/9216b6023d6840c457172b375e14443189f7ef89/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2150, 16, 1390, 273, 599, 16, 6298, 273, 599, 16, 1699, 5531, 273, 1083, 16, 1247, 67, 2725, 273, 1053, 16, 2151, 67, 350, 273, 599, 16, 2869, 67, 529, 273, 599, 16, 2869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2150, 16, 1390, 273, 599, 16, 6298, 273, 599, 16, 1699, 5531, 273, 1083, 16, 1247, 67, 2725, 273, 1053, 16, 2151, 67, 350, 273, 599, 16, 2869, 67, 529, 273, 599, 16, 2869, ...
self.debugbuffer = gtk.TextBuffer() self.debug = gtk.TextView(self.debugbuffer) self.debug.set_editable(False) self.debug_sw = gtk.ScrolledWindow() self.debug_sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.debug_sw.add(self.debug) self.outputbox = gtk.VBox() self.output_sw = gtk.ScrolledWindow() self....
def __init__(self, filename): self.filename = filename self.debuggee = pexpect.spawn("python3 -m epdb {0}".format(filename), timeout=None) self.running = True # create a new window self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.set_default_size(640,480) self.window.connect("delete_event", self.delete_event...
17466ef0e62a97384363a1ba189f4b8c03f93b77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4616/17466ef0e62a97384363a1ba189f4b8c03f93b77/gepdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 4672, 365, 18, 3459, 273, 1544, 365, 18, 4148, 908, 73, 273, 293, 12339, 18, 1752, 9533, 2932, 8103, 23, 300, 81, 5529, 1966, 288, 20, 1532, 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, 1001, 2738, 972, 12, 2890, 16, 1544, 4672, 365, 18, 3459, 273, 1544, 365, 18, 4148, 908, 73, 273, 293, 12339, 18, 1752, 9533, 2932, 8103, 23, 300, 81, 5529, 1966, 288, 20, 1532, 18, ...
info.extend([ tag('div', _class='description')[ self.source.description ], ])
def renderLatest(self): info = []
714af92c4e55d8eaedfe268d172fdad7a6d42f24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/714af92c4e55d8eaedfe268d172fdad7a6d42f24/web.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 18650, 12, 2890, 4672, 1123, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1743, 18650, 12, 2890, 4672, 1123, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
validKeys = ( 'category', 'description', 'sourceId', 'bucketLength', 'type', 'unit', 'name' )
validKeys = ( 'category', 'description', 'bucketLength', 'type', 'unit' )
def __checkActivityDict( self, acDict ): """ Check that the dictionary is a valid activity one """ validKeys = ( 'category', 'description', 'sourceId', 'bucketLength', 'type', 'unit', 'name' ) for key in validKeys: if key not in acDict: return False return True
6c7a0815aded0c9530c784cf56b39c4667232f86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6c7a0815aded0c9530c784cf56b39c4667232f86/ServiceInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 6193, 5014, 12, 365, 16, 1721, 5014, 262, 30, 3536, 2073, 716, 326, 3880, 353, 279, 923, 5728, 1245, 3536, 923, 2396, 273, 261, 296, 4743, 2187, 296, 3384, 2187, 296, 7242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 6193, 5014, 12, 365, 16, 1721, 5014, 262, 30, 3536, 2073, 716, 326, 3880, 353, 279, 923, 5728, 1245, 3536, 923, 2396, 273, 261, 296, 4743, 2187, 296, 3384, 2187, 296, 7242, ...
L = [] for k in xrange(icount): L.append(start) start += step if include_endpoint: L.append(end) return L def xsrange(start, end=None, step=1, universe=None, check=True, include_endpoint=False, endpoint_tolerance=1e-5): """ Return an iterator over numbers ``a, a+step, ..., a+k*step``, where ``a+k*step < b`` and ``a...
def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False, endpoint_tolerance=1e-5): r""" Return list of numbers ``a, a+step, ..., a+k*step``, where ``a+k*step < b`` and ``a+(k+1)*step >= b`` over exact rings, and makes a best attempt for inexact rings (see note below). This provides one wa...
057c66005bb245d6d0e905819d69011d02c772a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/057c66005bb245d6d0e905819d69011d02c772a5/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 16, 2494, 67, 25456, 33, 21, 73, 17, 25, 4672, 436, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 16, 2494, 67, 25456, 33, 21, 73, 17, 25, 4672, 436, ...
ret = ce.submitJob( pilot['pilotFile'], resourceJDL, pilot['proxyString'], '0', [self.diracInstallPath, self.diracPilotPath] )
ret = ce.submitJob( pilot['pilotFile'], resourceJDL, pilot['proxyString'], '0', [self.diracInstallPath, self.diracPilotPath] )
def __submitPilots( self, pilots, ce ): resourceJDL = '' while len( pilots ) > 0: pilot = pilots.pop( 0 ) ret = ce.submitJob( pilot['pilotFile'], resourceJDL, pilot['proxyString'], '0', [self.diracInstallPath, self.diracPilotPath] ) if not ret['OK']: self.log.warn( ret['Message'] ) return ret self.log.debug( "Result of...
0bd90b0eab10b2108384fa9fd724e81211bc1a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0bd90b0eab10b2108384fa9fd724e81211bc1a92/DiracSiteAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9297, 52, 330, 6968, 12, 365, 16, 24970, 6968, 16, 5898, 262, 30, 1058, 46, 8914, 273, 875, 1323, 562, 12, 24970, 6968, 262, 405, 374, 30, 293, 22797, 273, 24970, 6968, 18, 5120,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9297, 52, 330, 6968, 12, 365, 16, 24970, 6968, 16, 5898, 262, 30, 1058, 46, 8914, 273, 875, 1323, 562, 12, 24970, 6968, 262, 405, 374, 30, 293, 22797, 273, 24970, 6968, 18, 5120,...
else: raise ValueError("Unsupported scrap_type: %r" % (scrap_type,))
elif scrap_type in board.types: return board.stringForType_(scrap_type)
def get(scrap_type): board = NSPasteboard.generalPasteboard() if scrap_type == SCRAP_TEXT: content = board.stringForType_(NSStringPboardType) return content elif scrap_type == SCRAP_BMP: # We could try loading directly but I don't trust pygame's TIFF # loading. This is slow and stupid but it does happen to work. if no...
bd6e0badd3e5bbf24d517ef0c768e2c1534a6350 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/bd6e0badd3e5bbf24d517ef0c768e2c1534a6350/mac_scrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 1017, 1266, 67, 723, 4672, 11094, 273, 423, 3118, 14725, 3752, 18, 12259, 52, 14725, 3752, 1435, 309, 888, 1266, 67, 723, 422, 348, 5093, 2203, 67, 5151, 30, 913, 273, 11094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 1017, 1266, 67, 723, 4672, 11094, 273, 423, 3118, 14725, 3752, 18, 12259, 52, 14725, 3752, 1435, 309, 888, 1266, 67, 723, 422, 348, 5093, 2203, 67, 5151, 30, 913, 273, 11094, ...
blockname = "%s/%s" % (match.group(0), blockname)
blockname = "%s/%s" % (match.group(1), blockname)
def template(self, name): if isinstance(name, document.Document) or callable(name): return name shortname = name prefix = None providers = None if isinstance(name, str): template = self.BLOCKS.get(name) if template: return template for blocks in self.BLKSTACK: if blocks: template = blocks.get(name) if template: return ...
ee91d8fafaaeb0531affcff79e64c250f94fe3ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1390/ee91d8fafaaeb0531affcff79e64c250f94fe3ad/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 12, 2890, 16, 508, 4672, 309, 1549, 12, 529, 16, 1668, 18, 2519, 13, 578, 4140, 12, 529, 4672, 327, 508, 23879, 273, 508, 1633, 273, 599, 9165, 273, 599, 309, 1549, 12, 529, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 12, 2890, 16, 508, 4672, 309, 1549, 12, 529, 16, 1668, 18, 2519, 13, 578, 4140, 12, 529, 4672, 327, 508, 23879, 273, 508, 1633, 273, 599, 9165, 273, 599, 309, 1549, 12, 529, 16...