rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
pass
def __getitem__(self, index): return 2*str.__getitem__(self, index)
def test_filter_subclasses(self): # test, that filter() never returns tuple, str or unicode subclasses funcs = (None, lambda x: True) class tuple2(tuple): pass class str2(str): pass inputs = { tuple2: [(), (1,2,3)], str2: ["", "123"] } if have_unicode: class unicode2(unicode): pass inputs[unicode2] = [unicode(), unicode("123")]
e03cb0dfb74e6fdef0019740b64cdb246fad25fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e03cb0dfb74e6fdef0019740b64cdb246fad25fa/test_builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2188, 67, 1717, 4701, 12, 2890, 4672, 468, 1842, 16, 716, 1034, 1435, 5903, 1135, 3193, 16, 609, 578, 5252, 15320, 15630, 273, 261, 7036, 16, 3195, 619, 30, 1053, 13, 667, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2188, 67, 1717, 4701, 12, 2890, 4672, 468, 1842, 16, 716, 1034, 1435, 5903, 1135, 3193, 16, 609, 578, 5252, 15320, 15630, 273, 261, 7036, 16, 3195, 619, 30, 1053, 13, 667, 31...
These lines should be ignored; they don't refer to real include files.""" return file[0] != '<' and file[-1] != '>'
These lines should be ignored; they don't refer to real include files.""" return file[0] != '<' and file[-1] != '>'
def __notBogus(self, file): """In g++ the first couple of lines in the pre-processed output look like this: # 1 "<built-in>"
cad7e4a6c0d7a6482cfae7cc459e0ba42b3d27f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5344/cad7e4a6c0d7a6482cfae7cc459e0ba42b3d27f1/IncludeFileDependencyAnalyzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 902, 38, 28774, 12, 2890, 16, 585, 4672, 3536, 382, 314, 9904, 326, 1122, 1825, 2268, 434, 2362, 316, 326, 675, 17, 11005, 876, 2324, 3007, 333, 30, 468, 404, 3532, 12406, 17, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 902, 38, 28774, 12, 2890, 16, 585, 4672, 3536, 382, 314, 9904, 326, 1122, 1825, 2268, 434, 2362, 316, 326, 675, 17, 11005, 876, 2324, 3007, 333, 30, 468, 404, 3532, 12406, 17, 26...
""") % os.path.basename(sys.argv[0])
""")
def usage(): print _(""" %s [options] directory-of-packages Options: -u, --baseurl = optional base url location for all files -x, --exclude = files globs to exclude, can be specified multiple times -q, --quiet = run quietly -g, --groupfile <filename> to point to for group information (precreated) -v, --verbose = run verbosely -s, --checksum = md5 or sha - select type of checksum to use (default: md5) -h, --help = show this help -V, --version = output version -p, --pretty = output xml files in pretty format. """) % os.path.basename(sys.argv[0]) sys.exit(1)
32b502611b11134f4b5dfd17f846d51d9807fe7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/32b502611b11134f4b5dfd17f846d51d9807fe7b/genpkgmetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 389, 2932, 3660, 738, 87, 306, 2116, 65, 1867, 17, 792, 17, 10308, 225, 5087, 30, 300, 89, 16, 1493, 1969, 718, 273, 3129, 1026, 880, 2117, 364, 777, 1390, 300, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2932, 3660, 738, 87, 306, 2116, 65, 1867, 17, 792, 17, 10308, 225, 5087, 30, 300, 89, 16, 1493, 1969, 718, 273, 3129, 1026, 880, 2117, 364, 777, 1390, 300, 92, ...
out.write(" (influence (weigth %f) (bone \"%s\"))\n" % (weight, bone)) out.write(" )) ;; vertex\n")
out.write("\n (influence (weigth %f) (bone \"%s\"))" % (weight, bone)) out.write("))\n")
def write(self, out): out.write(";; -*- scheme -*-\n") out.write("(windstille-model\n") out.write(" (name \"\")\n") for (texture, mesh) in self.mesh_data.iteritems(): out.write(" (mesh\n") out.write(" (name \"\")\n") out.write(" (texture \"%s\")\n\n" % texture) out.write(" (vertices\n") for v in mesh.vertices: out.write(" %10f %10f %10f ;; %d\n" % (v.co[0], v.co[1], v.co[2], v.index)) out.write(" ) ;; vertices\n\n")
7da431e8cd4fe19ba2a089583c4d1402e943c669 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4846/7da431e8cd4fe19ba2a089583c4d1402e943c669/mesh_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 596, 4672, 596, 18, 2626, 2932, 25708, 300, 14, 17, 4355, 300, 14, 6943, 82, 7923, 596, 18, 2626, 2932, 12, 10094, 334, 14120, 17, 2284, 64, 82, 7923, 596, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 596, 4672, 596, 18, 2626, 2932, 25708, 300, 14, 17, 4355, 300, 14, 6943, 82, 7923, 596, 18, 2626, 2932, 12, 10094, 334, 14120, 17, 2284, 64, 82, 7923, 596, 18, 26...
href = self.link_hrefs[href] text.append('\\q="
href = ' text.append('\\q="%s"' % href)
def dump_text(self, elem, stylizer, page, tag_stack=[]): if not isinstance(elem.tag, basestring) \ or namespace(elem.tag) != XHTML_NS: return []
3a982d51b0d062a965aeac679ffd334f00490a2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/3a982d51b0d062a965aeac679ffd334f00490a2a/pmlml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 955, 12, 2890, 16, 3659, 16, 16253, 80, 1824, 16, 1363, 16, 1047, 67, 3772, 33, 8526, 4672, 309, 486, 1549, 12, 10037, 18, 2692, 16, 10699, 13, 521, 578, 1981, 12, 10037, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 955, 12, 2890, 16, 3659, 16, 16253, 80, 1824, 16, 1363, 16, 1047, 67, 3772, 33, 8526, 4672, 309, 486, 1549, 12, 10037, 18, 2692, 16, 10699, 13, 521, 578, 1981, 12, 10037, 1...
req.hdf['projects'] = projects
def send_project_index(environ, start_response, parent_dir=None, env_paths=None): req = Request(environ, start_response) loadpaths = [pkg_resources.resource_filename('trac', 'templates')] if req.environ.get('trac.env_index_template'): tmpl_path, template = os.path.split(req.environ['trac.env_index_template']) loadpaths.insert(0, tmpl_path) if template.endswith('.cs'): req.hdf = HDFWrapper(loadpaths) # keep that for custom .cs templates else: template = 'index.html' data = {} if req.environ.get('trac.template_vars'): for pair in req.environ['trac.template_vars'].split(','): key, val = pair.split('=') req.hdf[key] = val data[key] = val if parent_dir and not env_paths: env_paths = dict([(filename, os.path.join(parent_dir, filename)) for filename in os.listdir(parent_dir)]) try: href = Href(req.base_path) projects = [] for env_name, env_path in get_environments(environ).items(): try: env = _open_environment(env_path, run_once=environ['wsgi.run_once']) proj = { 'name': env.project_name, 'description': env.project_description, 'href': href(env_name) } except Exception, e: proj = {'name': env_name, 'description': to_unicode(e)} projects.append(proj) projects.sort(lambda x, y: cmp(x['name'].lower(), y['name'].lower())) req.hdf['projects'] = projects data['projects'] = projects if template.endswith('.cs'): # assume Clearsilver req.display(template) markuptemplate = TemplateLoader(loadpaths).load(template) stream = markuptemplate.generate(**data) output = stream.render('xhtml', doctype=DocType.XHTML_STRICT) req.send(output, 'text/html') except RequestDone: pass
6f3e923127813ae725586b9f66c6f9dde3543cb6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/6f3e923127813ae725586b9f66c6f9dde3543cb6/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4406, 67, 1615, 12, 28684, 16, 787, 67, 2740, 16, 982, 67, 1214, 33, 7036, 16, 1550, 67, 4481, 33, 7036, 4672, 1111, 273, 1567, 12, 28684, 16, 787, 67, 2740, 13, 225, 1262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4406, 67, 1615, 12, 28684, 16, 787, 67, 2740, 16, 982, 67, 1214, 33, 7036, 16, 1550, 67, 4481, 33, 7036, 4672, 1111, 273, 1567, 12, 28684, 16, 787, 67, 2740, 13, 225, 1262,...
self.path = os.tempnam()
self.path = 'shelve-tmp'
def setup(self): filterwarnings('ignore', category=RuntimeWarning) self.path = os.tempnam() resetwarnings() self.jobstore = ShelveJobStore(self.path)
caf7f843fe05560c6027645b7ae8a9a5b58dd52e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/caf7f843fe05560c6027645b7ae8a9a5b58dd52e/testjobstores.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 1034, 12103, 2668, 6185, 2187, 3150, 33, 5576, 6210, 13, 225, 365, 18, 803, 273, 296, 674, 292, 537, 17, 5645, 11, 2715, 12103, 1435, 365, 18, 4688, 2233, 273, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 1034, 12103, 2668, 6185, 2187, 3150, 33, 5576, 6210, 13, 225, 365, 18, 803, 273, 296, 674, 292, 537, 17, 5645, 11, 2715, 12103, 1435, 365, 18, 4688, 2233, 273, 26...
condition = ' %s %s LastUpdateTime<\'%s\'' % ( condition,
condition = ' %s %s LastUpdateTime < \'%s\'' % ( condition,
def __buildCondition(self, condDict, older=None, newer=None ): """ build SQL condition statement from provided condDict and other extra conditions """ condition = '' conjunction = "WHERE"
6335d855dbf67ac99d8948e0e96bdb0d29625a15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6335d855dbf67ac99d8948e0e96bdb0d29625a15/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 3418, 12, 2890, 16, 6941, 5014, 16, 12156, 33, 7036, 16, 16069, 33, 7036, 262, 30, 3536, 1361, 3063, 2269, 3021, 628, 2112, 6941, 5014, 471, 1308, 2870, 4636, 3536, 2269, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 3418, 12, 2890, 16, 6941, 5014, 16, 12156, 33, 7036, 16, 16069, 33, 7036, 262, 30, 3536, 1361, 3063, 2269, 3021, 628, 2112, 6941, 5014, 471, 1308, 2870, 4636, 3536, 2269, 273...
self.settings.bind ('format', combo, 'active', Gio.SettingsBindFlags.DEFAULT)
combo.connect ('changed', self.on_format_combo_changed) self.settings.connect ('changed::format', self.on_format_setting_changed, combo)
def do_create_configure_widget(self): """ Plugin config widget. This code must be independent from the rest of the plugin. FIXME: bgo#624073 """ builder = Totem.plugin_load_interface ('jamendo', 'jamendo.ui', True, None, self) config_widget = builder.get_object ('config_widget') config_widget.connect ('destroy', self.on_config_widget_destroy) format = self.settings.get_enum ('format') num_per_page = self.settings.get_value ('num-per-page').get_uint32 ()
9d086e27d2de84cccc99e768e08c3108b738c619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/9d086e27d2de84cccc99e768e08c3108b738c619/jamendo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2640, 67, 14895, 67, 6587, 12, 2890, 4672, 3536, 6258, 642, 3604, 18, 1220, 981, 1297, 506, 14807, 628, 326, 3127, 434, 326, 1909, 18, 9852, 30, 324, 3240, 7, 26, 3247, 8642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2640, 67, 14895, 67, 6587, 12, 2890, 4672, 3536, 6258, 642, 3604, 18, 1220, 981, 1297, 506, 14807, 628, 326, 3127, 434, 326, 1909, 18, 9852, 30, 324, 3240, 7, 26, 3247, 8642, ...
names.append(addr.getHostName()) addrs.append(addr.getHostAddress())
names.append(addr.getHostName()) addrs.append(addr.getHostAddress()) return (names, addrs) def getfqdn(name=None): """ Return a fully qualified domain name for name. If name is omitted or empty it is interpreted as the local host. To find the fully qualified name, the hostname returned by gethostbyaddr() is checked, then aliases for the host, if available. The first name which includes a period is selected. In case no fully qualified domain name is available, the hostname is retur New in version 2.0. """ if not name: name = gethostname() names, addrs = _gethostbyaddr(name) for a in names: if a.find(".") >= 0: return a return name def gethostname(): return java.net.InetAddress.getLocalHost().getHostName() def gethostbyname(name): return java.net.InetAddress.getByName(name).getHostAddress() def gethostbyaddr(name): names, addrs = _gethostbyaddr(name)
def gethostbyaddr(name): # This is as close as I can get; at least the types are correct... addresses = java.net.InetAddress.getAllByName(gethostbyname(name)) names = [] addrs = [] for addr in addresses: names.append(addr.getHostName()) addrs.append(addr.getHostAddress()) return (names[0], names, addrs)
14223076678064a3b30ec8fef6e9db1a1f4b678a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/14223076678064a3b30ec8fef6e9db1a1f4b678a/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2564, 1637, 4793, 12, 529, 4672, 468, 1220, 353, 487, 1746, 487, 467, 848, 336, 31, 622, 4520, 326, 1953, 854, 3434, 2777, 6138, 273, 2252, 18, 2758, 18, 382, 278, 1887, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2564, 1637, 4793, 12, 529, 4672, 468, 1220, 353, 487, 1746, 487, 467, 848, 336, 31, 622, 4520, 326, 1953, 854, 3434, 2777, 6138, 273, 2252, 18, 2758, 18, 382, 278, 1887, 18, 588, ...
gLogger.error(errStr,res['Message']) return S_ERROR(errStr)
gLogger.error( errStr, res['Message'] ) return S_ERROR( errStr )
def registerFile(self,fileTuple,catalog=''): """ Register a file.
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 812, 12, 2890, 16, 768, 9038, 16, 7199, 2218, 11, 4672, 3536, 5433, 279, 585, 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, ...
[ 1, 1, 1, 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, 1744, 812, 12, 2890, 16, 768, 9038, 16, 7199, 2218, 11, 4672, 3536, 5433, 279, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
(self.ReqThread, [sys.argv[1:]]))
(self.ReqThread, [self.argv[1:]]))
def OnInit(self): print "OnInit" # Setup receive requests thread/send requests. Do this first because # it might be the last thing we do. self.RecvReq()
cc4862e5280b4cad787127dae3540584af491c43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/cc4862e5280b4cad787127dae3540584af491c43/sumigetw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 1172, 315, 1398, 2570, 6, 468, 10939, 6798, 3285, 2650, 19, 4661, 3285, 18, 2256, 333, 1122, 2724, 468, 518, 4825, 506, 326, 1142, 7757, 732, 741, 18, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 2570, 12, 2890, 4672, 1172, 315, 1398, 2570, 6, 468, 10939, 6798, 3285, 2650, 19, 4661, 3285, 18, 2256, 333, 1122, 2724, 468, 518, 4825, 506, 326, 1142, 7757, 732, 741, 18, 365, ...
shutil.copy2(result_path, local_result) return
shutil.copyfile(result_path, local_result) return marker
def storeResult(self, src_path, result_path, suffix=None): """Store file in result_path as result for source in src_path.
a0db602cbfb9c7c256086d792e586db4234a1f20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9162/a0db602cbfb9c7c256086d792e586db4234a1f20/cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 1253, 12, 2890, 16, 1705, 67, 803, 16, 563, 67, 803, 16, 3758, 33, 7036, 4672, 3536, 2257, 585, 316, 563, 67, 803, 487, 563, 364, 1084, 316, 1705, 67, 803, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 1253, 12, 2890, 16, 1705, 67, 803, 16, 563, 67, 803, 16, 3758, 33, 7036, 4672, 3536, 2257, 585, 316, 563, 67, 803, 487, 563, 364, 1084, 316, 1705, 67, 803, 18, 2, -100, -100, ...
headers, 'file:'+pathname2url(file))
headers, 'file:'+file)
def open_local_file(self, url): import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: return addinfourl(open(url2pathname(file), 'rb'), headers, 'file:'+pathname2url(file)) host, port = splitport(host) if not port \ and socket.gethostbyname(host) in (localhost(), thishost()): return addinfourl(open(url2pathname(file), 'rb'), headers, 'file:'+pathname2url(file)) raise IOError, ('local file error', 'not on local host')
681ea582d3a32b7164c1533b9774b7385525268f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/681ea582d3a32b7164c1533b9774b7385525268f/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718, 25146, 20, 65, 1607, 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, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718, 25146, 20, 65, 1607, 273, ...
if ( not line or (line[0] == ' (line[:3] == '"""') or line[:3] == "'''" ):
if (not line or (line[0] == ' (line[:3] == '"""') or line[:3] == "'''"):
def checkline(self, filename, lineno): """Return line number of first line at or after input argument such that if the input points to a 'def', the returned line number is the first non-blank/non-comment line to follow. If the input points to a blank or comment line, return 0. At end of file, also return 0."""
d9a24295df71ae63932b3bee3df16f93d169f7fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9a24295df71ae63932b3bee3df16f93d169f7fd/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1369, 12, 2890, 16, 1544, 16, 7586, 4672, 3536, 990, 980, 1300, 434, 1122, 980, 622, 578, 1839, 810, 1237, 4123, 716, 309, 326, 810, 3143, 358, 279, 296, 536, 2187, 326, 2106, 980...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1369, 12, 2890, 16, 1544, 16, 7586, 4672, 3536, 990, 980, 1300, 434, 1122, 980, 622, 578, 1839, 810, 1237, 4123, 716, 309, 326, 810, 3143, 358, 279, 296, 536, 2187, 326, 2106, 980...
add_resource(unicode(exe_path), bytes, RT_VERSION, 1, False)
add_resource(ensure_unicode(exe_path), bytes, RT_VERSION, 1, False)
def get(name, md = self.distribution.metadata): # Try to get an attribute from the target, if not defined # there, from the distribution's metadata, or None. Note # that only *some* attributes are allowed by distutils on # the distribution's metadata: version, description, and # name. return getattr(target, name, getattr(md, name, None))
1daecd6dc7b82a3126d2c8f13f88dae2e0dfd85e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1361/1daecd6dc7b82a3126d2c8f13f88dae2e0dfd85e/build_exe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 529, 16, 3481, 273, 365, 18, 16279, 18, 4165, 4672, 468, 6161, 358, 336, 392, 1566, 628, 326, 1018, 16, 309, 486, 2553, 468, 1915, 16, 628, 326, 7006, 1807, 1982, 16, 578, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 529, 16, 3481, 273, 365, 18, 16279, 18, 4165, 4672, 468, 6161, 358, 336, 392, 1566, 628, 326, 1018, 16, 309, 486, 2553, 468, 1915, 16, 628, 326, 7006, 1807, 1982, 16, 578, 5...
logger.error('Invalid login / password')
self.logger.error('Invalid login / password')
def render(self, request): """ override method of xmlrpc python twisted framework
e72892d916c1268eb91ceb4bb0dc79a81b59f3f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5988/e72892d916c1268eb91ceb4bb0dc79a81b59f3f8/agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 590, 4672, 3536, 3849, 707, 434, 31811, 5790, 2339, 25444, 8257, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 16, 590, 4672, 3536, 3849, 707, 434, 31811, 5790, 2339, 25444, 8257, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rc_entry = [r'\Format agr agr Grace "" "%%" "%%" ""'])
rc_entry = [r'\Format agr agr Grace "" "%%" "%%" "vector"'])
def checkFormatEntries(): ''' Check all formats (\Format entries) ''' checkViewer('a Tgif viewer and editor', ['tgif'], rc_entry = [r'\Format tgif obj Tgif "" "%%" "%%" ""']) # checkViewer('a FIG viewer and editor', ['xfig'], rc_entry = [r'\Format fig fig FIG "" "%%" "%%" ""']) # checkViewer('a Grace viewer and editor', ['xmgrace'], rc_entry = [r'\Format agr agr Grace "" "%%" "%%" ""']) # checkViewer('a FEN viewer and editor', ['xboard -lpf $$i -mode EditPosition'], rc_entry = [r'\Format fen fen FEN "" "%%" "%%" ""']) # path, iv = checkViewer('a raster image viewer', ['xv', 'kview', 'gimp']) path, ie = checkViewer('a raster image editor', ['gimp']) addToRC(r'''\Format bmp bmp BMP "" "%s" "%s" ""
2c72e0ecaaf865dbd297652b27bf151011e987c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/2c72e0ecaaf865dbd297652b27bf151011e987c6/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1630, 5400, 13332, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 18415, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, 67, 4099, 273, 306, 86,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1630, 5400, 13332, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 18415, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, 67, 4099, 273, 306, 86,...
QMessageBox.critical(None,'No data','There is no data or no class value is selected in the Manage tab.',QMessageBox.Ok)
QMessageBox.critical(None, 'No data', 'There is no data or no class value is selected in the Manage tab.', QMessageBox.Ok)
def findArguments(self, example = None, selectBest = 1, showClassification = 1): self.cancelArgumentation = 0
6bf8cf381104821879efa123b3213af11c3365e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/6bf8cf381104821879efa123b3213af11c3365e5/OWMosaicOptimization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4628, 12, 2890, 16, 3454, 273, 599, 16, 2027, 14173, 273, 404, 16, 2405, 19168, 273, 404, 4672, 365, 18, 10996, 1379, 367, 273, 374, 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, 1104, 4628, 12, 2890, 16, 3454, 273, 599, 16, 2027, 14173, 273, 404, 16, 2405, 19168, 273, 404, 4672, 365, 18, 10996, 1379, 367, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, ...
"""Used as a backend for caching cacheable requests.""" def __init__(self, file_path = None): self.shelf = shelve.open(file_path) def get_xml(self, key): return self.shelf[key] def set_xml(self, key, xml_string): self.shelf[key] = xml_string def has_key(self, key): return key in self.shelf.keys() class _SqliteCacheBackend(object): """Used as a backend for caching cacheable requests.""" def __init__(self, file_path = None): self.connection = sqlite3.connect(file_path) self.connection.execute("CREATE TABLE IF NOT EXISTS cache(key TEXT, xml TEXT)") self.connection.commit() def get_xml(self, key): row = self.connection.execute("SELECT xml FROM cache WHERE key=?", (key,)).fetchone() return row[0] def set_xml(self, key, xml_string): self.connection.execute("INSERT INTO cache VALUES(?, ?)", (key, xml_string)) self.connection.commit() def has_key(self, key): row = self.connection.execute("SELECT COUNT(*) FROM cache WHERE key=?", (key,)).fetchone() return row[0] > 0
"""Used as a backend for caching cacheable requests.""" def __init__(self, file_path = None): self.shelf = shelve.open(file_path) def get_xml(self, key): return self.shelf[key] def set_xml(self, key, xml_string): self.shelf[key] = xml_string def has_key(self, key): return key in self.shelf.keys()
def get_librefm_network(api_key=None, api_secret=None, session_key = None, username = None, password_hash = None): """ Returns a preconfigured Network object for Libre.fm api_key: a provided API_KEY api_secret: a provided API_SECRET session_key: a generated session_key or None username: a username of a valid user password_hash: the output of pylast.md5(password) where password is the user's password if username and password_hash were provided and not session_key, session_key will be generated automatically when needed. """ return Network ( name = "Libre.fm", homepage = "http://alpha.dev.libre.fm", ws_server = ("alpha.dev.libre.fm", "/2.0/"), api_key = api_key, api_secret = api_secret, session_key = session_key, submission_server = "http://turtle.libre.fm:80/", username = username, password_hash = password_hash, domain_names = { DOMAIN_ENGLISH: "alpha.dev.libre.fm", DOMAIN_GERMAN: "alpha.dev.libre.fm", DOMAIN_SPANISH: "alpha.dev.libre.fm", DOMAIN_FRENCH: "alpha.dev.libre.fm", DOMAIN_ITALIAN: "alpha.dev.libre.fm", DOMAIN_POLISH: "alpha.dev.libre.fm", DOMAIN_PORTUGUESE: "alpha.dev.libre.fm", DOMAIN_SWEDISH: "alpha.dev.libre.fm", DOMAIN_TURKISH: "alpha.dev.libre.fm", DOMAIN_RUSSIAN: "alpha.dev.libre.fm", DOMAIN_JAPANESE: "alpha.dev.libre.fm", DOMAIN_CHINESE: "alpha.dev.libre.fm", }, urls = { "album": "artist/%(artist)s/album/%(album)s", "artist": "artist/%(artist)s", "event": "event/%(id)s", "country": "place/%(country_name)s", "playlist": "user/%(user)s/library/playlists/%(appendix)s", "tag": "tag/%(name)s", "track": "music/%(artist)s/_/%(title)s", "group": "group/%(name)s", "user": "user/%(name)s", } )
312230e30b9a32836e57d3014b7461a466a3dbed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/312230e30b9a32836e57d3014b7461a466a3dbed/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2941, 1734, 81, 67, 5185, 12, 2425, 67, 856, 33, 7036, 16, 1536, 67, 5875, 33, 7036, 16, 1339, 67, 856, 273, 599, 16, 2718, 273, 599, 16, 2201, 67, 2816, 273, 599, 4672, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2941, 1734, 81, 67, 5185, 12, 2425, 67, 856, 33, 7036, 16, 1536, 67, 5875, 33, 7036, 16, 1339, 67, 856, 273, 599, 16, 2718, 273, 599, 16, 2201, 67, 2816, 273, 599, 4672, 3...
filename = os.path.join(basedir, f2).replace("\\", "/")
if f2.startswith("/"): filename = f2 else: filename = os.path.join(basedir, f2).replace("\\", "/")
def create(self, file, diffset_history=None): # Parse the diff tool = self.repository.get_scmtool() files = tool.get_parser(file["content"]).parse()
60706ad83b1bad5181bf31ebeb1bfdf412f780e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/60706ad83b1bad5181bf31ebeb1bfdf412f780e8/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 585, 16, 1901, 988, 67, 8189, 33, 7036, 4672, 468, 2884, 326, 3122, 5226, 273, 365, 18, 9071, 18, 588, 67, 1017, 81, 6738, 1435, 1390, 273, 5226, 18, 588, 67, 4288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 12, 2890, 16, 585, 16, 1901, 988, 67, 8189, 33, 7036, 4672, 468, 2884, 326, 3122, 5226, 273, 365, 18, 9071, 18, 588, 67, 1017, 81, 6738, 1435, 1390, 273, 5226, 18, 588, 67, 4288...
def finalization (self, finalized): if self.pns_articulator: self.pns_articulator = None
def finalization (self, finalized): if self.pns_articulator: self.pns_articulator = None
13a785671c02f96b075541baf8233dd4c62a6f66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/13a785671c02f96b075541baf8233dd4c62a6f66/pns_articulator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 727, 1588, 261, 2890, 16, 727, 1235, 4672, 309, 365, 18, 84, 2387, 67, 485, 335, 11775, 30, 365, 18, 84, 2387, 67, 485, 335, 11775, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 727, 1588, 261, 2890, 16, 727, 1235, 4672, 309, 365, 18, 84, 2387, 67, 485, 335, 11775, 30, 365, 18, 84, 2387, 67, 485, 335, 11775, 273, 599, 2, -100, -100, -100, -100, -100, -100, -...
import traceback
def reader(lnum=[lnum]): highlight[lnum[0]] = 1 try: return linecache.getline(file, lnum[0]) finally: lnum[0] += 1
09adc182bec2333c33693ed33586acc2848b097c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/09adc182bec2333c33693ed33586acc2848b097c/cgitb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 12, 80, 2107, 22850, 80, 2107, 65, 4672, 8839, 63, 80, 2107, 63, 20, 13563, 273, 404, 775, 30, 327, 4739, 557, 807, 18, 588, 1369, 12, 768, 16, 328, 2107, 63, 20, 5717, 3095, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2949, 12, 80, 2107, 22850, 80, 2107, 65, 4672, 8839, 63, 80, 2107, 63, 20, 13563, 273, 404, 775, 30, 327, 4739, 557, 807, 18, 588, 1369, 12, 768, 16, 328, 2107, 63, 20, 5717, 3095, ...
params["gmst"] = date.XLALGreenwichMeanSiderealTime(t)
params["gmst"] = date.XLALGreenwichMeanSiderealTime(t) % (2 * math.pi)
def coinc_params(events, offsetdict): params = {} events.sort(lambda a, b: cmp(a.ifo, b.ifo)) if events: # the "time" is the ms_snr squared weighted average of the # peak times neglecting light-travel times. because # LIGOTimeGPS objects have overflow problems in this sort # of a calculation, the first event's peak time is used as # an epoch and the calculations are done w.r.t. that time. # FIXME: this time is available as the peak_time in the # multi_burst table, and it should be retrieved from that # table instead of being recomputed t = events[0].get_peak() t += sum(float(event.get_peak() - t) * event.ms_snr**2.0 for event in events) / sum(event.ms_snr**2.0 for event in events) params["gmst"] = date.XLALGreenwichMeanSiderealTime(t) for event1, event2 in iterutils.choices(events, 2): if event1.ifo == event2.ifo: # a coincidence is parameterized only by # inter-instrument deltas continue prefix = "%s_%s_" % (event1.ifo, event2.ifo) # in each of the following, if the list of events contains # more than one event from a given instrument, the smallest # deltas are recorded dt = float(event1.get_peak() + offsetdict[event1.ifo] - event2.get_peak() - offsetdict[event2.ifo]) name = "%sdt" % prefix if name not in params or abs(params[name]) > abs(dt): params[name] = dt df = (event1.peak_frequency - event2.peak_frequency) / ((event1.peak_frequency + event2.peak_frequency) / 2) name = "%sdf" % prefix if name not in params or abs(params[name]) > abs(df): params[name] = df dh = (event1.ms_hrss - event2.ms_hrss) / ((event1.ms_hrss + event2.ms_hrss) / 2) name = "%sdh" % prefix if name not in params or abs(params[name]) > abs(dh): params[name] = dh dband = (event1.ms_bandwidth - event2.ms_bandwidth) / ((event1.ms_bandwidth + event2.ms_bandwidth) / 2) name = "%sdband" % prefix if name not in params or abs(params[name]) > abs(dband): params[name] = dband ddur = (event1.ms_duration - event2.ms_duration) / ((event1.ms_duration + event2.ms_duration) / 2) name = "%sddur" % prefix if name not in params or abs(params[name]) > abs(ddur): params[name] = ddur # convert values to 1-D tuples, and we're done return dict([(name, (value,)) for name, value in params.items()])
bd0567708f522ace52db92a88efb2d1257378e26 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/bd0567708f522ace52db92a88efb2d1257378e26/ligolw_burca_tailor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13170, 71, 67, 2010, 12, 5989, 16, 1384, 1576, 4672, 859, 273, 2618, 2641, 18, 3804, 12, 14661, 279, 16, 324, 30, 9411, 12, 69, 18, 20299, 16, 324, 18, 20299, 3719, 225, 309, 2641, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13170, 71, 67, 2010, 12, 5989, 16, 1384, 1576, 4672, 859, 273, 2618, 2641, 18, 3804, 12, 14661, 279, 16, 324, 30, 9411, 12, 69, 18, 20299, 16, 324, 18, 20299, 3719, 225, 309, 2641, 3...
glNormal(normal)
glNormal3fv(normal)
def draw_polygon(self, *data): glBegin(GL_POLYGON) for normal, vectors in data: glNormal(normal) for vector in vectors: glVertex(vector) glEnd()
9454ab7cc06a51f1eb7277af844d0ea826d17ed0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11052/9454ab7cc06a51f1eb7277af844d0ea826d17ed0/vis_backends.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 20917, 12, 2890, 16, 380, 892, 4672, 5118, 8149, 12, 11261, 67, 14232, 30317, 673, 13, 364, 2212, 16, 10046, 316, 501, 30, 5118, 5506, 23, 17679, 12, 6130, 13, 364, 3806, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 20917, 12, 2890, 16, 380, 892, 4672, 5118, 8149, 12, 11261, 67, 14232, 30317, 673, 13, 364, 2212, 16, 10046, 316, 501, 30, 5118, 5506, 23, 17679, 12, 6130, 13, 364, 3806, 316...
if sys.platform == 'cygwin': return( 'ERROR: you are running from cygwin python, which is not\n' ' supported by "run_webkit_test.py". You should use python\n' ' for Windows (2.5+) to launch this script. A python for\n' ' Windows can be found at your depot_tools folder:\n' ' [DEPOT_TOOLS_PATH]/python ' + '"' + sys.argv[0] + '" ' + ' '.join(sys.argv[1:]))
def main(): if sys.platform == 'cygwin': return( 'ERROR: you are running from cygwin python, which is not\n' ' supported by "run_webkit_test.py". You should use python\n' ' for Windows (2.5+) to launch this script. A python for\n' ' Windows can be found at your depot_tools folder:\n' ' [DEPOT_TOOLS_PATH]/python ' + '"' + sys.argv[0] + '" ' + ' '.join(sys.argv[1:])) cmd = [sys.executable] src_dir=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.abspath(sys.argv[0])))))) script_dir=os.path.join(src_dir, "third_party", "WebKit", "WebKitTools", "Scripts") script = os.path.join(script_dir, 'new-run-webkit-tests') cmd.append(script) if '--chromium' not in sys.argv: cmd.append('--chromium') cmd.extend(sys.argv[1:]) return subprocess.call(cmd)
d616dc6436b62c19e9499cb3e9c4a7c765558d76 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/d616dc6436b62c19e9499cb3e9c4a7c765558d76/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1797, 273, 306, 9499, 18, 17751, 65, 1705, 67, 1214, 33, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1797, 273, 306, 9499, 18, 17751, 65, 1705, 67, 1214, 33, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, ...
return str(value)
return unicode(value)
def stanFromValue(self, idx, item, value): # called with the result of extractValue return str(value)
2008a001bd8cad252e9d9321a7c156e99ba6a975 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6980/2008a001bd8cad252e9d9321a7c156e99ba6a975/tdbview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 304, 1265, 620, 12, 2890, 16, 2067, 16, 761, 16, 460, 4672, 468, 2566, 598, 326, 563, 434, 2608, 620, 327, 609, 12, 1132, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 384, 304, 1265, 620, 12, 2890, 16, 2067, 16, 761, 16, 460, 4672, 468, 2566, 598, 326, 563, 434, 2608, 620, 327, 609, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
return ("_".join(strPhrase)) + " (%s)" % chosenToken.getSymbol()
return (("_".join(strPhrase)) + " (%s)" % chosenToken.getSymbol(), phrase)
def generateSentence(self, debug=False): """Get one node, generate a sentence from it forwards to the end of the sentence, and then generate backwards to the beginning of the sentence.
8e1235056f34134b4407cd34d81f66b1b71e2c24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13131/8e1235056f34134b4407cd34d81f66b1b71e2c24/Ector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 17923, 12, 2890, 16, 1198, 33, 8381, 4672, 3536, 967, 1245, 756, 16, 2103, 279, 7515, 628, 518, 24578, 358, 326, 679, 434, 326, 7515, 16, 471, 1508, 2103, 12727, 358, 326, 8435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 17923, 12, 2890, 16, 1198, 33, 8381, 4672, 3536, 967, 1245, 756, 16, 2103, 279, 7515, 628, 518, 24578, 358, 326, 679, 434, 326, 7515, 16, 471, 1508, 2103, 12727, 358, 326, 8435, ...
'test_heteroatom_organics_C3H6AlH',
def run(self): import sim lac = LengthAngleComparison(self.base + ".mmp") s = sim.Minimize(self.base + ".mmp") s.Temperature = 300 s.go() lac.compare(self.base + ".xyz", self.base + ".xyzcmp", LENGTH_TOLERANCE, ANGLE_TOLERANCE)
3f4a171b835422313ecc0171dd0ab652a7f6a1bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3f4a171b835422313ecc0171dd0ab652a7f6a1bc/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1930, 3142, 328, 1077, 273, 11311, 8467, 16059, 12, 2890, 18, 1969, 397, 3552, 81, 1291, 7923, 272, 273, 3142, 18, 2930, 10153, 12, 2890, 18, 1969, 397, 3552, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1930, 3142, 328, 1077, 273, 11311, 8467, 16059, 12, 2890, 18, 1969, 397, 3552, 81, 1291, 7923, 272, 273, 3142, 18, 2930, 10153, 12, 2890, 18, 1969, 397, 3552, 81, ...
debinfo = apt_pkg.ParseSection(apt_inst.debExtractControl(file))
try: debinfo = apt_pkg.ParseSection(apt_inst.debExtractControl(file)) for key in debinfo.keys(): value = debinfo.get(key) self.set(key, value) except: self.getFromDpkg(path)
def importDebInfo(self,path): file = open(path,"r") #Getting size from the file size = os.stat(path).st_size.__int__() #Getting md5sum content = file.read() file.close() md5_sum = md5.new(content).hexdigest() file = open(path,"r") debinfo = apt_pkg.ParseSection(apt_inst.debExtractControl(file)) file.close() self.set('Size', size) self.set('MD5sum', md5_sum) '''Import information from Control section''' for key in debinfo.keys(): value = debinfo.get(key) self.set(key, value)
9efb1cc95e1a2c5706c6f55501c3674733f4cd4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1007/9efb1cc95e1a2c5706c6f55501c3674733f4cd4d/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 758, 70, 966, 12, 2890, 16, 803, 4672, 225, 585, 273, 1696, 12, 803, 10837, 86, 7923, 468, 19213, 963, 628, 326, 585, 963, 273, 1140, 18, 5642, 12, 803, 2934, 334, 67, 1467, 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, 1930, 758, 70, 966, 12, 2890, 16, 803, 4672, 225, 585, 273, 1696, 12, 803, 10837, 86, 7923, 468, 19213, 963, 628, 326, 585, 963, 273, 1140, 18, 5642, 12, 803, 2934, 334, 67, 1467, 16...
return None, None, "error looking up %s: %s" % (nick, ExceptionDetail())
ui.warn("error looking up %s: %s\n" % (nick, ExceptionDetail())) cl.original_author = nick+"@needtofix" return cl, diffdata, ""
def DownloadCL(ui, repo, clname): cl, err = LoadCL(ui, repo, clname) if err != "": return None, None, "error loading CL %s: %s" % (clname, ExceptionDetail()) # Grab RSS feed to learn about CL feed = XMLGet(ui, "/rss/issue/" + clname) if feed is None: return None, None, "cannot download CL" # Find most recent diff diff = None prefix = 'http://' + server + '/' for link in feed.findall("{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}link"): if link.get('rel') != 'alternate': continue text = link.get('href') if not text.startswith(prefix) or not text.endswith('.diff'): continue diff = text[len(prefix)-1:] if diff is None: return None, None, "CL has no diff" diffdata = MySend(diff, force_auth=False) # Find author - first entry will be author who created CL. nick = None for author in feed.findall("{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}author/{http://www.w3.org/2005/Atom}name"): nick = author.findtext("", None).strip() break if not nick: return None, None, "CL has no author" # The author is just a nickname: get the real email address. try: data = MySend("/user_popup/" + nick, force_auth=False) except: return None, None, "error looking up %s: %s" % (nick, ExceptionDetail()) match = re.match(r"<b>(.*) \((.*)\)</b>", data) if not match or match.group(2) != nick: return None, None, "error looking up %s: cannot parse result" % (nick,) email = match.group(1) # Temporary hack until we move to the public code review server. email1, _ = FindContributor(ui, repo, email, warn=False) if email1 == "": email = re.sub("@google.com$", "@golang.org", email) # Print warning if email is not in CONTRIBUTORS file. FindContributor(ui, repo, email) cl.original_author = email return cl, diffdata, ""
780dbdc02448af0dbc9d3675457a580c18c5cee7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6483/780dbdc02448af0dbc9d3675457a580c18c5cee7/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13059, 5017, 12, 4881, 16, 3538, 16, 927, 529, 4672, 927, 16, 393, 273, 4444, 5017, 12, 4881, 16, 3538, 16, 927, 529, 13, 309, 393, 480, 1408, 30, 327, 599, 16, 599, 16, 315, 1636, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13059, 5017, 12, 4881, 16, 3538, 16, 927, 529, 4672, 927, 16, 393, 273, 4444, 5017, 12, 4881, 16, 3538, 16, 927, 529, 13, 309, 393, 480, 1408, 30, 327, 599, 16, 599, 16, 315, 1636, ...
s = "_%s%s" % (self.className, s)
cls = self.className while cls.startswith('_'): cls = cls[1:] s = "_%s%s" % (cls, s)
def getName(self, s, fast_locals=0): if fast_locals: return s if s[:2] == '__' and s[-2:] != '__' and self.className: s = "_%s%s" % (self.className, s) return s
2577dc628724db3e017edbc976efd423419487f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/2577dc628724db3e017edbc976efd423419487f0/SrcGenCompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1723, 12, 2890, 16, 272, 16, 4797, 67, 17977, 33, 20, 4672, 309, 4797, 67, 17977, 30, 327, 272, 309, 272, 10531, 22, 65, 422, 20288, 471, 272, 18919, 22, 26894, 480, 20288, 471, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1723, 12, 2890, 16, 272, 16, 4797, 67, 17977, 33, 20, 4672, 309, 4797, 67, 17977, 30, 327, 272, 309, 272, 10531, 22, 65, 422, 20288, 471, 272, 18919, 22, 26894, 480, 20288, 471, 365, ...
self._InspiralAnalysisNode__pad_data = 0
self._AnalysisNode__pad_data = 0
def __init__(self, options, cp, dir='', tag_base=''): """ """ self.__conditionalLoadDefaults__(followUpChiaJob.defaults,cp) #self.__prog__ = 'followUpChiaJob' self.__executable = string.strip(cp.get('condor','chia')) self.__universe = "standard" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self._InspiralAnalysisNode__pad_data = 0
24648911372ea1df253fc45ee5f0a9b8ead25a34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/24648911372ea1df253fc45ee5f0a9b8ead25a34/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 2218, 11, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 14641, 1211, 782, 1155, 2278, 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, 702, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 2218, 11, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 14641, 1211, 782, 1155, 2278, 18, ...
if (options[i].has_key('help') and options[i]['help'] != helps[i]) or \ (not options[i].has_key('help') and helps[i]):
if options[i].get('help') != (self.zclass_productid(), helps[i]):
def manage_edit(self, actions=[], helps=[], REQUEST=None): "Change view actions" options=self.data() changed=0 if len(actions)!=len(options): raise 'Bad Request', 'wrong number of actions'
8cc5fa69428d4423d1da1eccfb017541541e161e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8cc5fa69428d4423d1da1eccfb017541541e161e/Basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 4619, 12, 2890, 16, 4209, 22850, 6487, 21814, 22850, 6487, 12492, 33, 7036, 4672, 315, 3043, 1476, 4209, 6, 702, 33, 2890, 18, 892, 1435, 3550, 33, 20, 309, 562, 12, 4905, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 4619, 12, 2890, 16, 4209, 22850, 6487, 21814, 22850, 6487, 12492, 33, 7036, 4672, 315, 3043, 1476, 4209, 6, 702, 33, 2890, 18, 892, 1435, 3550, 33, 20, 309, 562, 12, 4905, 1...
print "ID %d fired %d times" % (firedId, no)
if verbose: print "ID %d fired %d times" % (firedId, no)
def _DumpFireds(self): if not self.fireds: print "ERROR: Nothing was recieved!" for firedId, no in self.fireds.items(): print "ID %d fired %d times" % (firedId, no)
3bf4d00907dec9e1c36a74a8c8bd7df657ca62a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/3bf4d00907dec9e1c36a74a8c8bd7df657ca62a2/testPyComTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10628, 9723, 2377, 12, 2890, 4672, 309, 486, 365, 18, 12179, 2377, 30, 1172, 315, 3589, 30, 13389, 1703, 1950, 1385, 2155, 4442, 364, 15950, 548, 16, 1158, 316, 365, 18, 12179, 2377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10628, 9723, 2377, 12, 2890, 4672, 309, 486, 365, 18, 12179, 2377, 30, 1172, 315, 3589, 30, 13389, 1703, 1950, 1385, 2155, 4442, 364, 15950, 548, 16, 1158, 316, 365, 18, 12179, 2377...
config = RawConfigParser() config.add_section('instance') config.read(['%s/config.ini' % target]) storage = FileStorage('%s/database.fs' % target) database = zodb.Database(storage) root_resource = database.get_resource('/')
config = get_config(target)
def start(parser, options, target): if options.source is not None: parser.error('option --import not allowed in this context') if options.root is not None: parser.error('option --root not allowed in this context') # Load the config config = RawConfigParser() config.add_section('instance') config.read(['%s/config.ini' % target]) # Load the root resource storage = FileStorage('%s/database.fs' % target) database = zodb.Database(storage) root_resource = database.get_resource('/') # Import the root class if is not the default if config.has_option('instance', 'root'): exec('import %s' % config.get('instance', 'root')) # Load the root handler and start the server metadata = root_resource.get_resource('.metadata') metadata = Metadata(metadata) format = metadata.get_property('format') root = Root.build_handler(root_resource, format=format) root.name = root.class_title # Start the server if options.port: port = options.port elif config.has_option('instance', 'port'): port = config.getint('instance', 'port') else: port = None server = Server(root, port=port, access_log='%s/access_log' % target, error_log='%s/error_log' % target, pid_file='%s/pid' % target) server.start()
fa68d086a1fe877a8ae1d77a6739a1d5a8a6179f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/fa68d086a1fe877a8ae1d77a6739a1d5a8a6179f/icms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 4288, 16, 702, 16, 1018, 4672, 309, 702, 18, 3168, 353, 486, 599, 30, 2082, 18, 1636, 2668, 3482, 1493, 5666, 486, 2935, 316, 333, 819, 6134, 225, 309, 702, 18, 3085, 353, 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, 787, 12, 4288, 16, 702, 16, 1018, 4672, 309, 702, 18, 3168, 353, 486, 599, 30, 2082, 18, 1636, 2668, 3482, 1493, 5666, 486, 2935, 316, 333, 819, 6134, 225, 309, 702, 18, 3085, 353, 4...
None,
# typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*);
252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 618, 536, 918, 261, 14, 17704, 67, 3394, 21433, 11890, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 918, 14, 1769, 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, 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, 468, 618, 536, 918, 261, 14, 17704, 67, 3394, 21433, 11890, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 918, 14, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -1...
elif self.quota_aware:
elif self.quota_maxbytes != 0:
def unpackFile(self, plfngRelativeDir, FSpackedFile, REQUEST, RESPONSE): """ unpack a file """
67e5620c45438dda1bed6cde3d1daee6f20e185e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/67e5620c45438dda1bed6cde3d1daee6f20e185e/PloneLocalFolderNG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 812, 12, 2890, 16, 886, 74, 3368, 8574, 1621, 16, 9247, 2920, 329, 812, 16, 12492, 16, 20645, 4672, 3536, 6167, 279, 585, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 812, 12, 2890, 16, 886, 74, 3368, 8574, 1621, 16, 9247, 2920, 329, 812, 16, 12492, 16, 20645, 4672, 3536, 6167, 279, 585, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slideshow_random == True: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.random_img_in_list, "ss") else: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.next_img_in_list, "ss")
self.set_go_navigation_sensitivities() if self.slideshow_mode == True: if self.curr_slideshow_random == True: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.random_img_in_list, "ss") else: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.next_img_in_list, "ss")
def next_img_in_list(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1:
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 6081, 67, 267, 67, 1098, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 6081, 67, 267, 67, 1098, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, ...
host = HostInfo(self.hostUrl, rootDir = rootDir, asMirror = True, perPlatform = False)
host = HostInfo(self.hostUrl, appRunner = base.appRunner, rootDir = rootDir, asMirror = True, perPlatform = False)
def installPackagesInto(self, rootDir, platform): """ Installs the packages required by the .p3d file into the specified root directory, for the given platform. """ if not self.includeRequires: return host = HostInfo(self.hostUrl, rootDir = rootDir, asMirror = True, perPlatform = False) if not host.readContentsFile(): if not host.downloadContentsFile(self.http): Installer.notify.error("couldn't read host") return for name, version in self.requirements: package = host.getPackage(name, version, platform) if not package.downloadDescFile(self.http): Standalone.notify.warning(" -> %s failed for platform %s" % (package.packageName, package.platform)) continue if not package.downloadPackage(self.http): Standalone.notify.warning(" -> %s failed for platform %s" % (package.packageName, package.platform)) continue # Also install the 'images' package from the same host that p3dembed was downloaded from. host = HostInfo(self.standalone.host.hostUrl, rootDir = rootDir, asMirror = False, perPlatform = False) if not host.readContentsFile(): if not host.downloadContentsFile(self.http): Installer.notify.error("couldn't read host") return for package in host.getPackages(name = "images"): if not package.downloadDescFile(self.http): Standalone.notify.warning(" -> %s failed for platform %s" % (package.packageName, package.platform)) continue if not package.downloadPackage(self.http): Standalone.notify.warning(" -> %s failed for platform %s" % (package.packageName, package.platform)) continue break
eee5764b820c84b961f87bb95f693f2e00cf6ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/eee5764b820c84b961f87bb95f693f2e00cf6ee6/DeploymentTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 11425, 5952, 12, 2890, 16, 15393, 16, 4072, 4672, 3536, 10284, 87, 326, 5907, 1931, 635, 326, 263, 84, 23, 72, 585, 1368, 326, 1269, 1365, 1867, 16, 364, 326, 864, 4072, 18, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 11425, 5952, 12, 2890, 16, 15393, 16, 4072, 4672, 3536, 10284, 87, 326, 5907, 1931, 635, 326, 263, 84, 23, 72, 585, 1368, 326, 1269, 1365, 1867, 16, 364, 326, 864, 4072, 18, 3536...
print "Can't make thumbnail. Cause : %s", e
print "Can't make thumbnail. Cause : %s" % e thumb = None
def parseFile(self, filepath, pristineFilename, encoding=None): """returns a 4-uple (title, normalized_text, links, offset) TODO: port original code from htmltotext :param encoding: if None, then need to be guessed """ title = unicode(pristineFilename) try: result = 'EXIF : ' + get_ustring_from_exif(filepath) try: thumb = make_thumbnail(filepath, self.get_thumbnails_dir()) except Exception, e: print "Can't make thumbnail. Cause : %s", e return title, result, [thumb], 0 except Exception, e: print "No EXIF nor thumbnails. Cause : %s" % e return title, u'No EXIF information available', [], 0
aa111c7acd95ce5d1a46f02376fb86dc5b2eb508 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/aa111c7acd95ce5d1a46f02376fb86dc5b2eb508/texttool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31986, 12, 2890, 16, 3608, 16, 846, 376, 558, 5359, 16, 2688, 33, 7036, 4672, 3536, 6154, 279, 1059, 17, 2268, 261, 2649, 16, 5640, 67, 955, 16, 4716, 16, 1384, 13, 2660, 30, 1756, 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, 31986, 12, 2890, 16, 3608, 16, 846, 376, 558, 5359, 16, 2688, 33, 7036, 4672, 3536, 6154, 279, 1059, 17, 2268, 261, 2649, 16, 5640, 67, 955, 16, 4716, 16, 1384, 13, 2660, 30, 1756, 2...
if self.HelpBar:
if self:
def RefreshStatusBar(self): if self.HelpBar: selected = self.FileOpened.GetSelection() if selected >= 0: window = self.FileOpened.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.Manager.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.Manager.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2) else: for i in xrange(3): self.HelpBar.SetStatusText("", i) else: for i in xrange(3): self.HelpBar.SetStatusText("", i)
38f9154882abacfcf05de77c56e98bf38ab20bec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/38f9154882abacfcf05de77c56e98bf38ab20bec/objdictedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14179, 1482, 5190, 12, 2890, 4672, 309, 365, 30, 3170, 273, 365, 18, 812, 23115, 18, 967, 6233, 1435, 309, 3170, 1545, 374, 30, 2742, 273, 365, 18, 812, 23115, 18, 967, 1964, 12, 8109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14179, 1482, 5190, 12, 2890, 4672, 309, 365, 30, 3170, 273, 365, 18, 812, 23115, 18, 967, 6233, 1435, 309, 3170, 1545, 374, 30, 2742, 273, 365, 18, 812, 23115, 18, 967, 1964, 12, 8109,...
uni = symbol.GetProposedUnicode()
if not uni: uni = symbol.GetProposedUnicode()
def _WriteNamesList(writer): writer.write(_HEADER) symbols = emoji4unicode.GetSymbolsInProposalSortedByUnicode() prev_subcategory_name = "" for symbol in symbols: code_points = symbol[0] symbol = symbol[1] if symbol.GetUnicode(): continue block_heading = _BLOCK_HEADINGS.get(code_points[0]) if block_heading: writer.write(block_heading) subcategory_name = symbol.subcategory.name if prev_subcategory_name != subcategory_name: writer.write("\n@\t\t%s\n" % subcategory_name) prev_subcategory_name = subcategory_name uni = symbol.GetProposedUnicode() writer.write("%s\t%s\n" % (uni, symbol.GetName())) for line in symbol.GetAnnotations(): writer.write("\t%s\n" % line) writer.write(";\t= e-%s\n" % symbol.id) writer.close()
66aad16897e70434cafa6cd7a8a51dda5b084260 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3647/66aad16897e70434cafa6cd7a8a51dda5b084260/gen_names_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3067, 1557, 682, 12, 6299, 4672, 2633, 18, 2626, 24899, 7557, 13, 7963, 273, 15638, 24, 9124, 18, 967, 14821, 382, 14592, 11739, 858, 16532, 1435, 2807, 67, 1717, 4743, 67, 529, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3067, 1557, 682, 12, 6299, 4672, 2633, 18, 2626, 24899, 7557, 13, 7963, 273, 15638, 24, 9124, 18, 967, 14821, 382, 14592, 11739, 858, 16532, 1435, 2807, 67, 1717, 4743, 67, 529, 273...
ReplaceLineInFile( "./nautilussvn/usr/lib/nautilus/extensions-1.0/python/%s/helper.py"%VERSION, 'SOURCE_PATH = "/usr/lib/nautilus/extensions-1.0/python', '\tSOURCE_PATH = "/usr/lib/nautilus/extensions-1.0/python/%s/"\n'%VERSION )
def ReplaceLineInFile(filename, target, subst): """ Replaces lines in *filename* containing *target* with *subst* """ st = open(filename, "r").readlines() out = [] for line in st: if target in line: line = subst out.append(line) f = open(filename, "w") for s in out: f.write(s)
9d1ebf45598c95f5da9ed897f331bdc0639b07db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5119/9d1ebf45598c95f5da9ed897f331bdc0639b07db/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6910, 1670, 382, 812, 12, 3459, 16, 1018, 16, 27750, 4672, 3536, 868, 11350, 2362, 316, 380, 3459, 14, 4191, 380, 3299, 14, 598, 380, 1717, 334, 14, 3536, 384, 273, 1696, 12, 3459, 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, 6910, 1670, 382, 812, 12, 3459, 16, 1018, 16, 27750, 4672, 3536, 868, 11350, 2362, 316, 380, 3459, 14, 4191, 380, 3299, 14, 598, 380, 1717, 334, 14, 3536, 384, 273, 1696, 12, 3459, 16,...
assert self.curNode.parentNode is None, \ "not all elements have been properly closed" assert self.curNode.documentElement is not None, \ "document does not contain a root element" node = self.curNode.documentElement self.lastEvent[1] = [(END_DOCUMENT, node), None]
self.lastEvent[1] = [(END_DOCUMENT, self.document), None] self.pop()
def endDocument(self): assert self.curNode.parentNode is None, \ "not all elements have been properly closed" assert self.curNode.documentElement is not None, \ "document does not contain a root element" node = self.curNode.documentElement self.lastEvent[1] = [(END_DOCUMENT, node), None] #self.events.append((END_DOCUMENT, self.curNode))
c3bec716342d72e243468dec0c24500c82f6cc20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c3bec716342d72e243468dec0c24500c82f6cc20/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2519, 12, 2890, 4672, 1815, 365, 18, 1397, 907, 18, 2938, 907, 353, 599, 16, 521, 315, 902, 777, 2186, 1240, 2118, 8214, 4375, 6, 1815, 365, 18, 1397, 907, 18, 5457, 1046, 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, 679, 2519, 12, 2890, 4672, 1815, 365, 18, 1397, 907, 18, 2938, 907, 353, 599, 16, 521, 315, 902, 777, 2186, 1240, 2118, 8214, 4375, 6, 1815, 365, 18, 1397, 907, 18, 5457, 1046, 353, ...
sage: magma.get_verbose("Groebner")
sage: magma.get_verbose("Groebner")
def set_verbose(self, type, level): """ Set the verbosity level for a given algorithm, class, etc. in Magma.
c04f0ba44cf1a87c258dee9681bb5f4ba8144212 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c04f0ba44cf1a87c258dee9681bb5f4ba8144212/magma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 11369, 12, 2890, 16, 618, 16, 1801, 4672, 3536, 1000, 326, 11561, 1801, 364, 279, 864, 4886, 16, 667, 16, 5527, 18, 316, 490, 9454, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 11369, 12, 2890, 16, 618, 16, 1801, 4672, 3536, 1000, 326, 11561, 1801, 364, 279, 864, 4886, 16, 667, 16, 5527, 18, 316, 490, 9454, 18, 2, -100, -100, -100, -100, -100, -100, ...
for plgin in plugins: if plgin['state']: plgin['instance'].onTaskOpened(plugin_api)
for plugin in plugins: if plugin['state'] and plugin['active']: plugin['instance'].onTaskOpened(plugin_api)
def onTaskLoad(self, plugins, plugin_api): for plgin in plugins: if plgin['state']: plgin['instance'].onTaskOpened(plugin_api)
96be349902b71df6bb88acbbfe55dce6d6009afc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/96be349902b71df6bb88acbbfe55dce6d6009afc/engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2174, 2563, 12, 2890, 16, 4799, 16, 1909, 67, 2425, 4672, 364, 1909, 316, 4799, 30, 309, 1909, 3292, 2019, 3546, 471, 1909, 3292, 3535, 3546, 30, 1909, 3292, 1336, 29489, 265, 2174,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2174, 2563, 12, 2890, 16, 4799, 16, 1909, 67, 2425, 4672, 364, 1909, 316, 4799, 30, 309, 1909, 3292, 2019, 3546, 471, 1909, 3292, 3535, 3546, 30, 1909, 3292, 1336, 29489, 265, 2174,...
def runMythtranscode(chanid, starttime, destination, usecutlist):
def runMythtranscode(chanid, starttime, destination, usecutlist, localfile):
def runMythtranscode(chanid, starttime, destination, usecutlist): """Use mythtrancode to cut commercials and/or clean up an mpeg2 file""" if usecutlist == True: command = "mythtranscode --mpeg2 --honorcutlist -c %s -s %s -o %s" % (chanid, starttime, destination) else: command = "mythtranscode --mpeg2 -c %s -s %s -o %s" % (chanid, starttime, destination) result = runCommand(command) if (result != 0): write("Failed while running mythtranscode to cut commercials and/or clean up an mpeg2 file.\n" "Result: %d, Command was %s" % (result, command)) return False; return True
0ccb616ed01f564244cbf19b355de0d969368ff7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/0ccb616ed01f564244cbf19b355de0d969368ff7/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12062, 451, 2338, 710, 12, 7472, 350, 16, 23437, 16, 2929, 16, 999, 5150, 1098, 16, 1191, 768, 4672, 3536, 3727, 3399, 451, 13171, 710, 358, 6391, 1543, 12610, 649, 87, 471, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12062, 451, 2338, 710, 12, 7472, 350, 16, 23437, 16, 2929, 16, 999, 5150, 1098, 16, 1191, 768, 4672, 3536, 3727, 3399, 451, 13171, 710, 358, 6391, 1543, 12610, 649, 87, 471, 19, ...
import __main__ __main__.__builtins__.get_transaction=get_transaction
import __builtin__ __builtin__.get_transaction=get_transaction del __builtin__
def free_transaction(_id=thread.get_ident, _t=_t): id = _id() try: del _t[id] except KeyError: pass
3b4b25085e7c2a7af2ede4bc891acf1ead3d116c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3b4b25085e7c2a7af2ede4bc891acf1ead3d116c/Transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 67, 7958, 24899, 350, 33, 5930, 18, 588, 67, 6392, 16, 389, 88, 33, 67, 88, 4672, 612, 273, 389, 350, 1435, 775, 30, 1464, 389, 88, 63, 350, 65, 1335, 4999, 30, 1342, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4843, 67, 7958, 24899, 350, 33, 5930, 18, 588, 67, 6392, 16, 389, 88, 33, 67, 88, 4672, 612, 273, 389, 350, 1435, 775, 30, 1464, 389, 88, 63, 350, 65, 1335, 4999, 30, 1342, 2, -100...
variable dimensions
variable dimensions; an empty tup;e is returned in the case of a scalar variable
def shape(self): """Return the variable shape, that is, the length of its dimensions. Dataset mode: does not matter.
6f3fb868f05beaa2f5db0f25d55169be03cf3bbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9106/6f3fb868f05beaa2f5db0f25d55169be03cf3bbb/pycdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2179, 12, 2890, 4672, 3536, 990, 326, 2190, 2179, 16, 716, 353, 16, 326, 769, 434, 2097, 5769, 18, 10778, 1965, 30, 1552, 486, 15177, 18, 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, 2179, 12, 2890, 4672, 3536, 990, 326, 2190, 2179, 16, 716, 353, 16, 326, 769, 434, 2097, 5769, 18, 10778, 1965, 30, 1552, 486, 15177, 18, 2, -100, -100, -100, -100, -100, -100, -100, -...
if option.lower() in self.options('global'): self['global'][option] = self._ifnone(self.get('global',option))
if option.lower() in self.options(glob): self['global'][option] = self._ifnone(self.get(glob,option))
def parse(self): for option in self.boolOptionsGlobal: try: if option.lower() in self.options('global'): try: self['global'][option]=self.getboolean('global',option) except ValueError: print >> sys.stderr, u"""failed to parse option %s in \
830769e8183a1ce27956e236ff478b0b2d4e4fdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/830769e8183a1ce27956e236ff478b0b2d4e4fdc/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 364, 1456, 316, 365, 18, 6430, 1320, 5160, 30, 775, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 364, 1456, 316, 365, 18, 6430, 1320, 5160, 30, 775, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, ...
if self.vnc_alive:
if self.use_vnc_server and self.vnc_alive:
def wait(self, timeout=None): ''' Wrap the call to wait in logic that kills the VNC server when we are done waiting. During normal operation, wait is the last thing. In the keyboard interrupt case wait will die due to the interrupt and stop/kill will be killed. Since we are wrapping wait, we don't need to specialize for stop/kill though. ''' try: return mozrunner.ThunderbirdRunner.wait(self, timeout) finally: try: if self.vnc_alive: subprocess.check_call([self.VNC_SERVER_PATH, '-kill', ':99']) except Exception, ex: print '!!! Exception during killing VNC server:', ex
1267abaeedc9b07419ab317fc906738f35d536fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/1267abaeedc9b07419ab317fc906738f35d536fc/runtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 16, 2021, 33, 7036, 4672, 9163, 4266, 326, 745, 358, 2529, 316, 4058, 716, 8673, 87, 326, 776, 10346, 1438, 1347, 732, 854, 2731, 7336, 18, 225, 463, 4017, 2212, 1674, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 16, 2021, 33, 7036, 4672, 9163, 4266, 326, 745, 358, 2529, 316, 4058, 716, 8673, 87, 326, 776, 10346, 1438, 1347, 732, 854, 2731, 7336, 18, 225, 463, 4017, 2212, 1674, ...
print 'usage: %s inspector_html devtools_html css_and_js_files_list' % argv[0]
print('usage: %s ignored inspector_html devtools_html' ' css_and_js_files_list' % argv[0])
def main(argv): if len(argv) < 4: print 'usage: %s inspector_html devtools_html css_and_js_files_list' % argv[0] return 1 inspector_html_name = argv[1] devtools_html_name = argv[2] inspector_html = open(inspector_html_name, 'r') devtools_html = open(devtools_html_name, 'w') for line in inspector_html: if '</head>' in line: devtools_html.write('\n <!-- The following lines are added to include DevTools resources -->\n') for resource in argv[3:]: devtools_html.write(GenerateIncludeTag(resource)) devtools_html.write(' <!-- End of auto-added files list -->\n') devtools_html.write(line) devtools_html.close() inspector_html.close() # Touch output file directory to make sure that Xcode will copy # modified resource files. if sys.platform == 'darwin': output_dir_name = os.path.dirname(devtools_html_name) os.utime(output_dir_name, None)
f54d1fe210e3b03b65b61bff6cdce08b8fbc10e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/f54d1fe210e3b03b65b61bff6cdce08b8fbc10e5/generate_devtools_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 225, 309, 562, 12, 19485, 13, 411, 1059, 30, 1172, 2668, 9167, 30, 738, 87, 5455, 22700, 67, 2620, 4461, 6642, 67, 2620, 11, 296, 3747, 67, 464, 67, 2924, 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, 2774, 12, 19485, 4672, 225, 309, 562, 12, 19485, 13, 411, 1059, 30, 1172, 2668, 9167, 30, 738, 87, 5455, 22700, 67, 2620, 4461, 6642, 67, 2620, 11, 296, 3747, 67, 464, 67, 2924, 67, ...
def __sendData( self, acRegister, secsTimeout = 30 ):
def __sendData( self, acRegister, secsTimeout = 60 ):
def __sendData( self, acRegister, secsTimeout = 30 ): if not self.enabled: return if gServiceInterface.serviceRunning(): rpcClient = gServiceInterface else: rpcClient = RPCClient( "Monitoring/Server", timeout = secsTimeout ) #Send registrations if not self.__sendRegistration( rpcClient ): return False #Send marks maxIteration = 5 if self.__sendMarks( rpcClient ) and maxIteration: maxIteration -= 1 if not self.__sendRegistration( rpcClient ): return False
c7114d3880eb02e348aa77c3ddebde54af35d830 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/c7114d3880eb02e348aa77c3ddebde54af35d830/MonitoringClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4661, 751, 12, 365, 16, 1721, 3996, 16, 18043, 2694, 273, 4752, 262, 30, 309, 486, 365, 18, 5745, 30, 327, 309, 314, 18348, 18, 3278, 7051, 13332, 6724, 1227, 273, 314, 18348, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4661, 751, 12, 365, 16, 1721, 3996, 16, 18043, 2694, 273, 4752, 262, 30, 309, 486, 365, 18, 5745, 30, 327, 309, 314, 18348, 18, 3278, 7051, 13332, 6724, 1227, 273, 314, 18348, 46...
_tryorder = ("netscape", "windows-default")
_tryorder = ["netscape", "windows-default"]
def open_new(self, url): self.open(url)
5b6096260bd3180a45541b4425e1cc7d377bf08f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5b6096260bd3180a45541b4425e1cc7d377bf08f/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 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, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dec_flags, next_input, decoded_chars = self._snapshot
dec_flags, next_input = self._snapshot
def tell(self): if not self._seekable: raise IOError("underlying stream is not seekable") if not self._telling: raise IOError("telling position disabled by next() call") self.flush() position = self.buffer.tell() decoder = self._decoder if decoder is None or self._snapshot is None: if self._decoded_text: # This should never happen. raise AssertionError("pending decoded text") return position
2e00b1ed3eaf2ada4c0cb16b188516bd10ad5f0c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/2e00b1ed3eaf2ada4c0cb16b188516bd10ad5f0c/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9276, 12, 2890, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 486, 365, 6315, 88, 1165, 310, 30, 1002, 8340, 2932, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9276, 12, 2890, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 486, 365, 6315, 88, 1165, 310, 30, 1002, 8340, 2932, 88, ...
'version': None
'version': None, 'description_change': None
def _process_newticket_request(self, req): context = Context(self.env, req)('ticket') req.perm.require('TICKET_CREATE')
4b325501b62417636d47491d39e6a4729b660a33 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/4b325501b62417636d47491d39e6a4729b660a33/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2704, 16282, 67, 2293, 12, 2890, 16, 1111, 4672, 819, 273, 1772, 12, 2890, 18, 3074, 16, 1111, 13, 2668, 16282, 6134, 1111, 18, 12160, 18, 6528, 2668, 56, 16656, 1584, 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, 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, 2567, 67, 2704, 16282, 67, 2293, 12, 2890, 16, 1111, 4672, 819, 273, 1772, 12, 2890, 18, 3074, 16, 1111, 13, 2668, 16282, 6134, 1111, 18, 12160, 18, 6528, 2668, 56, 16656, 1584, 6...
if (type(v) == type('string')):
if (not isinstance(k, str) or len(k) < 1 or k == ' '): del self.definitions[k] elif (type(v) == type('string')):
def __init__(self): """ Constructor """ irclib.irc.__init__(self) getenv = os.environ.get
15941805d1c75aa8dcebe12a214553ed4b49b1fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9641/15941805d1c75aa8dcebe12a214553ed4b49b1fb/jibot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 11417, 3536, 9482, 830, 495, 18, 481, 71, 16186, 2738, 972, 12, 2890, 13, 11740, 273, 1140, 18, 28684, 18, 588, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 11417, 3536, 9482, 830, 495, 18, 481, 71, 16186, 2738, 972, 12, 2890, 13, 11740, 273, 1140, 18, 28684, 18, 588, 2, -100, -100, -100, -100, -100, ...
if DEBUG or 1:
if DEBUG:
def run(self): while 1: if self.mode == 'idle': self.mode_flag.wait() self.mode_flag.clear()
3d62472338ec2210958370a10e1de3c4681aa9ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3d62472338ec2210958370a10e1de3c4681aa9ef/xine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 309, 365, 18, 3188, 422, 296, 20390, 4278, 365, 18, 3188, 67, 6420, 18, 7048, 1435, 365, 18, 3188, 67, 6420, 18, 8507, 1435, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 309, 365, 18, 3188, 422, 296, 20390, 4278, 365, 18, 3188, 67, 6420, 18, 7048, 1435, 365, 18, 3188, 67, 6420, 18, 8507, 1435, 2, -100, -100, -100, ...
'OWNERDN': dynamic_util.cl_ownerdn(),
'OWNERDN': self.dynamic_util.cl_ownerdn(),
def _cl_task_meta_message(self): j = self.job_info # called on client, so job_info is Job object exec self.importDynamicUtil() msg = { 'APPLICATION': LCGAthenaUtil.cl_application(j), # e.g. ATHENA 'APPLICATIONVERSION': LCGAthenaUtil.cl_application_version(j), # e.g. 15.5.1 'INPUTDATASET': LCGAthenaUtil.cl_input_dataset(j), # e.g. fdr08_run2.0052283.physics_Muon.merge.AOD.o3_f8_m10 'JSTOOL': 'Ganga', # e.g. Ganga, Panda 'JSTOOLUI': LCGAthenaUtil.cl_jstoolui(), # hostname of client. e.g. lxplus246.cern.ch 'OUTPUTDATASET': LCGAthenaUtil.cl_output_dataset(j),# Unknown at submission. e.g. user09.DavidTuckett.ganga.420.20091125.FZK-LCG2_SCRATCHDISK 'OUTPUTSE': LCGAthenaUtil.cl_output_se(j), # Unknown at submission. e.g. FZK-LCG2_SCRATCHDISK 'OWNERDN': dynamic_util.cl_ownerdn(), # Grid certificate. e.g. /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=dtuckett/CN=671431/CN=David Tuckett/CN=proxy 'REPORTER': 'ToolUI', # e.g. ToolUI, JobWN 'REPORTTIME': CommonUtil.utcnow(), # e.g. 2009-11-25T14:59:24.754249Z 'SUBMISSIONTYPE': 'direct', 'TARGET': LCGAthenaUtil.cl_target(j), # e.g. CE_xxx,SITE_CSCS-LCG2_DATADISK,SITE_DESY-ZN_DATADISK 'TASKNAME': dynamic_util.cl_task_name(j), # e.g. ganga:6702b50a-8a31-4476-8189-62ea5b8e00b3:TrigStudy 'TASKTYPE': LCGAthenaUtil.cl_task_type(self.config_info), # e.g. analysis, production, hammercloud etc. '___fqid' : j.fqid, } return msg
8fc5b0bc368c704c04aaa9d01d8fe3d1ee85b726 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/8fc5b0bc368c704c04aaa9d01d8fe3d1ee85b726/AthenaMS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 830, 67, 4146, 67, 3901, 67, 2150, 12, 2890, 4672, 525, 273, 365, 18, 4688, 67, 1376, 468, 2566, 603, 1004, 16, 1427, 1719, 67, 1376, 353, 3956, 733, 1196, 365, 18, 5666, 9791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 830, 67, 4146, 67, 3901, 67, 2150, 12, 2890, 4672, 525, 273, 365, 18, 4688, 67, 1376, 468, 2566, 603, 1004, 16, 1427, 1719, 67, 1376, 353, 3956, 733, 1196, 365, 18, 5666, 9791, ...
alignments=200, e=0.0001)
alignments=200, e=0.0001)
def test_TemplateSearcher(self):
d1d0f0dde1db9aab3ed06b90b829e6ce5f0be3a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/d1d0f0dde1db9aab3ed06b90b829e6ce5f0be3a0/TemplateSearcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2283, 2979, 264, 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, ...
[ 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, 1842, 67, 2283, 2979, 264, 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...
self.parser.parseError()
self.parser.parseError(_(u"Unexpected start tag token (" + name +\ u") in the after body phase."))
def processStartTag(self, name, attributes): self.parser.parseError() self.parser.phase = self.parser.phases["inBody"] self.parser.phase.processStartTag(name, attributes)
ada0ac37dde0996bf794a42d6e0bceb3097dbbd7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/ada0ac37dde0996bf794a42d6e0bceb3097dbbd7/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 30512, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 4288, 18, 2670, 668, 24899, 12, 89, 6, 7762, 787, 1047, 1147, 7566, 397, 508, 397, 64, 582, 7923, 316, 326, 1839, 1417, 6855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 30512, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 4288, 18, 2670, 668, 24899, 12, 89, 6, 7762, 787, 1047, 1147, 7566, 397, 508, 397, 64, 582, 7923, 316, 326, 1839, 1417, 6855, ...
return None
return (None, [])
def ApplyDirectoryRules(existing_rules, dir_name): """Combines rules from the existing rules and the new directory. Any directory can contain a DEPS file. Toplevel DEPS files can contain module dependencies which are used by gclient. We use these, along with additional include rules and implicit rules for the given directory, to come up with a combined set of rules to apply for the directory. Args: existing_rules: The rules for the parent directory. We'll add-on to these. dir_name: The directory name that the deps file may live in (if it exists). This will also be used to generate the implicit rules. Returns: The combined set of rules to apply to the sub-tree. """ # Check for a .svn directory in this directory. This will tell us if it's # a source directory and should be checked. if not os.path.exists(os.path.join(dir_name, ".svn")): return None # Check the DEPS file in this directory. if VERBOSE: print "Applying rules from", dir_name def FromImpl(unused): pass # NOP function so "From" doesn't fail. scope = {"From": FromImpl} deps_file = os.path.join(dir_name, "DEPS") if not os.path.exists(deps_file): if VERBOSE: print " No deps file found in", dir_name return existing_rules # Nothing to change from the input rules. execfile(deps_file, scope) # Check the "skip" flag to see if we should check this directory at all. if scope.get(SKIP_VAR_NAME): if VERBOSE: print " Deps file specifies skipping this directory." return None deps = scope.get(DEPS_VAR_NAME, {}) include_rules = scope.get(INCLUDE_RULES_VAR_NAME, []) return ApplyRules(existing_rules, deps, include_rules, dir_name)
f3bb0346579cd4eb431c45e43041e139876015e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/f3bb0346579cd4eb431c45e43041e139876015e8/checkdeps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 2853, 4478, 12, 11711, 67, 7482, 16, 1577, 67, 529, 4672, 3536, 11328, 1465, 2931, 628, 326, 2062, 2931, 471, 326, 394, 1867, 18, 225, 5502, 1867, 848, 912, 279, 2030, 5857, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 2853, 4478, 12, 11711, 67, 7482, 16, 1577, 67, 529, 4672, 3536, 11328, 1465, 2931, 628, 326, 2062, 2931, 471, 326, 394, 1867, 18, 225, 5502, 1867, 848, 912, 279, 2030, 5857, 585, ...
nuninst[arch] = nuninst_comp[arch][:]
nuninst[arch] = [x for x in nuninst_comp[arch] if x in binaries[arch][0]]
def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst()
ffeddc471d8a477df144d4e513c8a8dae814240b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/ffeddc471d8a477df144d4e513c8a8dae814240b/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, -100, -100, -100, -100, -100, -100, -100, ...
this = apply(_quickfix.new_DiscretionMoveType, args)
this = _quickfix.new_DiscretionMoveType(*args)
def __init__(self, *args): this = apply(_quickfix.new_DiscretionMoveType, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 28912, 1349, 285, 7607, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 28912, 1349, 285, 7607, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
name="bend span %i-%i-%i (%s)" % (id + (tag,)),
name="bend span %i-%i-%i" % id,
def add_bend_spans(self, criteria_sets): """ Adds the distances that span the bend angles described in criteria_sets to the collection. """ result = dict((tag, []) for tag in criteria_sets.yield_tags()) for tag, match in self.molecular_graph.yield_subgraphs(criteria_sets): id = tuple([match.get_destination(source) for source in [0, 1, 2]]) s0 = self.add(Select, id[0]) s2 = self.add(Select, id[2]) e = self.add(Delta, s0, s2) d = self.add( Distance, e, name="bend span %i-%i-%i (%s)" % (id + (tag,)), id=id ) self.add_internal_coordinate(tag, d)
1688fd6453a932f4536672a83da72a51dfe1e12e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/1688fd6453a932f4536672a83da72a51dfe1e12e/internal_coordinates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 70, 409, 67, 30885, 12, 2890, 16, 3582, 67, 4424, 4672, 3536, 15605, 326, 12491, 716, 4548, 326, 324, 409, 15479, 11893, 316, 3582, 67, 4424, 358, 326, 1849, 18, 3536, 563, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 70, 409, 67, 30885, 12, 2890, 16, 3582, 67, 4424, 4672, 3536, 15605, 326, 12491, 716, 4548, 326, 324, 409, 15479, 11893, 316, 3582, 67, 4424, 358, 326, 1849, 18, 3536, 563, 27...
columns = ["login", "name"]
def _list(self): try: users = self.userconn.users() columns = ["login", "name"] if not len(users): print _("No users available to list") sys.exit(0) print "+-------------------------------------------+" print " Available Users " print "+-------------------------------------------+" for user in users: print constants.AVAILABLE_USERS_LIST % (user["login"], user["name"]) except RestlibException, re: log.error("Error: %s" % re) systemExit(re.code, re.msg) except Exception, e: log.error("Error: %s" % e) raise
f392f716f136a9fbd21821bb5e26256a7a3b87cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/f392f716f136a9fbd21821bb5e26256a7a3b87cd/core_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 12, 2890, 4672, 775, 30, 3677, 273, 365, 18, 1355, 4646, 18, 5577, 1435, 309, 486, 562, 12, 5577, 4672, 1172, 389, 2932, 2279, 3677, 2319, 358, 666, 7923, 2589, 18, 8593, 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, 1098, 12, 2890, 4672, 775, 30, 3677, 273, 365, 18, 1355, 4646, 18, 5577, 1435, 309, 486, 562, 12, 5577, 4672, 1172, 389, 2932, 2279, 3677, 2319, 358, 666, 7923, 2589, 18, 8593, 12...
envelope = write_multipart(output)
envelope = write_multipart(output, boundary=boundary)
def dump_db(dburl, username=None, password=None, boundary=None, output=sys.stdout): db = Database(dburl) if username is not None and password is not None: db.resource.http.add_credentials(username, password) envelope = write_multipart(output) for docid in db: doc = db.get(docid, attachments=True) print>>sys.stderr, 'Dumping document %r' % doc.id attachments = doc.pop('_attachments', {}) jsondoc = json.encode(doc) if attachments: parts = envelope.open({ 'Content-ID': doc.id, 'ETag': '"%s"' % doc.rev }) parts.add('application/json', jsondoc) for name, info in attachments.items(): content_type = info.get('content_type') if content_type is None: # CouchDB < 0.8 content_type = info.get('content-type') parts.add(content_type, b64decode(info['data']), { 'Content-ID': name }) parts.close() else: envelope.add('application/json', jsondoc, { 'Content-ID': doc.id, 'ETag': '"%s"' % doc.rev }, ) envelope.close()
bc7383c51c09f939e828ecf7fda24bdd45bd8955 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9373/bc7383c51c09f939e828ecf7fda24bdd45bd8955/dump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 1966, 12, 1966, 718, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 7679, 33, 7036, 16, 876, 33, 9499, 18, 10283, 4672, 1319, 273, 5130, 12, 1966, 718, 13, 309, 2718, 353, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 1966, 12, 1966, 718, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 7679, 33, 7036, 16, 876, 33, 9499, 18, 10283, 4672, 1319, 273, 5130, 12, 1966, 718, 13, 309, 2718, 353, 486...
geo=GpicSync(gpxFile=self.getGpxFile(),tcam_l=self.tcam_l,tgps_l=self.tgps_l,
geo=GpicSync(gpxFile=self.gpxFile,tcam_l=self.tcam_l,tgps_l=self.tgps_l,
def sync(): if self.dirEntry.GetValue()!="" and self.gpxEntry.GetValue!="": wx.CallAfter(self.consolePrint,"\n------\n"+_("Beginning synchronization with ")\ +_("UTC Offset =")+self.utcEntry.GetValue()+\ _(" hours and maximum time difference = ")+self.timerangeEntry.GetValue() +_(" seconds")+"\n") else: pass geo=GpicSync(gpxFile=self.getGpxFile(),tcam_l=self.tcam_l,tgps_l=self.tgps_l, UTCoffset=self.utcOffset,dateProcess=dateProcess,timerange=int(self.timerangeEntry.GetValue()), backup=False,interpolation=self.interpolation) if self.backupCheck.GetValue()==True: backupFolder=self.picDir+'/originals-backup-'+os.path.basename(self.picDir)+'/' wx.CallAfter(self.consolePrint,"\n"+ _("Creating an 'originals-backup' folder.")+"\n") try: os.mkdir(backupFolder) except: print "Couldn't create the backup folder, it maybe already exist"
f57720aae7e3217c5deab9f5281050db786c1433 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11453/f57720aae7e3217c5deab9f5281050db786c1433/gpicsync-GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 13332, 309, 365, 18, 1214, 1622, 18, 967, 620, 1435, 5, 1546, 6, 471, 365, 18, 75, 4430, 1622, 18, 967, 620, 5, 1546, 6877, 7075, 18, 1477, 4436, 12, 2890, 18, 8698, 5108, 1083...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 13332, 309, 365, 18, 1214, 1622, 18, 967, 620, 1435, 5, 1546, 6, 471, 365, 18, 75, 4430, 1622, 18, 967, 620, 5, 1546, 6877, 7075, 18, 1477, 4436, 12, 2890, 18, 8698, 5108, 1083...
import sys,traceback
def __setattr__(self,name,value): if name!='_l': if __debug__: if _module_debug_level>0: print '************',\ self.__module__+'.'+self.__class__.__name__+'.__setattr__(%s,%s)' % (name,value) if _module_debug_level>=2: import sys,traceback traceback.print_stack(file=sys.stdout) _ldapmodule_lock.acquire() try: setattr(self._l,name,value) finally: _ldapmodule_lock.release() else: self.__dict__[name] = value
fc5bd7b77443dfcf196c4136f1b26cdaf847e448 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/fc5bd7b77443dfcf196c4136f1b26cdaf847e448/ldapthreadlock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 529, 16, 1132, 4672, 309, 508, 5, 2218, 67, 80, 4278, 309, 1001, 4148, 972, 30, 309, 389, 2978, 67, 4148, 67, 2815, 34, 20, 30, 1172, 296, 1644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 529, 16, 1132, 4672, 309, 508, 5, 2218, 67, 80, 4278, 309, 1001, 4148, 972, 30, 309, 389, 2978, 67, 4148, 67, 2815, 34, 20, 30, 1172, 296, 1644, ...
copystream=open(self.copy,'wb')
copystream=DamnOpenFile(self.copy,'wb')
def goDownload(self): self.http=DamnURLPicker(self.uri,resumeat=self.amountwritten) if self.http==None: try: self.pipe.close() # This tells ffmpeg that it's the end of the stream except: pass return None writing='' direct=False if self.copy!=None: copystream=open(self.copy,'wb') i='letsgo' while len(i): tmptimer=thr.Timer(10.0,self.timeouterror) tmptimer.start() try: i=self.http.read(1024) tmptimer.cancel() except: Damnlog('DamnDownloader stream timeout from exception handler.') self.timeouted=True break try: if direct: self.pipe.write(i) if self.copy!=None: copystream.write(i) else: writing+=i if len(writing)>102400: # Cache the first 100 KB and write them all at once (solves ffmpeg's "moov atom not found" problem) self.pipe.write(writing) if self.copy!=None: copystream.write(writing) direct=True del writing except: break self.amountwritten+=len(i) if not direct: # Video weighs less than 100 KB (!) try: self.pipe.write(writing) if self.copy!=None: copystream.write(writing) except: pass try: self.http.close() except: pass try: self.pipe.close() # This tells ffmpeg that it's the end of the stream except: pass try: copystream.close() # Might not be defined, but doesn't matter except: pass
eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 7109, 12, 2890, 4672, 365, 18, 2505, 33, 40, 301, 82, 1785, 13194, 12, 2890, 18, 1650, 16, 25158, 270, 33, 2890, 18, 8949, 9748, 13, 309, 365, 18, 2505, 631, 7036, 30, 775, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 7109, 12, 2890, 4672, 365, 18, 2505, 33, 40, 301, 82, 1785, 13194, 12, 2890, 18, 1650, 16, 25158, 270, 33, 2890, 18, 8949, 9748, 13, 309, 365, 18, 2505, 631, 7036, 30, 775, 30,...
u'DTSTART;VALUE="DATE":2005-07-01 00:00:00'
u'DTSTART;VALUE=DATE:2005-07-01 00:00:00'
def test_load_2(self): """Test loading a 2 events calendar.""" cal = self.cal2
4284d14984f2a4b3da93b77281110353f761aa67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/4284d14984f2a4b3da93b77281110353f761aa67/test_ical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 945, 67, 22, 12, 2890, 4672, 3536, 4709, 7153, 279, 576, 2641, 5686, 12123, 1443, 273, 365, 18, 771, 22, 2, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 945, 67, 22, 12, 2890, 4672, 3536, 4709, 7153, 279, 576, 2641, 5686, 12123, 1443, 273, 365, 18, 771, 22, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"The parameter, %s, was ommitted from the request."
"The parameter, %s, was omitted from the request."
def badRequestError(self,name):
3acdcbee8768b5cb4047573a5736a805014b0c28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/3acdcbee8768b5cb4047573a5736a805014b0c28/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 28963, 12, 2890, 16, 529, 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, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 28963, 12, 2890, 16, 529, 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, -10...
py.test.skip("Broken because of line numbers")
def testVariableRule(self): """ parser.wiki: ----- rules with size """ py.test.skip("Broken because of line numbers")
4c6bdda60568bbccf7a9a996f908fcbd6101e97f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/4c6bdda60568bbccf7a9a996f908fcbd6101e97f/test_text_moin_wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3092, 2175, 12, 2890, 4672, 3536, 2082, 18, 13044, 30, 9135, 2931, 598, 963, 3536, 2395, 18, 3813, 18, 7457, 2932, 29559, 2724, 434, 980, 5600, 7923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3092, 2175, 12, 2890, 4672, 3536, 2082, 18, 13044, 30, 9135, 2931, 598, 963, 3536, 2395, 18, 3813, 18, 7457, 2932, 29559, 2724, 434, 980, 5600, 7923, 2, -100, -100, -100, -100, -10...
length = q[0] / 1000000000
length = q[0] / float(gst.SECOND)
def bus_eos(self, bus, message): """ Handler for the GStreamer End Of Stream message. Currently used when the file is loading and is being rendered. This function is called at the end of the file loading process and finalises the rendering. """ if message.type == gst.MESSAGE_EOS: # Update levels for partial events q = self.bin.query_duration(gst.FORMAT_TIME) length = q[0] / 1000000000 if self.offset > 0 or self.duration != length: dt = int(self.duration * len(self.levels) / length) start = int(self.offset * len(self.levels) / length) self.levels = self.levels[start:start+dt] # We're done with the bin so release it self.bin.set_state(gst.STATE_NULL) self.isLoading = False # Signal to interested objects that we've changed self.StateChanged(self.WAVEFORM) return False
835875beaf511ec96d54b0aad26c2f47f3715b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/835875beaf511ec96d54b0aad26c2f47f3715b7b/Event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5766, 67, 73, 538, 12, 2890, 16, 5766, 16, 883, 4672, 3536, 4663, 364, 326, 611, 1228, 264, 4403, 8031, 3961, 883, 18, 15212, 1399, 1347, 326, 585, 353, 7153, 471, 353, 3832, 7935, 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, 5766, 67, 73, 538, 12, 2890, 16, 5766, 16, 883, 4672, 3536, 4663, 364, 326, 611, 1228, 264, 4403, 8031, 3961, 883, 18, 15212, 1399, 1347, 326, 585, 353, 7153, 471, 353, 3832, 7935, 18,...
month = str(matplotlib.dates.DateFormatter.strftime(self,dt,'%b')) fmt = fmt.replace('%n',month[0])
month = matplotlib.dates.DateFormatter.strftime(self,dt,'%b') fmt = str(fmt.replace('%n',month[0]))
def strftime(self, dt, fmt): if ('%e' in fmt): dayname = str(matplotlib.dates.DateFormatter.strftime(self,dt,'%A')) fmt = fmt.replace('%e',dayname[0]) if ('%n' in fmt): month = str(matplotlib.dates.DateFormatter.strftime(self,dt,'%b')) fmt = fmt.replace('%n',month[0]) if ('%Q' in fmt): monthnr = int(matplotlib.dates.DateFormatter.strftime(self,dt,'%m')) fmt = fmt.replace('%Q','Q%i' % math.ceil(monthnr/3.)) return matplotlib.dates.DateFormatter.strftime(self,dt,fmt)
19fa4f7fbd00fe733dc5e160af3e1d29b8eb03de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/19fa4f7fbd00fe733dc5e160af3e1d29b8eb03de/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10405, 12, 2890, 16, 3681, 16, 1325, 4672, 309, 7707, 9, 73, 11, 316, 1325, 4672, 2548, 529, 273, 609, 12, 7373, 10690, 18, 9683, 18, 1626, 5074, 18, 701, 9982, 12, 2890, 16, 7510, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10405, 12, 2890, 16, 3681, 16, 1325, 4672, 309, 7707, 9, 73, 11, 316, 1325, 4672, 2548, 529, 273, 609, 12, 7373, 10690, 18, 9683, 18, 1626, 5074, 18, 701, 9982, 12, 2890, 16, 7510, 1...
print "Usage: %s --server {start|stop} [--apache2]" % sys.argv[0]
print 'Usage: %s --server {start|stop} [--root=root_dir]' print ' [--port=port_number]' % sys.argv[0]
def Stop(self, force=False): if not force and not self.IsRunning(): return
a843a3fde6e142db763e90030cbbeac0ebe0dac1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/a843a3fde6e142db763e90030cbbeac0ebe0dac1/http_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5131, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 486, 365, 18, 2520, 7051, 13332, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5131, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 486, 365, 18, 2520, 7051, 13332, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.driver.Delete( new_filename )
if gdal.GetConfigOption( 'CPL_DEBUG', 'OFF' ) != 'ON': self.driver.Delete( new_filename )
def testCreate(self, new_filename = None, out_bands = 3):
71b35e954aa0c31acce12a648a5b2e1343a865e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/71b35e954aa0c31acce12a648a5b2e1343a865e7/gdaltest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1684, 12, 2890, 16, 394, 67, 3459, 273, 599, 16, 596, 67, 29714, 273, 890, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1684, 12, 2890, 16, 394, 67, 3459, 273, 599, 16, 596, 67, 29714, 273, 890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for command in commands.__all__: fn = getattr(commands, command) def do_cmd(self, rest_of_line, cmd=command): global_dict, local_dict = namespaces.get_twill_glocals() args = [] if rest_of_line.strip() != "": try: args = parse.arguments.parseString(rest_of_line)[0] args = parse.process_args(args, global_dict,local_dict) except Exception, e: print '\nINPUT ERROR: %s\n' % (str(e),) return try: parse.execute_command(cmd, args, global_dict, local_dict, "<shell>") except SystemExit: raise except Exception, e: print '\nERROR: %s\n' % (str(e),) name = 'do_%s' % (command,) setattr(cls, name, do_cmd) def help_cmd(self, message=fn.__doc__, cmd=command): print '=' * 15 print '\nHelp for command %s:\n' % (cmd,) print message.strip() print '' print '=' * 15 print '' name = 'help_%s' % (command,) setattr(cls, name, help_cmd)
return help_cmd class Singleton(object): def __new__(cls, *args, **kwds): it = cls.__dict__.get("__it__") if it is not None: return it cls.__it__ = it = object.__new__(cls) it.init(*args, **kwds) return it def init(self, *args, **kwds): pass
def __init__(cls, cls_name, cls_bases, cls_dict): super(_command_loop_metaclass, cls).__init__(cls_name, cls_bases, cls_dict)
7e122f3bb12c1f0d78a97d71d247f0f1addc01e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/7e122f3bb12c1f0d78a97d71d247f0f1addc01e7/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 6429, 16, 2028, 67, 529, 16, 2028, 67, 18602, 16, 2028, 67, 1576, 4672, 2240, 24899, 3076, 67, 6498, 67, 3901, 1106, 16, 2028, 2934, 972, 2738, 972, 12, 6429, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 6429, 16, 2028, 67, 529, 16, 2028, 67, 18602, 16, 2028, 67, 1576, 4672, 2240, 24899, 3076, 67, 6498, 67, 3901, 1106, 16, 2028, 2934, 972, 2738, 972, 12, 6429, 67, ...
if self.__instance: return self.__instance self.__instance = self
def __init__(self): if self.__instance: return self.__instance self.__instance = self self._storable_plugins = [] self.action_handlers = {} self.periodic_actions = [] self.protocols = []
26e2f80680fb931d0b888937ba48e7e8f2ed6aec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10891/26e2f80680fb931d0b888937ba48e7e8f2ed6aec/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 6315, 334, 15514, 67, 8057, 273, 5378, 365, 18, 1128, 67, 11046, 273, 2618, 365, 18, 6908, 335, 67, 4905, 273, 5378, 365, 18, 31018, 273, 5378, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 6315, 334, 15514, 67, 8057, 273, 5378, 365, 18, 1128, 67, 11046, 273, 2618, 365, 18, 6908, 335, 67, 4905, 273, 5378, 365, 18, 31018, 273, 5378, 2,...
self.imports = Collection(self, key=f)
self.imports = Collection(self, key=ns)
def __init__(self, parent=None): """parent -- instance variables: targetNamespace -- schema's declared targetNamespace, or empty string. _imported_schemas -- namespace keyed dict of schema dependencies, if a schema is provided instance will not resolve import statement. _included_schemas -- schemaLocation keyed dict of component schemas, if schema is provided instance will not resolve include statement. _base_url -- needed for relative URLs support, only works with URLs relative to initial document. includes -- collection of include statements imports -- collection of import statements elements -- collection of global element declarations types -- collection of global type definitions attr_decl -- collection of global attribute declarations attr_groups -- collection of global attribute group definitions model_groups -- collection of model group definitions notations -- collection of notations
66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9fb0/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 4672, 3536, 2938, 1493, 791, 3152, 30, 1018, 3402, 1493, 1963, 1807, 7886, 1018, 3402, 16, 578, 1008, 533, 18, 389, 29266, 67, 17928, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 33, 7036, 4672, 3536, 2938, 1493, 791, 3152, 30, 1018, 3402, 1493, 1963, 1807, 7886, 1018, 3402, 16, 578, 1008, 533, 18, 389, 29266, 67, 17928, 1493, ...
str += '<H2>Class Hierarchy</H2>\n'
str += '<h2>Class Hierarchy</h2>\n'
def _tree_to_html(self): str = self._header('Class Hierarchy') str += self._navbar('tree') str += self._start_of('Class Hierarchy') str += '<H2>Module Hierarchy</H2>\n' str += self._module_tree() str += '<H2>Class Hierarchy</H2>\n' str += self._class_tree() str += self._navbar('tree') str += self._footer() return str
89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3413, 67, 869, 67, 2620, 12, 2890, 4672, 609, 273, 365, 6315, 3374, 2668, 797, 670, 6000, 6134, 609, 1011, 365, 6315, 11589, 3215, 2668, 3413, 6134, 609, 1011, 365, 6315, 1937, 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, 389, 3413, 67, 869, 67, 2620, 12, 2890, 4672, 609, 273, 365, 6315, 3374, 2668, 797, 670, 6000, 6134, 609, 1011, 365, 6315, 11589, 3215, 2668, 3413, 6134, 609, 1011, 365, 6315, 1937, 67, ...
self.uncatalog_object(referenceObject.getId()) self._delObject(referenceObject.getId())
self._deleteReferenceId(referenceObject.getId())
def _deleteReference(self, referenceObject):
557744d105e5c0e34be326d92488311e9415b186 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/557744d105e5c0e34be326d92488311e9415b186/ReferenceEngine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3733, 2404, 12, 2890, 16, 2114, 921, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3733, 2404, 12, 2890, 16, 2114, 921, 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,...
self._out_entry.insert(0, opts.get('outdir', 'html'))
self._out_entry.insert(0, opts.get('target', 'html'))
def open(self, prjfile): from epydoc.docwriter.html_css import STYLESHEETS self._filename = prjfile try: opts = load(open(prjfile, 'r')) modnames = list(opts.get('modules', [])) modnames.sort() self._module_list.delete(0, 'end') for name in modnames: self.add_module(name) self._module_entry.delete(0, 'end') self._name_entry.delete(0, 'end') if opts.get('prj_name'): self._name_entry.insert(0, opts['prj_name']) self._url_entry.delete(0, 'end') if opts.get('prj_url'): self._url_entry.insert(0, opts['prj_url'])
0e095268388eef51b50704e7f0c948a848d4a03f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/0e095268388eef51b50704e7f0c948a848d4a03f/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 27378, 768, 4672, 628, 425, 2074, 2434, 18, 2434, 6299, 18, 2620, 67, 5212, 1930, 27449, 2664, 41, 1584, 55, 365, 6315, 3459, 273, 27378, 768, 775, 30, 1500, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 27378, 768, 4672, 628, 425, 2074, 2434, 18, 2434, 6299, 18, 2620, 67, 5212, 1930, 27449, 2664, 41, 1584, 55, 365, 6315, 3459, 273, 27378, 768, 775, 30, 1500, 273, 1...
self.SetStatus(percent=percent)
def Gcmd(self,cmd,stdin=None): """Runs GRASS command, fetches all GRASS_MESSAGE and GRASS_PERCENT messages and sets self.status according to them, so the client application can track the progress information, when runing with Status=True
d0a560191412520a1799935bb425b9158c7e51a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10967/d0a560191412520a1799935bb425b9158c7e51a8/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 611, 4172, 12, 2890, 16, 4172, 16, 21772, 33, 7036, 4672, 3536, 9361, 611, 2849, 1260, 1296, 16, 17675, 777, 611, 2849, 1260, 67, 8723, 471, 611, 2849, 1260, 67, 3194, 19666, 2743, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 611, 4172, 12, 2890, 16, 4172, 16, 21772, 33, 7036, 4672, 3536, 9361, 611, 2849, 1260, 1296, 16, 17675, 777, 611, 2849, 1260, 67, 8723, 471, 611, 2849, 1260, 67, 3194, 19666, 2743, 471, ...
return (len(self.paths) == 1 and len(self.revisions) == 1)
item = self.revisions[0]["revision"] return (item.value > 1 and len(self.revisions) == 1)
def compare_previous_revision(self, data=None): return (len(self.paths) == 1 and len(self.revisions) == 1)
ad5521587456ebb741ee574a52047df0b8e70698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/ad5521587456ebb741ee574a52047df0b8e70698/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 11515, 67, 13057, 12, 2890, 16, 501, 33, 7036, 4672, 327, 261, 1897, 12, 2890, 18, 4481, 13, 422, 404, 471, 562, 12, 2890, 18, 29892, 13, 422, 404, 13, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 67, 11515, 67, 13057, 12, 2890, 16, 501, 33, 7036, 4672, 327, 261, 1897, 12, 2890, 18, 4481, 13, 422, 404, 471, 562, 12, 2890, 18, 29892, 13, 422, 404, 13, 2, -100, -100, -100,...
price_french = 'retir'
price_french = u'retiré'
def create_xml(self,cr, uid, ids, datas, context={}): pool= pooler.get_pool(cr.dbname) lots = pool.get('auction.lots').browse(cr, uid, ids) auction = lots[0].auction_id
d67eab9c0738265a32d9a3a3c97bf483bec06581 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/d67eab9c0738265a32d9a3a3c97bf483bec06581/huissier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2902, 12, 2890, 16, 3353, 16, 4555, 16, 3258, 16, 5386, 16, 819, 12938, 4672, 2845, 33, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 328, 6968, 273, 2845, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2902, 12, 2890, 16, 3353, 16, 4555, 16, 3258, 16, 5386, 16, 819, 12938, 4672, 2845, 33, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 328, 6968, 273, 2845, 18, 588,...
self.timer_inc = gtk.timeout_add(self.timerinc, self.timer_inc_display) print("Gcompris_ballcatch start.")
self.timer_inc = gobject.timeout_add(self.timerinc, self.timer_inc_display)
def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=9 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1 gcompris.bar_set(gcompris.BAR_LEVEL) gcompris.set_background(self.gcomprisBoard.canvas.root(), "images/beach.png") gcompris.bar_set_level(self.gcomprisBoard)
47c7b2de69f2ef74a5ccace1a52699180780bde1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11306/47c7b2de69f2ef74a5ccace1a52699180780bde1/ballcatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 29, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 29, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
descr='test short chk commands'
descr='''test short chk commands'''
def test_short_syntax(): uname = 'user_test' gname = 'group_test' pname = 'profil_test' ScenarioTest([ ADD + [ 'user', uname, '-v' ], GET + [ 'user', uname ], ADD + [ 'group', gname, '-v' ], GET + [ 'group', gname ], ADD + [ 'user', uname, gname, '-v' ], GET + [ 'user', uname, '-l' ], ADD + [ 'group', '%s2' % gname, '-v' ], GET + [ 'group', '%s2' % gname ], ADD + [ 'group', '%s3,%s4' % (gname, gname), '-v' ], # should fail (already present) GET + [ 'group', '%s3,%s4' % (gname, gname) ], # should add user2 & user3 ADD + [ 'user', '%s2,%s3' % (uname, uname), '-v' ], GET + [ 'user', '%s2,%s3' % (uname, uname) ], # add 2 users in 3 groups each ADD + [ 'user', '%s2,%s3' % (uname, uname), '%s2,%s3,%s4' % (gname,gname,gname), '-v' ], GET + [ 'user', '%s2,%s3' % (uname, uname), '-l' ], # should add ONLY ONE user in a group and bypass empty one ADD + [ 'user', ',%s' % uname, ',%s2' % gname, '-v' ], # idem ADD + [ 'user', '%s,' % uname, '%s3,' % gname, '-v' ], GET + [ 'user', uname, '-l' ], # should delete only one user and bypass empty one DEL + [ 'user', ',%s' % uname, '-v'], # should fail (already deleted) DEL + [ 'user', '%s,' % uname, '-v'], # IDEM DEL + [ 'user', uname, '-v'], # delete 2 users at same time DEL + [ 'user', '%s2,%s3' % (uname, uname), '-v'], # delete groups, one, then two, then one (bypassing empty) DEL + [ 'group', gname, '-v'], DEL + [ 'group', '%s2,%s3' % (gname, gname), '-v'], DEL + [ 'group', ',%s4' % gname, '-v'], DEL + [ 'group', '%s4,' % gname, '-v'], DEL + [ 'group', '%s4' % gname, '-v'], ], descr='test short users/groups commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '-v' ], #should fail (the group is not a system group) ADD + [ 'privilege', gname, '-v' ], GET + [ 'privileges' ], ADD + [ 'group', '%ssys' % gname, '--system', '-v' ], ADD + [ 'privilege', '%ssys' % gname, '-v' ], GET + [ 'privileges' ], DEL + [ 'privilege', '%ssys' % gname ], GET + [ 'privileges' ], DEL + [ 'group', gname ], DEL + [ 'group', '%ssys' % gname ], ], descr='test short privileges commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '--system', '-v' ], ADD + [ 'group', '%s2' % gname, '-v' ], ADD + [ 'group', '%s3' % gname, '-v' ], # should fail (not a system group) ADD + [ 'profile', pname, '--group=%s2' % gname, '--force-existing' ], GET + [ 'profiles' ], # should be OK ADD + [ 'profile', pname, '--group=%s' % gname, '--force-existing' ], GET + [ 'profiles' ], MOD + [ 'profile', pname, '--add-groups=%s2,%s3' % (gname,gname) ], GET + [ 'profiles' ], MOD + [ 'profile', pname, '--del-groups=%s2,%s3' % (gname,gname) ], GET + [ 'profiles' ], DEL + [ 'profile', pname ], DEL + [ 'group', '%s2' % gname, '-v' ], DEL + [ 'group', '%s3' % gname, '-v' ], GET + [ 'profiles' ], ], descr='test short profiles commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '-v' ], ADD + [ 'group', '%s2' % gname, '-v' ], CHK + [ 'group', gname, '--auto-no', '-vv' ], CHK + [ 'group', gname, '--auto-yes', '-vv' ], CHK + [ 'group', gname, '-vb' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '--auto-no', '-vv' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '--auto-yes', '-vv' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '-vb' ], DEL + [ 'group', '%s,%s2' % (gname,gname), '-v' ], CHK + [ 'config','--auto-no', '-vvae' ], CHK + [ 'config','--auto-yes', '-vvae' ], CHK + [ 'config','--batch', '-vvae' ], ADD + [ 'user', uname, '-v' ], CHK + [ 'user', uname, '--auto-no', '-v' ], CHK + [ 'user', uname, '--auto-yes', '-v' ], CHK + [ 'user', uname, '-vb' ], DEL + [ 'user', uname, '-v' ], ], descr='test short chk commands' ).Run() """ # extended check on user not implemented yet CHK + [ 'user', '%s,%s2' % (uname,uname), '--auto-no', '-vve' ], CHK + [ 'user', '%s,%s2' % (uname,uname), '--auto-yes', '-vve' ], CHK + [ 'user', '%s,%s2' % (uname,uname), '--batch', '-vve' ], DEL + [ 'user', '%s,%s2' % (uname,uname), '-v' ], # check on profile not implemented yet ADD + [ 'profile', '%s,%s2' % (pname,pname), '-v' ], CHK + [ 'profile', pname, '--auto-no', '-vve' ], CHK + [ 'profile', pname, '--auto-yes', '-vve' ], CHK + [ 'profile', pname, '--batch', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--auto-no', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--auto-yes', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--batch', '-vve' ], DEL + [ 'profile', '%s,%s2' % (pname,pname), '-v' ], """
38a496a61795ec7fb8b2f6589579ac75d0b90d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/38a496a61795ec7fb8b2f6589579ac75d0b90d9d/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6620, 67, 14308, 13332, 31444, 273, 296, 1355, 67, 3813, 11, 314, 529, 273, 296, 1655, 67, 3813, 11, 19952, 273, 296, 685, 7540, 67, 3813, 11, 225, 2850, 7754, 4709, 3816, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6620, 67, 14308, 13332, 31444, 273, 296, 1355, 67, 3813, 11, 314, 529, 273, 296, 1655, 67, 3813, 11, 19952, 273, 296, 685, 7540, 67, 3813, 11, 225, 2850, 7754, 4709, 3816, 11...
print self.portal.REQUEST.get_header('If-Modified-Since')
def testContentLengthHeaders(self): # Test that the main page retains its content-type self.setRoles(['Manager'])
b65a26d6c5aa3ebd7cf5adefce3cf1cd29d07496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12274/b65a26d6c5aa3ebd7cf5adefce3cf1cd29d07496/testHTTPHeaders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1350, 1782, 3121, 12, 2890, 4672, 468, 7766, 716, 326, 2774, 1363, 325, 4167, 2097, 913, 17, 723, 365, 18, 542, 6898, 12, 3292, 1318, 19486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1350, 1782, 3121, 12, 2890, 4672, 468, 7766, 716, 326, 2774, 1363, 325, 4167, 2097, 913, 17, 723, 365, 18, 542, 6898, 12, 3292, 1318, 19486, 2, -100, -100, -100, -100, -100, -100, ...
return offset
def _leftDrawParaLineX( tx, offset, line, last=0): setXPos(tx,offset) _putFragLine(tx, line) setXPos(tx,-offset) return offset
ae97b90f6a178f0d7566cbd8acc91dc0dd0700c1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7053/ae97b90f6a178f0d7566cbd8acc91dc0dd0700c1/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4482, 6493, 23529, 1670, 60, 12, 2229, 16, 1384, 16, 980, 16, 1142, 33, 20, 4672, 23733, 1616, 12, 978, 16, 3348, 13, 389, 458, 19509, 1670, 12, 978, 16, 980, 13, 23733, 1616, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4482, 6493, 23529, 1670, 60, 12, 2229, 16, 1384, 16, 980, 16, 1142, 33, 20, 4672, 23733, 1616, 12, 978, 16, 3348, 13, 389, 458, 19509, 1670, 12, 978, 16, 980, 13, 23733, 1616, 1...
timeout = property(getTimeout, setTimeout, "Timeout setting for read()")
timeout = property(getTimeout, setTimeout, doc="Timeout setting for read()")
def getTimeout(self): """Get the current timeout setting.""" return self._timeout
0276f5e57fe7c17ae1f07b8f3b480aa7b5809b56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/0276f5e57fe7c17ae1f07b8f3b480aa7b5809b56/serialutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29301, 12, 2890, 4672, 3536, 967, 326, 783, 2021, 3637, 12123, 327, 365, 6315, 4538, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29301, 12, 2890, 4672, 3536, 967, 326, 783, 2021, 3637, 12123, 327, 365, 6315, 4538, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
select A.ID, A.Value2, B.ID, B.Value2 from Dsc as A, Fdf as B
select A.ID, A.Value2, A.BelongsToFile, B.ID, B.Value2, B.BelongsToFile from Dsc as A, Fdf as B
def MetaDataFileCheckPcdDuplicate(self): if EccGlobalData.gConfig.MetaDataFileCheckPcdDuplicate == '1' or EccGlobalData.gConfig.MetaDataFileCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1': EdkLogger.quiet("Checking for duplicate PCDs defined in both DSC and FDF files ...") SqlCommand = """ select A.ID, A.Value2, B.ID, B.Value2 from Dsc as A, Fdf as B where A.Model >= %s and A.Model < %s and B.Model >= %s and B.Model < %s and A.Value2 = B.Value2 and A.Enabled > -1 and B.Enabled > -1 group by A.ID """% (MODEL_PCD, MODEL_META_DATA_HEADER, MODEL_PCD, MODEL_META_DATA_HEADER) RecordSet = EccGlobalData.gDb.TblDsc.Exec(SqlCommand) for Record in RecordSet: if not EccGlobalData.gException.IsException(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, Record[1]): EccGlobalData.gDb.TblReport.Insert(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, OtherMsg = "The PCD [%s] is defined in both FDF file and DSC file" % (Record[1]), BelongsToTable = 'Dsc', BelongsToItem = Record[0]) if not EccGlobalData.gException.IsException(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, Record[3]): EccGlobalData.gDb.TblReport.Insert(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, OtherMsg = "The PCD [%s] is defined in both FDF file and DSC file" % (Record[3]), BelongsToTable = 'Fdf', BelongsToItem = Record[2])
b423ebb46e17d3d737bedec9420123dffb494003 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/b423ebb46e17d3d737bedec9420123dffb494003/Check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27512, 812, 1564, 52, 4315, 11826, 12, 2890, 4672, 309, 512, 952, 5160, 751, 18, 75, 809, 18, 6998, 812, 1564, 52, 4315, 11826, 422, 296, 21, 11, 578, 512, 952, 5160, 751, 18, 75, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27512, 812, 1564, 52, 4315, 11826, 12, 2890, 4672, 309, 512, 952, 5160, 751, 18, 75, 809, 18, 6998, 812, 1564, 52, 4315, 11826, 422, 296, 21, 11, 578, 512, 952, 5160, 751, 18, 75, 80...
self._decomp = Sequence([DirichletGroup(p**r,R) for p, r \
return Sequence([DirichletGroup(p**r,R) for p, r \
def decomposition(self): r""" Returns the Dirichlet groups of prime power modulus corresponding to primes dividing modulus.
9c9051916e82d8e6549f10cbafc69b92d5f2a89f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9c9051916e82d8e6549f10cbafc69b92d5f2a89f/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 12, 2890, 4672, 436, 8395, 2860, 326, 8446, 1354, 1810, 3252, 434, 17014, 7212, 24770, 4656, 358, 846, 4485, 3739, 10415, 24770, 18, 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, 0, 0, 0, 0, 0, 0, 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, 26288, 12, 2890, 4672, 436, 8395, 2860, 326, 8446, 1354, 1810, 3252, 434, 17014, 7212, 24770, 4656, 358, 846, 4485, 3739, 10415, 24770, 18, 2, -100, -100, -100, -100, -100, -100, -100, -10...
sqc = SGEQueueConfig(runCommand(sge_queue_config_cmd, cp))
def getQueueInfo(cp): """ Looks up the queue and job information from SGE. @param cp: Configuration of site. @returns: A dictionary of queue data and a dictionary of job data. """ queue_list = {} sqc = SGEQueueConfig(runCommand(sge_queue_config_cmd, cp)) xml = runCommand(sge_queue_info_cmd, cp) handler = QueueInfoParser() parseXmlSax(xml, handler) queue_info = handler.getQueueInfo() for queue in queue_info: # get queue name name = queue['name'][:find(name, "@")] if not queue_list[name]: queue_list[name] = {'slots_used': 0, 'slots_total': 0, 'slots_free': 0, 'name' : name} queue_list[name]['slots_used'] += int(queue['slots_used']) queue_list[name]['slots_total'] += int(queue['slots_total']) queue_list[name]['slots_free'] = queue_list[name]['slots_total'] - queue_list[name]['slots_used'] queue_list[name]['arch'] = queue["arch"] queue_list[name]['max_running'] = queue_list[name]['slots_total'] state = queue["state"] if state == "d": status = "Draining" elif state == "s": status = "Closed" else: status = "Production" queue_list[name]['status'] = status queue_list[name]['priority'] = 0 # No such thing that I can find for a queue # How do you handle queues with no limit? if sqc['s_rt'].lower() == 'infinity': sqc['s_rt'] = '99999' if sqc['h_rt'].lower() == 'infinity': sqc['h_rt'] = '99999' max_wall = min(sqc['s_rt'], sqc['h_rt']) if not queue_list[name]['max_wall']: queue_list[name]['max_wall'] = max_wall else: queue_list[name]['max_wall'] = min(max_wall, queue_list[name]['max_wall']) waiting_jobs = 0 for job in queue_info['waiting']: waiting_jobs += 1 queue_list['waiting']['waiting'] = waiting_jobs return queue_list, queue_info
2289381e5c89a3d026abfdf686951ad780ff7492 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12088/2289381e5c89a3d026abfdf686951ad780ff7492/sge_common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19511, 966, 12, 4057, 4672, 3536, 10176, 87, 731, 326, 2389, 471, 1719, 1779, 628, 348, 7113, 18, 225, 632, 891, 3283, 30, 4659, 434, 2834, 18, 632, 6154, 30, 432, 3880, 434, 2389, 501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19511, 966, 12, 4057, 4672, 3536, 10176, 87, 731, 326, 2389, 471, 1719, 1779, 628, 348, 7113, 18, 225, 632, 891, 3283, 30, 4659, 434, 2834, 18, 632, 6154, 30, 432, 3880, 434, 2389, 501...
raise ConfigurationError(str(e))
raise ConfigurationError(unicode(e))
def getConfigClass(path): # This is implemented this way in order to import only the modules # that are requested. try: module = _getModule(path[0]) except InstantiationError, e: raise ConfigurationError(str(e)) return module.getConfigClass(path[1:])
a141192d53c691b0c801176b614c23983bcf0a22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5223/a141192d53c691b0c801176b614c23983bcf0a22/modelbasefactory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4367, 797, 12, 803, 4672, 468, 1220, 353, 8249, 333, 4031, 316, 1353, 358, 1930, 1338, 326, 4381, 468, 716, 854, 3764, 18, 225, 775, 30, 1605, 273, 389, 588, 3120, 12, 803, 63, 20, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4367, 797, 12, 803, 4672, 468, 1220, 353, 8249, 333, 4031, 316, 1353, 358, 1930, 1338, 326, 4381, 468, 716, 854, 3764, 18, 225, 775, 30, 1605, 273, 389, 588, 3120, 12, 803, 63, 20, 5...
if cond._num_streams < (2*num_routers*count)/3:
if num_streams < 0.65*((num_routers*count)/2.0):
def notlambda(this): cond.acquire() # TODO: Using the entry_gen router list is somewhat ghetto.. if (not this.selmgr.bad_restrictions) or \ (this.selmgr.path_selector.entry_gen.rstr_routers and \ this.selmgr.path_selector.exit_gen.rstr_routers): for r in this.selmgr.path_selector.entry_gen.rstr_routers: if r._generated[position] < count: cond._finished = False plog("DEBUG", "Entry router "+r.idhex+"="+r.nickname+" not done: "+str(r._generated[position])+", down: "+str(r.down)+", OK: "+str(this.selmgr.path_selector.entry_gen.rstr_list.r_is_ok(r))+", sorted_r: "+str(r in this.sorted_r)) # XXX: #break for r in this.selmgr.path_selector.exit_gen.rstr_routers: if r._generated[position] < count: cond._finished = False plog("DEBUG", "Exit router "+r.idhex+"="+r.nickname+" not done: "+str(r._generated[position])+", down: "+str(r.down)+", OK: "+str(this.selmgr.path_selector.exit_gen.rstr_list.r_is_ok(r))+", sorted_r: "+str(r in this.sorted_r)) # XXX: #break if cond._finished: num_routers = len( sets.Set(this.selmgr.path_selector.entry_gen.rstr_routers + this.selmgr.path_selector.exit_gen.rstr_routers)) if cond._num_streams < (2*num_routers*count)/3: plog("WARN", "Not enough streams yet. "+str(num_streams)+" < "+ str(2*num_routers*count/3)) cond._finished = False cond.notify() cond.release()
7f016d6db7a45b8863c264cadeb5df5c6efd63ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/7f016d6db7a45b8863c264cadeb5df5c6efd63ba/bwauthority.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 14661, 12, 2211, 4672, 6941, 18, 1077, 1039, 1435, 468, 2660, 30, 11637, 326, 1241, 67, 4507, 4633, 666, 353, 18016, 11304, 21409, 278, 869, 838, 309, 261, 902, 333, 18, 1786, 13552...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 14661, 12, 2211, 4672, 6941, 18, 1077, 1039, 1435, 468, 2660, 30, 11637, 326, 1241, 67, 4507, 4633, 666, 353, 18016, 11304, 21409, 278, 869, 838, 309, 261, 902, 333, 18, 1786, 13552...
users.remove(user) result = self.main.dbus_action.do_exec( users ,remote_cmd )
else: newusernames.append(user) result = self.main.dbus_action.do_exec( newusernames ,remote_cmd )
def menu_event_one(self, action): start1=time() (model, iter) = self.main.tabla.get_selection().get_selected() if iter == None: print_debug( "menu_event_one() not selected thin client !!!" ) return self.main.selected_host=model.get_value(iter,COL_HOST) self.main.selected_ip=model.get_value(iter, COL_IP) if not self.doaction_onthisclient(action, self.main.selected_ip): # show a msg shared.info_msg ( _("Can't exec this action because you are connected at this host!") ) return if action == 0: # refresh terminal # call to read remote info self.main.xmlrpc.newhost(self.main.selected_ip) self.main.xmlrpc.ip=self.main.selected_ip self.main.worker=shared.Workers( self.main,\ target=self.populate_datatxt, args=([self.main.selected_ip]) ).start() if action == 1: # clean datatxtbuffer self.main.datatxt.clean() if action == 2: # Ask for reboot reboot ip=self.main.selected_ip msg=_( _("Do you want to reboot %s?" ) %(self.main.selected_ip) ) if shared.ask_msg ( msg ): self.main.xmlrpc.Exe("reboot") if action == 3: # Ask for poweroff reboot msg=_( _("Do you want to poweroff %s?" ) %(self.main.selected_ip) ) if shared.ask_msg ( msg ): self.main.xmlrpc.Exe("poweroff") if action == 4: # lock screen if not self.main.xmlrpc.lockscreen(): shared.error_msg( _("Can't connect to tcosxmlrpc.\nPlease verify user and password in prefences!") ) return self.change_lockscreen(self.main.selected_ip) if action == 5: # unlock screen if not self.main.xmlrpc.unlockscreen(): shared.error_msg( _("Can't connect to tcosxmlrpc.\nPlease verify user and password in prefences!") ) return self.change_lockscreen(self.main.selected_ip) if action == 6: # start ivs self.main.worker=shared.Workers(self.main, target=self.start_ivs, args=([self.main.selected_ip]) ) self.main.worker.start() if action == 7: # start vnc self.main.worker=shared.Workers(self.main, target=self.start_vnc, args=([self.main.selected_ip]) ) self.main.worker.start() if action == 8: # screenshot !!! self.main.worker=shared.Workers(self.main, target=self.get_screenshot, args=[self.main.selected_ip]) self.main.worker.start() if action == 9: # give a remote xterm throught SSH pass_msg=_("Enter password of remote thin client (if asked for it)") cmd="xterm -e \"echo '%s'; ssh root@%s\"" %(pass_msg, self.main.selected_ip) print_debug ( "menu_event_one(%d) cmd=%s" %(action, cmd) ) th=self.main.exe_cmd( cmd ) if action == 10: # launch personalize settings if client is TCOS (PXES and LTSP not supported) client_type = self.main.xmlrpc.ReadInfo("get_client") if client_type == "tcos": cmd="gksu \"tcospersonalize --host=%s\"" %(self.main.selected_ip) print_debug ( "menu_event_one(%d) cmd=%s" %(action, cmd) ) th=self.main.exe_cmd( cmd ) else: shared.info_msg( _("%s is not supported to personalize!") %(client_type) ) if action == 11: # reset xorg # Ask for it if not self.main.localdata.IsLogged(self.main.selected_ip): shared.error_msg ( _("Can't logout, user is not logged") ) return user=self.main.localdata.GetUsernameAndHost(self.main.selected_ip) print_debug("menu_event_one() user=%s" %user) msg=_( _("Do you want to logout user \"%s\"?" ) %(user) ) if shared.ask_msg ( msg ): newusernames=[] remote_cmd="/usr/lib/tcos/session-cmd-send LOGOUT" if user.find(":") != -1: # we have a standalone user... usern, ip = user.split(":") self.main.xmlrpc.newhost(ip) self.main.xmlrpc.DBus("exec", remote_cmd ) else: newusernames.append(user) result = self.main.dbus_action.do_exec(newusernames ,remote_cmd ) if not result: shared.error_msg ( _("Error while exec remote app:\nReason:%s") %( self.main.dbus_action.get_error_msg() ) ) if action == 12: # restart xorg with new settings # thin client must download again XXX.XXX.XXX.XXX.conf and rebuild xorg.conf client_type = self.main.xmlrpc.ReadInfo("get_client") if client_type == "tcos": msg=_( "Restart X session of %s with new config?" ) %(self.main.selected_ip) if shared.ask_msg ( msg ): # see xmlrpc/xorg.h, rebuild will download and sed xorg.conf.tpl self.main.xmlrpc.tc.tcos.xorg("rebuild", "--restartxorg", \ self.main.xmlrpc.username, \ self.main.xmlrpc.password ) self.refresh_client_info(self.main.selected_ip) else: shared.info_msg( _("%s is not supported to restart Xorg!") %(client_type) ) if action == 13: # exec app self.askfor(mode="exec", users=[self.main.localdata.GetUsernameAndHost(self.main.selected_ip)]) if action == 14: # send message self.askfor(mode="mess", users=[self.main.localdata.GetUsernameAndHost(self.main.selected_ip)] ) if action == 15: print_debug ("menu_event_one() show running apps" ) self.get_user_processes(self.main.selected_ip) if action == 16: # action sent by vidal_joshur at gva dot es # start video broadcast mode # search for connected users users=[self.main.localdata.GetUsernameAndHost(self.main.selected_ip)] client=[self.main.selected_ip] dialog = gtk.FileChooserDialog(_("Select audio/video file.."), None, gtk.FILE_CHOOSER_ACTION_OPEN, (_("Play DVD"), 1, _("Play SVCD/VCD"), 2, _("Play AudioCD"), 3, gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) self.folder = self._folder = os.environ['HOME'] dialog.set_current_folder(self.folder) filter = gtk.FileFilter() filter.set_name("Media Files ( *.avi, *.mpg, *.mpeg, *.mp3, *.wav, etc.. )") file_types=["*.avi", "*.mpg", "*.mpeg", "*.ogg", "*.ogm", "*.asf", "*.divx", "*.wmv", "*.vob", "*.m2v", "*.m4v", "*.mp2", "*.mp4", "*.ac3", "*.ogg", "*.mp1", "*.mp2", "*.mp3", "*.wav", "*.wma"] for elem in file_types: filter.add_pattern( elem ) dialog.add_filter(filter) filter = gtk.FileFilter() filter.set_name("All Files") filter.add_pattern("*.*") dialog.add_filter(filter)
53a3eea66bbc168c70ea325ef8439de22d83ed8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/53a3eea66bbc168c70ea325ef8439de22d83ed8b/TcosActions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435...
def _find_module_from_filename(filename,verbosity): """ @return: The module contained in C{filename}. @rtype: C{module} @param filename: The filename that contains the module. @type filename: C{int} @param verbosity: Verbosity level for tracing output. @type verbosity: C{int} """ import epydoc.uid filename = os.path.normpath(os.path.abspath(filename)) name = re.sub(r'/?__init__\.py.?$', '', filename) name = re.sub(r'\.py[ocw]?$', '', name) name = re.sub(r'\.so$', '', name) name = re.sub(r'/$', '', name) (basedir, module) = os.path.split(name) if os.path.exists(os.path.join(basedir, '__init__.py')): package = [] while os.path.exists(os.path.join(basedir, '__init__.py')): (basedir,dir) = os.path.split(basedir) if dir == '': break package.append(dir) package.reverse() module = '.'.join(package+[module]) try: if verbosity > 1: print 'Importing', filename if verbosity > 1: sys.stdout.flush() if basedir: sys.path = [basedir] + sys.path try: return epydoc.uid._import_module(module) except Exception, e: print e print 'Warning: could not import %r [1]' % filename except SystemExit, e: print e print 'Warning: could not import %r [2]' % filename except: print 'Warning: could not import %r [3]' % filename except ImportError, e: if re.match(r'^.*__init__\.py?$', filename): raise ImportError("Run epydoc from the parent directory "+ "(%r):\n%s" % (filename, e)) raise ImportError("Could not find module %r:\n%s" % (filename, e))
def _parse_args(): """ Process the command line arguments; return a dictionary containing the relevant info. @return: A dictionary mapping from configuration parameters to values. If a parameter is specified on the command line, then that value is used; otherwise, a default value is used. Currently, the following configuration parameters are set: C{target}; C{modules}; C{verbosity}; C{prj_name}; C{check}; C{show_private}; and C{check_all}. @rtype: C{None} """ # Default values. argvals = {'target':'html', 'modules':[], 'verbosity':0, 'prj_name':'', 'check':0, 'show_private':0, 'check_all':0, 'show_imports':0} # Get the args (backwards, since we will pop them) args = sys.argv[1:] args.reverse() while args: arg = args.pop() if arg[:1] == '-': if arg in ('-o', '--output', '--target'): try: argvals['target'] = args.pop() except: _usage() elif arg in ('-n', '--name'): try: argvals['prj_name'] = args.pop() except: _usage() elif arg in ('-u', '--url'): try: argvals['prj_url'] = args.pop() except: _usage() elif arg in ('-V', '--version'): _version() elif arg in ('-v', '--verbose'): argvals['verbosity'] += 1 elif arg in ('-q', '--quiet'): argvals['verbosity'] -= 3 elif re.match('^-v+$', arg): argvals['verbosity'] += len(arg)-1 elif arg in ('--help', '-?', '--usage', '-h'): if len(args) == 1: _help(args[0]) elif len(args) == 0: _usage(0) else: _usage() elif arg in ('--check',): argvals['check'] = 1 elif arg in ('--show-imports', '--show_imports'): argvals['show_imports'] = 1 elif arg in ('-p',): argvals['show_private'] = 1 elif arg in ('-a', '-check_all'): argvals['check_all'] = 1 elif arg in ('--css', '-c'): argvals['css'] = args.pop() if argvals['css'] == 'help': _csshelp() else: _usage() else: argvals['modules'].append(arg) # This can prevent trouble sometimes when importing things. sys.argv[:] = ['(imported)'] if argvals['modules'] == []: _usage() return argvals
57e38b38561f72cf5c59ea2ad24ff0e222a5457f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/57e38b38561f72cf5c59ea2ad24ff0e222a5457f/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 1968, 13332, 3536, 4389, 326, 1296, 980, 1775, 31, 327, 279, 3880, 4191, 326, 9368, 1123, 18, 225, 632, 2463, 30, 432, 3880, 2874, 628, 1664, 1472, 358, 924, 18, 225, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 1968, 13332, 3536, 4389, 326, 1296, 980, 1775, 31, 327, 279, 3880, 4191, 326, 9368, 1123, 18, 225, 632, 2463, 30, 432, 3880, 2874, 628, 1664, 1472, 358, 924, 18, 225, 97...
skipping = 0
skipping = 0
def show_errors (self): """ Display all errors that occured during compilation. Return 0 if there was no error. """ pos = ["(no file)"] last_file = None showing = 0 # 1 if we are showing an error's text skipping = 0 # 1 if we are skipping text until a new line something = 0 # 1 if some error was displayed for line in self.lines: line = line.rstrip() if line == "": skipping = 0 elif skipping: pass elif showing: self.msg(0, line) if line[0:2] == "l." or line[0:3] == "***": showing = 0 skipping = 1 else: self.update_file(line, pos) elif line[0] == "!": if pos[-1] != last_file: last_file = pos[-1] self.msg(0, _("in file %s:") % last_file) self.msg(0, line) showing = 1 something = 1 else:
a68ab95e33b0de179210f64eea90e0dfd53390d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/a68ab95e33b0de179210f64eea90e0dfd53390d2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 4324, 261, 2890, 4672, 3536, 9311, 777, 1334, 716, 16206, 4982, 8916, 18, 2000, 374, 309, 1915, 1703, 1158, 555, 18, 3536, 949, 273, 8247, 12, 2135, 585, 2225, 65, 1142, 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, 2405, 67, 4324, 261, 2890, 4672, 3536, 9311, 777, 1334, 716, 16206, 4982, 8916, 18, 2000, 374, 309, 1915, 1703, 1158, 555, 18, 3536, 949, 273, 8247, 12, 2135, 585, 2225, 65, 1142, 67, ...