rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.gridlayout15.addWidget(self.dnaBasesPerTurnDoubleSpinBox,1,1,1,1)
self.gridlayout22.addWidget(self.dnaBasesPerTurnDoubleSpinBox,1,1,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
super(GenshiLexer, self).__init__(HtmlLexer, GenshiMarkupLexer,
super(GenshiLexer, self).__init__(XmlLexer, GenshiMarkupLexer,
def __init__(self, **options): super(GenshiLexer, self).__init__(HtmlLexer, GenshiMarkupLexer, **options)
8c3dc4d212781ac8fc3d715812710eebdbb4d18f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6148/8c3dc4d212781ac8fc3d715812710eebdbb4d18f/templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 2116, 4672, 2240, 12, 7642, 674, 77, 13356, 16, 365, 2934, 972, 2738, 972, 12, 4432, 13356, 16, 10938, 674, 77, 13111, 13356, 16, 2826, 2116, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 2116, 4672, 2240, 12, 7642, 674, 77, 13356, 16, 365, 2934, 972, 2738, 972, 12, 4432, 13356, 16, 10938, 674, 77, 13111, 13356, 16, 2826, 2116, 13, 2...
cover['cover'] = cover['thumbnail'].replace('/thumbs/', '/')
id = cover['thumbnail'].split("/")[-1].split(".")[0] cover['cover'] = self.root_url + "/res/exe/GetElement.php?ID=" + id
def __extract_from_list(self): """Extracts all the needed information from the already parsed search result page and adds the found cover to the list."""
e9e96ec5052955d2f8d3c4d37f97ba6a6e4cd740 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/e9e96ec5052955d2f8d3c4d37f97ba6a6e4cd740/albumart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8004, 67, 2080, 67, 1098, 12, 2890, 4672, 3536, 12809, 777, 326, 3577, 1779, 628, 326, 1818, 2707, 1623, 563, 1363, 471, 4831, 326, 1392, 5590, 358, 326, 666, 12123, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 2080, 67, 1098, 12, 2890, 4672, 3536, 12809, 777, 326, 3577, 1779, 628, 326, 1818, 2707, 1623, 563, 1363, 471, 4831, 326, 1392, 5590, 358, 326, 666, 12123, 2, -100, -100,...
"""Set the info for objects that does not have a getInfo function"""
"""Set the info for objects that does not have a getInfo function (Temporary workaround, should be deprecated soon)"""
def _setCachedInfo(self, info): """Set the info for objects that does not have a getInfo function""" self._cached_info = info
ec1304614ea5bc838c2f5bb83444fc59ac9c26d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/ec1304614ea5bc838c2f5bb83444fc59ac9c26d8/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 9839, 966, 12, 2890, 16, 1123, 4672, 3536, 694, 326, 1123, 364, 2184, 716, 1552, 486, 1240, 279, 17142, 445, 261, 11685, 18975, 16, 1410, 506, 6849, 17136, 15574, 225, 365, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 9839, 966, 12, 2890, 16, 1123, 4672, 3536, 694, 326, 1123, 364, 2184, 716, 1552, 486, 1240, 279, 17142, 445, 261, 11685, 18975, 16, 1410, 506, 6849, 17136, 15574, 225, 365, 631...
player.socket.sysmessage(str(material))
def checkmaterial(self, player, arguments, silent = 0): backpack = player.getbackpack()
14a5599a691a421a64bb0083fd5eb10c4aa0cf0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/14a5599a691a421a64bb0083fd5eb10c4aa0cf0d/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 20542, 12, 2890, 16, 7291, 16, 1775, 16, 10404, 273, 374, 4672, 1473, 2920, 273, 7291, 18, 588, 823, 2920, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 20542, 12, 2890, 16, 7291, 16, 1775, 16, 10404, 273, 374, 4672, 1473, 2920, 273, 7291, 18, 588, 823, 2920, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
<http://www.cgd.ucar.edu/cms/eaton/cf-metadata/CF-1.0.html accepted. The default is C{'standard'}, which corresponds to the mixed
<http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.1/cf-conventions.html are accepted. The default is C{'standard'}, which corresponds to the mixed
def __init__(self,unit_string,calendar='standard'): """
f1a8ea649b71709764626c8971eda6dbaaefa807 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8103/f1a8ea649b71709764626c8971eda6dbaaefa807/netcdftime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4873, 67, 1080, 16, 11650, 2218, 10005, 11, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 4873, 67, 1080, 16, 11650, 2218, 10005, 11, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tf = tarfile.open( os.path.join( cliParams.targetPath, tarName ), "r" ) cwd = os.getcwd() os.chdir(cliParams.targetPath) for member in tf.getmembers(): tf.extract( member ) os.chdir(cwd)
tarCmd = "tar xzf '%s' -C '%s'" % ( tarPath, cliParams.targetPath ) os.system( tarCmd )
def downloadAndExtractTarball( pkgVer, targetPath, subDir = False, checkHash = True ): if not subDir: subDir = "tars" tarName = "%s.tar.gz" % ( pkgVer ) tarPath = os.path.join( cliParams.targetPath, tarName ) try: if not urlretrieveTimeout( "%s/%s/%s" % ( cliParams.downBaseURL, subDir, tarName ), tarPath, 300 ): logERR...
2513efb597014ea03ea61ab8399b51003c14768f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2513efb597014ea03ea61ab8399b51003c14768f/dirac-install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 1876, 4976, 56, 23846, 12, 3475, 3945, 16, 15026, 16, 720, 1621, 273, 1083, 16, 866, 2310, 273, 1053, 262, 30, 309, 486, 720, 1621, 30, 720, 1621, 273, 315, 88, 5913, 6, 8232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 1876, 4976, 56, 23846, 12, 3475, 3945, 16, 15026, 16, 720, 1621, 273, 1083, 16, 866, 2310, 273, 1053, 262, 30, 309, 486, 720, 1621, 30, 720, 1621, 273, 315, 88, 5913, 6, 8232, ...
if not "PEM" in chan[0] or not "SEI" in chan[0]:
if not "PEM" in chan[0] and not "SEI" in chan[0]:
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
c64520f211dcf13695883191b82cf519c4889317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c64520f211dcf13695883191b82cf519c4889317/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
f.write(" [%s%s graph]" % (config.interwiki_graph_url, interwiki_graph.getFilename(self.originPage)))
filename = interwiki_graph.getFilename(self.originPage, extension = config.interwiki_graph_formats[0]) f.write(" [%s%s graph]" % (config.interwiki_graph_url, filename))
def problem(self, txt, createneed = True): """Report a problem with the resolution of this subject.""" wikipedia.output(u"ERROR: %s" % txt) self.confirm = True if createneed: self.problemfound = True if globalvar.autonomous: try: f = codecs.open('autonomous_problem.dat', 'a', 'utf-8') f.write("* %s {%s}" % (self.origin...
d07dad2b46ea74aff2f155dd1114d865c6427e0b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/d07dad2b46ea74aff2f155dd1114d865c6427e0b/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6199, 12, 2890, 16, 6463, 16, 1519, 270, 4009, 329, 273, 1053, 4672, 3536, 4820, 279, 6199, 598, 326, 7861, 434, 333, 3221, 12123, 21137, 18, 2844, 12, 89, 6, 3589, 30, 738, 87, 6, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6199, 12, 2890, 16, 6463, 16, 1519, 270, 4009, 329, 273, 1053, 4672, 3536, 4820, 279, 6199, 598, 326, 7861, 434, 333, 3221, 12123, 21137, 18, 2844, 12, 89, 6, 3589, 30, 738, 87, 6, 7...
if not torot: return Decimal(self)
def shift(self, other, context=None): """Returns a shifted copy of self, value-of-other times.""" if context is None: context = getcontext()
6f3900163a50d04ecae173e2703f626f5daf8318 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/6f3900163a50d04ecae173e2703f626f5daf8318/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4654, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 279, 21340, 1610, 434, 365, 16, 460, 17, 792, 17, 3011, 4124, 12123, 309, 819, 353, 599, 30, 819, 273, 336, 2472, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4654, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 279, 21340, 1610, 434, 365, 16, 460, 17, 792, 17, 3011, 4124, 12123, 309, 819, 353, 599, 30, 819, 273, 336, 2472, 1435, ...
os.write(f, "exec %s -c 'import sys; sys.exit(47)'\n" %
os.write(f, "exec '%s' -c 'import sys; sys.exit(47)'\n" %
def test_call_string(self): # call() function with string argument on UNIX f, fname = self.mkstemp() os.write(f, "#!/bin/sh\n") os.write(f, "exec %s -c 'import sys; sys.exit(47)'\n" % sys.executable) os.close(f) os.chmod(fname, 0700) rc = subprocess.call(fname) os.remove(fname) self.assertEqual(rc, 47)
40bd0d9f64b657d3aeef7ef49ebdf5a491e4d683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/40bd0d9f64b657d3aeef7ef49ebdf5a491e4d683/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1991, 67, 1080, 12, 2890, 4672, 468, 745, 1435, 445, 598, 533, 1237, 603, 23160, 284, 16, 5299, 273, 365, 18, 24816, 19781, 84, 1435, 1140, 18, 2626, 12, 74, 16, 6619, 5, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1991, 67, 1080, 12, 2890, 4672, 468, 745, 1435, 445, 598, 533, 1237, 603, 23160, 284, 16, 5299, 273, 365, 18, 24816, 19781, 84, 1435, 1140, 18, 2626, 12, 74, 16, 6619, 5, 1...
azi = __calc_azi(newpt[1], newpt[0])
azi = __calc_azi(newpt[0], newpt[1])
def __get_corner(point, transmat, orientmat, db): newpt = __point_transformation(point, transmat, orientmat) if db: print "New Point:", newpt pol = __calc_polar(newpt[0], newpt[1], newpt[2]) azi = __calc_azi(newpt[1], newpt[0]) return (pol, azi)
28b3e5cc90ae0cc78ae52a1b69d0df938babb351 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/762/28b3e5cc90ae0cc78ae52a1b69d0df938babb351/calc_dgs_params.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 30519, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 16, 1319, 4672, 394, 337, 273, 1001, 1153, 67, 2338, 1471, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 13, 309, 1319, 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, 1001, 588, 67, 30519, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 16, 1319, 4672, 394, 337, 273, 1001, 1153, 67, 2338, 1471, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 13, 309, 1319, 30, ...
- ``diffusion_matrix`` - if True the given matrix `l` is transformed to a matrix which performs the same operation over GF(2) as `l` over `GF(2^n)` (default: False).
- ``diffusion_matrix`` - if True the given matrix ``l`` is transformed to a matrix which performs the same operation over `\mathbb{F}_2` as ``l`` over `GF(2^n)` (default: ``False``).
def phi(self, l, diffusion_matrix=False): r""" Given a list/matrix of elements in `GF(2^n)`, return a matching list/matrix of elements in `GF(2)`. INPUT: - ``l`` - element to perform phi on. - ``diffusion_matrix`` - if True the given matrix `l` is transformed to a matrix which performs the same operation over GF(...
f145241e51a69266a2640a052ee008637b5d9160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f145241e51a69266a2640a052ee008637b5d9160/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7706, 12, 2890, 16, 328, 16, 3122, 7063, 67, 5667, 33, 8381, 4672, 436, 8395, 16803, 279, 666, 19, 5667, 434, 2186, 316, 1375, 43, 42, 12, 22, 66, 82, 13, 9191, 327, 279, 3607, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7706, 12, 2890, 16, 328, 16, 3122, 7063, 67, 5667, 33, 8381, 4672, 436, 8395, 16803, 279, 666, 19, 5667, 434, 2186, 316, 1375, 43, 42, 12, 22, 66, 82, 13, 9191, 327, 279, 3607, 666, ...
@login_required @view def diffpatch_mission(request, passed_data={}):
def diffpatch_data(request, passed_data={}):
def diffpatch_patchsingle_get_patch(request): return make_download(controllers.PatchSingleFileMission.get_patch(), filename=controllers.PatchSingleFileMission.PATCH_FILENAME)
8952b834a23d1cccb81c65653d763599d94b7c84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/8952b834a23d1cccb81c65653d763599d94b7c84/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 2272, 67, 2272, 7526, 67, 588, 67, 2272, 12, 2293, 4672, 327, 1221, 67, 7813, 12, 20171, 18, 7332, 5281, 812, 49, 19710, 18, 588, 67, 2272, 9334, 1544, 33, 20171, 18, 7332, 5281,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 2272, 67, 2272, 7526, 67, 588, 67, 2272, 12, 2293, 4672, 327, 1221, 67, 7813, 12, 20171, 18, 7332, 5281, 812, 49, 19710, 18, 588, 67, 2272, 9334, 1544, 33, 20171, 18, 7332, 5281,...
coltypes = dict( (v,k) for k,v in me.colspecs.iteritems() )
coltypes = dict( (v,k) for k,v in me.coltypes_sa2db.iteritems() ) coltypes.update( me.coltypes_db2sa)
def metadata( me, engine =None): coltypes = dict( (v,k) for k,v in me.colspecs.iteritems() ) engine = engine or me.engine me.metadata = metadata = sqlalchemy.MetaData( engine, reflect=True) for table in metadata.table_iterator(): table.name = plain( table.name) #print `table`
d3c06fd5b181cdf1d6d7c6fda6e03bdb23984a1f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/d3c06fd5b181cdf1d6d7c6fda6e03bdb23984a1f/autoload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1982, 12, 1791, 16, 4073, 273, 7036, 4672, 645, 2352, 273, 2065, 12, 261, 90, 16, 79, 13, 364, 417, 16, 90, 316, 1791, 18, 1293, 2352, 67, 13098, 22, 1966, 18, 2165, 3319, 1435, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1982, 12, 1791, 16, 4073, 273, 7036, 4672, 645, 2352, 273, 2065, 12, 261, 90, 16, 79, 13, 364, 417, 16, 90, 316, 1791, 18, 1293, 2352, 67, 13098, 22, 1966, 18, 2165, 3319, 1435, 262,...
print(keys) print(vals) raise Exception("Number of vals does not equal number of keys")
raise Exception("Number of vals does not equal number of keys. \ Number of vals are: "+str(len(vals))+" and number of keys are: "+str(len(keys)))
def get_x_initial_guess_values(self): """ Extract ValueReference and InitialGuess values for all differentiated variables. Returns: Dict with ValueReference as key and InitialGuess as value. """ keys = self._xpatheval("//ScalarVariable/ValueReference/text()[../../VariableCategory=\"state\"]") vals = self._xpatheval("...
f764f349d643190118591f5efb0058e97cef2494 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f764f349d643190118591f5efb0058e97cef2494/xmlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 67, 6769, 67, 20885, 67, 2372, 12, 2890, 4672, 3536, 8152, 1445, 2404, 471, 10188, 15977, 924, 364, 777, 3775, 10206, 3152, 18, 225, 2860, 30, 9696, 598, 1445, 2404, 487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 92, 67, 6769, 67, 20885, 67, 2372, 12, 2890, 4672, 3536, 8152, 1445, 2404, 471, 10188, 15977, 924, 364, 777, 3775, 10206, 3152, 18, 225, 2860, 30, 9696, 598, 1445, 2404, 487, ...
*args [Optional] Any additional arguments will be passed to the program deployed on vessels.
def init(geni_username, vesselcount, vesseltype, program_filename, *args): """ <Purpose> Initializes the deployment of an arbitrary service. Populates a global configuration dictionary and returns a dict of data that could be required by the run() function. init() must be called before the run() function. Note on the ...
1b25613d2fa7b3bee00f1cdf239a1636ed9f8e57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/1b25613d2fa7b3bee00f1cdf239a1636ed9f8e57/overlord.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 4507, 77, 67, 5053, 16, 331, 403, 292, 1883, 16, 331, 403, 292, 723, 16, 5402, 67, 3459, 16, 380, 1968, 4672, 3536, 411, 10262, 4150, 34, 10188, 3128, 326, 6314, 434, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 4507, 77, 67, 5053, 16, 331, 403, 292, 1883, 16, 331, 403, 292, 723, 16, 5402, 67, 3459, 16, 380, 1968, 4672, 3536, 411, 10262, 4150, 34, 10188, 3128, 326, 6314, 434, 392, ...
if (len(file_names) != 0):
if (len(file_names) != 0 and opts.compile):
def __call__(O, file_names): import sys opts = O.options lines = fable.cout.process( file_names=file_names, top_unit_name=opts.top_unit_name, dynamic_parameters=O.dynamic_parameters, fem_do_safe=not opts.no_fem_do_safe, arr_nd_size_max=opts.arr_nd_size_max, inline_all=opts.inline_all, common_equivalence_simple=set(opts...
a6eff680069c8f5a397712608c86c3acc22ab979 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/a6eff680069c8f5a397712608c86c3acc22ab979/cout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 51, 16, 585, 67, 1973, 4672, 1930, 2589, 1500, 273, 531, 18, 2116, 2362, 273, 284, 429, 18, 71, 659, 18, 2567, 12, 585, 67, 1973, 33, 768, 67, 1973, 16, 1760, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 51, 16, 585, 67, 1973, 4672, 1930, 2589, 1500, 273, 531, 18, 2116, 2362, 273, 284, 429, 18, 71, 659, 18, 2567, 12, 585, 67, 1973, 33, 768, 67, 1973, 16, 1760, ...
except: print "Error parsing regular expression: {0}".format(value)
except Exception, ex: raise ValueError("Invalid regular expression ({0}): {1}" .format(ex, value))
def parse_regexps(self): """ Parse the <common-regexps> section of the config file. """ regexps = getattr(self.xml, "common-regexps").findall("regexp") parsed = {} for regexp in regexps: name = regexp.get("name") value = regexp.get("value") try: parsed[name] = re.compile(value) except: print "Error parsing regular expr...
602803e6a0033e23887bd6eb59060617b67f6f96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4776/602803e6a0033e23887bd6eb59060617b67f6f96/policy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7584, 1121, 12, 2890, 4672, 3536, 2884, 326, 411, 6054, 17, 7584, 1121, 34, 2442, 434, 326, 642, 585, 18, 3536, 3936, 1121, 273, 3869, 12, 2890, 18, 2902, 16, 315, 6054, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7584, 1121, 12, 2890, 4672, 3536, 2884, 326, 411, 6054, 17, 7584, 1121, 34, 2442, 434, 326, 642, 585, 18, 3536, 3936, 1121, 273, 3869, 12, 2890, 18, 2902, 16, 315, 6054, 17, ...
for space_name, z in ambients :
for space_name, z, d, reverbGain in ambients : run("cp usertest/geometry_%s.data usertest/geometry"%space_name)
def run(command) : print "\033[32m$ %s\033[0m"%command os.system(command)==0 or die("Command failed: "+command)
4914e50661cc773b4059b4d78d451b5c9c092df4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1456/4914e50661cc773b4059b4d78d451b5c9c092df4/generateUserTests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 3076, 13, 294, 1172, 1548, 15265, 63, 1578, 81, 8, 738, 87, 64, 15265, 63, 20, 81, 28385, 3076, 1140, 18, 4299, 12, 3076, 13, 631, 20, 578, 10387, 2932, 2189, 2535, 30, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 3076, 13, 294, 1172, 1548, 15265, 63, 1578, 81, 8, 738, 87, 64, 15265, 63, 20, 81, 28385, 3076, 1140, 18, 4299, 12, 3076, 13, 631, 20, 578, 10387, 2932, 2189, 2535, 30, 137...
store.add((URIRef(uri), RDF['type'], SIOC['UserAccount']))
store.add((URIRef(uri), RDF.type, SIOC['UserAccount']))
def __toRDF(self): """ Dump mailing list into a RDF file """
6e3f3f56fc85dca087289f1359ab0a620afc7e2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2232/6e3f3f56fc85dca087289f1359ab0a620afc7e2e/mailinglist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 869, 30137, 12, 2890, 4672, 3536, 18242, 4791, 310, 666, 1368, 279, 13539, 585, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1001, 869, 30137, 12, 2890, 4672, 3536, 18242, 4791, 310, 666, 1368, 279, 13539, 585, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def exp(self, prec = infinity):
def exp(self, prec=None):
def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision.
099a2a1bde3f214221950460a7d5cfb14c6568d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/099a2a1bde3f214221950460a7d5cfb14c6568d5/power_series_ring_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 16, 13382, 33, 7036, 4672, 436, 8395, 2860, 1329, 434, 333, 7212, 4166, 358, 326, 17710, 6039, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1329, 12, 2890, 16, 13382, 33, 7036, 4672, 436, 8395, 2860, 1329, 434, 333, 7212, 4166, 358, 326, 17710, 6039, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def apply(self):
def apply(self,doc):
def apply(self): pass
53bc30fab33f4c6b74131668b2576a4ea888628b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7053/53bc30fab33f4c6b74131668b2576a4ea888628b/doctemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2434, 4672, 1342, 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, 2230, 12, 2890, 16, 2434, 4672, 1342, 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...
if self._check_version_git('1.5.5'):
if self.check_version_git('1.5.5'):
def _pull_current_branch(self, buildscript): """Pull the current branch if it is tracking a remote branch.""" if not self._is_tracking_a_remote_branch(self._get_current_branch()): return
f3dca446ec51b04ec85ec73c7ed97895744dff87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4596/f3dca446ec51b04ec85ec73c7ed97895744dff87/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13469, 67, 2972, 67, 7500, 12, 2890, 16, 1361, 4263, 4672, 3536, 9629, 326, 783, 3803, 309, 518, 353, 11093, 279, 2632, 3803, 12123, 309, 486, 365, 6315, 291, 67, 6440, 67, 69, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13469, 67, 2972, 67, 7500, 12, 2890, 16, 1361, 4263, 4672, 3536, 9629, 326, 783, 3803, 309, 518, 353, 11093, 279, 2632, 3803, 12123, 309, 486, 365, 6315, 291, 67, 6440, 67, 69, 67...
cr, uid, self.user_data(cr, uid, context), context)
cr, uid, self.user_data(cr, uid, new_id, context), context)
def create_user(self, cr, uid, context=None): ''' create a new res.user instance from the data stored in the current res.config.users ''' self.pool.get('res.users').create( cr, uid, self.user_data(cr, uid, context), context)
b35d51a3e5f603ea3bd0bd84308d8069a56c09ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/b35d51a3e5f603ea3bd0bd84308d8069a56c09ec/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 9163, 752, 279, 394, 400, 18, 1355, 791, 628, 326, 501, 4041, 316, 326, 783, 400, 18, 1425, 18, 5577, 9163, 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, 752, 67, 1355, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 9163, 752, 279, 394, 400, 18, 1355, 791, 628, 326, 501, 4041, 316, 326, 783, 400, 18, 1425, 18, 5577, 9163, 365,...
elif name == 'attachTime': self.attach_time = value elif name == 'instanceId': self.instance_id = value
def endElement(self, name, value, connection): if name == 'volumeId': self.id = value elif name == 'createTime': self.create_time = value elif name == 'attachTime': self.attach_time = value elif name == 'instanceId': self.instance_id = value elif name == 'status': if value != '': self.status = value elif name == 'size'...
aef9804e772e5695f707f7af308db82fe461feb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/aef9804e772e5695f707f7af308db82fe461feb4/volume.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 16, 460, 16, 1459, 4672, 309, 508, 422, 296, 9491, 548, 4278, 365, 18, 350, 273, 460, 1327, 508, 422, 296, 2640, 950, 4278, 365, 18, 2640, 67, 957, 273, 460...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 16, 460, 16, 1459, 4672, 309, 508, 422, 296, 9491, 548, 4278, 365, 18, 350, 273, 460, 1327, 508, 422, 296, 2640, 950, 4278, 365, 18, 2640, 67, 957, 273, 460...
elif c == '.' or ext:
elif c == '.': if ext: root, ext = root + ext, c else: ext = c elif ext:
def splitext(p): root, ext = '', '' for c in p: if c in '/\\': root, ext = root + ext + c, '' elif c == '.' or ext: ext = ext + c else: root = root + c return root, ext
73e122f56383e15dc8045caeb5cc853430dd96e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/73e122f56383e15dc8045caeb5cc853430dd96e9/ntpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11975, 12, 84, 4672, 1365, 16, 1110, 273, 10226, 875, 364, 276, 316, 293, 30, 309, 276, 316, 1173, 1695, 4278, 1365, 16, 1110, 273, 1365, 397, 1110, 397, 276, 16, 875, 1327, 276, 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, 11975, 12, 84, 4672, 1365, 16, 1110, 273, 10226, 875, 364, 276, 316, 293, 30, 309, 276, 316, 1173, 1695, 4278, 1365, 16, 1110, 273, 1365, 397, 1110, 397, 276, 16, 875, 1327, 276, 422, ...
def extract(self, *varNames): ''' Crate a new DataStore object with only the specified variables.
def extract(self, attrNames): ''' Crate a new DataStore object with only the specified attributes.
def extract(self, *varNames): ''' Crate a new DataStore object with only the specified variables. Arguments: *varNames : Variable names of the time series that should be in the new object; string Returns: New DataStore object. ''' #test if all requested variables are in the store myVars = set(self.attributeNames()) re...
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 1604, 1557, 4672, 9163, 385, 5141, 279, 394, 22961, 733, 598, 1338, 326, 1269, 1677, 18, 225, 13599, 30, 380, 1401, 1557, 294, 7110, 1257, 434, 326, 813, 4166, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 1604, 1557, 4672, 9163, 385, 5141, 279, 394, 22961, 733, 598, 1338, 326, 1269, 1677, 18, 225, 13599, 30, 380, 1401, 1557, 294, 7110, 1257, 434, 326, 813, 4166, 716, ...
tool[option] = value
tool[setting] = value
def _ToolAppend(tools, tool_name, option, value): if not value: return if not tools.get(tool_name): tools[tool_name] = dict() tool = tools[tool_name] if tool.get(option): if type(tool[option]) == list: tool[option] += value else: # TODO(bradnelson): Pick an exception class. print '@@@', option, tool[option], value rais...
5d4328382a6fdbe17089b3cfff76babe72d3e80d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/5d4328382a6fdbe17089b3cfff76babe72d3e80d/msvs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6364, 5736, 12, 6642, 16, 5226, 67, 529, 16, 1456, 16, 460, 4672, 309, 486, 460, 30, 327, 309, 486, 8513, 18, 588, 12, 6738, 67, 529, 4672, 8513, 63, 6738, 67, 529, 65, 273, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6364, 5736, 12, 6642, 16, 5226, 67, 529, 16, 1456, 16, 460, 4672, 309, 486, 460, 30, 327, 309, 486, 8513, 18, 588, 12, 6738, 67, 529, 4672, 8513, 63, 6738, 67, 529, 65, 273, 2...
ANDROID_ROOT = os.environ.get("ANDROID_BUILD_TOP") if not ANDROID_ROOT:
ANDROID_BUILD_TOP = os.environ.get("ANDROID_BUILD_TOP") if not ANDROID_BUILD_TOP:
def main(): global ANDROID_ROOT # Android project home directory global ICU_VERSION # ICU version number global ICUDATA # e.g. "icudt42l" global ICUDATA_DAT # e.g. "icudt42l.dat" global CLDR_VERSION # CLDR version. The value can be vary upon ICU release. global TMP_DAT_PATH # temp directory to store all re...
89f309f809ddaba6a3ba4a31a8ee74cfa5e85be3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10672/89f309f809ddaba6a3ba4a31a8ee74cfa5e85be3/icu_dat_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 4116, 1457, 734, 67, 9185, 225, 468, 15288, 1984, 6382, 1867, 2552, 28009, 67, 5757, 282, 468, 28009, 1177, 1300, 2552, 28009, 4883, 4202, 468, 425, 18, 75, 18, 315, 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, 2774, 13332, 2552, 4116, 1457, 734, 67, 9185, 225, 468, 15288, 1984, 6382, 1867, 2552, 28009, 67, 5757, 282, 468, 28009, 1177, 1300, 2552, 28009, 4883, 4202, 468, 425, 18, 75, 18, 315, 3...
if index > argumentCount: self.cancelArgumentation = 1
if index >= self.argumentCount-1: self.cancelArgumentation = 1
def findArguments(self, selectBest = 1, showClassification = 1, example = None): self.cancelArgumentation = 0 self.clearArguments() self.arguments = [[] for i in range(self.classValueList.count())] snapshots = self.createSnapshots if not example and self.subsetdata == None: QMessageBox.information( None, "VizRank Argu...
1922e1c90901187992cd760d65376cde614d1a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/1922e1c90901187992cd760d65376cde614d1a7a/OWkNNOptimization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4628, 12, 2890, 16, 2027, 14173, 273, 404, 16, 2405, 19168, 273, 404, 16, 3454, 273, 599, 4672, 365, 18, 10996, 1379, 367, 273, 374, 365, 18, 8507, 4628, 1435, 365, 18, 7099, 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, 1104, 4628, 12, 2890, 16, 2027, 14173, 273, 404, 16, 2405, 19168, 273, 404, 16, 3454, 273, 599, 4672, 365, 18, 10996, 1379, 367, 273, 374, 365, 18, 8507, 4628, 1435, 365, 18, 7099, 273...
file.write("<!-- %s -->" % _escape_cdata(node.text, encoding))
file.write(_encode("<!-- %s -->" % _escape_cdata(node.text), encoding))
def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new na...
f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e/ElementTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 24899, 3015, 2932, 5586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 24899, 3015, 2932, 5586, ...
'myapp',
'nulls',
def hack_path(): import os, sys common_path = os.path.join(os.path.abspath(os.path.dirname(".")), "..") sys.path.append(common_path)
15ebd1f5a338cda3afab26999cde80922ee4106f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/15ebd1f5a338cda3afab26999cde80922ee4106f/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11769, 67, 803, 13332, 1930, 1140, 16, 2589, 2975, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 2932, 1199, 13, 3631, 315, 838...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11769, 67, 803, 13332, 1930, 1140, 16, 2589, 2975, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 2932, 1199, 13, 3631, 315, 838...
b = time.clock()
b = timer()
def evolve(self, mode = 'serial'): b = time.clock() self.initialize(mode) self.pre_evolve() self.p_dev = self.pop_deviation() self.iteration_output() while ( self.gen < self.settings['gens'] and self.settings['p_deviation'] < self.p_dev ): self.step(1,mode) self.p_dev = self.pop_deviation() self.iteration_output() sel...
8418b2938a491bb6a337b1fba872055375ef3547 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8418b2938a491bb6a337b1fba872055375ef3547/algorithm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2113, 5390, 12, 2890, 16, 1965, 273, 296, 8818, 11, 4672, 324, 273, 5441, 1435, 365, 18, 11160, 12, 3188, 13, 365, 18, 1484, 67, 14965, 5390, 1435, 365, 18, 84, 67, 5206, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2113, 5390, 12, 2890, 16, 1965, 273, 296, 8818, 11, 4672, 324, 273, 5441, 1435, 365, 18, 11160, 12, 3188, 13, 365, 18, 1484, 67, 14965, 5390, 1435, 365, 18, 84, 67, 5206, 273, 365, 1...
self.id = nodeId nodeId += 1
def __init__(self, tokenizer=None, type=None, args=[]): global nodeId list.__init__(self) self.start = 0 self.end = 0 self.filename = None self.id = nodeId nodeId += 1
597e81a478924c90c02591a4852814987640ff42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/597e81a478924c90c02591a4852814987640ff42/Node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10123, 33, 7036, 16, 618, 33, 7036, 16, 833, 33, 8526, 4672, 2552, 11507, 225, 666, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 1937, 273, 374, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10123, 33, 7036, 16, 618, 33, 7036, 16, 833, 33, 8526, 4672, 2552, 11507, 225, 666, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 1937, 273, 374, 365, ...
>>> L.legval(-3, L.chebline(3,2))
>>> L.legval(-3, L.legline(3,2))
def legline(off, scl) : """ Legendre series whose graph is a straight line. Parameters ---------- off, scl : scalars The specified line is given by ``off + scl*x``. Returns ------- y : ndarray This module's representation of the Legendre series for ``off + scl*x``. See Also -------- polyline, chebline Examples --...
45020fb87b0558142d0f3ca873839663269cb2fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/45020fb87b0558142d0f3ca873839663269cb2fc/legendre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4553, 1369, 12, 3674, 16, 31648, 13, 294, 3536, 17167, 409, 266, 4166, 8272, 2667, 353, 279, 21251, 980, 18, 565, 7012, 12181, 3397, 16, 31648, 294, 23743, 1021, 1269, 980, 353, 864, 635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4553, 1369, 12, 3674, 16, 31648, 13, 294, 3536, 17167, 409, 266, 4166, 8272, 2667, 353, 279, 21251, 980, 18, 565, 7012, 12181, 3397, 16, 31648, 294, 23743, 1021, 1269, 980, 353, 864, 635...
print "shell placeholder"
root.init()
def main(): # defaults config_opts = {} setup_default_config_opts(config_opts) # cli option parsing (options, args) = command_parse() # config path -- can be overridden on cmdline config_path=MOCKCONFDIR if options.configdir: config_path = options.configdir # basic config for logging until config files are read logg...
863d42e7e6937981012968857cb74052971062b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/863d42e7e6937981012968857cb74052971062b1/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 3467, 642, 67, 4952, 273, 2618, 3875, 67, 1886, 67, 1425, 67, 4952, 12, 1425, 67, 4952, 13, 225, 468, 4942, 1456, 5811, 261, 2116, 16, 833, 13, 273, 1296, 67, 2670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 3467, 642, 67, 4952, 273, 2618, 3875, 67, 1886, 67, 1425, 67, 4952, 12, 1425, 67, 4952, 13, 225, 468, 4942, 1456, 5811, 261, 2116, 16, 833, 13, 273, 1296, 67, 2670, ...
atts['align'] = node['align']
atts['class'] += " align-" + node['align']
def visit_figure(self, node): atts = {'class': 'figure'} if node.get('width'): atts['style'] = 'width: %spx' % node['width'] if node.get('align'): atts['align'] = node['align'] self.body.append(self.starttag(node, 'div', **atts))
3b5d9921af9454a6b4d54ae6f689bc0155dafc62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/3b5d9921af9454a6b4d54ae6f689bc0155dafc62/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 19675, 12, 2890, 16, 756, 4672, 15687, 273, 13666, 1106, 4278, 296, 19675, 11, 97, 309, 756, 18, 588, 2668, 2819, 11, 4672, 15687, 3292, 4060, 3546, 273, 296, 2819, 30, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19675, 12, 2890, 16, 756, 4672, 15687, 273, 13666, 1106, 4278, 296, 19675, 11, 97, 309, 756, 18, 588, 2668, 2819, 11, 4672, 15687, 3292, 4060, 3546, 273, 296, 2819, 30, 738, ...
def function(self, args, defn, repr=None, latex=None): """ Return the Axiom function with given arguments and definition. INPUT: args -- a string with variable names separated by commas defn -- a string (or Axiom expression) that defines a function of the arguments in Axiom. repr -- an optional string; if given, this...
def _false_symbol(self): return 'false'
c37aae41caccee4a71a6b90ea9abcd5b070a7522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c37aae41caccee4a71a6b90ea9abcd5b070a7522/axiom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5743, 67, 7175, 12, 2890, 4672, 327, 296, 5743, 11, 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, 389, 5743, 67, 7175, 12, 2890, 4672, 327, 296, 5743, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
this = apply(_quickfix.new_PrevClosePx, args)
this = _quickfix.new_PrevClosePx(*args)
def __init__(self, *args): this = apply(_quickfix.new_PrevClosePx, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 9958, 4605, 21776, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 9958, 4605, 21776, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
elif self.r2 < d < self.r3:
elif self.r2 < d <= self.r3:
def area_at(self, x,y): dx = x-self.x0 dy = y-self.y0 d = sqrt(dx*dx+dy*dy) sq2 = sqrt(2.0) cmp_M = self.M/2.0 cmp_r = (sq2-1)*cmp_M/(2*sq2) cmp_x0 = self.x0+cmp_M-cmp_r cmp_y0 = self.y0+cmp_M-cmp_r cmp_dx = x - cmp_x0 cmp_dy = y - cmp_y0 if cmp_r > sqrt(cmp_dx*cmp_dx + cmp_dy*cmp_dy): return AREA_COMPARE elif d > self...
69bd95301f9911d8a91470bca7826e2868d822c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/69bd95301f9911d8a91470bca7826e2868d822c0/colorsamplerwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5091, 67, 270, 12, 2890, 16, 619, 16, 93, 4672, 6633, 273, 619, 17, 2890, 18, 92, 20, 7732, 273, 677, 17, 2890, 18, 93, 20, 302, 273, 5700, 12, 13437, 14, 13437, 15, 15680, 14, 156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5091, 67, 270, 12, 2890, 16, 619, 16, 93, 4672, 6633, 273, 619, 17, 2890, 18, 92, 20, 7732, 273, 677, 17, 2890, 18, 93, 20, 302, 273, 5700, 12, 13437, 14, 13437, 15, 15680, 14, 156...
sage: G[1](b)
sage: G[1](b1)
def galois_group(self, pari_group = True, use_kash=False): r""" Return the Galois group of the Galois closure of this number field as an abstract group.
a9aea27aa0acf9a498267c901faff9e3e1683ff3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a9aea27aa0acf9a498267c901faff9e3e1683ff3/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 1655, 12, 2890, 16, 779, 77, 67, 1655, 273, 1053, 16, 999, 67, 79, 961, 33, 8381, 4672, 436, 8395, 2000, 326, 611, 287, 19606, 1041, 434, 326, 611, 287, 19606, 7213, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 1655, 12, 2890, 16, 779, 77, 67, 1655, 273, 1053, 16, 999, 67, 79, 961, 33, 8381, 4672, 436, 8395, 2000, 326, 611, 287, 19606, 1041, 434, 326, 611, 287, 19606, 7213, ...
line = map(lambda x:(0,0,self.line_get_convert(cr, uid, x,date, context={})) ,iml)
line = map(lambda x:(0, 0, self.line_get_convert(cr, uid, x,date, context={})), iml)
def action_move_line_create(self, cr, uid, ids, *args): for inv in self.browse(cr, uid, ids): if inv.move_id: continue company_currency = inv.company_id.currency_id.id # create the analytical lines line_ids = self.read(cr, uid, [inv.id], ['payment_ids'])[0]['payment_ids'] ils = self.pool.get('account.voucher.line').rea...
4c8838b8ff1995002e5edc1cf71121cfbe916b8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/4c8838b8ff1995002e5edc1cf71121cfbe916b8b/voucher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 67, 1369, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 364, 2198, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 2198, 18, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 67, 1369, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 364, 2198, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 2198, 18, 85...
raise 'No response from Salesforce'
raise RuntimeError, 'No response from Salesforce'
def post(self, conn=None, alwaysReturnList=False): headers = { "User-Agent": "BeatBox/" + __version__, "SOAPAction": "\"\"", "Content-Type": "text/xml; charset=utf-8" } if gzipResponse: headers['accept-encoding'] = 'gzip' if gzipRequest: headers['content-encoding'] = 'gzip' close = False (scheme, host, path, params, qu...
281022da477746e1ac29fd8544576b6052976783 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4510/281022da477746e1ac29fd8544576b6052976783/_beatbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 1487, 33, 7036, 16, 3712, 990, 682, 33, 8381, 4672, 1607, 273, 288, 315, 1299, 17, 3630, 6877, 315, 1919, 270, 3514, 4898, 397, 1001, 1589, 972, 16, 315, 27952, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 1487, 33, 7036, 16, 3712, 990, 682, 33, 8381, 4672, 1607, 273, 288, 315, 1299, 17, 3630, 6877, 315, 1919, 270, 3514, 4898, 397, 1001, 1589, 972, 16, 315, 27952, 180...
headers_out = [] for full_header in res.msg.headers: header, value = full_header.split(':', 1) value = value.strip() if header.lower() not in filtered_headers: headers_out.append((header, value))
headers_out = parse_headers(res.msg)
def __call__(self, environ, start_response): if (self.allowed_request_methods and environ['REQUEST_METHOD'].lower() not in self.allowed_request_methods): return httpexceptions.HTTPBadRequest("Disallowed")(environ, start_response)
a1f073eb53d5993cfff5ae5e673b36def78decfe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/a1f073eb53d5993cfff5ae5e673b36def78decfe/proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 309, 261, 2890, 18, 8151, 67, 2293, 67, 5163, 471, 5473, 3292, 5519, 67, 5327, 29489, 8167, 1435, 486, 316, 365, 18, 8151,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 261, 2890, 18, 8151, 67, 2293, 67, 5163, 471, 5473, 3292, 5519, 67, 5327, 29489, 8167, 1435, 486, 316, 365, 18, 8151,...
if verbose: print "testing literals with leading zeroes"
def test_main(): test_support.run_unittest(TestSpecifics)
def expect_error(s): try: eval(s) raise TestFailed("%r accepted" % s) except SyntaxError: pass
8a99b5023931c5a01540bda67516235a8dfe8470 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8a99b5023931c5a01540bda67516235a8dfe8470/test_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 67, 1636, 12, 87, 4672, 775, 30, 5302, 12, 87, 13, 1002, 7766, 2925, 27188, 86, 8494, 6, 738, 272, 13, 1335, 18453, 30, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 67, 1636, 12, 87, 4672, 775, 30, 5302, 12, 87, 13, 1002, 7766, 2925, 27188, 86, 8494, 6, 738, 272, 13, 1335, 18453, 30, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, ...
package_data = {'rapidsms': ['skeleton/project/*.ini']},
package_data = {'rapidsms': ['skeleton/project/*.ini',\ 'skeleton/project/manage.py']},
def run (self): _build_py.run(self) if version == "unknown": print "RapidSMS version unknown! Is git in your path?" else: vstring = "VERSION = '%s'" % version vfilename = os.path.join(self.build_lib, "rapidsms", "__version__.py") vfile = file(vfilename, "w") print >>vfile, vstring print "setting %s in %s" % (vstring, v...
e08e4ba27e18640f1461c74d7a143d22ffa015b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/e08e4ba27e18640f1461c74d7a143d22ffa015b5/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 389, 3510, 67, 2074, 18, 2681, 12, 2890, 13, 309, 1177, 422, 315, 8172, 6877, 1172, 315, 54, 438, 350, 29533, 1177, 5917, 5, 2585, 5071, 316, 3433, 589, 7225, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 389, 3510, 67, 2074, 18, 2681, 12, 2890, 13, 309, 1177, 422, 315, 8172, 6877, 1172, 315, 54, 438, 350, 29533, 1177, 5917, 5, 2585, 5071, 316, 3433, 589, 7225, 46...
<dd><a href="addexistingfield?colID=%s&amp;ln=%s&amp;fmeth=soo
<dd><a href="addexistingfield?colID=%s&amp;ln=%s&amp;fmeth=soo
def perform_showsortoptions(colID, ln=cdslang, callback='yes', content='', confirm=-1): """show the sort fields of this collection..""" colID = int(colID) col_dict = dict(get_def_name('', "collection")) fld_dict = dict(get_def_name('', "field")) fld_type = get_sort_nametypes() subtitle = """<a name="8">8. Modify sort...
e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 3804, 2116, 12, 1293, 734, 16, 7211, 33, 4315, 2069, 539, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 4500, 326, 1524, 1466, 434, 333, 1849,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 3804, 2116, 12, 1293, 734, 16, 7211, 33, 4315, 2069, 539, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 4500, 326, 1524, 1466, 434, 333, 1849,...
interface, and if this fails, try one more time to load it. EXAMPLES:
interface. If this fails, try one more time to load it. EXAMPLES::
def load_hap(): """ Load the GAP hap package into the default GAP interpreter interface, and if this fails, try one more time to load it. EXAMPLES: sage: sage.groups.perm_gps.permgroup.load_hap() """ try: gap.eval('LoadPackage("hap")') except: gap.eval('LoadPackage("hap")')
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 76, 438, 13332, 3536, 4444, 326, 611, 2203, 5622, 2181, 1368, 326, 805, 611, 2203, 16048, 1560, 18, 971, 333, 6684, 16, 775, 1245, 1898, 813, 358, 1262, 518, 18, 225, 5675, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 76, 438, 13332, 3536, 4444, 326, 611, 2203, 5622, 2181, 1368, 326, 805, 611, 2203, 16048, 1560, 18, 971, 333, 6684, 16, 775, 1245, 1898, 813, 358, 1262, 518, 18, 225, 5675, 8...
sys_version = string.split(sys.version)[0]
def _setOpt(name, value, conv=None): '''set a module level value from environ/default''' from os import environ ename = 'RL_'+name if environ.has_key(ename): value = environ[ename] if conv: value = conv(value) globals()[name] = value
95e794999ad3b0fbb7a9203a6d6ce78360aa3553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/95e794999ad3b0fbb7a9203a6d6ce78360aa3553/rl_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 6179, 12, 529, 16, 460, 16, 6292, 33, 7036, 4672, 9163, 542, 279, 1605, 1801, 460, 628, 5473, 19, 1886, 26418, 628, 1140, 1930, 5473, 570, 339, 273, 296, 54, 48, 4623, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 6179, 12, 529, 16, 460, 16, 6292, 33, 7036, 4672, 9163, 542, 279, 1605, 1801, 460, 628, 5473, 19, 1886, 26418, 628, 1140, 1930, 5473, 570, 339, 273, 296, 54, 48, 4623, 15, ...
__child__ = Bundle def __iter__(self): return self.entries.iteritems()
__child__ = XMLFileBacked
def BindTranslation(self, image, ba): '''Map Bundle elements through the translation layer into concrete elements''' return map(lambda x:(x.tag, x.attrib), self.FindTranslation(image).trans[ba.tag][ba.attrib['name']])
48b9e1ad0cadd8a44ab4922e06f870290265a284 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/48b9e1ad0cadd8a44ab4922e06f870290265a284/bundler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6936, 6717, 12, 2890, 16, 1316, 16, 9846, 4672, 9163, 863, 8539, 2186, 3059, 326, 4794, 3018, 1368, 12220, 2186, 26418, 327, 852, 12, 14661, 619, 30, 12, 92, 18, 2692, 16, 619, 18, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6936, 6717, 12, 2890, 16, 1316, 16, 9846, 4672, 9163, 863, 8539, 2186, 3059, 326, 4794, 3018, 1368, 12220, 2186, 26418, 327, 852, 12, 14661, 619, 30, 12, 92, 18, 2692, 16, 619, 18, 145...
type = mydict["type"]
typestr = mydict["type"]
def parse_metalink(src, headers = {}, nocheck = False, ver=3): src = complete_url(src) is_metalink = nocheck # not all servers support HEAD where GET is also supported # also a WindowsError is thrown if a local file does not exist if src.endswith(".metalink") or src.endswith(".meta4"): is_metalink = True try: # add he...
cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228/metalinkc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10578, 16194, 12, 4816, 16, 1607, 273, 10615, 1158, 1893, 273, 1083, 16, 1924, 33, 23, 4672, 1705, 273, 3912, 67, 718, 12, 4816, 13, 353, 67, 10578, 16194, 273, 1158, 1893, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10578, 16194, 12, 4816, 16, 1607, 273, 10615, 1158, 1893, 273, 1083, 16, 1924, 33, 23, 4672, 1705, 273, 3912, 67, 718, 12, 4816, 13, 353, 67, 10578, 16194, 273, 1158, 1893, 2...
return self.rexec.is_builtin(name)
return self.rexec.is_builtin(name)
def is_builtin(self, name):
b9c951d8cedeec531cce217b5117b5d471b1e468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b9c951d8cedeec531cce217b5117b5d471b1e468/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 24553, 12, 2890, 16, 508, 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, 353, 67, 24553, 12, 2890, 16, 508, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'POPINDENT',
def fc_forall_require(rule, arg_patterns, arg_context): engine = rule.rule_base.engine patterns = rule.goal_arg_patterns() if len(arg_patterns) == len(patterns): context = contexts.bc_context(rule) try: if all(itertools.imap(lambda pat, arg: pat.match_pattern(context, context, arg, arg_context), patterns, arg_patterns)...
e6992b6a694bb95da57aca1817805692e1f2cc64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14714/e6992b6a694bb95da57aca1817805692e1f2cc64/compiler_bc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8036, 67, 1884, 454, 67, 6528, 12, 5345, 16, 1501, 67, 13317, 16, 1501, 67, 2472, 4672, 4073, 273, 1720, 18, 5345, 67, 1969, 18, 8944, 6884, 273, 1720, 18, 27354, 67, 3175, 67, 13317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8036, 67, 1884, 454, 67, 6528, 12, 5345, 16, 1501, 67, 13317, 16, 1501, 67, 2472, 4672, 4073, 273, 1720, 18, 5345, 67, 1969, 18, 8944, 6884, 273, 1720, 18, 27354, 67, 3175, 67, 13317, ...
return [(S[i].rhs(), mul[i]) for i in range(len(mul))]
rt_muls = [(S[i].rhs(), mul[i]) for i in range(len(mul))] if multiplicities: return rt_muls else: return [ rt for rt, mul in rt_muls ]
def roots(self, x=None, explicit_solutions=True): r""" Returns roots of \code{self} that can be found exactly, with multiplicities. Not all root are guaranteed to be found.
84f6585998d5f8be58b8f476a0bf8b3fd37e3fd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/84f6585998d5f8be58b8f476a0bf8b3fd37e3fd9/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12876, 12, 2890, 16, 619, 33, 7036, 16, 5515, 67, 18281, 6170, 33, 5510, 4672, 436, 8395, 2860, 12876, 434, 521, 710, 95, 2890, 97, 716, 848, 506, 1392, 8950, 16, 598, 3309, 1780, 1961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12876, 12, 2890, 16, 619, 33, 7036, 16, 5515, 67, 18281, 6170, 33, 5510, 4672, 436, 8395, 2860, 12876, 434, 521, 710, 95, 2890, 97, 716, 848, 506, 1392, 8950, 16, 598, 3309, 1780, 1961...
self._pos = max(0, pos)
def seek(self, pos, whence=0): if self.closed: raise ValueError("seek on closed file") try: pos = pos.__index__() except AttributeError as err: raise TypeError("an integer is required") from err if whence == 0: self._pos = max(0, pos) if pos < 0: raise ValueError("negative seek position %r" % (pos,)) elif whence == 1: ...
0c4c8991888cb77158727c67e6731285ce1698b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/0c4c8991888cb77158727c67e6731285ce1698b5/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 949, 16, 23692, 33, 20, 4672, 309, 365, 18, 12204, 30, 1002, 2068, 2932, 16508, 603, 4375, 585, 7923, 775, 30, 949, 273, 949, 16186, 1615, 972, 1435, 1335, 6394, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 949, 16, 23692, 33, 20, 4672, 309, 365, 18, 12204, 30, 1002, 2068, 2932, 16508, 603, 4375, 585, 7923, 775, 30, 949, 273, 949, 16186, 1615, 972, 1435, 1335, 6394, 48...
""" INPUT: A -- a WeylCharacterRing. Creates an auxiliary ring for the weights of a representation. This ring is associated with a WeylCharacterRing. The weights of a representation of a Lie group G or algebra are the characters of the characters of a Cartan subgroup T or subalgebra that occur when the representation i...
def character(self): """ Assuming that self is invariant under the Weyl group, this will express it as a linear combination of characters. If self is not Weyl group invariant, this method will not terminate. EXAMPLE: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: W = a2.lattice().weyl_group() sag...
da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 12, 2890, 4672, 3536, 4725, 21249, 716, 365, 353, 22514, 3613, 326, 678, 402, 80, 1041, 16, 333, 903, 16947, 518, 487, 279, 9103, 10702, 434, 3949, 18, 971, 365, 353, 486, 678, 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, 3351, 12, 2890, 4672, 3536, 4725, 21249, 716, 365, 353, 22514, 3613, 326, 678, 402, 80, 1041, 16, 333, 903, 16947, 518, 487, 279, 9103, 10702, 434, 3949, 18, 971, 365, 353, 486, 678, 4...
addStubMember(iface.name + '.' + member.name, member)
addStubMember(iface.name + '.' + member.name, member, traceable)
def getInterface(interfaceName, errorLoc): iface = interfacesByName.get(interfaceName) if iface is None: idlFile = findIDL(conf.includePath, conf.irregularFilenames, interfaceName) idl = loadIDL(parser, conf.includePath, idlFile) if not idl.hasName(interfaceName): raise UserError("The interface %s was not found " "in t...
c14e4ffd79d3b97514ad112cb46c7dbd495ad99b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/c14e4ffd79d3b97514ad112cb46c7dbd495ad99b/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1358, 12, 5831, 461, 16, 555, 1333, 4672, 9751, 273, 7349, 5911, 18, 588, 12, 5831, 461, 13, 309, 9751, 353, 599, 30, 612, 80, 812, 273, 1104, 734, 48, 12, 3923, 18, 6702, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1358, 12, 5831, 461, 16, 555, 1333, 4672, 9751, 273, 7349, 5911, 18, 588, 12, 5831, 461, 13, 309, 9751, 353, 599, 30, 612, 80, 812, 273, 1104, 734, 48, 12, 3923, 18, 6702, 743, ...
if current.child_id: sums[current.id][fn] += sum(sums[child.id][fn] for child in current.child_id)
for child in current.child_id: if child.company_id.currency_id.id == current.company_id.currency_id.id: sums[current.id][fn] += sums[child.id][fn] else: sums[current.id][fn] += currency_obj.compute(cr, uid, child.company_id.currency_id.id, current.company_id.currency_id.id, sums[child.id][fn], context=context)
def __compute(self, cr, uid, ids, field_names, arg=None, context=None, query='', query_params=()): """ compute the balance, debit and/or credit for the provided account ids Arguments: `ids`: account ids `field_names`: the fields to compute (a list of any of 'balance', 'debit' and 'credit') `arg`: unused fields.function...
c279d8bbffd2a51bc77b439a834635e3815dcf91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c279d8bbffd2a51bc77b439a834635e3815dcf91/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9200, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 33, 7036, 16, 819, 33, 7036, 16, 843, 2218, 2187, 843, 67, 2010, 33, 1435, 4672, 3536, 3671, 326, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9200, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 33, 7036, 16, 819, 33, 7036, 16, 843, 2218, 2187, 843, 67, 2010, 33, 1435, 4672, 3536, 3671, 326, 110...
isp_keeper = None
def _FastestByLocalProvider(self): """Find the fastest DNS server by the client provider.""" isp_keeper = None
e2cabb384467d6403805229a2b0337247e5ea3e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4017/e2cabb384467d6403805229a2b0337247e5ea3e5/nameserver_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12305, 395, 858, 2042, 2249, 12, 2890, 4672, 3536, 3125, 326, 4797, 395, 8858, 1438, 635, 326, 1004, 2893, 12123, 353, 84, 67, 79, 9868, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12305, 395, 858, 2042, 2249, 12, 2890, 4672, 3536, 3125, 326, 4797, 395, 8858, 1438, 635, 326, 1004, 2893, 12123, 353, 84, 67, 79, 9868, 273, 599, 2, -100, -100, -100, -100, -100, ...
0.6019058
0.60190723019723458
def bessel_K(nu,z,prec=53): r""" Implements the "K-Bessel function", or "modifed Bessel function, 2nd kind", with index (or "order") nu and argument z. Defn:
5d4d1a4315d1dc34b216f5bb99d2f5bcf1f776e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d4d1a4315d1dc34b216f5bb99d2f5bcf1f776e9/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 47, 12, 13053, 16, 94, 16, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 47, 17, 38, 403, 292, 445, 3113, 578, 315, 1711, 430, 329, 605, 403, 292, 445, 16, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 47, 12, 13053, 16, 94, 16, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 47, 17, 38, 403, 292, 445, 3113, 578, 315, 1711, 430, 329, 605, 403, 292, 445, 16, 5...
def doiskip(pagetext):
def doiskip(imagepage):
def doiskip(pagetext): ''' Skip this image or not. Returns True if the image is on the skip list, otherwise False saltos=getautoskip() #print saltos for salto in saltos: rex=ur'\{\{\s*['+salto[0].upper()+salto[0].lower()+']'+salto[1:]+'(\}\}|\|)' #print rex if re.search(rex, pagetext): return True ''' return False
6d55d119e67c91881b6f3700f81bd66a7fd61a73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/6d55d119e67c91881b6f3700f81bd66a7fd61a73/imagecopy_enwp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 291, 1834, 12, 2730, 2433, 4672, 9163, 6611, 333, 1316, 578, 486, 18, 2860, 1053, 309, 326, 1316, 353, 603, 326, 2488, 666, 16, 3541, 1083, 225, 4286, 538, 33, 588, 21996, 1834, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 291, 1834, 12, 2730, 2433, 4672, 9163, 6611, 333, 1316, 578, 486, 18, 2860, 1053, 309, 326, 1316, 353, 603, 326, 2488, 666, 16, 3541, 1083, 225, 4286, 538, 33, 588, 21996, 1834, 1...
sys_prefix = sys.prefix
sys_prefix = os.path.normpath (sys.prefix)
def replace_sys_prefix (self, config_attr, fallback_postfix, use_exec=0): """Attempts to glean a simple pattern from an installation directory available as a 'sysconfig' attribute: if the directory name starts with the "system prefix" (the one hard-coded in the Makefile and compiled into Python), then replace it with t...
f0a18abab7ed197a1eae965cc7198ad45b4bc275 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f0a18abab7ed197a1eae965cc7198ad45b4bc275/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 9499, 67, 3239, 261, 2890, 16, 642, 67, 1747, 16, 5922, 67, 2767, 904, 16, 999, 67, 4177, 33, 20, 4672, 3536, 10113, 358, 314, 298, 304, 279, 4143, 1936, 628, 392, 13193, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 9499, 67, 3239, 261, 2890, 16, 642, 67, 1747, 16, 5922, 67, 2767, 904, 16, 999, 67, 4177, 33, 20, 4672, 3536, 10113, 358, 314, 298, 304, 279, 4143, 1936, 628, 392, 13193, 1...
sage: F4(0,0,0,1).branch(A2xA2, rule="extended")
sage: F4(0,0,0,1).branch(A2xA2, rule="extended")
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will...
7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
navtrail_previous_links = bibformatadminlib.getnavtrail(''' &gt; <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/format_templates_manage?ln=%s">%s</a>''' % (config.CFG_SITE_URL, ln , _("Manage Output Formats")))
navtrail_previous_links = bibformatadminlib.getnavtrail(''' &gt; <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/output_formats_manage?ln=%s">%s</a>''' % (config.CFG_SITE_URL, ln , _("Manage Output Formats")))
def output_format_show_attributes(req, bfo, ln=config.CFG_SITE_LANG): """ Page for output format names and descrition attributes edition. @param ln language @param bfo the filename of the template to show """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''...
9a2a84786d758f87e8ed77653ce50eba71aea70d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9a2a84786d758f87e8ed77653ce50eba71aea70d/bibformatadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 2139, 67, 4500, 67, 4350, 12, 3658, 16, 324, 617, 16, 7211, 33, 1425, 18, 19727, 67, 20609, 67, 10571, 4672, 3536, 3460, 364, 876, 740, 1257, 471, 3044, 583, 285, 1677, 28432,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 2139, 67, 4500, 67, 4350, 12, 3658, 16, 324, 617, 16, 7211, 33, 1425, 18, 19727, 67, 20609, 67, 10571, 4672, 3536, 3460, 364, 876, 740, 1257, 471, 3044, 583, 285, 1677, 28432,...
"compiler=%s yield "<tr><td>Uname:</td><td>%s</td></tr>" % uname yield "<tr><td>Tree:</td><td>%s</td></tr>" % tree_link(myself, tree) yield "<tr><td>Build Revision:</td><td>%s</td></tr>" % revision_link(myself, revision, tree) yield "<tr><td>Build age:</td><td><div class='age'>%s</div></td></tr>" % red_age(age_mtime) y...
"compiler=%s yield "<tr><td>Uname:</td><td>%s</td></tr>\n" % uname yield "<tr><td>Tree:</td><td>%s</td></tr>\n" % tree_link(myself, tree) yield "<tr><td>Build Revision:</td><td>%s</td></tr>\n" % revision_link(myself, revision, tree) yield "<tr><td>Build age:</td><td><div class='age'>%s</div></td></tr>\n" % red_age(age_...
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""...
aded61733b040c3e2918f7cb5990b12cebe2244e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/aded61733b040c3e2918f7cb5990b12cebe2244e/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 3510, 12, 4811, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 468, 3387, 326, 859, 854, 923, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 3510, 12, 4811, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 468, 3387, 326, 859, 854, 923, 186...
print ''.join(self.channel().split()) + '.exe' time.sleep(10)
def final_exe(self): if self.default_channel(): if self.default_grid(): return "Meerkat.exe" else: return "MeerkatPreview.exe" else: print ''.join(self.channel().split()) + '.exe' time.sleep(10) return ''.join(self.channel().split()) + '.exe'
58e42b6f045a077671622d34a513327c7ff60c8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4269/58e42b6f045a077671622d34a513327c7ff60c8b/viewer_manifest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 727, 67, 14880, 12, 2890, 4672, 309, 365, 18, 1886, 67, 4327, 13332, 309, 365, 18, 1886, 67, 5222, 13332, 327, 315, 4667, 264, 79, 270, 18, 14880, 6, 469, 30, 327, 315, 4667, 264, 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, 727, 67, 14880, 12, 2890, 4672, 309, 365, 18, 1886, 67, 4327, 13332, 309, 365, 18, 1886, 67, 5222, 13332, 327, 315, 4667, 264, 79, 270, 18, 14880, 6, 469, 30, 327, 315, 4667, 264, 79...
lens = PerspectiveLens() lens.setAspectRatio(aspectRatio)
if lens == None: lens = PerspectiveLens() if aspectRatio == None: aspectRatio = self.getAspectRatio(win) lens.setAspectRatio(aspectRatio)
def makeCamera(self, win, sort = 0, scene = None, displayRegion = (0, 1, 0, 1), aspectRatio = None, camName = 'cam'): """ Makes a new 3-d camera associated with the indicated window, and creates a display region in the indicated subrectangle. """ dr = win.makeDisplayRegion(*displayRegion) dr.setSort(sort)
372dc514088cc23d9a3ce88cac0c0fcc65c6d5ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/372dc514088cc23d9a3ce88cac0c0fcc65c6d5ef/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 16521, 12, 2890, 16, 5657, 16, 1524, 273, 374, 16, 9065, 273, 599, 16, 2562, 5165, 273, 261, 20, 16, 404, 16, 374, 16, 404, 3631, 9648, 8541, 273, 599, 16, 5861, 461, 273, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 16521, 12, 2890, 16, 5657, 16, 1524, 273, 374, 16, 9065, 273, 599, 16, 2562, 5165, 273, 261, 20, 16, 404, 16, 374, 16, 404, 3631, 9648, 8541, 273, 599, 16, 5861, 461, 273, 296,...
else:
elif mode == 'color':
def applyMode(self, mode): if mode == 'off': self.stop() else: self.start() if mode == 'video': if not self.grabbing: self.grabbing = True self.pyambx.startGrabber() else: if self.grabbing: self.grabbing = False self.pyambx.stopGrabber() self.pyambx.setLight(self.color) self.mode = mode
7e09713aeb4628a10d124570d94259cd339d4cf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10972/7e09713aeb4628a10d124570d94259cd339d4cf3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 2309, 12, 2890, 16, 1965, 4672, 309, 1965, 422, 296, 3674, 4278, 365, 18, 5681, 1435, 1327, 1965, 422, 296, 3266, 4278, 365, 18, 1937, 1435, 309, 1965, 422, 296, 9115, 4278, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 2309, 12, 2890, 16, 1965, 4672, 309, 1965, 422, 296, 3674, 4278, 365, 18, 5681, 1435, 1327, 1965, 422, 296, 3266, 4278, 365, 18, 1937, 1435, 309, 1965, 422, 296, 9115, 4278, 309, ...
child_cleanup_cases = '\n'.join([ ''' case %s: { %sChild** child = reinterpret_cast<%sChild**>(&gChildActor); delete *child; *child = 0; return; } '''% (t, t, t) for t in unittests ])
def main(argv): template = argv[1] unittests = argv[2:] includes = '\n'.join([ '#include "%s.h"'% (t) for t in unittests ]) enum_values = '\n'.join([ ' %s,'% (t) for t in unittests ]) last_enum = unittests[-1] string_to_enums = '\n'.join([ ''' else if (!strcmp(aString, "%s")) return %s;'''% (t, t) for t in u...
99a813ce664dafa9d339c0fc542797d516a9d0aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/99a813ce664dafa9d339c0fc542797d516a9d0aa/genIPDLUnitTests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 1542, 273, 5261, 63, 21, 65, 2836, 16341, 273, 5261, 63, 22, 26894, 225, 6104, 273, 2337, 82, 10332, 5701, 3816, 2946, 6702, 2213, 87, 18, 76, 5187, 9, 261, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 1542, 273, 5261, 63, 21, 65, 2836, 16341, 273, 5261, 63, 22, 26894, 225, 6104, 273, 2337, 82, 10332, 5701, 3816, 2946, 6702, 2213, 87, 18, 76, 5187, 9, 261, 88, ...
self.endTagTableRowGroup(self.parser.openElements[-1])
self.endTagTableRowGroup(self.parser.openElements[-1].name) self.parser.processStartTag(name, attributes)
def startTagTableOther(self, name, attributes): # XXX AT Any ideas on how to share this with endTagTable? if self.elementInScope("tbody", True) or \ self.elementInScope("thead", True) or \ self.elementInScope("tfoot", True): self.clearStackToTableBodyContext() self.endTagTableRowGroup(self.parser.openElements[-1]) else...
028672b6bd90fb4eb6a4abd1ad4a9dafa4b792e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/028672b6bd90fb4eb6a4abd1ad4a9dafa4b792e3/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 468, 11329, 14464, 5502, 10572, 345, 603, 3661, 358, 7433, 333, 598, 29765, 1388, 35, 309, 365, 18, 2956, 382, 3876, 2932, 20779...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 468, 11329, 14464, 5502, 10572, 345, 603, 3661, 358, 7433, 333, 598, 29765, 1388, 35, 309, 365, 18, 2956, 382, 3876, 2932, 20779...
def testCvsReapperedDirectoryToSubversion(self):
def testCvsReappearedDirectoryToSubversion(self):
def testCvsReapperedDirectoryToSubversion(self): """Test that we can handle resurrected cvs directory to svn."""
cefc0bfaa697b9105e4b4f56cc4cc0a4eb9b3a4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/cefc0bfaa697b9105e4b4f56cc4cc0a4eb9b3a4f/tailor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 39, 6904, 426, 438, 347, 2258, 2853, 774, 1676, 1589, 12, 2890, 4672, 3536, 4709, 716, 732, 848, 1640, 400, 295, 2607, 329, 276, 6904, 1867, 358, 5893, 82, 12123, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 39, 6904, 426, 438, 347, 2258, 2853, 774, 1676, 1589, 12, 2890, 4672, 3536, 4709, 716, 732, 848, 1640, 400, 295, 2607, 329, 276, 6904, 1867, 358, 5893, 82, 12123, 2, -100, -100, ...
self.stepId = Utils.AddToolButtonBmpIS(self, self.toolbar,
self.stepId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 938, 16, 2110, 273, 599, 4672, 324, 1966, 18, 38, 1966, 16186, 2738, 972, 12, 2890, 13, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 938, 18, 9177, 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, 938, 16, 2110, 273, 599, 4672, 324, 1966, 18, 38, 1966, 16186, 2738, 972, 12, 2890, 13, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 938, 18, 9177, 16, ...
"""
r"""
def strip_answer(self, s): """ Returns the string s with Matlab's answer prompt removed.
158cf0a8ce2e4bbf3ba05e93b02a4f869f056e7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/158cf0a8ce2e4bbf3ba05e93b02a4f869f056e7e/matlab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 13490, 12, 2890, 16, 272, 4672, 436, 8395, 2860, 326, 533, 272, 598, 14493, 7411, 1807, 5803, 6866, 3723, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 13490, 12, 2890, 16, 272, 4672, 436, 8395, 2860, 326, 533, 272, 598, 14493, 7411, 1807, 5803, 6866, 3723, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.assert_(groups[4] == hostname,
self.assertEqual(groups[4], hostname,
def test_create_tmp(self, repetitions=10): # Create files in tmp directory hostname = socket.gethostname() if '/' in hostname: hostname = hostname.replace('/', r'\057') if ':' in hostname: hostname = hostname.replace(':', r'\072') pid = os.getpid() pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)" r"Q(?...
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 5645, 12, 2890, 16, 22265, 5029, 33, 2163, 4672, 468, 1788, 1390, 316, 1853, 1867, 5199, 273, 2987, 18, 75, 546, 669, 529, 1435, 309, 2023, 316, 5199, 30, 5199, 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, 67, 2640, 67, 5645, 12, 2890, 16, 22265, 5029, 33, 2163, 4672, 468, 1788, 1390, 316, 1853, 1867, 5199, 273, 2987, 18, 75, 546, 669, 529, 1435, 309, 2023, 316, 5199, 30, 5199, 273...
return self.links
return self.history
def getHistory(self, force=False): if self.history and not force: return self.links if self.pageid == 0 and not self.title: self.setPageInfo() if not self.exists: raise NoPage params = { 'action': 'query', 'prop': 'imageinfo', 'iilimit': self.site.limit, } if self.pageid > 0: params['pageids'] = self.pageid else: param...
b36d4512fbe442cb21cbba571910d58da8257cff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10544/b36d4512fbe442cb21cbba571910d58da8257cff/wikifile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5623, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 365, 18, 8189, 471, 486, 2944, 30, 327, 365, 18, 8189, 309, 365, 18, 30974, 422, 374, 471, 486, 365, 18, 2649, 30, 365, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5623, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 365, 18, 8189, 471, 486, 2944, 30, 327, 365, 18, 8189, 309, 365, 18, 30974, 422, 374, 471, 486, 365, 18, 2649, 30, 365, 18, 542, ...
self.body.append ('\n' + hilite_code + '\n')
self.out.append ('\n' + hilite_code + '\n')
def visit_codeblock (self, node): # was langauge argument defined on node? lang = node.get ('language', None) # otherwise, was it defined in node classes? if (lang is None): lang = node_lang_class (node) # otherwise, use commandline argument or default if lang is None: lang = self.cb_default_lang # replace tabs if req...
37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 710, 2629, 261, 2890, 16, 756, 4672, 468, 1703, 3303, 8305, 1237, 2553, 603, 756, 35, 3303, 273, 225, 756, 18, 588, 7707, 4923, 2187, 599, 13, 468, 3541, 16, 1703, 518, 2553,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 710, 2629, 261, 2890, 16, 756, 4672, 468, 1703, 3303, 8305, 1237, 2553, 603, 756, 35, 3303, 273, 225, 756, 18, 588, 7707, 4923, 2187, 599, 13, 468, 3541, 16, 1703, 518, 2553,...
val = config.getOption(conf.cfg, repo.id, name, default,
val = config.getOption(repo.cfg, repo.id, name, default,
def parseopts(self, conf, repos): '''Parse any configuration options registered by plugins
a2bd464287967874a66a7f691d7c933f93584e01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/a2bd464287967874a66a7f691d7c933f93584e01/plugins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 2890, 16, 2195, 16, 13686, 4672, 9163, 3201, 1281, 1664, 702, 4104, 635, 4799, 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, 1109, 4952, 12, 2890, 16, 2195, 16, 13686, 4672, 9163, 3201, 1281, 1664, 702, 4104, 635, 4799, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for ext, cmd in ARCHIVE_FORMATS:
for ext, unpackerClass, arg in ARCHIVE_FORMATS:
def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" print 'PimpPackage_binary installPackageOnly' msgs = [] if self._dict.has_key('Pre-install-command'): msg.append("%s: Pre-install-command ign...
f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 6410, 279, 2202, 1084, 2181, 18, 225, 971, 876, 353, 864, 518, 1410, 506, 279, 585, 17, 5625, 733, 471, 518, 903, 6798, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 6410, 279, 2202, 1084, 2181, 18, 225, 971, 876, 353, 864, 518, 1410, 506, 279, 585, 17, 5625, 733, 471, 518, 903, 6798, 279, ...
if not isinstance(other, _basebag): other = self._from_iterable(other)
def __ne__(self, other: Iterable): if not isinstance(other, _basebag): other = self._from_iterable(other) return not (self == other)
8205831eee3ac82f85d8aaf27e4ed7e9aceca84e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5397/8205831eee3ac82f85d8aaf27e4ed7e9aceca84e/collections_extended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 30, 6725, 4672, 327, 486, 261, 2890, 422, 1308, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 30, 6725, 4672, 327, 486, 261, 2890, 422, 1308, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
str_list.append(" Uname %s\n" % rorpath.getuname() or ":")
str_list.append(" Uname %s\n" % (rorpath.getuname() or ":"))
def RORP2Record(rorpath): """From RORPath, return text record of file's metadata""" str_list = ["File %s\n" % quote_path(rorpath.get_indexpath())] # Store file type, e.g. "dev", "reg", or "sym", and type-specific data type = rorpath.gettype() if type is None: type = "None" str_list.append(" Type %s\n" % type) if type...
86c6f7396d11200b1f7e088c90cc05a2ef15ab0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/86c6f7396d11200b1f7e088c90cc05a2ef15ab0c/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 534, 916, 52, 22, 2115, 12, 86, 280, 803, 4672, 3536, 1265, 534, 916, 743, 16, 327, 977, 1409, 434, 585, 1807, 1982, 8395, 609, 67, 1098, 273, 8247, 812, 738, 87, 64, 82, 6, 738, 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, 534, 916, 52, 22, 2115, 12, 86, 280, 803, 4672, 3536, 1265, 534, 916, 743, 16, 327, 977, 1409, 434, 585, 1807, 1982, 8395, 609, 67, 1098, 273, 8247, 812, 738, 87, 64, 82, 6, 738, 3...
print self.equivs
def __init__(self, gcomprisBoard): # Save the gcomprisBoard, it defines everything we need # to know from the core self.gcomprisBoard = gcomprisBoard
688c17fe23a581d12f8605c8f929efd7a834f840 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/688c17fe23a581d12f8605c8f929efd7a834f840/hangman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 314, 832, 683, 291, 22233, 4672, 468, 7074, 326, 314, 832, 683, 291, 22233, 16, 518, 11164, 7756, 732, 1608, 468, 358, 5055, 628, 326, 2922, 365, 18, 75,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 314, 832, 683, 291, 22233, 4672, 468, 7074, 326, 314, 832, 683, 291, 22233, 16, 518, 11164, 7756, 732, 1608, 468, 358, 5055, 628, 326, 2922, 365, 18, 75,...
raise WalkerEror
raise WalkerError
def varargslist(self, nodelist): raise WalkerEror
0e83a60ba67d19dd3d8904cf68e390b90621614b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0e83a60ba67d19dd3d8904cf68e390b90621614b/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19732, 1098, 12, 2890, 16, 30068, 4672, 1002, 7564, 264, 29228, 280, 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, 19732, 1098, 12, 2890, 16, 30068, 4672, 1002, 7564, 264, 29228, 280, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
else: pp=self._node self._node = pp lst='' if isinstance(text,(str,unicode)): lst = text.split('\n') if lst and (not len(lst)):
self._node = pp lst = tools.ustr(text).split('\n') if not (text and lst):
def format(self, text, oldtag=None): if not oldtag: oldtag = self.tag self._node.data = '' node = self._find_parent(self._node, [oldtag]) if node: pp = node.parentNode ns = node.nextSibling pp.removeChild(node) else: pp=self._node self._node = pp lst='' if isinstance(text,(str,unicode)): lst = text.split('\n')
09e9af914dd0799c4770a5f12659412038c5a434 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/09e9af914dd0799c4770a5f12659412038c5a434/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 977, 16, 1592, 2692, 33, 7036, 4672, 309, 486, 1592, 2692, 30, 1592, 2692, 273, 365, 18, 2692, 365, 6315, 2159, 18, 892, 273, 875, 756, 273, 365, 6315, 4720, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 977, 16, 1592, 2692, 33, 7036, 4672, 309, 486, 1592, 2692, 30, 1592, 2692, 273, 365, 18, 2692, 365, 6315, 2159, 18, 892, 273, 875, 756, 273, 365, 6315, 4720, 67, 2...
Return the number of monomials possible up to a given degree.
Return the number of monomials possible up to a given degree.
def nterms(nvars, deg): """ Return the number of monomials possible up to a given degree.
722300ff09b8199db5acea36fda4b2778a4c12e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/722300ff09b8199db5acea36fda4b2778a4c12e9/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 10112, 12, 82, 4699, 16, 5843, 4672, 3536, 2000, 326, 1300, 434, 312, 4708, 649, 87, 3323, 731, 358, 279, 864, 10782, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 290, 10112, 12, 82, 4699, 16, 5843, 4672, 3536, 2000, 326, 1300, 434, 312, 4708, 649, 87, 3323, 731, 358, 279, 864, 10782, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def shared_object_filename (source_filename):
def shared_object_filename (self, source_filename):
def shared_object_filename (source_filename): """Return the shared object filename corresponding to a specified source filename.""" pass
6f78a193f87ec8bd16486e1e64b2b8d7905c16e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6f78a193f87ec8bd16486e1e64b2b8d7905c16e0/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5116, 67, 1612, 67, 3459, 261, 2890, 16, 1084, 67, 3459, 4672, 3536, 990, 326, 5116, 733, 1544, 4656, 358, 279, 1269, 1084, 1544, 12123, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 5116, 67, 1612, 67, 3459, 261, 2890, 16, 1084, 67, 3459, 4672, 3536, 990, 326, 5116, 733, 1544, 4656, 358, 279, 1269, 1084, 1544, 12123, 1342, 2, -100, -100, -100, -100, -100, -100, -100...
_defaults={
_defaults = {
def unlink(self, cr, uid, ids, context={}): """Allows to delete sale order lines in draft,cancel states""" for rec in self.browse(cr, uid, ids, context=context): if rec.state not in ['draft','cancel']: raise osv.except_osv(_('Invalid action !'), _('Cannot delete a sale order line which is %s !')%(rec.state,)) return su...
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 19132, 358, 1430, 272, 5349, 1353, 2362, 316, 12246, 16, 10996, 5493, 8395, 364, 1950, 316, 365, 18, 25731, 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, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 19132, 358, 1430, 272, 5349, 1353, 2362, 316, 12246, 16, 10996, 5493, 8395, 364, 1950, 316, 365, 18, 25731, 12, ...
print '%s has %d tested inputs' % (config, len(config_tests))
def GraphSummary(desc, results_ignore): test_population = 0 config_ordered = [] # drops duplicate test/config pairs (TODO: don't retest them) for config, cresults in test_all_config_results.items(): input_config_map = {} uniq = [] for test in cresults: assert test.config() == config test_population += 1 key = test.tin...
ca6951c05772975cff7d67dba745c3bc33e71252 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4464/ca6951c05772975cff7d67dba745c3bc33e71252/xdelta3-regtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5601, 4733, 12, 5569, 16, 1686, 67, 6185, 4672, 1842, 67, 23555, 273, 374, 642, 67, 9885, 273, 5378, 225, 468, 29535, 6751, 1842, 19, 1425, 5574, 261, 6241, 30, 2727, 1404, 325, 395, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5601, 4733, 12, 5569, 16, 1686, 67, 6185, 4672, 1842, 67, 23555, 273, 374, 642, 67, 9885, 273, 5378, 225, 468, 29535, 6751, 1842, 19, 1425, 5574, 261, 6241, 30, 2727, 1404, 325, 395, 2...
contents = re.sub(titlestart + ".*?" + titleend + "\n","",contents)
contents = re.sub(search_string + "\n+","",contents)
def findpage(t): search_string = titlestart + "(.*?)" + titleend try: location = re.search(starttext+"([^\Z]*?)"+endtext,t) if include: contents = location.group() else: contents = location.group(1) except AttributeError: print 'Start or end marker not found.' return try: title = re.search(search_string, contents).grou...
aa0d0816bb3cf05546f9cb3a7e4de9cb4af2e4cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/aa0d0816bb3cf05546f9cb3a7e4de9cb4af2e4cf/pagefromfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2433, 12, 88, 4672, 1623, 67, 1080, 273, 268, 305, 80, 27893, 397, 315, 7444, 35, 2225, 397, 2077, 409, 775, 30, 2117, 273, 283, 18, 3072, 12, 1937, 955, 9078, 19042, 62, 5772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2433, 12, 88, 4672, 1623, 67, 1080, 273, 268, 305, 80, 27893, 397, 315, 7444, 35, 2225, 397, 2077, 409, 775, 30, 2117, 273, 283, 18, 3072, 12, 1937, 955, 9078, 19042, 62, 5772, ...
self.ic.generator_index = a
self.ic.generator_id = a
def __init__(self, argv, opts, args): self.opts = opts self.args = args for o, a in self.opts: if o == '--no-prompts': self.ic.no_prompts = True elif o in ('-g', '--generator'): self.ic.generator_index = a
e4c88bfcc9130bcf1d5ed59d4e45d520fd6367b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6688/e4c88bfcc9130bcf1d5ed59d4e45d520fd6367b1/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5261, 16, 1500, 16, 833, 4672, 225, 365, 18, 4952, 273, 1500, 365, 18, 1968, 273, 833, 225, 364, 320, 16, 279, 316, 365, 18, 4952, 30, 309, 320, 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, 1001, 2738, 972, 12, 2890, 16, 5261, 16, 1500, 16, 833, 4672, 225, 365, 18, 4952, 273, 1500, 365, 18, 1968, 273, 833, 225, 364, 320, 16, 279, 316, 365, 18, 4952, 30, 309, 320, 422, ...
file = open(User.users_file) lines = file.readlines()
users_file = None users_file = open(User.users_file)
def create_user(name): """Creates a new User. Writes an entry in users.txt for the new user. Exceptions: If the specified name contains any characters other than letters, numbers, or spaces, raises an InvalidNameError. If another user exists with this name, raises a NameAlreadyExistsError. """ # TODO Validate name try...
feaeaa92c068a38b62d763b0747751948256dbfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2803/feaeaa92c068a38b62d763b0747751948256dbfa/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 12, 529, 4672, 3536, 2729, 279, 394, 2177, 18, 30053, 392, 1241, 316, 3677, 18, 5830, 364, 326, 394, 729, 18, 12781, 30, 971, 326, 1269, 508, 1914, 1281, 3949, 1308, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 12, 529, 4672, 3536, 2729, 279, 394, 2177, 18, 30053, 392, 1241, 316, 3677, 18, 5830, 364, 326, 394, 729, 18, 12781, 30, 971, 326, 1269, 508, 1914, 1281, 3949, 1308, 235...
byte_index = (index * self.__bit_size) % 8 return ((self.__value[byte_index] >> byte_index) & self.__bit_size )
bit_index = (index * self.__bit_size) % 8 return ((self.__value[byte_index] >> bit_index) & ((1 << self.__bit_size) - 1) )
def __getitem__(self, index): "Allow to access value array by index" if not self.__is_value_array: raise ValueError("Report item is not value usage array") if index < self.__report_count: byte_index = (index * self.__bit_size) / 8 byte_index = (index * self.__bit_size) % 8 return ((self.__value[byte_index] >> byte_inde...
4ec60e496fbef07c76b7566417c50a134745fe3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11669/4ec60e496fbef07c76b7566417c50a134745fe3c/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 770, 4672, 315, 7009, 358, 2006, 460, 526, 635, 770, 6, 309, 486, 365, 16186, 291, 67, 1132, 67, 1126, 30, 1002, 2068, 2932, 4820, 761, 353, 486, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 770, 4672, 315, 7009, 358, 2006, 460, 526, 635, 770, 6, 309, 486, 365, 16186, 291, 67, 1132, 67, 1126, 30, 1002, 2068, 2932, 4820, 761, 353, 486, 460, ...
(child, token))
(repr(child), token))
def registerParent(self, token, parent): if token in self.token2nodepath.keys(): self.notify.error( "token '%s' already in the table, referencing %s" % (token, self.token2nodepath[token]))
965f5a3cc4a1ff3ada0a33684d9aaf0ac8ab2ff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/965f5a3cc4a1ff3ada0a33684d9aaf0ac8ab2ff3/ParentMgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 3054, 12, 2890, 16, 1147, 16, 982, 4672, 309, 1147, 316, 365, 18, 2316, 22, 2159, 803, 18, 2452, 13332, 365, 18, 12336, 18, 1636, 12, 315, 2316, 1995, 87, 11, 1818, 316, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 3054, 12, 2890, 16, 1147, 16, 982, 4672, 309, 1147, 316, 365, 18, 2316, 22, 2159, 803, 18, 2452, 13332, 365, 18, 12336, 18, 1636, 12, 315, 2316, 1995, 87, 11, 1818, 316, 326, 1...
>>> a = A(p)
class LocatingTrustedAdapterFactory(object): """Adapt an adapter factory to provide trusted and (locatable) adapters.
... def __init__(self, context):
c4df19b7123c032c70b5860013f9a3c864759b7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/c4df19b7123c032c70b5860013f9a3c864759b7f/adapter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff
ProfileNb = eds_dict[0x1000].get("DEFAULTVALUE", 0) & 0x0000ffff
def GenerateNode(filepath, nodeID = 0): # Create a new node Node = node.Node(id = nodeID) try: # Parse file and extract dictionary of EDS entry eds_dict = ParseEDSFile(filepath) # Extract Profile Number from Device Type entry ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff # If profile is not DS-301 or DS-302...
61bebf15508c105f83a17988733e8e2265365cb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11017/61bebf15508c105f83a17988733e8e2265365cb9/eds_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 907, 12, 10561, 16, 14871, 273, 374, 4672, 468, 1788, 279, 394, 756, 2029, 273, 756, 18, 907, 12, 350, 273, 14871, 13, 775, 30, 468, 2884, 585, 471, 2608, 3880, 434, 512, 3948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 907, 12, 10561, 16, 14871, 273, 374, 4672, 468, 1788, 279, 394, 756, 2029, 273, 756, 18, 907, 12, 350, 273, 14871, 13, 775, 30, 468, 2884, 585, 471, 2608, 3880, 434, 512, 3948, ...
os.setreuid(0, 0) os.setregid(0, 0)
self._elevatePrivs()
def restorePrivs(self): # back to root first os.setreuid(0, 0) os.setregid(0, 0)
8a780e16ad87c2ad0ac3494b2254032748093ced /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/8a780e16ad87c2ad0ac3494b2254032748093ced/uid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 15475, 87, 12, 2890, 4672, 468, 1473, 358, 1365, 1122, 1140, 18, 542, 266, 1911, 12, 20, 16, 374, 13, 1140, 18, 542, 1574, 350, 12, 20, 16, 374, 13, 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, 5217, 15475, 87, 12, 2890, 4672, 468, 1473, 358, 1365, 1122, 1140, 18, 542, 266, 1911, 12, 20, 16, 374, 13, 1140, 18, 542, 1574, 350, 12, 20, 16, 374, 13, 2, -100, -100, -100, -100, ...
def readManifest(self, manifest): """ Given a manifest file containing a list of test directories, return a list of absolute paths to the directories contained within. """ manifestdir = os.path.dirname(manifest) testdirs = []
def readManifest(self): """ For a given manifest file, read the contents and populate self.testdirs """ manifestdir = os.path.dirname(self.manifest)
def readManifest(self, manifest): """ Given a manifest file containing a list of test directories, return a list of absolute paths to the directories contained within. """ manifestdir = os.path.dirname(manifest) testdirs = [] try: f = open(manifest, "r") for line in f: dir = line.rstrip() path = os.path.join(manifestdi...
427937ff35ea20b5cbfb1e6dd1fb45dae71131c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/427937ff35ea20b5cbfb1e6dd1fb45dae71131c3/runxpcshelltests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 9121, 12, 2890, 4672, 3536, 2457, 279, 864, 5643, 585, 16, 855, 326, 2939, 471, 6490, 365, 18, 3813, 8291, 3536, 5643, 1214, 273, 1140, 18, 803, 18, 12287, 12, 2890, 18, 14357, 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, 855, 9121, 12, 2890, 4672, 3536, 2457, 279, 864, 5643, 585, 16, 855, 326, 2939, 471, 6490, 365, 18, 3813, 8291, 3536, 5643, 1214, 273, 1140, 18, 803, 18, 12287, 12, 2890, 18, 14357, 13...
sage: min(g.degree()) >= g.edge_connectivity()
sage: min(g.degree()) >= g.edge_connectivity()
def edge_connectivity(self, value_only=True, use_edge_labels=False, vertices=False, solver=None, verbose=0): r""" Returns the edge connectivity of the graph. For more information, see the `Wikipedia article on connectivity <http://en.wikipedia.org/wiki/Connectivity_(graph_theory)>`_. INPUT:
1b1e9fa38a9074f82933aa4bcd32aa9ddb2cd120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b1e9fa38a9074f82933aa4bcd32aa9ddb2cd120/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 3612, 2818, 12, 2890, 16, 460, 67, 3700, 33, 5510, 16, 999, 67, 7126, 67, 5336, 33, 8381, 16, 6928, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 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, 3591, 67, 3612, 2818, 12, 2890, 16, 460, 67, 3700, 33, 5510, 16, 999, 67, 7126, 67, 5336, 33, 8381, 16, 6928, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, ...
old_items = self.createItemsForParsed(parsed)
self.remember_old_items() self.createItemsForParsed(parsed)
def feedparser_callback(self, parsed): self.ufeed.confirm_db_thread() if not self.ufeed.id_exists(): return start = clock() parsed = self.parsed = unicodify(parsed) old_items = self.createItemsForParsed(parsed)
3c3b6870a8d2a53770dbfe886ab2230073ce65f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/3c3b6870a8d2a53770dbfe886ab2230073ce65f7/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4746, 4288, 67, 3394, 12, 2890, 16, 2707, 4672, 365, 18, 696, 73, 329, 18, 10927, 67, 1966, 67, 5930, 1435, 309, 486, 365, 18, 696, 73, 329, 18, 350, 67, 1808, 13332, 327, 787, 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, 4746, 4288, 67, 3394, 12, 2890, 16, 2707, 4672, 365, 18, 696, 73, 329, 18, 10927, 67, 1966, 67, 5930, 1435, 309, 486, 365, 18, 696, 73, 329, 18, 350, 67, 1808, 13332, 327, 787, 273, ...
if string.lower(attr) == 'type' and \
if attr.lower() == 'type' and \
def open_ftp(self, url): """Use FTP protocol.""" host, path = splithost(url) if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) user, host = splituser(host) if user: user, passwd = splitpasswd(user) else: passwd = None host = unquote(host) user = unquote(user or '') passwd = unquote...
b2493f855a7319ce0748bfb965253cad9c9f5a2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b2493f855a7319ce0748bfb965253cad9c9f5a2c/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 11727, 12, 2890, 16, 880, 4672, 3536, 3727, 19324, 1771, 12123, 1479, 16, 589, 273, 6121, 483, 669, 12, 718, 13, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 11727, 12, 2890, 16, 880, 4672, 3536, 3727, 19324, 1771, 12123, 1479, 16, 589, 273, 6121, 483, 669, 12, 718, 13, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 2...