rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
['sage/matrix/change_ring.pyx'],libraries=[BLAS, BLAS2, 'gmp'], include_dirs=debian_include_dirs + [SAGE_ROOT+'/local/lib/python2.5/site-packages/numpy/core/include/numpy']) matrix_complex_double_dense=Extension('sage.matrix.matrix_complex_double_dense', ['sage/matrix/matrix_complex_double_dense.pyx'],libraries=[BLAS,...
['sage/matrix/change_ring.pyx'], libraries=[BLAS, BLAS2, 'gmp'], include_dirs=debian_include_dirs + [SAGE_ROOT+'/local/lib/python2.5/site-packages/numpy/core/include/numpy']) matrix_complex_double_dense = Extension('sage.matrix.matrix_complex_double_dense', ['sage/matrix/matrix_complex_double_dense.pyx'], libraries=[B...
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
1566a0251d3192d0d1c090cbeb6e117ad663da4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1566a0251d3192d0d1c090cbeb6e117ad663da4f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 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, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
if not seglenmin or rawStop-rawStart >= seglenmin: segList.append_from_tuple((segIndex,rawStart,rawStop,rawStop-rawStart)) segIndex=+1 segList.coalesce() return segList
segListTemp.append_from_tuple((segIndex,rawStart,rawStop,rawStop-rawStart)) segIndex=+1 segListTemp.coalesce() if not seglenmin: return segListTemp else: if segpading and 2*segpading >= seglenmin: sys.stderr.write("segpading must be smaller than seglenmin/2\n") sys.exit(1) segList = pipeline.ScienceData() for indice in...
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None): """ This method is designed to query the server specified by SERVERURL if not specified the method will use the environment variable S6_SEGMENT_SERVER to determine who to query. The method will...
1db0276c0a327c026312b15a4493debd643e8d7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/1db0276c0a327c026312b15a4493debd643e8d7c/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 8450, 1761, 564, 12, 20299, 33, 7036, 16, 20985, 1685, 33, 7036, 16, 20985, 4947, 33, 7036, 16, 6391, 33, 6430, 12, 8381, 3631, 1438, 1785, 33, 7036, 16, 2291, 461, 1546, 40, 615...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 8450, 1761, 564, 12, 20299, 33, 7036, 16, 20985, 1685, 33, 7036, 16, 20985, 4947, 33, 7036, 16, 6391, 33, 6430, 12, 8381, 3631, 1438, 1785, 33, 7036, 16, 2291, 461, 1546, 40, 615...
if (code in (301, 302, 303, 307) and req.method() in ("GET", "HEAD") or code in (302, 303) and req.method() == "POST"):
if "location" in headers: newurl = headers["location"] elif "uri" in headers: newurl = headers["uri"] else: return newurl = urlparse.urljoin(req.get_full_url(), newurl) m = req.get_method() if (code in (301, 302, 303, 307) and m in ("GET", "HEAD") or code in (302, 303) and m == "POST"):
def redirect_request(self, req, fp, code, msg, headers): """Return a Request or None in response to a redirect.
e78331b29e920d98657b744cfd8456079af4a7f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e78331b29e920d98657b744cfd8456079af4a7f9/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 2293, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 3536, 990, 279, 1567, 578, 599, 316, 766, 358, 279, 3136, 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, 3136, 67, 2293, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 3536, 990, 279, 1567, 578, 599, 316, 766, 358, 279, 3136, 18, 2, -100, -100, -100, -100, -100, -100, ...
self.name = self.info['title:filename']
self.name = self.info[FILETITLE]
def set_url(self, url, search_cover=True): """ Set a new url to the item and adjust all attributes depending on the url. Each MediaItem has to call this function. If info is True, search for additional information in mediadb. """ if isinstance(url, mediadb.ItemInfo): self.info = url url = url.url else: if url: log.erro...
8914e83d86f520c47817ebd3ec42959fc0feefbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/8914e83d86f520c47817ebd3ec42959fc0feefbf/item.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 718, 12, 2890, 16, 880, 16, 1623, 67, 3165, 33, 5510, 4672, 3536, 1000, 279, 394, 880, 358, 326, 761, 471, 5765, 777, 1677, 8353, 603, 326, 880, 18, 8315, 6128, 1180, 711, 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, 444, 67, 718, 12, 2890, 16, 880, 16, 1623, 67, 3165, 33, 5510, 4672, 3536, 1000, 279, 394, 880, 358, 326, 761, 471, 5765, 777, 1677, 8353, 603, 326, 880, 18, 8315, 6128, 1180, 711, 3...
jump_to_cell(id,-1, 1);
jump_to_cell(id,-1, true);
def javascript(): s = async_lib() s+= r"""
e6fb08349e221d66501eda534c46f5b9b355408f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/e6fb08349e221d66501eda534c46f5b9b355408f/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 4326, 67, 2941, 1435, 272, 15, 33, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 11341, 13332, 272, 273, 4326, 67, 2941, 1435, 272, 15, 33, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.body.append(doctest_to_html(str(node[0])))
self.body.append(doctest_to_html(pysrc))
def visit_doctest_block(self, node): pysrc = str(node[0]) if node.get('codeblock'): self.body.append(HTMLDoctestColorizer().colorize_codeblock(pysrc)) else: self.body.append(doctest_to_html(str(node[0]))) raise SkipNode()
77e65500931ed550238cd9ca132a6d4694d87605 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/77e65500931ed550238cd9ca132a6d4694d87605/restructuredtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2896, 299, 395, 67, 2629, 12, 2890, 16, 756, 4672, 21027, 1310, 273, 609, 12, 2159, 63, 20, 5717, 309, 756, 18, 588, 2668, 710, 2629, 11, 4672, 365, 18, 3432, 18, 6923, 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, 3757, 67, 2896, 299, 395, 67, 2629, 12, 2890, 16, 756, 4672, 21027, 1310, 273, 609, 12, 2159, 63, 20, 5717, 309, 756, 18, 588, 2668, 710, 2629, 11, 4672, 365, 18, 3432, 18, 6923, 12,...
if norm_path not in self._foldmap: if not os.path.exists(os.path.join(self._root, path)): return path self._foldmap[norm_path] = util.fspath(path, self._root) return self._foldmap[norm_path]
fold_path = self._foldmap.get(norm_path, None) if fold_path is None: if knownpath or not os.path.exists(os.path.join(self._root, path)): fold_path = path else: fold_path = self._foldmap.setdefault(norm_path, util.fspath(path, self._root)) return fold_path
def _normalize(self, path): norm_path = os.path.normcase(os.path.normpath(path)) if norm_path not in self._foldmap: if not os.path.exists(os.path.join(self._root, path)): return path self._foldmap[norm_path] = util.fspath(path, self._root) return self._foldmap[norm_path]
9d2ed00a307dcd8d4ecb0acc0860dea32531f7e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/9d2ed00a307dcd8d4ecb0acc0860dea32531f7e8/dirstate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12237, 12, 2890, 16, 589, 4672, 4651, 67, 803, 273, 1140, 18, 803, 18, 7959, 3593, 12, 538, 18, 803, 18, 7959, 803, 12, 803, 3719, 309, 4651, 67, 803, 486, 316, 365, 6315, 16007...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12237, 12, 2890, 16, 589, 4672, 4651, 67, 803, 273, 1140, 18, 803, 18, 7959, 3593, 12, 538, 18, 803, 18, 7959, 803, 12, 803, 3719, 309, 4651, 67, 803, 486, 316, 365, 6315, 16007...
raise Errors.MMNeedApproval, \ _('subscriptions to %s require administrator approval') % \ self.real_name
raise Errors.MMNeedApproval, _( 'subscriptions to %(realname)s require administrator approval')
def AddMember(self, name, password, digest=0, remote=None, lang=None):
d4117e2559487604b13fa55121d903681fad00c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d4117e2559487604b13fa55121d903681fad00c3/MailList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 4419, 12, 2890, 16, 508, 16, 2201, 16, 5403, 33, 20, 16, 2632, 33, 7036, 16, 3303, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 4419, 12, 2890, 16, 508, 16, 2201, 16, 5403, 33, 20, 16, 2632, 33, 7036, 16, 3303, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pl = Page(self.site, title) for pl2 in self.pages: if pl2.sectionFreeTitle() == pl.sectionFreeTitle(): if not hasattr(pl2,'_contents') and not hasattr(pl2,'_getexception'):
page = Page(self.site, title) for page2 in self.pages: if page2.sectionFreeTitle() == page.sectionFreeTitle(): if not hasattr(page2,'_contents') and not hasattr(page2,'_getexception'):
def oneDone(self, entry): title = entry.title username = entry.username ipedit = entry.ipedit timestamp = entry.timestamp text = entry.text editRestriction = entry.editRestriction moveRestriction = entry.moveRestriction pl = Page(self.site, title) for pl2 in self.pages: if pl2.sectionFreeTitle() == pl.sectionFreeTitle(...
7bae208fb5b06124e71a5603ccda36772d125b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7bae208fb5b06124e71a5603ccda36772d125b84/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1245, 7387, 12, 2890, 16, 1241, 4672, 2077, 273, 1241, 18, 2649, 2718, 273, 1241, 18, 5053, 277, 1845, 305, 273, 1241, 18, 625, 4619, 2858, 273, 1241, 18, 5508, 977, 273, 1241, 18, 955...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1245, 7387, 12, 2890, 16, 1241, 4672, 2077, 273, 1241, 18, 2649, 2718, 273, 1241, 18, 5053, 277, 1845, 305, 273, 1241, 18, 625, 4619, 2858, 273, 1241, 18, 5508, 977, 273, 1241, 18, 955...
fmt.format=%(format)s
fmt.format='%(format)s'
def get_basket_record(bskid, recid, format='hb'): """get record recid in basket bskid """ if recid < 0: rec_table = 'bskEXTREC' format_table = 'bskEXTFMT' id_field = 'id_bskEXTREC' sign = '-' else: rec_table = 'bibrec' format_table = 'bibfmt' id_field = 'id_bibrec' sign = '' query = """ SELECT DATE_FORMAT(record.creati...
7a37a9f9254cd71f247c81990326e764c960bb66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/7a37a9f9254cd71f247c81990326e764c960bb66/webbasket_dblayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26219, 67, 3366, 12, 2038, 79, 350, 16, 1950, 350, 16, 740, 2218, 76, 70, 11, 4672, 3536, 588, 1409, 1950, 350, 316, 12886, 7081, 79, 350, 3536, 309, 1950, 350, 411, 374, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26219, 67, 3366, 12, 2038, 79, 350, 16, 1950, 350, 16, 740, 2218, 76, 70, 11, 4672, 3536, 588, 1409, 1950, 350, 316, 12886, 7081, 79, 350, 3536, 309, 1950, 350, 411, 374, 30...
match = re.findall(conf.strings["imdb_plot_re"], page, re.MULTILINE) if match: self.plot = match[0] self.__setitem__("plot", self.plot)
def __parsePage(self, page):
94b2b16fd1c061001a6110209b8adf873a6b2c81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13971/94b2b16fd1c061001a6110209b8adf873a6b2c81/pythonbits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 1964, 12, 2890, 16, 1363, 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, 1001, 2670, 1964, 12, 2890, 16, 1363, 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, -10...
sys.exit(1)
raise CommandFailed
def create_loopback(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6498, 823, 12, 2890, 16, 1316, 67, 803, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6498, 823, 12, 2890, 16, 1316, 67, 803, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
line.fillColor = col line.strokeColor = None line.strokeWidth = 0 group.add(line) r = r + (c1.red - c0.red)/num g = g + (c1.green - c0.green)/num b = b + (c1.blue - c0.blue)/num
stripe.fillColor = col stripe.strokeColor = None stripe.strokeWidth = 0 group.add(stripe) if num > 1: r = r + (c1.red - c0.red) / (num-1) g = g + (c1.green - c0.green) / (num-1) b = b + (c1.blue - c0.blue) / (num-1)
def draw(self): # general widget bits group = Group() rect = Rect(self.x, self.y, self.width, self.height) rect.strokeColor = self.strokeColor rect.strokeWidth = self.strokeWidth rect.fillColor = None group.add(rect)
2a3e6fc48d80b9c6c5c11a9c8c3f597a854a27ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2a3e6fc48d80b9c6c5c11a9c8c3f597a854a27ab/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 7470, 3604, 4125, 1041, 273, 3756, 1435, 225, 4917, 273, 9315, 12, 2890, 18, 92, 16, 365, 18, 93, 16, 365, 18, 2819, 16, 365, 18, 4210, 13, 4917, 18, 16181...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 7470, 3604, 4125, 1041, 273, 3756, 1435, 225, 4917, 273, 9315, 12, 2890, 18, 92, 16, 365, 18, 93, 16, 365, 18, 2819, 16, 365, 18, 4210, 13, 4917, 18, 16181...
sage: J.ramified_at([109])
sage: J.ramified_at([109])
def ramified_at(self, S, d=None, var='a'): """ Return all fields in the database of degree d ramified exactly at the primes in S. The fields are ordered by degree and discriminant.
dab2a474ba73225ad2422efb1584fdc805479456 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dab2a474ba73225ad2422efb1584fdc805479456/jones.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24975, 939, 67, 270, 12, 2890, 16, 348, 16, 302, 33, 7036, 16, 569, 2218, 69, 11, 4672, 3536, 2000, 777, 1466, 316, 326, 2063, 434, 10782, 302, 24975, 939, 8950, 622, 326, 846, 4485, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24975, 939, 67, 270, 12, 2890, 16, 348, 16, 302, 33, 7036, 16, 569, 2218, 69, 11, 4672, 3536, 2000, 777, 1466, 316, 326, 2063, 434, 10782, 302, 24975, 939, 8950, 622, 326, 846, 4485, ...
self._cbPasswordMatch, credentials.username)
self._cbPasswordMatch, str(credentials.username))
def requestAvatarId(self, credentials): if credentials.username in self.users: return defer.maybeDeferred( credentials.checkPassword, self.users[credentials.username]).addCallback( self._cbPasswordMatch, credentials.username) else: return defer.fail(error.UnauthorizedLogin())
b4ac49dc5cb42efab698ccfca190816f2d3e27c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b4ac49dc5cb42efab698ccfca190816f2d3e27c6/checkers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 23999, 548, 12, 2890, 16, 4448, 4672, 309, 4448, 18, 5053, 316, 365, 18, 5577, 30, 327, 2220, 18, 19133, 16886, 12, 4448, 18, 1893, 3913, 16, 365, 18, 5577, 63, 11687, 18, 5053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 23999, 548, 12, 2890, 16, 4448, 4672, 309, 4448, 18, 5053, 316, 365, 18, 5577, 30, 327, 2220, 18, 19133, 16886, 12, 4448, 18, 1893, 3913, 16, 365, 18, 5577, 63, 11687, 18, 5053, ...
to_tmp = self.msg.getaddr('To')[1] self.tpl = self.tpl.replace('{TO}', to_tmp)
tmp_to = ' ' try: tmp_to = self.msg['To'] if (self.default_to == ''): self.default_to = tmp_to except: if (self.default_to != ''): tmp_to = self.default_to tmp_to = tmp_to.replace('@', self.config.getAntiSpam()) tmp_to = tmp_to.replace('<', '&lt;') tmp_to = tmp_to.replace('>', '&gt;') self.tpl = self.tpl.replace('{TO...
def intoRDF(self, message, n): self.msg = message self.template = Template() self.tpl = self.template.get('rdf_message')
8a88ddb68024c9a8cd1383a7b6e90e0791d40ee7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2232/8a88ddb68024c9a8cd1383a7b6e90e0791d40ee7/publisher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1368, 30137, 12, 2890, 16, 883, 16, 290, 4672, 365, 18, 3576, 273, 883, 365, 18, 3202, 273, 5035, 1435, 365, 18, 10933, 273, 365, 18, 3202, 18, 588, 2668, 19299, 67, 2150, 6134, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1368, 30137, 12, 2890, 16, 883, 16, 290, 4672, 365, 18, 3576, 273, 883, 365, 18, 3202, 273, 5035, 1435, 365, 18, 10933, 273, 365, 18, 3202, 18, 588, 2668, 19299, 67, 2150, 6134, 2, -...
self.startSignal.emit(self.__label, len(List))
self.startSignal.emit(self.__label, max(1,len(List)))
def start(self,List): """ Lance les calculs """ self.startSignal.emit(self.__label, len(List))
68bab74027a8ab80c2633287327377b36ac0c2d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12328/68bab74027a8ab80c2633287327377b36ac0c2d4/imagizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 682, 4672, 3536, 511, 1359, 18022, 3026, 87, 3536, 365, 18, 1937, 11208, 18, 18356, 12, 2890, 16186, 1925, 16, 562, 12, 682, 3719, 2, 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, 787, 12, 2890, 16, 682, 4672, 3536, 511, 1359, 18022, 3026, 87, 3536, 365, 18, 1937, 11208, 18, 18356, 12, 2890, 16186, 1925, 16, 562, 12, 682, 3719, 2, -100, -100, -100, -100, -100, -...
setName.upper()) def GenerateSource(file, functions, setName):
set_name.upper()) def GenerateSource(file, functions, set_name):
file.write('typedef %s (GL_BINDING_CALL *%sProc)(%s);\n' % (returnType, names[0], arguments))
218a5a204661ad6185f01d6233b35b2d5f86027b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/218a5a204661ad6185f01d6233b35b2d5f86027b/generate_bindings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 585, 18, 2626, 2668, 723, 536, 738, 87, 261, 11261, 67, 2739, 67, 13730, 380, 9, 87, 15417, 13, 9275, 87, 20472, 82, 11, 738, 261, 2463, 559, 16, 1257, 63, 20, 6487, 1775, 3719, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 585, 18, 2626, 2668, 723, 536, 738, 87, 261, 11261, 67, 2739, 67, 13730, 380, 9, 87, 15417, 13, 9275, 87, 20472, 82, 11, 738, 261, 2463, 559, 16, 1257, 63, 20, 6487, 1775, 3719, 2, -100, ...
return self.result / gst.MSECOND
if self.result is not None: return self.result / gst.MSECOND else: return None
def run(self, filename): gobject.idle_add(self.on_idle, filename) self.mainloop.run() return self.result / gst.MSECOND
d8f7db0dffecde600851ffd252a44cc4f75b7a0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/d8f7db0dffecde600851ffd252a44cc4f75b7a0e/gstreamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1544, 4672, 314, 1612, 18, 20390, 67, 1289, 12, 2890, 18, 265, 67, 20390, 16, 1544, 13, 365, 18, 5254, 6498, 18, 2681, 1435, 327, 365, 18, 2088, 342, 314, 334, 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, 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, 16, 1544, 4672, 314, 1612, 18, 20390, 67, 1289, 12, 2890, 18, 265, 67, 20390, 16, 1544, 13, 365, 18, 5254, 6498, 18, 2681, 1435, 327, 365, 18, 2088, 342, 314, 334, 18...
def get_group_id(group_name, login_method):
def get_group_id(group_name, login_method='INTERNAL'):
def get_group_id(group_name, login_method): """@return the id of the group called group_name with given login_method.""" return run_sql(""" SELECT id FROM usergroup WHERE login_method = %s AND name = %s""", (login_method, group_name,))
cad1da0b2432922d2660f99f4ac4e4b376b185b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3933/cad1da0b2432922d2660f99f4ac4e4b376b185b2/webgroup_dblayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1655, 67, 350, 12, 1655, 67, 529, 16, 3925, 67, 2039, 2218, 14005, 11, 4672, 3536, 36, 2463, 326, 612, 434, 326, 1041, 2566, 1041, 67, 529, 598, 864, 3925, 67, 2039, 12123, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1655, 67, 350, 12, 1655, 67, 529, 16, 3925, 67, 2039, 2218, 14005, 11, 4672, 3536, 36, 2463, 326, 612, 434, 326, 1041, 2566, 1041, 67, 529, 598, 864, 3925, 67, 2039, 12123, ...
or time module style time.""" try: return (self._d == t._d)
or time module style time. Revised to give more correct results through comparison of long integer milliseconds. """ try: return (self.millis() == t.millis())
def equalTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time equal to the specified DateTime or time module style time.""" try: return (self._d == t._d) except: re...
befc802c3f8f99550f565b61586bed86f5a03c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/befc802c3f8f99550f565b61586bed86f5a03c2d/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3959, 774, 12, 2890, 16, 88, 4672, 3536, 8583, 333, 3716, 733, 358, 4042, 3716, 733, 4869, 279, 13861, 1634, 1300, 4123, 487, 716, 1492, 353, 2106, 635, 326, 5790, 813, 1605, 18, 2860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3959, 774, 12, 2890, 16, 88, 4672, 3536, 8583, 333, 3716, 733, 358, 4042, 3716, 733, 4869, 279, 13861, 1634, 1300, 4123, 487, 716, 1492, 353, 2106, 635, 326, 5790, 813, 1605, 18, 2860, ...
if not isinstance(prec, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(prec, (int, long)): prec = Integer(prec)
def Zq(q, prec = 20, type = 'capped-abs', modulus = None, names=None, print_mode=None, halt = 40, zp_name = None, check = True): r""" Return an unramified extension of $\Z_p$. INPUT: q -- prime power prec -- integer (default: 20) type -- string (default: 'capped-abs'); see the documentation for Zp modulus -- polynomia...
b92340ea12db03897b3c1888cbbf80913f1ff7f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b92340ea12db03897b3c1888cbbf80913f1ff7f8/factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2285, 85, 12, 85, 16, 13382, 273, 4200, 16, 618, 273, 296, 5909, 1845, 17, 5113, 2187, 24770, 273, 599, 16, 1257, 33, 7036, 16, 1172, 67, 3188, 33, 7036, 16, 18389, 273, 8063, 16, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2285, 85, 12, 85, 16, 13382, 273, 4200, 16, 618, 273, 296, 5909, 1845, 17, 5113, 2187, 24770, 273, 599, 16, 1257, 33, 7036, 16, 1172, 67, 3188, 33, 7036, 16, 18389, 273, 8063, 16, 99...
--num-slides 50 --zero-data all_data --cluster-time 10"
--num-slides 50 --zero-data exclude_play --slide-data exclude_play --cluster-time 10"
def symlinksafe( target, linkname ): """ Creates a link, does not nag about when it already exists """ try: os.symlink( target, linkname ) except OSError, (errno, strerror): if errno==17: print "WARNING: link %s already exist" % (linkname) else: raise
a39d69fdc46f0fcef6c30be7abdc300b0fc6839f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/a39d69fdc46f0fcef6c30be7abdc300b0fc6839f/upperlimit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10563, 4626, 12, 1018, 16, 1692, 529, 262, 30, 3536, 10210, 279, 1692, 16, 1552, 486, 290, 346, 2973, 1347, 518, 1818, 1704, 3536, 775, 30, 1140, 18, 21278, 12, 1018, 16, 1692, 529, 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, 10563, 4626, 12, 1018, 16, 1692, 529, 262, 30, 3536, 10210, 279, 1692, 16, 1552, 486, 290, 346, 2973, 1347, 518, 1818, 1704, 3536, 775, 30, 1140, 18, 21278, 12, 1018, 16, 1692, 529, 26...
sys.stdout.write('
line = pyop.get_truncated_repr(MAX_OUTPUT_LEN) write_unicode(sys.stdout, '
def print_summary(self): if self.is_evalframeex(): pyop = self.get_pyop() if pyop: sys.stdout.write('#%i %s\n' % (self.get_index(), pyop.get_truncated_repr(MAX_OUTPUT_LEN))) sys.stdout.write(pyop.current_line()) else: sys.stdout.write('#%i (unable to read python frame information)\n' % self.get_index()) else: sys.stdou...
eb6a1a42be58e48fe663b03484915b038154ff1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/eb6a1a42be58e48fe663b03484915b038154ff1d/libpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7687, 12, 2890, 4672, 309, 365, 18, 291, 67, 8622, 3789, 338, 13332, 2395, 556, 273, 365, 18, 588, 67, 2074, 556, 1435, 309, 2395, 556, 30, 2589, 18, 10283, 18, 2626, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7687, 12, 2890, 4672, 309, 365, 18, 291, 67, 8622, 3789, 338, 13332, 2395, 556, 273, 365, 18, 588, 67, 2074, 556, 1435, 309, 2395, 556, 30, 2589, 18, 10283, 18, 2626, 2668, ...
self.OnSaveFileInWin(evt,activeWin)
self.OnSaveFileInWin(evt,activeWin)
def OnSaveFile(self,evt): activeWin = self.GetActiveChild( ); self.OnSaveFileInWin(evt,activeWin) # yssr
a80838c2381f3fc8cfc375d205893d1fbbe163d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11200/a80838c2381f3fc8cfc375d205893d1fbbe163d0/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4755, 812, 12, 2890, 16, 73, 11734, 4672, 2695, 18049, 273, 365, 18, 967, 3896, 1763, 12, 11272, 365, 18, 1398, 4755, 812, 382, 18049, 12, 73, 11734, 16, 3535, 18049, 13, 468, 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, 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, 2755, 4755, 812, 12, 2890, 16, 73, 11734, 4672, 2695, 18049, 273, 365, 18, 967, 3896, 1763, 12, 11272, 365, 18, 1398, 4755, 812, 382, 18049, 12, 73, 11734, 16, 3535, 18049, 13, 468, 67...
def IN_CLASSB(a): return ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000) IN_CLASSB_NET = 0xffff0000
def IN_CLASSB(a): return ((((in_addr_t)(a)) & (-1073741824)) == (-2147483648)) IN_CLASSB_NET = (-65536)
def IN_CLASSB(a): return ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000)
790e95fdfc3f46a9206393f77f1f8141643fbe2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/790e95fdfc3f46a9206393f77f1f8141643fbe2f/IN.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2120, 67, 5237, 38, 12, 69, 4672, 327, 261, 12443, 12, 267, 67, 4793, 67, 88, 21433, 69, 3719, 473, 374, 6511, 17877, 13, 422, 374, 92, 28, 17877, 13, 225, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2120, 67, 5237, 38, 12, 69, 4672, 327, 261, 12443, 12, 267, 67, 4793, 67, 88, 21433, 69, 3719, 473, 374, 6511, 17877, 13, 422, 374, 92, 28, 17877, 13, 225, 2, -100, -100, -100, -100,...
self.session.openWithCallback(self.installFinished, Console, ["ipkg install " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
self.session.openWithCallback(self.installFinished, Console, cmdlist = ["ipkg install " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
def runInstall(self, val): if val: if self.type == self.DOWNLOAD: self.session.openWithCallback(self.installFinished, Console, ["ipkg install " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name]) elif self.type == self.REMOVE: self.session.openWithCallback(self.installFinished, Console, ["ipkg remove "...
cadcfec58b20ce4a11c883d374aab5f4cdfbbe6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/cadcfec58b20ce4a11c883d374aab5f4cdfbbe6d/PluginBrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 6410, 12, 2890, 16, 1244, 4672, 309, 1244, 30, 309, 365, 18, 723, 422, 365, 18, 12711, 7783, 30, 365, 18, 3184, 18, 3190, 1190, 2428, 12, 2890, 18, 5425, 10577, 16, 9657, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 6410, 12, 2890, 16, 1244, 4672, 309, 1244, 30, 309, 365, 18, 723, 422, 365, 18, 12711, 7783, 30, 365, 18, 3184, 18, 3190, 1190, 2428, 12, 2890, 18, 5425, 10577, 16, 9657, 16, 1...
return u"The field '%s' was ambigous, the following options were suggested: %s" % (self.field, u", ".join(self.options)) else: return u"The field '%s' was ambigous" % unicode(self.field)
return "The field '%s' was ambigous, the following options were suggested: %s" % (self.field, ", ".join(self.options)) else: return "The field '%s' was ambigous" % unicode(self.field)
def __unicode__(self): if len(self.options): return u"The field '%s' was ambigous, the following options were suggested: %s" % (self.field, u", ".join(self.options)) else: return u"The field '%s' was ambigous" % unicode(self.field)
dd568e81c1b8182cd4ce3412e911e6ca45e46cbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7908/dd568e81c1b8182cd4ce3412e911e6ca45e46cbd/bsag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 309, 562, 12, 2890, 18, 2116, 4672, 327, 582, 6, 1986, 652, 1995, 87, 11, 1703, 13232, 360, 1481, 16, 326, 3751, 702, 4591, 22168, 30, 738, 87, 6, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9124, 972, 12, 2890, 4672, 309, 562, 12, 2890, 18, 2116, 4672, 327, 582, 6, 1986, 652, 1995, 87, 11, 1703, 13232, 360, 1481, 16, 326, 3751, 702, 4591, 22168, 30, 738, 87, 6, 73...
raise ModelError("This model does not have any k variable to plot in third dimension! Got " + er.message)
raise ModelError("This model does not have any k variable to plot! Got " + er.message)
def plotkcrosssection(self, fig=None, show=True, varindex=None, klist=None, kfunction=None, saveplot=False): """Plot results for different ks in 3d plot. Can only plot a single variable at a time.""" #Test whether model has run yet if self.runcount == 0: raise ModelError("Model has not been run yet, cannot plot results...
c4876e0df6b9e7a67eae1f1fba6af29f031cc588 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/c4876e0df6b9e7a67eae1f1fba6af29f031cc588/cosmomodels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 79, 14653, 3464, 12, 2890, 16, 4291, 33, 7036, 16, 2405, 33, 5510, 16, 569, 1615, 33, 7036, 16, 417, 1098, 33, 7036, 16, 417, 915, 33, 7036, 16, 1923, 4032, 33, 8381, 4672, 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, 3207, 79, 14653, 3464, 12, 2890, 16, 4291, 33, 7036, 16, 2405, 33, 5510, 16, 569, 1615, 33, 7036, 16, 417, 1098, 33, 7036, 16, 417, 915, 33, 7036, 16, 1923, 4032, 33, 8381, 4672, 353...
self.f77_switches = ' -pic'
self.f77_switches = ' -pic -f77 -ftrap=%none '
def __init__(self, fc=None, f90c=None, verbose=0): fortran_compiler_base.__init__(self, verbose=verbose)
1d5fd99dd359093961049f8d714af88005a851a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/1d5fd99dd359093961049f8d714af88005a851a1/build_flib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8036, 33, 7036, 16, 284, 9349, 71, 33, 7036, 16, 3988, 33, 20, 4672, 364, 13171, 67, 9576, 67, 1969, 16186, 2738, 972, 12, 2890, 16, 3988, 33, 11369, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8036, 33, 7036, 16, 284, 9349, 71, 33, 7036, 16, 3988, 33, 20, 4672, 364, 13171, 67, 9576, 67, 1969, 16186, 2738, 972, 12, 2890, 16, 3988, 33, 11369, 1...
avail_instruments = set(eventlists.keys())
def ligolw_thinca( xmldoc, program, process_id, EventListType, CoincTables, coinc_definer_row, event_comparefunc, thresholds, ntuple_comparefunc = lambda events: False, get_max_segment_gap = lambda xmldoc, thresholds: float("inf"), effective_snr_factor = 250.0, verbose = False
c03da7213eb606835bf8ddde25c4cd3cdc97b085 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/c03da7213eb606835bf8ddde25c4cd3cdc97b085/ligolw_thinca.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16917, 355, 91, 67, 451, 267, 5353, 12, 2025, 2434, 16, 5402, 16, 1207, 67, 350, 16, 2587, 19366, 16, 28932, 71, 6905, 16, 13170, 71, 67, 5649, 264, 67, 492, 16, 871, 67, 9877, 644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16917, 355, 91, 67, 451, 267, 5353, 12, 2025, 2434, 16, 5402, 16, 1207, 67, 350, 16, 2587, 19366, 16, 28932, 71, 6905, 16, 13170, 71, 67, 5649, 264, 67, 492, 16, 871, 67, 9877, 644, ...
raise "\nERROR: Invalid Tree Item. "
raise Exception("\nERROR: Invalid Tree Item. ")
def GetItemParent(self, item): """Gets the item parent."""
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1180, 3054, 12, 2890, 16, 761, 4672, 3536, 3002, 326, 761, 982, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1180, 3054, 12, 2890, 16, 761, 4672, 3536, 3002, 326, 761, 982, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _calcTickPositions(self):
def _calcStepAndTickPositions(self):
def _calcTickPositions(self): valueStep = getattr(self,'_computedValueStep',None) if valueStep: del self._computedValueStep self._valueStep = valueStep else: self._calcValueStep() valueStep = self._valueStep valueMin = self._valueMin valueMax = self._valueMax fuzz = 1e-8*valueStep rangeRound = self.rangeRound i0 = int(...
6167ecac4c19e1b70ea8ba58b40324e78339a6e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/6167ecac4c19e1b70ea8ba58b40324e78339a6e2/axes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12448, 4160, 1876, 6264, 11024, 12, 2890, 4672, 460, 4160, 273, 3869, 12, 2890, 11189, 67, 20307, 620, 4160, 2187, 7036, 13, 309, 460, 4160, 30, 1464, 365, 6315, 20307, 620, 4160, 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, 389, 12448, 4160, 1876, 6264, 11024, 12, 2890, 4672, 460, 4160, 273, 3869, 12, 2890, 11189, 67, 20307, 620, 4160, 2187, 7036, 13, 309, 460, 4160, 30, 1464, 365, 6315, 20307, 620, 4160, 3...
sage.structure.proof, or proof.[tab]). To override the default,
:mod:`sage.structure.proof.proof`, or proof.[tab]). To override the default,
def factor(n, proof=None, int_=False, algorithm='pari', verbose=0, **kwds): """ Returns the factorization of n. The result depends on the type of n. If n is an integer, factor returns the factorization of the integer n as an object of type Factorization. If n is not an integer, ``n.factor(proof=proof, **kwds)`` gets ...
2bbe2334c6ee2df9794388e492bb1effd39e27d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2bbe2334c6ee2df9794388e492bb1effd39e27d2/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 82, 16, 14601, 33, 7036, 16, 509, 67, 33, 8381, 16, 4886, 2218, 1065, 77, 2187, 3988, 33, 20, 16, 2826, 25577, 4672, 3536, 2860, 326, 5578, 1588, 434, 290, 18, 1021, 563, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 82, 16, 14601, 33, 7036, 16, 509, 67, 33, 8381, 16, 4886, 2218, 1065, 77, 2187, 3988, 33, 20, 16, 2826, 25577, 4672, 3536, 2860, 326, 5578, 1588, 434, 290, 18, 1021, 563, 1...
assert second == third
assert_equal(second,third)
def foo(): return "blah"
267b08d9c3e7613c126729a179f4503c91625e9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/267b08d9c3e7613c126729a179f4503c91625e9c/test_scxx_object.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8431, 13332, 327, 315, 3083, 9795, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8431, 13332, 327, 315, 3083, 9795, 6, 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...
log('getReferencedBox: %s' % repr(referencedBox))
def processForm(self, data=1, metadata=0, REQUEST=None, values=None): """ """ BaseFolder.processForm(self, data=data, metadata=metadata, REQUEST=REQUEST, values=values)
d31740e4e0e88e5cf7385595a59e32f85603fd86 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7973/d31740e4e0e88e5cf7385595a59e32f85603fd86/ECReviewBox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1204, 12, 2890, 16, 501, 33, 21, 16, 1982, 33, 20, 16, 12492, 33, 7036, 16, 924, 33, 7036, 4672, 3536, 3536, 3360, 3899, 18, 2567, 1204, 12, 2890, 16, 501, 33, 892, 16, 1982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1204, 12, 2890, 16, 501, 33, 21, 16, 1982, 33, 20, 16, 12492, 33, 7036, 16, 924, 33, 7036, 4672, 3536, 3536, 3360, 3899, 18, 2567, 1204, 12, 2890, 16, 501, 33, 892, 16, 1982, ...
return edit(pagename, editfun)
return edit(pagename, editfun, request)
def subfun(mo): old_keyval_pairs = mo.group(2).split(',') newargs=[] for key, val in zip(old_keyval_pairs[::2], old_keyval_pairs[1::2]): key = key.strip() if key == metakey: val = newmetaval newargs.append('%s,%s' % (key, val)) return '[[MetaData(%s)]]' % (string.join(newargs, ','))
f8623249f297dc15d6e1cf9b56651de0875a70f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/f8623249f297dc15d6e1cf9b56651de0875a70f3/MetaTableEdit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 12125, 12, 8683, 4672, 1592, 67, 856, 1125, 67, 11545, 273, 7344, 18, 1655, 12, 22, 2934, 4939, 12, 2187, 6134, 394, 1968, 33, 8526, 364, 498, 16, 1244, 316, 3144, 12, 1673, 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, 720, 12125, 12, 8683, 4672, 1592, 67, 856, 1125, 67, 11545, 273, 7344, 18, 1655, 12, 22, 2934, 4939, 12, 2187, 6134, 394, 1968, 33, 8526, 364, 498, 16, 1244, 316, 3144, 12, 1673, 67, ...
self.assertEqual(factory.host, '')
self.assertEqual(factory.host, DEFAULT_HOSTNAME)
def test_ftp_factory(self): factory = self.load_factory("""\ <ftp-server> address 84 </ftp-server> """) self.assert_(isinstance(factory, ZServer.datatypes.FTPServerFactory)) self.assertEqual(factory.host, '') self.assertEqual(factory.port, 84) self.check_prepare(factory) factory.create().close()
e9480b298c1f1b56e340d02ebc5a16d32fff28d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e9480b298c1f1b56e340d02ebc5a16d32fff28d0/test_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11727, 67, 6848, 12, 2890, 4672, 3272, 273, 365, 18, 945, 67, 6848, 2932, 3660, 64, 411, 11727, 17, 3567, 34, 1758, 23421, 7765, 11727, 17, 3567, 34, 3536, 13, 365, 18, 11231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11727, 67, 6848, 12, 2890, 4672, 3272, 273, 365, 18, 945, 67, 6848, 2932, 3660, 64, 411, 11727, 17, 3567, 34, 1758, 23421, 7765, 11727, 17, 3567, 34, 3536, 13, 365, 18, 11231...
loc,mat = expr.parse(instring,loc)
loc,mat = expr._parse(instring,loc)
def parseImpl( self, instring, loc, doActions=True ): startLoc = loc instrlen = len(instring) expr = self.expr while loc < instrlen: try: loc = expr.skipIgnorables( instring, loc ) expr.parse( instring, loc, doActions=False, callPreParse=False ) if self.includeMatch: skipText = instring[startLoc:loc] loc,mat = expr.par...
0d5c070900efe583f55b5d4d6525eb2686936701 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/0d5c070900efe583f55b5d4d6525eb2686936701/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 787, 1333, 273, 1515, 316, 10835, 273, 562, 12, 267, 1080, 13, 3065, 273, 365, 18, 8638, 1323, 1515, 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, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 787, 1333, 273, 1515, 316, 10835, 273, 562, 12, 267, 1080, 13, 3065, 273, 365, 18, 8638, 1323, 1515, 4...
def register(func, *targs, **kargs): """register a function to be executed upon normal program termination
atexit.register(handler1) atexit.register(handler2) atexit.register(handler2, 7, kw="abc")
def register(func, *targs, **kargs): """register a function to be executed upon normal program termination func - function to be called at exit targs - optional arguments to pass to func kargs - optional keyword arguments to pass to func """ _exithandlers.append((func, targs, kargs))
e022279a0785b70082e1d48d48e0a31661ce31f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e022279a0785b70082e1d48d48e0a31661ce31f7/test_atexit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 622, 8593, 18, 4861, 12, 4176, 21, 13, 622, 8593, 18, 4861, 12, 4176, 22, 13, 622, 8593, 18, 4861, 12, 4176, 22, 16, 2371, 16, 5323, 1546, 18947, 7923, 225, 1326, 300, 445, 358, 506, 2566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 622, 8593, 18, 4861, 12, 4176, 21, 13, 622, 8593, 18, 4861, 12, 4176, 22, 13, 622, 8593, 18, 4861, 12, 4176, 22, 16, 2371, 16, 5323, 1546, 18947, 7923, 225, 1326, 300, 445, 358, 506, 2566,...
'smooth', smooth, none, 'smooth %s'),
'smooth', smooth, None, 'smooth %s'),
def __del__(self): """Delete the referenced file."""
1ad1a64c1cb68257b9fa744cb8c97d06c68365e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9569/1ad1a64c1cb68257b9fa744cb8c97d06c68365e4/PlotItems.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 3536, 2613, 326, 8042, 585, 12123, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 3536, 2613, 326, 8042, 585, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print 'Error: All streams must have either one Z trace or a set of three ZNE traces' return
print 'Warning: All streams must have either one Z trace or a set of three ZNE traces. Stream discarded' self.streams.pop(i) continue
def __init__(self, streams = None, options = None): self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagFilt=False #False:no filter True:filter self.flagFiltTyp=0 #0: bandpass 1: bandstop 2:lowpass 3: highpass self.dictFiltTyp={'Bandpass':0, 'Bandstop':1, 'Lowpa...
50570db0175b1852c554a55b2bd91b8f3d8fb93f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/50570db0175b1852c554a55b2bd91b8f3d8fb93f/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, 2690, 2943, 16, 16176, 471, 20947, 702, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, 2690, 2943, 16, 16176, 471, 20947, 702, 365, 18,...
self.batch_size = 1
self.batch_size = 5
def initCommit(self): """Reset counters for a commit pass""" self.restoreState() request = self.tool.REQUEST rfg = request.form.get self.commit_changes = True self._firstoutput = True self.found = 0 self.position = 0 self.batch_size = 1 self.uids = rfg('uids')
2be9d2a75c5658b482f55b9ab1b306d87c49143a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/2be9d2a75c5658b482f55b9ab1b306d87c49143a/html2captioned.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 5580, 12, 2890, 4672, 3536, 7013, 13199, 364, 279, 3294, 1342, 8395, 365, 18, 13991, 1119, 1435, 590, 273, 365, 18, 6738, 18, 5519, 436, 2137, 273, 590, 18, 687, 18, 588, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 5580, 12, 2890, 4672, 3536, 7013, 13199, 364, 279, 3294, 1342, 8395, 365, 18, 13991, 1119, 1435, 590, 273, 365, 18, 6738, 18, 5519, 436, 2137, 273, 590, 18, 687, 18, 588, 365, 18...
if hasattr(sys, "gettotalrefcount"):
if hasattr(set, "test_c_api"):
def test_weakref(self): s = self.thetype('gallahad') p = proxy(s) self.assertEqual(str(p), str(s)) s = None self.assertRaises(ReferenceError, str, p)
e13cb0c884fb61e221f9176f175c0ae4e7c6e7da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e13cb0c884fb61e221f9176f175c0ae4e7c6e7da/test_set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 26008, 1734, 12, 2890, 4672, 272, 273, 365, 18, 451, 5872, 2668, 75, 454, 9795, 361, 6134, 293, 273, 2889, 12, 87, 13, 365, 18, 11231, 5812, 12, 701, 12, 84, 3631, 609, 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, 1842, 67, 26008, 1734, 12, 2890, 4672, 272, 273, 365, 18, 451, 5872, 2668, 75, 454, 9795, 361, 6134, 293, 273, 2889, 12, 87, 13, 365, 18, 11231, 5812, 12, 701, 12, 84, 3631, 609, 12,...
else: raise ParsingError("Unknown field in line '%s'" % line)
else: raise ParsingError("Unknown field in line '%s %s'" % (field, data))
def Record2RORP(record_string): """Given record_string, return RORPath For speed reasons, write the RORPath data dictionary directly instead of calling rorpath functions. Profiling has shown this to be a time critical function. """ data_dict = {} for field, data in line_parsing_regexp.findall(record_string): if fiel...
116c1209a0cae5b5009824bdc00ada09f9ae8e03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8033/116c1209a0cae5b5009824bdc00ada09f9ae8e03/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5059, 22, 2784, 52, 12, 3366, 67, 1080, 4672, 3536, 6083, 1409, 67, 1080, 16, 327, 534, 916, 743, 225, 2457, 8632, 14000, 16, 1045, 326, 534, 916, 743, 501, 3880, 5122, 3560, 434, 4440...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5059, 22, 2784, 52, 12, 3366, 67, 1080, 4672, 3536, 6083, 1409, 67, 1080, 16, 327, 534, 916, 743, 225, 2457, 8632, 14000, 16, 1045, 326, 534, 916, 743, 501, 3880, 5122, 3560, 434, 4440...
if self.ac.send_goal_and_wait(DoorGoal(self.userdata.door), rospy.Duration(30), rospy.Duration(30)):
if self.ac.send_goal_and_wait(DoorGoal(self.userdata.door), rospy.Duration(30), rospy.Duration(30)) == GoalStatus.SUCCEEDED:
def enter(self): if self.ac.send_goal_and_wait(DoorGoal(self.userdata.door), rospy.Duration(30), rospy.Duration(30)): result = self.ac.get_result() self.userdata.door = result.door if self.userdata.door.latch_state == Door.UNLATCHED: return 'unlatched' else: return 'closed' return 'aborted'
014afa19b0f4dea6133661c44bdeadda708a934d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9841/014afa19b0f4dea6133661c44bdeadda708a934d/executive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 12, 2890, 4672, 309, 365, 18, 1077, 18, 4661, 67, 27354, 67, 464, 67, 7048, 12, 3244, 280, 27716, 12, 2890, 18, 1355, 892, 18, 2896, 280, 3631, 721, 30884, 18, 5326, 12, 5082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 12, 2890, 4672, 309, 365, 18, 1077, 18, 4661, 67, 27354, 67, 464, 67, 7048, 12, 3244, 280, 27716, 12, 2890, 18, 1355, 892, 18, 2896, 280, 3631, 721, 30884, 18, 5326, 12, 5082, ...
""" Overridden to also add objects from the DataView """
""" Overridden to also add objects from the other views """
def getObjectsOfClass(self, theClass): """ Overridden to also add objects from the DataView """ results = InspectableObjectView.getObjectsOfClass(self, theClass) dataResults = {} for objName in self.dataView.objects.keys(): if isinstance(self.dataView.objects[objName][1], theClass): dataResults['self.'+objName] = self....
1b381dc89a6f0969a6f082aa071d7cd58eb3cc3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1b381dc89a6f0969a6f082aa071d7cd58eb3cc3f/Designer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4710, 951, 797, 12, 2890, 16, 326, 797, 4672, 3536, 531, 1107, 2794, 358, 2546, 527, 2184, 628, 326, 1308, 7361, 3536, 1686, 273, 20045, 429, 921, 1767, 18, 588, 4710, 951, 797, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4710, 951, 797, 12, 2890, 16, 326, 797, 4672, 3536, 531, 1107, 2794, 358, 2546, 527, 2184, 628, 326, 1308, 7361, 3536, 1686, 273, 20045, 429, 921, 1767, 18, 588, 4710, 951, 797, 1...
self.addSliders()
def __init__(self, client = None, streams = None, options = None): self.client = client self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagFilt=False #False:no filter True:filter self.flagFiltTyp=0 #0: bandpass 1: bandstop 2:lowpass 3: highpass self.dictFiltTyp...
4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1004, 273, 599, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 2625, 273, 1004, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1004, 273, 599, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 2625, 273, 1004, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, ...
def delaunayMap(face, size, performCleaning = True):
def delaunayMap(face, size, performCleaning = True, simplifyEpsilon = None):
def delaunayMap(face, size, performCleaning = True): "USAGE: dlm = delaunayMap(polygon, mapSize)" c = face.contours() jumpPoints = [0] points = contourPoly(c[0]) del points[-1] jumpPoints.append(len(points)) for anchor in c[1:]: points.extend(contourPoly(anchor)) del points[-1] jumpPoints.append(len(points)) print "-...
e6ece36f15e205163c70f96d923091aa1382e25c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/e6ece36f15e205163c70f96d923091aa1382e25c/delaunay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 69, 318, 528, 863, 12, 865, 16, 963, 16, 3073, 7605, 310, 273, 1053, 16, 16499, 29889, 10327, 273, 599, 4672, 315, 29550, 30, 8910, 81, 273, 1464, 69, 318, 528, 863, 12, 20917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 69, 318, 528, 863, 12, 865, 16, 963, 16, 3073, 7605, 310, 273, 1053, 16, 16499, 29889, 10327, 273, 599, 4672, 315, 29550, 30, 8910, 81, 273, 1464, 69, 318, 528, 863, 12, 20917, ...
</form>"""
</form> <br> <br>"""
def endaction(req,c=cdsname,ln=cdslang, doctype="", act="", startPg=1, indir="", access="",mainmenu="",fromdir="",file="",nextPg="",nbPg="",curpage=1,step=1,mode="U"): global rn,sysno,dismode,curdir,uid,uid_email,lats_step,action_score dismode = mode ln = wash_language(ln) sys.stdout = req t="" # get user ID: try: uid ...
bdeb27f5bde3d882c942513659e73a49938e2caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/bdeb27f5bde3d882c942513659e73a49938e2caf/websubmit_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 1128, 12, 3658, 16, 71, 33, 71, 2377, 529, 16, 2370, 33, 4315, 2069, 539, 16, 24909, 1546, 3113, 1328, 1546, 3113, 787, 27265, 33, 21, 16, 316, 1214, 1546, 3113, 2006, 1546, 3113,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 1128, 12, 3658, 16, 71, 33, 71, 2377, 529, 16, 2370, 33, 4315, 2069, 539, 16, 24909, 1546, 3113, 1328, 1546, 3113, 787, 27265, 33, 21, 16, 316, 1214, 1546, 3113, 2006, 1546, 3113,...
if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True: self.zoom_to_fit_window(None, False) else: self.center_image()
if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True: self.zoom_to_fit_window(None, False) else: self.center_image()
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit:
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, 2742, 67, 455, 1235, 12, 2890, 16, 3604, 16, 13481, 4672, 468, 2315, 326, 1316, 963, 603, 2742, 7041, 309, 326, 783, 1316, 1703, 1142, 4845, 30, 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, 2742, 67, 455, 1235, 12, 2890, 16, 3604, 16, 13481, 4672, 468, 2315, 326, 1316, 963, 603, 2742, 7041, 309, 326, 783, 1316, 1703, 1142, 4845, 30, 2, -100, -100, -100, -100, -100, -100, ...
s += write("var") s += space(result=s) s += write(node.get("identifier")) return s
r += cls.write("var") r += cls.space(result=r) r += cls.write(node.get("identifier")) return r
def opening(self, node): s = u'' if node.parent.type != "definitionList": s += write("var") s += space(result=s) s += write(node.get("identifier")) return s
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 309, 756, 18, 2938, 18, 723, 480, 315, 6907, 682, 6877, 272, 1011, 1045, 2932, 1401, 7923, 272, 1011, 3476, 12, 2088, 33, 87, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 309, 756, 18, 2938, 18, 723, 480, 315, 6907, 682, 6877, 272, 1011, 1045, 2932, 1401, 7923, 272, 1011, 3476, 12, 2088, 33, 87, 13, ...
def closeRadio(self):
def cancel(self):
def closeRadio(self): self.infobar.rds_display.onRassInteractivePossibilityChanged.remove(self.RassInteractivePossibilityChanged) self.info.hide() #set previous tv service self.close(None)
98e0c0f0c2dc8fc6ac18981d40bf869ae89fc6ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/98e0c0f0c2dc8fc6ac18981d40bf869ae89fc6ae/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 4672, 365, 18, 1376, 3215, 18, 86, 2377, 67, 5417, 18, 265, 54, 428, 26442, 1616, 17349, 5033, 18, 4479, 12, 2890, 18, 54, 428, 26442, 1616, 17349, 5033, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 4672, 365, 18, 1376, 3215, 18, 86, 2377, 67, 5417, 18, 265, 54, 428, 26442, 1616, 17349, 5033, 18, 4479, 12, 2890, 18, 54, 428, 26442, 1616, 17349, 5033, 13, 365, 18, ...
if current > 0: current -= 1
current = max(current-1, 0)
def inline(self, loop_operations, loop_args, jump_args): self.argmap = argmap = {} assert len(loop_args) == len(jump_args) for i in range(len(loop_args)): argmap[loop_args[i]] = jump_args[i]
102fb0d4c110a41dd59d270e685bbddd1cfd6d34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/102fb0d4c110a41dd59d270e685bbddd1cfd6d34/unroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6370, 12, 2890, 16, 2798, 67, 17542, 16, 2798, 67, 1968, 16, 11833, 67, 1968, 4672, 365, 18, 3175, 1458, 273, 1501, 1458, 273, 2618, 1815, 562, 12, 6498, 67, 1968, 13, 422, 562, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6370, 12, 2890, 16, 2798, 67, 17542, 16, 2798, 67, 1968, 16, 11833, 67, 1968, 4672, 365, 18, 3175, 1458, 273, 1501, 1458, 273, 2618, 1815, 562, 12, 6498, 67, 1968, 13, 422, 562, 12, ...
selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\
selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default...
778480334357616b82303c863b630decc9748d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/778480334357616b82303c863b630decc9748d34/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
def __init__(self, cfg, type):
def __init__(self, cfg, output, type):
def __init__(self, cfg, type): ## read input config from source file self.__config = self.readFromFile(cfg) ## create output config filename self.__outputConfig = "tmpConfig_" + type + "_cfg.py" ## define options self._options = {} self._options['source'] = "" ## change source self._options['output'] = "" ## change o...
ea013b2cf3192abb47deb940a3e33af9ddeb1e46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3254/ea013b2cf3192abb47deb940a3e33af9ddeb1e46/ConfigWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2776, 16, 876, 16, 618, 4672, 7541, 855, 810, 642, 628, 1084, 585, 365, 16186, 1425, 273, 365, 18, 896, 13087, 12, 7066, 13, 7541, 752, 876, 642, 1544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2776, 16, 876, 16, 618, 4672, 7541, 855, 810, 642, 628, 1084, 585, 365, 16186, 1425, 273, 365, 18, 896, 13087, 12, 7066, 13, 7541, 752, 876, 642, 1544, ...
def write_poscar(self, filename="POSCAR.out"):
def write_poscar(self, filename="POSCAR.out", fd=None):
def write_poscar(self, filename="POSCAR.out"): """Writes data into a POSCAR format file""" fc = "" # Contents of the file for a in self.atomNames: fc += str(a) + " " fc += "\n" + str(self.latticeConstant) + "\n" for i in range(0,3): for j in range(0,3): fc += str(self.basisVectors[i,j]) + " " fc += "\n" for at in self....
c73eff6ca0c055ffeaa578d0aef9802034203e05 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14986/c73eff6ca0c055ffeaa578d0aef9802034203e05/supercell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 917, 9815, 12, 2890, 16, 1544, 1546, 2419, 2312, 985, 18, 659, 3113, 5194, 33, 7036, 4672, 3536, 8368, 501, 1368, 279, 13803, 2312, 985, 740, 585, 8395, 8036, 273, 1408, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 917, 9815, 12, 2890, 16, 1544, 1546, 2419, 2312, 985, 18, 659, 3113, 5194, 33, 7036, 4672, 3536, 8368, 501, 1368, 279, 13803, 2312, 985, 740, 585, 8395, 8036, 273, 1408, 468, ...
assert_all(isfinite(array((-1.,))/0.) == 0) seterr(**olderr)
try: assert_all(isfinite(array((-1.,))/0.) == 0) finally: seterr(**olderr)
def test_neginf(self): olderr = seterr(divide='ignore') assert_all(isfinite(array((-1.,))/0.) == 0) seterr(**olderr)
5b22c87bed10fd5c3e028d23590e9b6dd5e8d3af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/5b22c87bed10fd5c3e028d23590e9b6dd5e8d3af/test_type_check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 82, 5022, 74, 12, 2890, 4672, 1592, 370, 273, 444, 370, 12, 2892, 831, 2218, 6185, 6134, 1815, 67, 454, 12, 291, 9551, 12, 1126, 12443, 17, 21, 12990, 3719, 19, 20, 12998, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 82, 5022, 74, 12, 2890, 4672, 1592, 370, 273, 444, 370, 12, 2892, 831, 2218, 6185, 6134, 1815, 67, 454, 12, 291, 9551, 12, 1126, 12443, 17, 21, 12990, 3719, 19, 20, 12998, ...
validproducts = self._valid_cart_products(cart)
allvalid = False validproducts = self._valid_products(order.orderitem_set)
def calc(self, order): # Use the order details and the discount specifics to calculate the actual discount discounted = {} if self.validProducts.count() == 0: allvalid = True else: validproducts = self._valid_cart_products(cart)
07f54bcfe71c4ba267ddc3dc833320807bee3ea0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/07f54bcfe71c4ba267ddc3dc833320807bee3ea0/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 12, 2890, 16, 1353, 4672, 468, 2672, 326, 1353, 3189, 471, 326, 12137, 2923, 87, 358, 4604, 326, 3214, 12137, 12137, 329, 273, 2618, 309, 365, 18, 877, 13344, 18, 1883, 1435, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 12, 2890, 16, 1353, 4672, 468, 2672, 326, 1353, 3189, 471, 326, 12137, 2923, 87, 358, 4604, 326, 3214, 12137, 12137, 329, 273, 2618, 309, 365, 18, 877, 13344, 18, 1883, 1435, 422, ...
c.ConnectList(node_list)
self._ConnectList(c, node_list)
def call_export_list(self, node_list): """Gets the stored exports list.
253482126e14ec90848550d2d2005740e45f62a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/253482126e14ec90848550d2d2005740e45f62a8/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 6530, 67, 1098, 12, 2890, 16, 756, 67, 1098, 4672, 3536, 3002, 326, 4041, 8095, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 745, 67, 6530, 67, 1098, 12, 2890, 16, 756, 67, 1098, 4672, 3536, 3002, 326, 4041, 8095, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gLogger.debug('No CEs defined for site %s' %candidate)
gLogger.debug( 'No CEs defined for site %s' % candidate )
def getSiteCEMapping(gridName=''): """ Returns a dictionary of all sites and their CEs as a list, e.g. {'LCG.CERN.ch':['ce101.cern.ch',...]} If gridName is specified, result is restricted to that Grid type. """ siteCEMapping = {} gridTypes = gConfig.getSections('Resources/Sites/',[]) if not gridTypes['OK']: gLogger.war...
22589f96877819f2316c9c3a130752773212d632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/22589f96877819f2316c9c3a130752773212d632/SiteCEMapping.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 1441, 3233, 12, 5222, 461, 2218, 11, 4672, 3536, 2860, 279, 3880, 434, 777, 9180, 471, 3675, 385, 6705, 487, 279, 666, 16, 425, 18, 75, 18, 13666, 13394, 43, 18, 39, 654, 50, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 1441, 3233, 12, 5222, 461, 2218, 11, 4672, 3536, 2860, 279, 3880, 434, 777, 9180, 471, 3675, 385, 6705, 487, 279, 666, 16, 425, 18, 75, 18, 13666, 13394, 43, 18, 39, 654, 50, ...
print "Error trying to schedule gpg key install for %s" % system['name']
print timestamp(), "! Error trying to schedule gpg key install for %s" % system['name']
def schedule_actions(key, systems): '''Schedules GPG key install, package install, and "smbios-sys-info" action on clients''' gpg_script = '''
07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4788, 67, 4905, 12, 856, 16, 14908, 4672, 9163, 27073, 28378, 498, 3799, 16, 2181, 3799, 16, 471, 315, 87, 1627, 7441, 17, 9499, 17, 1376, 6, 1301, 603, 7712, 26418, 22544, 67, 4263, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4788, 67, 4905, 12, 856, 16, 14908, 4672, 9163, 27073, 28378, 498, 3799, 16, 2181, 3799, 16, 471, 315, 87, 1627, 7441, 17, 9499, 17, 1376, 6, 1301, 603, 7712, 26418, 22544, 67, 4263, 2...
>>> xv, yv = meshgrid(x, y, sparse=False, indexing='ij')
>>> xv, yv = meshgrid(x, y, indexing='ij')
def meshgrid(x=None, y=None, z=None, sparse=False, indexing='xy', memoryorder=None): """ Extension of numpy.meshgrid to 1D, 2D and 3D problems. This extended version makes 1D/2D/3D coordinate arrays for vectorized evaluations of 1D/2D/3D scalar/vector fields over 1D/2D/3D grids, given one-dimensional coordinate arrays...
f31a5becba7083fdfe0984037ade3202bc54bbd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4727/f31a5becba7083fdfe0984037ade3202bc54bbd3/numpyutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6986, 5222, 12, 92, 33, 7036, 16, 677, 33, 7036, 16, 998, 33, 7036, 16, 9387, 33, 8381, 16, 14403, 2218, 1698, 2187, 3778, 1019, 33, 7036, 4672, 3536, 10021, 434, 3972, 18, 15557, 5222...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6986, 5222, 12, 92, 33, 7036, 16, 677, 33, 7036, 16, 998, 33, 7036, 16, 9387, 33, 8381, 16, 14403, 2218, 1698, 2187, 3778, 1019, 33, 7036, 4672, 3536, 10021, 434, 3972, 18, 15557, 5222...
self.failedSubmission.append( self.toSubmit.keys() )
self.failedSubmission.extend( self.toSubmit.keys() )
def submitJobs(self, schedSession, submissionAttrs ): """ __submitJobs__
dc81b812161d292b94a26b89b4373f6a1498fc9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/dc81b812161d292b94a26b89b4373f6a1498fc9e/BossLiteBulkInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 7276, 12, 2890, 16, 23964, 2157, 16, 8515, 8262, 262, 30, 3536, 1001, 9297, 7276, 972, 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, ...
[ 1, 1, 1, 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, 4879, 7276, 12, 2890, 16, 23964, 2157, 16, 8515, 8262, 262, 30, 3536, 1001, 9297, 7276, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
log.debug("press %d %d" % (event.x, event.y), "BoardView")
log.debug("press %d %d\n" % (event.x, event.y), "BoardControl")
def button_press (self, widget, event): self.pressed = True log.debug("press %d %d" % (event.x, event.y), "BoardView") self.grab_focus() cord = self.point2Cord (event.x, event.y) if not self.isSelectable(cord): self.view.active = None self.view.selected = None else: self.view.active = cord
ad41a63bf9d8f52cc47e0fadeaebbd176abce681 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/ad41a63bf9d8f52cc47e0fadeaebbd176abce681/BoardControl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 1028, 261, 2890, 16, 3604, 16, 871, 4672, 365, 18, 10906, 273, 1053, 613, 18, 4148, 2932, 1028, 738, 72, 738, 72, 64, 82, 6, 738, 261, 2575, 18, 92, 16, 871, 18, 93, 3631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 1028, 261, 2890, 16, 3604, 16, 871, 4672, 365, 18, 10906, 273, 1053, 613, 18, 4148, 2932, 1028, 738, 72, 738, 72, 64, 82, 6, 738, 261, 2575, 18, 92, 16, 871, 18, 93, 3631...
print regex
def extract(self, text): """ Given a bunch of text that is marked up using this template, extracts the data.
44a5e58ac07361c667417a4eb0c325454eef10f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/887/44a5e58ac07361c667417a4eb0c325454eef10f8/templatemaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 977, 4672, 3536, 16803, 279, 25606, 434, 977, 716, 353, 9350, 731, 1450, 333, 1542, 16, 16469, 326, 501, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 2608, 12, 2890, 16, 977, 4672, 3536, 16803, 279, 25606, 434, 977, 716, 353, 9350, 731, 1450, 333, 1542, 16, 16469, 326, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"Parses an ISO week (*yyyy-Www*), and returns a tuple with year
Parses an ISO week (*yyyy-Www*), and returns a tuple with year
def week(cls, date): """ "Parses an ISO week (*yyyy-Www*), and returns a tuple with year and week number. Leading zeroes may be omitted, even though the ISO standard requires them. """
5ecfcebcb1224336a96144a10eaa65b4462fb24b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4181/5ecfcebcb1224336a96144a10eaa65b4462fb24b/iso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4860, 12, 6429, 16, 1509, 4672, 3536, 2280, 2420, 392, 9351, 4860, 261, 14, 17722, 17, 59, 3107, 14, 3631, 471, 1135, 279, 3193, 598, 3286, 471, 4860, 1300, 18, 511, 684, 310, 3634, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4860, 12, 6429, 16, 1509, 4672, 3536, 2280, 2420, 392, 9351, 4860, 261, 14, 17722, 17, 59, 3107, 14, 3631, 471, 1135, 279, 3193, 598, 3286, 471, 4860, 1300, 18, 511, 684, 310, 3634, 28...
if len(t.strip()) == 0:
if r == 0: t = ' '
def html_in(self, do_print=False): id = self.__id t = self.__in.rstrip()
ce259a5b0aeb6985d5aec60f1994bc2168ee75b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ce259a5b0aeb6985d5aec60f1994bc2168ee75b8/cell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 267, 12, 2890, 16, 741, 67, 1188, 33, 8381, 4672, 612, 273, 365, 16186, 350, 268, 273, 365, 16186, 267, 18, 86, 6406, 1435, 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, 1729, 67, 267, 12, 2890, 16, 741, 67, 1188, 33, 8381, 4672, 612, 273, 365, 16186, 350, 268, 273, 365, 16186, 267, 18, 86, 6406, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
print builder
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) print builder config_widget = builder.get_object ('config_widget') config_widget.connect ('de...
85a5f9b53d524d361de10829cf86ea324c9a498d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/85a5f9b53d524d361de10829cf86ea324c9a498d/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, ...
'Content-type': 'text/html; charset=UTF-8'}
'content-type': 'text/html; charset=UTF-8'}
def __call__(self, environ, start_response): value = event.raise_event('call', self, environ, start_response) if value is not event.Continue: status, headers, app_iter = value start_response(status, headers) return app_iter self.environ = environ self.config = self.environ['paste.config'] if self.config.get('app_name')...
846cafa7a1a72b8503daa8e5d09afeedd5fc5087 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/846cafa7a1a72b8503daa8e5d09afeedd5fc5087/servlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 460, 273, 871, 18, 11628, 67, 2575, 2668, 1991, 2187, 365, 16, 5473, 16, 787, 67, 2740, 13, 309, 460, 353, 486, 871, 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, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 460, 273, 871, 18, 11628, 67, 2575, 2668, 1991, 2187, 365, 16, 5473, 16, 787, 67, 2740, 13, 309, 460, 353, 486, 871, 18,...
Fixtures().run()
AspyFixtures().run()
def tests(self): if self.confirm("For development purposes only. It may crash the application. Continue?"): Fixtures().run()
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7434, 12, 2890, 4672, 309, 365, 18, 10927, 2932, 1290, 17772, 13694, 1338, 18, 2597, 2026, 17053, 326, 2521, 18, 16773, 7225, 4672, 12139, 14960, 7675, 2681, 1435, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 7434, 12, 2890, 4672, 309, 365, 18, 10927, 2932, 1290, 17772, 13694, 1338, 18, 2597, 2026, 17053, 326, 2521, 18, 16773, 7225, 4672, 12139, 14960, 7675, 2681, 1435, 2, -100, -100, -100, -10...
fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK)
fcntl.fcntl(self.fd, FCNTL.F_SETFL, os.O_NONBLOCK)
def nonblocking(self): """internal - not portable!""" if self.fd is None: raise portNotOpenError fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK)
ed913ca9214c523c3e62d48996b325456a1325f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10955/ed913ca9214c523c3e62d48996b325456a1325f0/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 18926, 12, 2890, 4672, 3536, 7236, 300, 486, 1756, 429, 5, 8395, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 30894, 18, 7142, 16681, 12, 2890, 18, 8313, 16, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 18926, 12, 2890, 4672, 3536, 7236, 300, 486, 1756, 429, 5, 8395, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 30894, 18, 7142, 16681, 12, 2890, 18, 8313, 16, 47...
capacity = int(line.rsplit('=',1)[1]) / 1048576.0 print "[formatted] capacity =", capacity elif capacity == 1 and line.find("READ CAPACITY:") > -1: capacity = int(line.rsplit('=',1)[1]) / 1048576.0 print "[READ CAP] capacity =", capacity elif line.find("Disc status:") > -1: if line.find("blank") > -1: print "[Disc stat...
formatted_capacity = int(line.rsplit('=',1)[1]) / 1048576.0 print "[dvd+rw-mediainfo] formatted capacity =", formatted_capacity elif formatted_capacity == 0 and line.find("READ CAPACITY:") > -1: read_capacity = int(line.rsplit('=',1)[1]) / 1048576.0 print "[dvd+rw-mediainfo] READ CAPACITY =", read_capacity for line in ...
def mediainfoCB(self, mediuminfo, retval, extra_args): capacity = 1 used = 0 infotext = "" mediatype = "" for line in mediuminfo.splitlines(): if line.find("Mounted Media:") > -1: mediatype = line.rsplit(',',1)[1][1:] if mediatype.find("RW") > 0 or mediatype.find("RAM") > 0: self.formattable = True else: self.formattab...
e6a3b9fdb8f5ac0774a27794b175d79cf0973976 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/e6a3b9fdb8f5ac0774a27794b175d79cf0973976/DVDToolbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20623, 28935, 8876, 12, 2890, 16, 16212, 1376, 16, 5221, 16, 2870, 67, 1968, 4672, 7519, 273, 404, 1399, 273, 374, 8286, 352, 408, 273, 1408, 25381, 273, 1408, 364, 980, 316, 16212, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20623, 28935, 8876, 12, 2890, 16, 16212, 1376, 16, 5221, 16, 2870, 67, 1968, 4672, 7519, 273, 404, 1399, 273, 374, 8286, 352, 408, 273, 1408, 25381, 273, 1408, 364, 980, 316, 16212, 1376...
page = request.graphdata.getpage(arg) newpages = page.get_in().get(CATEGORY_KEY, list())
newpages = request.graphdata.get_in(arg).get(CATEGORY_KEY, list())
def can_be_read(name): return request.user.may.read(name)
39d92130482ec8ff27db46385f176520acf62ca7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/39d92130482ec8ff27db46385f176520acf62ca7/editing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 2196, 67, 896, 12, 529, 4672, 327, 590, 18, 1355, 18, 24877, 18, 896, 12, 529, 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,...
[ 1, 1, 1, 1, 1, 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, 848, 67, 2196, 67, 896, 12, 529, 4672, 327, 590, 18, 1355, 18, 24877, 18, 896, 12, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"""Testing the reviewrequests/unstar API with Does Not Exist error""" rsp = self.apiGet("reviewrequests/999/unstar", expected_status=404)
"""Testing the reviewrequests/<id>/?action=unstar API with Does Not Exist error""" rsp = self.apiPut("reviewrequests/999", {'action': 'unstar'}, expected_status=404)
def testReviewRequestUnstarWithDoesNotExist(self): """Testing the reviewrequests/unstar API with Does Not Exist error""" rsp = self.apiGet("reviewrequests/999/unstar", expected_status=404) self.assertEqual(rsp['stat'], 'fail') self.assertEqual(rsp['err']['code'], webapi.DOES_NOT_EXIST.code)
154ec92ec3bf19718348491a2c6d8aad9e4e21d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/154ec92ec3bf19718348491a2c6d8aad9e4e21d4/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9159, 691, 984, 10983, 1190, 15264, 12, 2890, 4672, 3536, 22218, 326, 10725, 11420, 28177, 350, 16893, 35, 1128, 33, 318, 10983, 1491, 598, 9637, 2288, 22558, 555, 8395, 12049, 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, 1842, 9159, 691, 984, 10983, 1190, 15264, 12, 2890, 4672, 3536, 22218, 326, 10725, 11420, 28177, 350, 16893, 35, 1128, 33, 318, 10983, 1491, 598, 9637, 2288, 22558, 555, 8395, 12049, 273, ...
pathname2 = os.path.join(dir, __random_string(maxlen))
pathname2 = os.path.join(head, __random_string(maxlen))
def wipe_name(pathname1): """Wipe the original filename and return the new pathname""" (dir, file) = os.path.split(pathname1) # reference http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits maxlen = 226 # first, rename to a long name i = 0 while True: try: pathname2 = os.path.join(dir, __random_string(maxlen...
c5173833808990c4dc6a44eb9af5414b6cab3930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/c5173833808990c4dc6a44eb9af5414b6cab3930/FileUtilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 3151, 67, 529, 12, 28336, 21, 4672, 3536, 59, 3151, 326, 2282, 1544, 471, 327, 326, 394, 9806, 8395, 261, 1214, 16, 585, 13, 273, 1140, 18, 803, 18, 4939, 12, 28336, 21, 13, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 3151, 67, 529, 12, 28336, 21, 4672, 3536, 59, 3151, 326, 2282, 1544, 471, 327, 326, 394, 9806, 8395, 261, 1214, 16, 585, 13, 273, 1140, 18, 803, 18, 4939, 12, 28336, 21, 13, 468...
self.spine[0:0] = [SpineItem(cfile)]
self.spine[0:0] = [SpineItem(cfile, mime_type='application/xhtml+xml')]
def __enter__(self, processed=False): self.delete_on_exit = [] self._tdir = TemporaryDirectory('_ebook_iter') self.base = self._tdir.__enter__() from calibre.ebooks.conversion.plumber import Plumber, create_oebbook plumber = Plumber(self.pathtoebook, self.base, self.log) plumber.setup_options() if self.pathtoebook.low...
c937c7cdce2d45e7f2aaea701ff124b71f6ad64d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/c937c7cdce2d45e7f2aaea701ff124b71f6ad64d/iterator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2328, 972, 12, 2890, 16, 5204, 33, 8381, 4672, 365, 18, 3733, 67, 265, 67, 8593, 273, 5378, 365, 6315, 88, 1214, 273, 22791, 2853, 2668, 67, 73, 3618, 67, 2165, 6134, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2328, 972, 12, 2890, 16, 5204, 33, 8381, 4672, 365, 18, 3733, 67, 265, 67, 8593, 273, 5378, 365, 6315, 88, 1214, 273, 22791, 2853, 2668, 67, 73, 3618, 67, 2165, 6134, 365, 18, ...
'fontname':'Times-Roman',
'fontName':'Times-Roman',
def prepareCanvas(self, canvas): """You can ask a LineStyle to set up the canvas for drawing the lines.""" canvas.setLineWidth(1) #etc. etc.
c6f096615961f3cc92a6eae7567071585913489d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/c6f096615961f3cc92a6eae7567071585913489d/styles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12971, 12, 2890, 16, 5953, 4672, 3536, 6225, 848, 6827, 279, 5377, 2885, 358, 444, 731, 326, 5953, 364, 16327, 326, 2362, 12123, 5953, 18, 542, 1670, 2384, 12, 21, 13, 468, 14175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 12971, 12, 2890, 16, 5953, 4672, 3536, 6225, 848, 6827, 279, 5377, 2885, 358, 444, 731, 326, 5953, 364, 16327, 326, 2362, 12123, 5953, 18, 542, 1670, 2384, 12, 21, 13, 468, 14175, ...
raise "CGIError", "cgi died by signal"
raise "CGIError", ( "cgi died by signal: %s" % ''.join(stderrl))
def _handleParentSide(pid, stdin, stdout, stderr, stdindata): stderrl = [] stdoutl = [] try: while 1: #DEBUG(EXTCGI, "in while") if stdindata: inlist = [stdin] else: inlist = [] r, w, e = select.select([stdout, stderr], inlist, [], 1) #DEBUG(EXTCGI, "rwe= %s %s %s" % (r,w,e)) #DEBUG(EXTCGI, "IOE= %s %s %s" % (stdin, s...
8a223c7cdbee7fb2d0585e768830b1498c4cbb41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/8a223c7cdbee7fb2d0585e768830b1498c4cbb41/extcgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 3054, 8895, 12, 6610, 16, 8801, 16, 3909, 16, 4514, 16, 2044, 728, 396, 4672, 4514, 80, 273, 5378, 3909, 80, 273, 5378, 775, 30, 1323, 404, 30, 468, 9394, 12, 4142, 39, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 3054, 8895, 12, 6610, 16, 8801, 16, 3909, 16, 4514, 16, 2044, 728, 396, 4672, 4514, 80, 273, 5378, 3909, 80, 273, 5378, 775, 30, 1323, 404, 30, 468, 9394, 12, 4142, 39, 13...
logging.error("Fatal error: Cannot contact DLS: %s" % str(int))
logging.error("Fatal error: Cannot contact DLS: %s" % str(inst))
def connectDLS(self): """ open a connection with the DLS server """ try: dlsapi = dlsClient.getDlsApi(dls_type = self.args["DLSType"], dls_endpoint = self.args["DLSAddress"]) except dlsApi.DlsApiError, inst: logging.error("Fatal error: Cannot contact DLS: %s" % str(int)) sys.exit(1)
8867e153db6ea686c32d908df26be3bfa5a0a029 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/8867e153db6ea686c32d908df26be3bfa5a0a029/MergeSensorComponent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 40, 3045, 12, 2890, 4672, 3536, 1696, 279, 1459, 598, 326, 463, 3045, 1438, 3536, 775, 30, 302, 3251, 2425, 273, 302, 3251, 1227, 18, 588, 40, 3251, 3064, 12, 72, 3251, 67, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 40, 3045, 12, 2890, 4672, 3536, 1696, 279, 1459, 598, 326, 463, 3045, 1438, 3536, 775, 30, 302, 3251, 2425, 273, 302, 3251, 1227, 18, 588, 40, 3251, 3064, 12, 72, 3251, 67, 723, ...
command = 'update -r %s' % tag else: command = 'update'
command = 'update -dPA -r %s' % tag else: command = 'update -dPA'
def cvs_update( user, tag, args ): if tag != 'CVS-HEAD': command = 'update -r %s' % tag else: command = 'update' os.chdir( os.path.join( regression_root, 'boost' ) ) retry( cvs_command , ( user, command ) , max_attempts=5 )
42e903364c90801affb03213c92d038ca6c9b6ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/42e903364c90801affb03213c92d038ca6c9b6ff/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 2725, 12, 729, 16, 1047, 16, 833, 262, 30, 309, 1047, 480, 296, 39, 14640, 17, 12458, 4278, 1296, 273, 296, 2725, 300, 72, 4066, 300, 86, 738, 87, 11, 738, 1047, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 2725, 12, 729, 16, 1047, 16, 833, 262, 30, 309, 1047, 480, 296, 39, 14640, 17, 12458, 4278, 1296, 273, 296, 2725, 300, 72, 4066, 300, 86, 738, 87, 11, 738, 1047, 469, ...
new.append(("%s (%s)" % (x.getName(), newInfo, 'N')))
new.append(("%s (%s -> N)" % (x.getName(), newInfo)))
def displayUpdateJobInfo(cs, verbose=False): indent = ' ' new = [] for x in cs.iterNewTroveList(): oldVersion = x.getOldVersion() newVersion = x.getNewVersion() oldFlavor = x.getOldFlavor() newFlavor = x.getNewFlavor() if newVersion: newTVersion = newVersion.trailingRevision() if oldVersion: oldTVersion = oldVersion...
01bfd0aa0b802d3ca6c9069974a0a920569b12c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/01bfd0aa0b802d3ca6c9069974a0a920569b12c4/updatecmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 1891, 2278, 966, 12, 2143, 16, 3988, 33, 8381, 4672, 3504, 273, 296, 565, 296, 394, 273, 5378, 364, 619, 316, 2873, 18, 2165, 1908, 56, 303, 537, 682, 13332, 1592, 1444, 273, 619...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 1891, 2278, 966, 12, 2143, 16, 3988, 33, 8381, 4672, 3504, 273, 296, 565, 296, 394, 273, 5378, 364, 619, 316, 2873, 18, 2165, 1908, 56, 303, 537, 682, 13332, 1592, 1444, 273, 619...
log.debug('findProg: %s, %s' % (chan, start))
if DEBUG: log.debug('findProg: %s, %s' % (chan, start))
def findProg(self, chan=None, start=None): global guide
f5737db8bd118592997fea5a5e16fdbead535f3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f5737db8bd118592997fea5a5e16fdbead535f3a/recordserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 626, 75, 12, 2890, 16, 3861, 33, 7036, 16, 787, 33, 7036, 4672, 2552, 7343, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 626, 75, 12, 2890, 16, 3861, 33, 7036, 16, 787, 33, 7036, 4672, 2552, 7343, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
else: self.preview = False
self.label.set_ellipsize(pango.ELLIPSIZE_END) else:
def __init__(self,window,groupbutton): self.groupbutton = groupbutton self.dockbar = groupbutton.dockbar self.screen = self.groupbutton.screen self.name = window.get_name() self.window = window self.locked = False self.is_active_window = False self.needs_attention = False self.opacified = False self.button_pressed = Fa...
d472c168498b2241a2352fc0f9f67f7c0f855ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/d472c168498b2241a2352fc0f9f67f7c0f855ee6/dockbarx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5668, 16, 1655, 5391, 4672, 365, 18, 1655, 5391, 273, 1041, 5391, 365, 18, 72, 975, 3215, 273, 1041, 5391, 18, 72, 975, 3215, 365, 18, 9252, 273, 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, 1001, 2738, 972, 12, 2890, 16, 5668, 16, 1655, 5391, 4672, 365, 18, 1655, 5391, 273, 1041, 5391, 365, 18, 72, 975, 3215, 273, 1041, 5391, 18, 72, 975, 3215, 365, 18, 9252, 273, 365, ...
Issuezilla and Trac are known). <name> is the name that will be used to
Issuezilla, Mantis and Trac are known). <name> is the name that will be used to
def add(self, irc, msg, args, name, trackertype, url, description): """<name> <type> <url> [<description>]
64db6d0589d20f4f62fe9df95123a49a53207a42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3104/64db6d0589d20f4f62fe9df95123a49a53207a42/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 508, 16, 9745, 723, 16, 880, 16, 2477, 4672, 3536, 32, 529, 34, 411, 723, 34, 411, 718, 34, 306, 32, 3384, 34, 65, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 508, 16, 9745, 723, 16, 880, 16, 2477, 4672, 3536, 32, 529, 34, 411, 723, 34, 411, 718, 34, 306, 32, 3384, 34, 65, 2, -100, -...
"""Hold a boundmethod for a slot, and return callables (for various arglists)
""" WARNING: the details in this docstring are obsolete as of sometime before 071004. Hold a boundmethod for a slot, and return callables (for various arglists)
def keep_under_key(thing, key, obj, attr): "obj.attr[key] = thing, creating obj.attr dict if necessary" if DEBUG_PRINT_UNDO and 0: print "keepkey:",key,"keepon_obj:",obj # also print attr to be complete # This shows unique keys, but just barely (name is deleg for lots of QActions) # so we'll have to worry about it, and...
aedf05b9ed0e7a1c49be3b6dcec0f67383272675 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/aedf05b9ed0e7a1c49be3b6dcec0f67383272675/undo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3455, 67, 9341, 67, 856, 12, 4274, 16, 498, 16, 1081, 16, 1604, 4672, 315, 2603, 18, 1747, 63, 856, 65, 273, 7757, 16, 4979, 1081, 18, 1747, 2065, 309, 4573, 6, 309, 6369, 67, 19350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3455, 67, 9341, 67, 856, 12, 4274, 16, 498, 16, 1081, 16, 1604, 4672, 315, 2603, 18, 1747, 63, 856, 65, 273, 7757, 16, 4979, 1081, 18, 1747, 2065, 309, 4573, 6, 309, 6369, 67, 19350,...
self.pop = pop.extractSubPops(self.subPops, rearrange);
self.pop = pop.extractSubPops(self.subPops, rearrange)
def prepareSample(self, pop, rearrange): '''Prepare passed population object for sampling according to parameter ``subPops``. If samples are drawn from the whole population, a population will be trimmed if only selected (virtual) subpopulations are used. If samples are drawn separately from specified subpopulations, po...
04cfab424e012af1f08d0375d11484529fa9e6fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/04cfab424e012af1f08d0375d11484529fa9e6fa/sampling.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 8504, 12, 2890, 16, 1843, 16, 283, 297, 3676, 4672, 9163, 7543, 2275, 11209, 733, 364, 11558, 4888, 358, 1569, 12176, 1717, 52, 4473, 68, 8338, 971, 5216, 854, 19377, 628, 326, 733...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 8504, 12, 2890, 16, 1843, 16, 283, 297, 3676, 4672, 9163, 7543, 2275, 11209, 733, 364, 11558, 4888, 358, 1569, 12176, 1717, 52, 4473, 68, 8338, 971, 5216, 854, 19377, 628, 326, 733...
mask = where(less(((((self.ax-x)**2)+((self.ay-y)**2)))**0.5, r), 1, 0)
mask = where(less(((((self.ax-x)**2)+((self.ay+y)**2)))**0.5, r), 1, 0)
def circmask(self, x, y, r): """hard vignette in place --- was image_circmask""" mask = where(less(((((self.ax-x)**2)+((self.ay-y)**2)))**0.5, r), 1, 0) a = pygame.surfarray.pixels2d(self.im) a[:] = mask * a
50d8f958ff6e476a6bcd0c58f2e17ac1881f3904 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5701/50d8f958ff6e476a6bcd0c58f2e17ac1881f3904/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18956, 4455, 12, 2890, 16, 619, 16, 677, 16, 436, 4672, 3536, 20379, 331, 724, 7637, 316, 3166, 9948, 1703, 1316, 67, 11614, 71, 4455, 8395, 3066, 273, 1625, 12, 2656, 12443, 12443, 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, 18956, 4455, 12, 2890, 16, 619, 16, 677, 16, 436, 4672, 3536, 20379, 331, 724, 7637, 316, 3166, 9948, 1703, 1316, 67, 11614, 71, 4455, 8395, 3066, 273, 1625, 12, 2656, 12443, 12443, 12, ...
def test_bytes_to_human(self): """Unit test for class bytes_to_human""" tests = [ ("1B", bytes_to_human(1)), ("1KB", bytes_to_human(1024)), ("1MB", bytes_to_human(1024*1024)), ("1GB", bytes_to_human(1024*1024*1024)), ("1TB", bytes_to_human(1024*1024*1024*1024)) ] for test in tests: self.assertEqual(test[0], test[1])
def test_children_in_directory(self): """Unit test for function children_in_directory()""" dirname = os.path.expanduser("~/.config") for filename in children_in_directory(dirname, True): self.assert_ (type(filename) is str) for filename in children_in_directory(dirname, False): self.assert_ (type(filename) is str)
81a2231d2f63ac0451aa99964795bd294910fbeb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/81a2231d2f63ac0451aa99964795bd294910fbeb/FileUtilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5906, 67, 267, 67, 5149, 12, 2890, 4672, 3536, 2802, 1842, 364, 445, 2325, 67, 267, 67, 5149, 1435, 8395, 4283, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1425, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5906, 67, 267, 67, 5149, 12, 2890, 4672, 3536, 2802, 1842, 364, 445, 2325, 67, 267, 67, 5149, 1435, 8395, 4283, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 1425, 79...
return True return form.errors['__all__']
return pyamf_success() return pyamf_errors(form.errors.values()[0])
def _contact(request, name, email, subject, content): if request.method == 'POST': datas = request.POST.copy() datas['subject'] = subject datas['content'] = content datas['name'] = name datas['email'] = email form = ContactForm(datas) if form.is_valid(): __contact(form) return True return form.errors['__all__'] return...
dd912a443f02a6e064e41c2f5178ddde683293b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/dd912a443f02a6e064e41c2f5178ddde683293b2/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8994, 12, 2293, 16, 508, 16, 2699, 16, 3221, 16, 913, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 5386, 273, 590, 18, 3798, 18, 3530, 1435, 225, 5386, 3292, 7857, 3546, 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, 8994, 12, 2293, 16, 508, 16, 2699, 16, 3221, 16, 913, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 5386, 273, 590, 18, 3798, 18, 3530, 1435, 225, 5386, 3292, 7857, 3546, 273, ...
branch = lrepo.dirstate.branch() butf8 = encoding.fromlocal(branch)
butf8 = lrepo.dirstate.branch() branch = encoding.tolocal(butf8) else: butf8 = encoding.fromlocal(branch)
def addbranchrevs(lrepo, repo, branches, revs): if not branches: return revs or None, revs and revs[0] or None revs = revs and list(revs) or [] if not repo.capable('branchmap'): revs.extend(branches) return revs, revs[0] branchmap = repo.branchmap() for branch in branches: if branch == '.': if not lrepo or not lrepo.lo...
248aa715e1f017db06d2791f180777f67ab425cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/248aa715e1f017db06d2791f180777f67ab425cb/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7500, 266, 6904, 12, 80, 7422, 16, 3538, 16, 11483, 16, 5588, 87, 4672, 309, 486, 11483, 30, 327, 5588, 87, 578, 599, 16, 5588, 87, 471, 5588, 87, 63, 20, 65, 578, 599, 5588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7500, 266, 6904, 12, 80, 7422, 16, 3538, 16, 11483, 16, 5588, 87, 4672, 309, 486, 11483, 30, 327, 5588, 87, 578, 599, 16, 5588, 87, 471, 5588, 87, 63, 20, 65, 578, 599, 5588, ...
self._base_ring = GF(q) self._field_of_definition = GF(q**2, var)
self._base_ring = GF(q, name=name) self._field_of_definition = GF(q**2, name)
def __init__(self, n, q, var='a'): id = 'PSU(%s,%s)'%(n,q) PermutationGroup_generic.__init__(self, id, from_group=True, check=False) self._q = q self._base_ring = GF(q) self._field_of_definition = GF(q**2, var) self._n = n
20f8599a5c63e0b4aa61487be1933077534aab59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/20f8599a5c63e0b4aa61487be1933077534aab59/permgroup_named.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 1043, 16, 569, 2218, 69, 11, 4672, 612, 273, 296, 5857, 57, 9275, 87, 15529, 87, 2506, 17105, 82, 16, 85, 13, 13813, 9245, 1114, 67, 13540, 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, 1001, 2738, 972, 12, 2890, 16, 290, 16, 1043, 16, 569, 2218, 69, 11, 4672, 612, 273, 296, 5857, 57, 9275, 87, 15529, 87, 2506, 17105, 82, 16, 85, 13, 13813, 9245, 1114, 67, 13540, 16...
"""Moves the review cursor to the next word of the current navigator object"""
def script_review_nextWord(self,keyPress,nextScript): """Moves the review cursor to the next word of the current navigator object""" obj=api.getNavigatorObject() if isinstance(obj,NVDAObjects.baseType.NVDAObject): obj.script_text_review_nextWord(keyPress,None) else: audio.speakMessage(_("no navigator object"))
c6388e71ad509ca538ed8be17f21eeb912f2f689 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/c6388e71ad509ca538ed8be17f21eeb912f2f689/_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 16041, 67, 4285, 3944, 12, 2890, 16, 856, 11840, 16, 4285, 3651, 4672, 1081, 33, 2425, 18, 588, 22817, 921, 1435, 309, 1549, 12, 2603, 16, 11679, 9793, 4710, 18, 1969, 559, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 16041, 67, 4285, 3944, 12, 2890, 16, 856, 11840, 16, 4285, 3651, 4672, 1081, 33, 2425, 18, 588, 22817, 921, 1435, 309, 1549, 12, 2603, 16, 11679, 9793, 4710, 18, 1969, 559, 1...
if os.spawnv(os.P_WAIT, '/bin/sh', ['sh', '-c', ' '.join(cmdline)]):
if subprocess.Popen(cmdline).wait():
def upstream_extract(self): self.log("Extracting tarball %s\n" % self.input_tar) match = re.match(r'(^|.*/)(?P<dir>linux-[\d.]+(-\S+)?)\.tar(\.(?P<extension>(bz2|gz)))?$', self.input_tar) if not match: raise RuntimeError("Can't identify name of tarball") cmdline = ['tar -xf', self.input_tar, '-C', self.dir] if match.gr...
a32bf27af8a58115fcc647057e15539ae089b0ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5794/a32bf27af8a58115fcc647057e15539ae089b0ba/genorig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13505, 67, 8004, 12, 2890, 4672, 365, 18, 1330, 2932, 4976, 310, 29441, 738, 87, 64, 82, 6, 738, 365, 18, 2630, 67, 11718, 13, 845, 273, 283, 18, 1916, 12, 86, 11, 12, 66, 96, 4509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13505, 67, 8004, 12, 2890, 4672, 365, 18, 1330, 2932, 4976, 310, 29441, 738, 87, 64, 82, 6, 738, 365, 18, 2630, 67, 11718, 13, 845, 273, 283, 18, 1916, 12, 86, 11, 12, 66, 96, 4509...
self.gamma = (1-beta)**(-0.5)
self.gamma = (1-beta**2)**(-0.5)
def __init__(self, units, nparticles, p_charge, p_mass, radii, emittances, beta, z_length, z_pos): """Construct a beam that is KV-distributed in (x,y) and uniform over an interval along z.
10dc67017e070a2129d78b71be1e55a27cf0792d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12869/10dc67017e070a2129d78b71be1e55a27cf0792d/kv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4971, 16, 1130, 16462, 16, 293, 67, 16385, 16, 293, 67, 10424, 16, 28125, 16, 3626, 88, 6872, 16, 6796, 16, 998, 67, 2469, 16, 998, 67, 917, 4672, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4971, 16, 1130, 16462, 16, 293, 67, 16385, 16, 293, 67, 10424, 16, 28125, 16, 3626, 88, 6872, 16, 6796, 16, 998, 67, 2469, 16, 998, 67, 917, 4672, 3536...
changes.append("Supporters") if changes and not no_reindex:
changed = 1 if changed and not no_reindex:
def _adjust_staff_roles(self, no_reindex=0): """Adjust local-role assignments to track staff roster settings. Ie, ensure: only designated supporters and managers have 'Reviewer' local role, only designated managers have 'Manager' local role.
24a39cd564978e192b223f8f380bf47af3c03bfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/24a39cd564978e192b223f8f380bf47af3c03bfb/Collector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13362, 67, 31096, 67, 7774, 12, 2890, 16, 1158, 67, 266, 1615, 33, 20, 4672, 3536, 10952, 1191, 17, 4615, 13610, 358, 3298, 28904, 721, 8190, 1947, 18, 467, 73, 16, 3387, 30, 1338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13362, 67, 31096, 67, 7774, 12, 2890, 16, 1158, 67, 266, 1615, 33, 20, 4672, 3536, 10952, 1191, 17, 4615, 13610, 358, 3298, 28904, 721, 8190, 1947, 18, 467, 73, 16, 3387, 30, 1338...
right_y = array([ 0.01492537])
right_y = 0.01492537
def test_pdist_canberra_ticket_711(self): "Tests pdist(X, 'canberra') to see if Canberra gives the right result as reported in Scipy bug report 711." eps = 1e-10 pdist_y = pdist(([3.3], [3.4]), "canberra") right_y = array([ 0.01492537]) print np.abs(pdist_y-right_y).max() self.failUnless(within_tol(y1, y2, eps))
42524e25d90cfdb0f6e35b82865271d230022b9b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/42524e25d90cfdb0f6e35b82865271d230022b9b/test_distance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 84, 4413, 67, 4169, 744, 354, 67, 16282, 67, 27, 2499, 12, 2890, 4672, 315, 14650, 293, 4413, 12, 60, 16, 296, 4169, 744, 354, 6134, 358, 2621, 309, 4480, 744, 354, 14758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 84, 4413, 67, 4169, 744, 354, 67, 16282, 67, 27, 2499, 12, 2890, 4672, 315, 14650, 293, 4413, 12, 60, 16, 296, 4169, 744, 354, 6134, 358, 2621, 309, 4480, 744, 354, 14758, ...
tasksWithName.remove(task) if len(tasksWithName) == 0: del self.nameDict[taskName] return 1
if task in tasksWithName: tasksWithName.remove(task) if len(tasksWithName) == 0: del self.nameDict[taskName] return 1
def __removeTaskFromNameDict(self, task): taskName = task.name # If this is the only task with that name, remove the dict entry tasksWithName = self.nameDict.get(taskName) if tasksWithName: tasksWithName.remove(task) if len(tasksWithName) == 0: del self.nameDict[taskName] return 1 return 0
b0bdc0639cc70de5353ab928771487812048aae2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/b0bdc0639cc70de5353ab928771487812048aae2/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4479, 2174, 29732, 5014, 12, 2890, 16, 1562, 4672, 20172, 273, 1562, 18, 529, 468, 971, 333, 353, 326, 1338, 1562, 598, 716, 508, 16, 1206, 326, 2065, 1241, 4592, 17557, 273, 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, 1001, 4479, 2174, 29732, 5014, 12, 2890, 16, 1562, 4672, 20172, 273, 1562, 18, 529, 468, 971, 333, 353, 326, 1338, 1562, 598, 716, 508, 16, 1206, 326, 2065, 1241, 4592, 17557, 273, 365, ...
print ('Time stamps out of order %s, %s' % (_ts, t))
print ("Time stamps out of order %s, %s" % (_ts, t))
def recover(inp, outp, verbose=0, partial=0, force=0, pack=0): print 'Recovering', inp, 'into', outp if os.path.exists(outp) and not force: die("%s exists" % outp) file = open(inp, "rb") if file.read(4) != ZODB.FileStorage.packed_version: die("input is not a file storage") file.seek(0,2) file_size = file.tell() ofs...
9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814/fsrecover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5910, 12, 31647, 16, 596, 84, 16, 3988, 33, 20, 16, 4702, 33, 20, 16, 2944, 33, 20, 16, 2298, 33, 20, 4672, 1172, 296, 27622, 310, 2187, 12789, 16, 296, 18591, 2187, 596, 84, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5910, 12, 31647, 16, 596, 84, 16, 3988, 33, 20, 16, 4702, 33, 20, 16, 2944, 33, 20, 16, 2298, 33, 20, 4672, 1172, 296, 27622, 310, 2187, 12789, 16, 296, 18591, 2187, 596, 84, 225, ...
def RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, prefix, o3djs):
def RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, prefix, o3djs, baseURL):
def RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, prefix, o3djs): """Executes the JSDocToolkit.""" list_filename = MakePath('../scons-out/docs/obj/doclist.conf') f = open(list_filename, 'w') f.write('{\nD:{\n') f.write('prefix: "%s",\n' % prefix) f.write('o3djs: "%s",\n' % o3djs) f.write('htmlOutDir: "%s",...
9d9f2f5d1a2c2c49b0ce17b27baaf2eca3663f36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/9d9f2f5d1a2c2c49b0ce17b27baaf2eca3663f36/build_docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 16, 1633, 16, 320, 23, 72, 2924, 16, 17480, 4672, 3536, 9763, 326, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 16, 1633, 16, 320, 23, 72, 2924, 16, 17480, 4672, 3536, 9763, 326, 6...