rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
timeaware = timetz(now.hour, now.minute, now.second, now.microsecond, tzinfo=tz55)
timeaware = now.timetz().replace(tzinfo=tz55)
def test_tz_aware_arithmetic(self): import random
4c0db788e2500ca2140633d24b0c1c6c6d277a92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4c0db788e2500ca2140633d24b0c1c6c6d277a92/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 67, 30799, 67, 297, 16368, 12, 2890, 4672, 1930, 2744, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 67, 30799, 67, 297, 16368, 12, 2890, 4672, 1930, 2744, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
inc_dir = base
inc_dir = buildir
def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pycon...
ced6d2df218e9b21a56391190e3766cdb7db9335 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/ced6d2df218e9b21a56391190e3766cdb7db9335/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 9523, 12, 412, 270, 67, 12524, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 5876, 6600, 1446, 1390, 18, 225, 971, 296, 412, 270, 67, 12524, 11, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 9523, 12, 412, 270, 67, 12524, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 5876, 6600, 1446, 1390, 18, 225, 971, 296, 412, 270, 67, 12524, 11, 35...
if (PkgSkip("PYTHON")==0):
if (PkgSkip("PYTHON")==0 and os.path.isdir("thirdparty/Pmw")):
def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2))...
bfd080ed5d714c59f2511ebbf9f1cbb6c59309d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/bfd080ed5d714c59f2511ebbf9f1cbb6c59309d7/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
print 'Skip pattern', pat, print 'matches', name
print 'Skip pattern', `pat`, print 'matches', `name`
def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open...
a25969620ad128c95dde9cf500b28fa3e57611c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a25969620ad128c95dde9cf500b28fa3e57611c9/ftpmirror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 117...
function.
function. @cvar _SIGNATURE_RE: A regular expression that is used to check whether a builtin function or method has a signature in its docstring.
def add_subclass(self, cls): """ Register a subclass for the class doumented by this CC{ClassDoc}. This must be done externally, since we can't determine a class's subclasses through introspection alone. This is automatically called by L{DocMap.add} when new classes are added to a C{DocMap}.
065d9e81e0092aa76af93c5f65eb4326d02a3124 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/065d9e81e0092aa76af93c5f65eb4326d02a3124/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 10678, 12, 2890, 16, 2028, 4672, 3536, 5433, 279, 10177, 364, 326, 667, 741, 650, 329, 635, 333, 16525, 95, 797, 1759, 5496, 225, 1220, 1297, 506, 2731, 18885, 1230, 16, 3241, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 10678, 12, 2890, 16, 2028, 4672, 3536, 5433, 279, 10177, 364, 326, 667, 741, 650, 329, 635, 333, 16525, 95, 797, 1759, 5496, 225, 1220, 1297, 506, 2731, 18885, 1230, 16, 3241, ...
numfonts = int(file.readline())
line = file.readline() if not line: return numfonts = int(line)
def read_unix_fontsdir(dir, file, fonts): file = open(os.path.join(dir, file)) numfonts = int(file.readline()) for line in file.readlines(): font, descr = (line.split(' ', 1) + ['', ''])[:2] if font[-4:].lower() not in [".ttf", ".ttc"]: continue font = os.path.join(dir, font) descr = descr.split('-', 13) name = _simpl...
61730f2d90c6b88b1e1efe37e4410f99231f6c67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/61730f2d90c6b88b1e1efe37e4410f99231f6c67/sysfont.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 21136, 67, 22052, 1214, 12, 1214, 16, 585, 16, 16450, 4672, 585, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 1214, 16, 585, 3719, 980, 273, 585, 18, 896, 1369, 1435, 309, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 21136, 67, 22052, 1214, 12, 1214, 16, 585, 16, 16450, 4672, 585, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 1214, 16, 585, 3719, 980, 273, 585, 18, 896, 1369, 1435, 309, 486...
self._out.write(escape(content))
self._write(escape(content))
def characters(self, content): self._out.write(escape(content))
034b6b7be3cebf53fcb52320123270e2205c4645 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/034b6b7be3cebf53fcb52320123270e2205c4645/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3949, 12, 2890, 16, 913, 4672, 365, 6315, 659, 18, 2626, 12, 6939, 12, 1745, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3949, 12, 2890, 16, 913, 4672, 365, 6315, 659, 18, 2626, 12, 6939, 12, 1745, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
first row is the same as in G.list(). EXAMPLES::
first row is the same as in ``G.list()``::
def cayley_table(self, names="x"): """ Returns the multiplication table, or Cayley table, of the finite group G in the form of a matrix with symbolic coefficients. This function is useful for learning, teaching, and exploring elementary group theory. Of course, G must be a group of low order.
2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 528, 30678, 67, 2121, 12, 2890, 16, 1257, 1546, 92, 6, 4672, 3536, 2860, 326, 23066, 1014, 16, 578, 385, 528, 30678, 1014, 16, 434, 326, 25922, 1041, 611, 316, 326, 646, 434, 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, 276, 528, 30678, 67, 2121, 12, 2890, 16, 1257, 1546, 92, 6, 4672, 3536, 2860, 326, 23066, 1014, 16, 578, 385, 528, 30678, 1014, 16, 434, 326, 25922, 1041, 611, 316, 326, 646, 434, 279,...
s = u'\x00="\'a\\b\x80\xff\u0000\u0001\u1234'
s = unicode(r'\x00="\'a\\b\x80\xff\u0000\u0001\u1234', 'unicode-escape')
def testunicode(): try: array.array('b', u'foo') except TypeError: pass else: raise TestFailed("creating a non-unicode array from " "a Unicode string should fail") x = array.array('u', u'\xa0\xc2\u1234') x.fromunicode(u' ') x.fromunicode(u'') x.fromunicode(u'') x.fromunicode(u'\x11abc\xff\u1234') s = x.tounicode() if ...
b2f5a97f7510d0ffbf71f719cc51e7263d08c9da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b2f5a97f7510d0ffbf71f719cc51e7263d08c9da/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9124, 13332, 775, 30, 526, 18, 1126, 2668, 70, 2187, 582, 11, 11351, 6134, 1335, 3580, 30, 1342, 469, 30, 1002, 7766, 2925, 2932, 23799, 279, 1661, 17, 9124, 526, 628, 315, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9124, 13332, 775, 30, 526, 18, 1126, 2668, 70, 2187, 582, 11, 11351, 6134, 1335, 3580, 30, 1342, 469, 30, 1002, 7766, 2925, 2932, 23799, 279, 1661, 17, 9124, 526, 628, 315, 315, ...
print 'There are no subcategories in category ' + old_title
print 'There are no subcategories in category ' + old_cat_title
def rename_category(): old_title = wikipedia.input('Please enter the old name of the category: ') old_cat = catlib.CatLink(old_title) new_title = wikipedia.input('Please enter the new name of the category: ') new_cat = catlib.CatLink(new_title) # get edit summary message wikipedia.setAction(msg_change[wikipedia.choose...
8fe4e1817561eb473c4b424b96ecd3c166227672 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/8fe4e1817561eb473c4b424b96ecd3c166227672/category.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 67, 4743, 13332, 1592, 67, 2649, 273, 21137, 18, 2630, 2668, 8496, 6103, 326, 1592, 508, 434, 326, 3150, 30, 8624, 1592, 67, 2574, 273, 6573, 2941, 18, 11554, 2098, 12, 1673, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 67, 4743, 13332, 1592, 67, 2649, 273, 21137, 18, 2630, 2668, 8496, 6103, 326, 1592, 508, 434, 326, 3150, 30, 8624, 1592, 67, 2574, 273, 6573, 2941, 18, 11554, 2098, 12, 1673, 67, ...
te_fn = '%s/transaction-done.%s' % (self.base.conf.persistdir, self._ts_time) self.ts_done_fn = te_fn
self.ts_done_fn = '%s/transaction-done.%s' % (self.base.conf.persistdir, self._ts_time)
def ts_done(self, package, action): """writes out the portions of the transaction which have completed""" if self.test: return if not hasattr(self, '_ts_done'): # need config variable to put this in a better path/name te_fn = '%s/transaction-done.%s' % (self.base.conf.persistdir, self._ts_time) self.ts_done_fn = te_f...
d8c1b05779df4df078bc002b7daf24a8609a430f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/d8c1b05779df4df078bc002b7daf24a8609a430f/rpmtrans.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3742, 67, 8734, 12, 2890, 16, 2181, 16, 1301, 4672, 3536, 13284, 596, 326, 1756, 1115, 434, 326, 2492, 1492, 1240, 5951, 8395, 225, 309, 365, 18, 3813, 30, 327, 225, 309, 486, 3859, 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, 3742, 67, 8734, 12, 2890, 16, 2181, 16, 1301, 4672, 3536, 13284, 596, 326, 1756, 1115, 434, 326, 2492, 1492, 1240, 5951, 8395, 225, 309, 365, 18, 3813, 30, 327, 225, 309, 486, 3859, 12...
self._detect_dimensions_size()
try: self._detect_dimensions_size() except Exception, e: logging.warning('Error while detecting dimension size')
def set_data(self, data): ''' Set data, can be a numpy.array or a list / tuple. The latter will be converted to a numpy.array. '''
6f93db28da3c80db0ba6e518fddf926814e0500c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/6f93db28da3c80db0ba6e518fddf926814e0500c/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 892, 12, 2890, 16, 501, 4672, 9163, 1000, 501, 16, 848, 506, 279, 3972, 18, 1126, 578, 279, 666, 342, 3193, 18, 1021, 23740, 903, 506, 5970, 358, 279, 3972, 18, 1126, 18, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 892, 12, 2890, 16, 501, 4672, 9163, 1000, 501, 16, 848, 506, 279, 3972, 18, 1126, 578, 279, 666, 342, 3193, 18, 1021, 23740, 903, 506, 5970, 358, 279, 3972, 18, 1126, 18, 91...
expr = re.compile('<body>(.*)</body>', re.I + re.S) match = expr.search(new_body) new_body = match.group() data = self.to_str() data = expr.sub(new_body, data) resource = memory.File(data) self.load_state(resource)
resource = memory.File(new_body) doc = XHTML.Document(resource) children = doc.get_body().children body = self.get_body() self.set_changed() body.children = children
def edit(self, **kw): # XXX This code is ugly. We must: (1) write our own XML parser, with # support for fragments, and (2) use the commented code.
5bc8b32f83e226ba5c67c58362cdbc527025d34d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/5bc8b32f83e226ba5c67c58362cdbc527025d34d/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 2826, 9987, 4672, 468, 11329, 1220, 981, 353, 26920, 18, 1660, 1297, 30, 261, 21, 13, 1045, 3134, 4953, 3167, 2082, 16, 598, 468, 2865, 364, 14656, 16, 471, 261, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 2826, 9987, 4672, 468, 11329, 1220, 981, 353, 26920, 18, 1660, 1297, 30, 261, 21, 13, 1045, 3134, 4953, 3167, 2082, 16, 598, 468, 2865, 364, 14656, 16, 471, 261, 22...
raise err
raise
def testfile(self): try: execfile(self.filename, {'display': self.display}) except KeyboardInterrupt: raise RuntimeError('Keyboard interrupt') except NotAvailable, err: # Only non-zero error codes are failures if err.code: raise err
88044c98a57126f344b7fadb0f0e7bfc62b418c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/88044c98a57126f344b7fadb0f0e7bfc62b418c3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 768, 12, 2890, 4672, 775, 30, 1196, 768, 12, 2890, 18, 3459, 16, 13666, 5417, 4278, 365, 18, 5417, 6792, 1335, 19424, 30, 1002, 7265, 2668, 17872, 13123, 6134, 1335, 2288, 5268, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 768, 12, 2890, 4672, 775, 30, 1196, 768, 12, 2890, 18, 3459, 16, 13666, 5417, 4278, 365, 18, 5417, 6792, 1335, 19424, 30, 1002, 7265, 2668, 17872, 13123, 6134, 1335, 2288, 5268, 16...
else: return render_to_response('reviewapp/resend_activation_email.html', {'user_exist': False, 'email': email}, context_instance=RequestContext(request))
else: return render_to_response('reviewapp/resend_activation_email.html', {'user_exist': False, 'email': email}, context_instance=RequestContext(request))
def resend_activation_email(request): email = request.GET.get('email', '') users = User.objects.filter(email=email) if len(users) > 0: user = users[0] profile = RegistrationProfile.objects.get(user=user) else: user = None profile = None if user: if user.is_active: return HttpResponseRedirect(reverse('reviewapp.passw...
9510fd9f224115e7cda074ad072a629c2a18440f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/9510fd9f224115e7cda074ad072a629c2a18440f/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31972, 67, 16908, 67, 3652, 12, 2293, 4672, 225, 2699, 273, 590, 18, 3264, 18, 588, 2668, 3652, 2187, 28707, 3677, 273, 2177, 18, 6911, 18, 2188, 12, 3652, 33, 3652, 13, 225, 309, 562,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31972, 67, 16908, 67, 3652, 12, 2293, 4672, 225, 2699, 273, 590, 18, 3264, 18, 588, 2668, 3652, 2187, 28707, 3677, 273, 2177, 18, 6911, 18, 2188, 12, 3652, 33, 3652, 13, 225, 309, 562,...
subject, comment, alias=alias)
subject, comment, severity=severity, alias=alias)
def file_bug(package): """File a bug, so our hard work doesn't go to waste.""" bzweb = bugzilla.WebInterface(BUGZILLA_URL) bz = bzweb.login(BUGZILLA_USERNAME, BUGZILLA_PASSWORD) alias = "merge-%s" % package subject = "%s: new changes from Debian require merging" % package comment = "New changes from Debian require ...
15e667dda2fd8c336f858f4e1466ab9f9672bea6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1955/15e667dda2fd8c336f858f4e1466ab9f9672bea6/hi_mom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 925, 12, 5610, 4672, 3536, 812, 279, 7934, 16, 1427, 3134, 7877, 1440, 3302, 1404, 1960, 358, 341, 14725, 12123, 225, 24788, 4875, 273, 7934, 15990, 18, 4079, 1358, 12, 4827, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 925, 12, 5610, 4672, 3536, 812, 279, 7934, 16, 1427, 3134, 7877, 1440, 3302, 1404, 1960, 358, 341, 14725, 12123, 225, 24788, 4875, 273, 7934, 15990, 18, 4079, 1358, 12, 4827, 62...
result = 'failed' tarball = fetchLatest(workingDir, snarfDir, log) if tarball is not None: snarfBin = os.path.join(snarfDir, tarball[:-7], 'bin') snarfLog = os.path.join(snarfDir, tarball[:-7], 'logs', 'osafsrv.log') log.write('[tbox] starting Cosmo [%s]' % snarfBin) print 'starting Cosmo', snarfBin os.chdir(snarfB...
result = 'failed' tarball = fetchLatest(workingDir, snarfDir, log) snarfRoot = os.path.join(snarfDir, tarball[:-7]) if startCosmo(snarfRoot, log): log.write('[tbox] Starting Windmill') print 'starting windmill', os.path.join(workingDir, 'run_windmill.sh')
def runWindmill(scriptDir, workingDir, windmillDir, snarfDir, log): result = 'failed' tarball = fetchLatest(workingDir, snarfDir, log) if tarball is not None: snarfBin = os.path.join(snarfDir, tarball[:-7], 'bin') snarfLog = os.path.join(snarfDir, tarball[:-7], 'logs', 'osafsrv.log') log.write('[tbox] starting Cosmo...
e9c7c4e1645118884850ae1e03a16a46880bc4a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/e9c7c4e1645118884850ae1e03a16a46880bc4a6/cosmo_windmill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 59, 728, 81, 737, 12, 4263, 1621, 16, 5960, 1621, 16, 17064, 81, 737, 1621, 16, 4556, 297, 74, 1621, 16, 613, 4672, 563, 565, 273, 296, 7307, 11, 29441, 282, 273, 2158, 18650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 59, 728, 81, 737, 12, 4263, 1621, 16, 5960, 1621, 16, 17064, 81, 737, 1621, 16, 4556, 297, 74, 1621, 16, 613, 4672, 563, 565, 273, 296, 7307, 11, 29441, 282, 273, 2158, 18650, ...
py.test.skip("virtualization of lists not supported for now")
def check_all_virtualized(self): py.test.skip("virtualization of lists not supported for now") self.check_loops(new_array=0, setarrayitem_gc=0, getarrayitem_gc=0, arraylen_gc=0)
1b8cd967247d845e496fc1d67d37de7ab2b43a96 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/1b8cd967247d845e496fc1d67d37de7ab2b43a96/test_vlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 454, 67, 12384, 1235, 12, 2890, 4672, 365, 18, 1893, 67, 383, 4473, 12, 2704, 67, 1126, 33, 20, 16, 444, 1126, 1726, 67, 13241, 33, 20, 16, 336, 1126, 1726, 67, 13241, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 454, 67, 12384, 1235, 12, 2890, 4672, 365, 18, 1893, 67, 383, 4473, 12, 2704, 67, 1126, 33, 20, 16, 444, 1126, 1726, 67, 13241, 33, 20, 16, 336, 1126, 1726, 67, 13241, 33, ...
str += '<a class="navbar" href="' if self._show_private: str += '../' str += 'epydoc-tree.html">Trees</a>'
str += '<a class="navbar" href="epydoc-tree.html">Trees</a>'
def _navbar(self, where, uid=None): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: The type of page for which a navigation bar should be generated. Possible values are C{'cl...
dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, ...
"""Remove an element from a set if it is a member. If the element is not a member, do nothing."""
"""If `item` is a member of the set, remove it."""
def discard(self, item): """Remove an element from a set if it is a member. If the element is not a member, do nothing.""" if item in self: self.remove(item)
3494fa39678f2e5bc57cacb7df60645ab385db6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12095/3494fa39678f2e5bc57cacb7df60645ab385db6a/ngram.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10388, 12, 2890, 16, 761, 4672, 3536, 2047, 1375, 1726, 68, 353, 279, 3140, 434, 326, 444, 16, 1206, 518, 12123, 309, 761, 316, 365, 30, 365, 18, 4479, 12, 1726, 13, 225, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10388, 12, 2890, 16, 761, 4672, 3536, 2047, 1375, 1726, 68, 353, 279, 3140, 434, 326, 444, 16, 1206, 518, 12123, 309, 761, 316, 365, 30, 365, 18, 4479, 12, 1726, 13, 225, 2, -100, -1...
if stats_percentage[l][1] > 25 and work_ld == "kernbench": cpu_id = stats_percentage[l][0].split("cpu") if cpu_id[1] != '':
if work_ld == "kernbench" and sched_smt_level < sched_mc_level: siblings = get_siblings(cpu_id[1]) if siblings != "": sib_list = siblings.split() utilization = int(stats_percentage[l][1]) for i in range(0, len(sib_list)): utilization += int(get_cpu_utilization("cpu%s" %sib_list[i])) else: utilization = stats_percentage...
def validate_cpu_consolidation(work_ld, sched_mc_level, sched_smt_level): ''' Verify if cpu's on which threads executed belong to same package ''' cpus_utilized = list() try: for l in sorted(stats_percentage.keys()): #modify threshold if is_hyper_threaded(): if stats_percentage[l][1] > 25 and work_ld == "kernbench": cp...
b5af98f16f5584d86b5f6623d3f0483a07ebe5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/b5af98f16f5584d86b5f6623d3f0483a07ebe5f2/sched_mc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 11447, 67, 8559, 7953, 367, 12, 1252, 67, 1236, 16, 23964, 67, 13952, 67, 2815, 16, 23964, 67, 87, 1010, 67, 2815, 4672, 9163, 8553, 309, 8326, 1807, 603, 1492, 7403, 7120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 11447, 67, 8559, 7953, 367, 12, 1252, 67, 1236, 16, 23964, 67, 13952, 67, 2815, 16, 23964, 67, 87, 1010, 67, 2815, 4672, 9163, 8553, 309, 8326, 1807, 603, 1492, 7403, 7120, 1...
cr = pooler.get_db(db).cursor()
cr = pooler.get_db(db).cursor()
def login(self, db, login, password): if not password: return False cr = pooler.get_db(db).cursor() cr.execute('select id from res_users where login=%s and password=%s and active', (tools.ustr(login), tools.ustr(password))) res = cr.fetchone() cr.close() if res: return res[0] else: return False
8fea97ff67ba87da5ef5154b06c9dbb1bfcc95c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/8fea97ff67ba87da5ef5154b06c9dbb1bfcc95c3/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 1319, 16, 3925, 16, 2201, 4672, 309, 486, 2201, 30, 327, 1083, 4422, 273, 2845, 264, 18, 588, 67, 1966, 12, 1966, 2934, 9216, 1435, 4422, 18, 8837, 2668, 4025, 612,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 1319, 16, 3925, 16, 2201, 4672, 309, 486, 2201, 30, 327, 1083, 4422, 273, 2845, 264, 18, 588, 67, 1966, 12, 1966, 2934, 9216, 1435, 4422, 18, 8837, 2668, 4025, 612,...
Packages the given binary data in an API frame and _writes the
Packages the given binary data in an API frame and writes the
def _write(self, data): """ _write: binary data -> None Packages the given binary data in an API frame and _writes the result to the serial port """ self.serial._write(APIFrame(data).output())
4d5bb75e536f25e3923a55dc55a49069aa51737f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10420/4d5bb75e536f25e3923a55dc55a49069aa51737f/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 501, 4672, 3536, 389, 2626, 30, 3112, 501, 317, 599, 225, 7930, 1023, 326, 864, 3112, 501, 316, 392, 1491, 2623, 471, 7262, 326, 563, 358, 326, 2734, 1756, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 501, 4672, 3536, 389, 2626, 30, 3112, 501, 317, 599, 225, 7930, 1023, 326, 864, 3112, 501, 316, 392, 1491, 2623, 471, 7262, 326, 563, 358, 326, 2734, 1756, 353...
self.append_modified (strip(line[1:]))
if line[2] == 'U': self.append_modified (strip(line[2:])) else: self.append_modified (strip(line[1:]))
def load_normal_log (self, log): ### Analyse log #print "<pre style='border: 1px solid red;'>" + log + "</pre>" loglines = (re.split ('\n', log))[1:-1];
54249fd0cd1f09b38671dd67cf9fdf8da88cf302 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2574/54249fd0cd1f09b38671dd67cf9fdf8da88cf302/SCMsvn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 6130, 67, 1330, 261, 2890, 16, 613, 4672, 11849, 1922, 3450, 307, 613, 468, 1188, 3532, 1484, 2154, 2218, 8815, 30, 404, 4430, 18035, 1755, 4359, 2984, 397, 613, 397, 6823, 148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6130, 67, 1330, 261, 2890, 16, 613, 4672, 11849, 1922, 3450, 307, 613, 468, 1188, 3532, 1484, 2154, 2218, 8815, 30, 404, 4430, 18035, 1755, 4359, 2984, 397, 613, 397, 6823, 148...
parser.add_option("-d", "--decim", type="int", default=112, help="Set fgpa decimation rate to DECIM [default=%default]")
parser.add_option("-E", "--equalizer", type="string", default="none", help="Type of equalizer to use. none, fixed-dfe [default=%default]") parser.add_option("-t", "--timing", type="string", default="cn", help="Type of timing techniques to use. [default=%default] \n" + "(n)one, (c)orrelation track, (q)uarter bit, (f)ul...
def __init__(self, frame, panel, vbox, argv): stdgui.gui_flow_graph.__init__(self)
b5a766ad3cf7ace8184a93912fcda3cbfb5c1279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10611/b5a766ad3cf7ace8184a93912fcda3cbfb5c1279/gsm_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2623, 16, 6594, 16, 331, 2147, 16, 5261, 4672, 2044, 20292, 18, 20292, 67, 2426, 67, 4660, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 2623, 16, 6594, 16, 331, 2147, 16, 5261, 4672, 2044, 20292, 18, 20292, 67, 2426, 67, 4660, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -10...
if hlp not in splitgrps and authid in range(1,len(datalist)):
if hlp not in splitgrps and authid in range(1, len(datalist)):
def splitgroups(id_role=0, id_action=0, authids=[]): """get all the old ones, gather up the arglistids find a list of arglistidgroups to be split, unique get all actions in groups outside of the old ones, (old arglistid is allowed). show them like in showselect. """ if not id_role or not id_action or not authids: ret...
23f82669a784517b3dd8a1acd98ec74aa6e40517 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/23f82669a784517b3dd8a1acd98ec74aa6e40517/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 4650, 12, 350, 67, 4615, 33, 20, 16, 612, 67, 1128, 33, 20, 16, 1357, 2232, 33, 8526, 4672, 3536, 588, 777, 326, 1592, 5945, 16, 11090, 731, 326, 31805, 2232, 1104, 279, 666, 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, 1416, 4650, 12, 350, 67, 4615, 33, 20, 16, 612, 67, 1128, 33, 20, 16, 1357, 2232, 33, 8526, 4672, 3536, 588, 777, 326, 1592, 5945, 16, 11090, 731, 326, 31805, 2232, 1104, 279, 666, 4...
msg['Message-Id'] = "<%s-openobject-%s@%s>" % (time.time(), openobject_id, socket.gethostname())
message['Message-Id'] = "<%s-openobject-%s@%s>" % (time.time(), openobject_id, socket.gethostname())
def _email_send(message, openobject_id=None, debug=False): """Low-level method to send directly a Message through the configured smtp server. :param message: an email.message.Message to send :param debug: True if messages should be output to stderr before being sent, and smtplib.SMTP put into debug mode. :return: True ...
373118bd77f6ea0bc884e384ab478fc85efba80b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/373118bd77f6ea0bc884e384ab478fc85efba80b/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3652, 67, 4661, 12, 2150, 16, 1696, 1612, 67, 350, 33, 7036, 16, 1198, 33, 8381, 4672, 3536, 10520, 17, 2815, 707, 358, 1366, 5122, 279, 2350, 3059, 326, 4351, 17660, 1438, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3652, 67, 4661, 12, 2150, 16, 1696, 1612, 67, 350, 33, 7036, 16, 1198, 33, 8381, 4672, 3536, 10520, 17, 2815, 707, 358, 1366, 5122, 279, 2350, 3059, 326, 4351, 17660, 1438, 18, 29...
f.write('\\item %s\n' % (i[0].replace('_','\\_'))) f.write("""\\end{itemize}
if i[0] not in knownLangs: f.write('\\twocolitem{%s}{}\n' % (i[0].replace('_','\\_'))) knownLangs.append(i[0]) f.write("""\\end{twocollist}\itemsep=0pt
def GenDocs(table): f = open('_wxlang.tex', 'wt') f.write("""
b5e2a45022ad4d331564e8b69c294e23f11cfa2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12725/b5e2a45022ad4d331564e8b69c294e23f11cfa2a/genlang.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 12656, 12, 2121, 4672, 284, 273, 1696, 2668, 67, 27226, 4936, 18, 21763, 2187, 296, 6046, 6134, 284, 18, 2626, 2932, 3660, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 10938, 12656, 12, 2121, 4672, 284, 273, 1696, 2668, 67, 27226, 4936, 18, 21763, 2187, 296, 6046, 6134, 284, 18, 2626, 2932, 3660, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
print therm_total, therm_count
def log(*values): """Log a tuple of values in CSV format to stdout and a log file""" global logFile if logFile is None: logFile = open("rx-log.csv", "w") line = ", ".join([str(value) for value in values]) print line logFile.write(line + "\n") logFile.flush()
a215a2ea2ee982d5a909abee27ca36d833695a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/a215a2ea2ee982d5a909abee27ca36d833695a38/rx-test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 30857, 2372, 4672, 3536, 1343, 279, 3193, 434, 924, 316, 10381, 740, 358, 3909, 471, 279, 613, 585, 8395, 2552, 20169, 309, 20169, 353, 599, 30, 20169, 273, 1696, 2932, 20122, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 30857, 2372, 4672, 3536, 1343, 279, 3193, 434, 924, 316, 10381, 740, 358, 3909, 471, 279, 613, 585, 8395, 2552, 20169, 309, 20169, 353, 599, 30, 20169, 273, 1696, 2932, 20122, 17, 1...
self.initfp(f)
try: self.initfp(f) except: if self._i_opened_the_file: f.close() raise
def __init__(self, f): self._i_opened_the_file = None if isinstance(f, basestring): f = __builtin__.open(f, 'wb') self._i_opened_the_file = f self.initfp(f)
7cd6ef09135f69675b54e0a8532f0063912e99ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/7cd6ef09135f69675b54e0a8532f0063912e99ed/wave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 4672, 365, 6315, 77, 67, 25304, 67, 5787, 67, 768, 273, 599, 309, 1549, 12, 74, 16, 10699, 4672, 284, 273, 1001, 24553, 25648, 3190, 12, 74, 16, 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, 1001, 2738, 972, 12, 2890, 16, 284, 4672, 365, 6315, 77, 67, 25304, 67, 5787, 67, 768, 273, 599, 309, 1549, 12, 74, 16, 10699, 4672, 284, 273, 1001, 24553, 25648, 3190, 12, 74, 16, 2...
path = os.path.join(os.path.dirname(__file__), 'qbraryintro.html') self.response.out.write(template.render(path, None))
subs = Subject.gql('WHERE parent_subject=:1', None) if subs.count() < 1: path = os.path.join(os.path.dirname(__file__), 'qbraryempty.html') self.response.out.write(template.render(path, None)) else: root = subs[0] subjects = Subject.gql('WHERE parent_subject = :1', root) if subjects.count() < 1: path = os.path.j...
def get(self): # note: don't require login to view the intro page path = os.path.join(os.path.dirname(__file__), 'qbraryintro.html') self.response.out.write(template.render(path, None))
f6b59edae99c7b236fd6b7bf2f260c1f5e178882 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/f6b59edae99c7b236fd6b7bf2f260c1f5e178882/qbrary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 468, 4721, 30, 2727, 1404, 2583, 3925, 358, 1476, 326, 13079, 1363, 11630, 273, 9912, 18, 75, 1217, 2668, 12299, 982, 67, 7857, 23507, 21, 2187, 599, 13, 565, 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, 336, 12, 2890, 4672, 468, 4721, 30, 2727, 1404, 2583, 3925, 358, 1476, 326, 13079, 1363, 11630, 273, 9912, 18, 75, 1217, 2668, 12299, 982, 67, 7857, 23507, 21, 2187, 599, 13, 565, 309, ...
SqlCommand = """select A.ID, A.Value1, B.Value2 from Inf as A left join Inf as B where A.Model = %s and B.Value1 = '%s' and B.Model = %s
SqlCommand = """select A.ID, A.Value1, B.Value2 from Inf as A left join Inf as B where A.Model = %s and B.Value1 = '%s' and B.Model = %s
def MetaDataFileCheckLibraryInstance(self): if EccGlobalData.gConfig.MetaDataFileCheckLibraryInstance == '1' or EccGlobalData.gConfig.MetaDataFileCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1': EdkLogger.quiet("Checking for library instance type issue ...") SqlCommand = """select A.ID, A.Value2, B.Value2 from...
a6e36e70878424fa438700e0b8e96c273ec9e985 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/a6e36e70878424fa438700e0b8e96c273ec9e985/Check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27512, 812, 1564, 9313, 1442, 12, 2890, 4672, 309, 512, 952, 5160, 751, 18, 75, 809, 18, 6998, 812, 1564, 9313, 1442, 422, 296, 21, 11, 578, 512, 952, 5160, 751, 18, 75, 809, 18, 699...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27512, 812, 1564, 9313, 1442, 12, 2890, 4672, 309, 512, 952, 5160, 751, 18, 75, 809, 18, 6998, 812, 1564, 9313, 1442, 422, 296, 21, 11, 578, 512, 952, 5160, 751, 18, 75, 809, 18, 699...
self.read_config()
def __init__ (self): """ Constructor """ self.include_namespace = False
cf3926916324c2bce9a56acca57788606ca5d5ce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11338/cf3926916324c2bce9a56acca57788606ca5d5ce/pkgmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 3536, 11417, 3536, 225, 365, 18, 6702, 67, 4937, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 2738, 972, 261, 2890, 4672, 3536, 11417, 3536, 225, 365, 18, 6702, 67, 4937, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if slide_trigs:
if slide_trig_list:
def histstat(trigs=None, slide_trigs=None,ifolist = None, min_val = None, \ max_val = None, nbins = 20, stat=None): """ function to plot a histogram of the snr of coincident events in the zero lag and times slides @param trigs: coincInspiralTable @param slide_trigs: dictionary of time slide triggers @param ifolist: li...
947cb89d1e709fbe36b9c0d414a771f9d89aa9f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/947cb89d1e709fbe36b9c0d414a771f9d89aa9f1/viz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5356, 5642, 12, 313, 360, 87, 33, 7036, 16, 12701, 67, 313, 360, 87, 33, 7036, 16, 430, 355, 376, 273, 599, 16, 1131, 67, 1125, 273, 599, 16, 521, 943, 67, 1125, 273, 599, 16, 4264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5356, 5642, 12, 313, 360, 87, 33, 7036, 16, 12701, 67, 313, 360, 87, 33, 7036, 16, 430, 355, 376, 273, 599, 16, 1131, 67, 1125, 273, 599, 16, 521, 943, 67, 1125, 273, 599, 16, 4264...
links = links_for_trip(trips_info, trip_id)
def get(self, trip_id, type="", page="1"): session = get_session()
1c67bb5808334c681c6ba34ea3f5485a4f220770 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11110/1c67bb5808334c681c6ba34ea3f5485a4f220770/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 20654, 67, 350, 16, 618, 1546, 3113, 1363, 1546, 21, 6, 4672, 1339, 273, 336, 67, 3184, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 20654, 67, 350, 16, 618, 1546, 3113, 1363, 1546, 21, 6, 4672, 1339, 273, 336, 67, 3184, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def __init__(self, title=None, href=None, link_type=None,
def __init__(self, title=None, href=None, link_type=None,
def __init__(self, url=None, width=None, height=None, text=None, gadget_pref=None, extension_elements=None, extension_attributes=None): self.url = url self.width = width self.height = height self.text = text self.gadget_pref = gadget_pref or [] self.extension_elements = extension_elements or [] self.extension_attribute...
6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 880, 33, 7036, 16, 1835, 33, 7036, 16, 2072, 33, 7036, 16, 977, 33, 7036, 16, 314, 361, 588, 67, 25724, 33, 7036, 16, 2710, 67, 6274, 33, 7036, 16, 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, 1001, 2738, 972, 12, 2890, 16, 880, 33, 7036, 16, 1835, 33, 7036, 16, 2072, 33, 7036, 16, 977, 33, 7036, 16, 314, 361, 588, 67, 25724, 33, 7036, 16, 2710, 67, 6274, 33, 7036, 16, 2...
w("\t%s = {\n" % self.buildSettingsId[1][0]) w("\t\tisa = XCBuildConfiguration;\n") w("\t\tbuildSettings = {\n") w("\t\t};\n") w("\t\tname = Default;\n") w("\t};\n")
for name, setting in self.buildSettingsId[1]: w("\t%s = {\n" % setting) w("\t\tisa = XCBuildConfiguration;\n") w("\t\tbuildSettings = {\n") w("\t\t};\n") w("\t\tname = %s;\n" % name) w("\t};\n") for d in self.projects: if d.type in ['game', 'tool']: for name, setting in d.buildSettingsId[1]: w("\t%s = {\n" % setting) w...
def writeXCBuildConfiguration(self, project): w = self.file.write w("/* Begin XCBuildConfiguration section */\n") w("\t%s = {\n" % self.buildSettingsId[1][0]) w("\t\tisa = XCBuildConfiguration;\n") w("\t\tbuildSettings = {\n") w("\t\t};\n") w("\t\tname = Default;\n") w("\t};\n") w("/* End XCBuildConfiguration section *...
d8a499abbdb5c22299bf584761258f470cf7eaec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/d8a499abbdb5c22299bf584761258f470cf7eaec/xcode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 60, 39, 3116, 1750, 12, 2890, 16, 1984, 4672, 341, 273, 365, 18, 768, 18, 2626, 341, 2932, 20308, 14323, 1139, 39, 3116, 1750, 2442, 1195, 64, 82, 7923, 364, 508, 16, 3637, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 60, 39, 3116, 1750, 12, 2890, 16, 1984, 4672, 341, 273, 365, 18, 768, 18, 2626, 341, 2932, 20308, 14323, 1139, 39, 3116, 1750, 2442, 1195, 64, 82, 7923, 364, 508, 16, 3637, 316, ...
c.tags = sorted(text.tag_cloud_normalize(tags), key=lambda (k, c, v): k.name)
c.tags = sorted(text.tag_cloud_normalize(tags), key=lambda (k, c, v): k.name.lower())
def index(self, format='html'): tags = model.Tag.popular_tags(limit=200) c.tags = sorted(text.tag_cloud_normalize(tags), key=lambda (k, c, v): k.name) return render("/tag/index.html")
8a66d9eea49ac35af796f24db3852ff33d2d112a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/8a66d9eea49ac35af796f24db3852ff33d2d112a/tag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 740, 2218, 2620, 11, 4672, 2342, 273, 938, 18, 1805, 18, 5120, 2490, 67, 4156, 12, 3595, 33, 6976, 13, 276, 18, 4156, 273, 3115, 12, 955, 18, 2692, 67, 7277, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 740, 2218, 2620, 11, 4672, 2342, 273, 938, 18, 1805, 18, 5120, 2490, 67, 4156, 12, 3595, 33, 6976, 13, 276, 18, 4156, 273, 3115, 12, 955, 18, 2692, 67, 7277, 67, ...
except OSError:
except (OSError, AttributeError):
def checklink(path): """check whether the given path is on a symlink-capable filesystem""" # mktemp is not racy because symlink creation will fail if the # file already exists name = tempfile.mktemp(dir=path) try: os.symlink(".", name) os.unlink(name) return True except OSError: return False
c1c4bd28226f4ecf59a930b210dac04024f8645d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/c1c4bd28226f4ecf59a930b210dac04024f8645d/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1232, 12, 803, 4672, 3536, 1893, 2856, 326, 864, 589, 353, 603, 279, 10563, 17, 5909, 429, 6496, 8395, 468, 5028, 5814, 353, 486, 767, 2431, 2724, 10563, 6710, 903, 2321, 309, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1232, 12, 803, 4672, 3536, 1893, 2856, 326, 864, 589, 353, 603, 279, 10563, 17, 5909, 429, 6496, 8395, 468, 5028, 5814, 353, 486, 767, 2431, 2724, 10563, 6710, 903, 2321, 309, 326, ...
andi t3, t3, 1 or reg, reg, t3
andi t4, t3, 1, flags=(EZF,) or reg, reg, t4 mov t1, t1, t3, flags=(nCEZF,)
def macroop BSF_R_M { mov t1, t1, t0, dataSize=8 ld t1, seg, sib, disp # Determine if the input was zero, and also move it to a temp reg. and t1, t1, t1, flags=(ZF,) bri t0, label("end"), flags=(CZF,) # Zero out the result register mov reg, reg, t0 subi t2, t1, 1 xor t1, t2, t1 # Bit 6 srli t3, t1, 32, dataSize=8 ...
3e7c07fe3694f0322ad14a3f78d57cc10c7ca6f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7385/3e7c07fe3694f0322ad14a3f78d57cc10c7ca6f6/bit_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 49, 288, 225, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 12092, 16, 16232, 225, 468, 10229, 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, 11522, 556, 605, 22395, 67, 54, 67, 49, 288, 225, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 12092, 16, 16232, 225, 468, 10229, 309, ...
result = load_attachfile(request, pagename)
result = load_attachfile(request, pagename, filename)
def load(request, pagename, filename): # check ACLs if not request.user.may.read(pagename): return xmlrpclib.Fault(1, "You are not allowed to access this page") # Grab the attachment result = load_attachfile(request, pagename) if not result: return xmlrpclib.Fault(2, "Nonexisting attachment: %s" % filename) return x...
79787607c327347116ea2c2791ddf7cf000d3428 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/79787607c327347116ea2c2791ddf7cf000d3428/AttachFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2293, 16, 4262, 1069, 16, 1544, 4672, 468, 866, 10098, 87, 309, 486, 590, 18, 1355, 18, 24877, 18, 896, 12, 9095, 1069, 4672, 327, 2025, 13832, 830, 495, 18, 7083, 12, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2293, 16, 4262, 1069, 16, 1544, 4672, 468, 866, 10098, 87, 309, 486, 590, 18, 1355, 18, 24877, 18, 896, 12, 9095, 1069, 4672, 327, 2025, 13832, 830, 495, 18, 7083, 12, 21, ...
line = inputfile.next() while not "ITER EX" in line:
self.scftype = line.strip()[:-16] dashes = inputfile.next() while line [:5] != " ITER": if "GVB" in self.scftype and "SQCDF TOL=" in line: scftarget = float(line.split("=")[-1])
def extract(self, inputfile, line): """Extract information from the file object inputfile.""" # We are looking for this line: # PARAMETERS CONTROLLING GEOMETRY SEARCH ARE # ... # OPTTOL = 1.000E-04 RMIN = 1.500E-03 if line[10:18] == "OPTTOL =": if not hasattr(self, "geotargets"...
313fea771fa469564ed0a606d1ba0c23d78665f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8167/313fea771fa469564ed0a606d1ba0c23d78665f1/gamessparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 810, 768, 16, 980, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 225, 468, 1660, 854, 7849, 364, 333, 980, 30, 468, 6647, 18120, 55, 8020, 14555, 136...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 810, 768, 16, 980, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 225, 468, 1660, 854, 7849, 364, 333, 980, 30, 468, 6647, 18120, 55, 8020, 14555, 136...
e = Experiment(filename, "grad")
def cannyEdgeImageThinning(img): lut = [0]*256 for k in [183, 222, 123, 237, 219, 111, 189, 246, 220, 115, 205, 55, 103, 157, 118, 217]: lut[k] = 1 res=GrayImage(img.size()) res[1:-1,1:-1].copyValues(img[1:-1,1:-1]) for y in range(1, res.height()-1): for x in range(1, res.width()-1): if res[x,y]: res[x,y] = 1 continue ...
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0), labelImageSize = None): nodes, edges = pixelMapData(geomap, offset, scale) if labelImageSize == None: labelImageSize = geomap.cellImage.size() * scale return Map(nodes, edges, labelImageSize, performBorderClosing = False, performEdgeSplits = False)
8f9143e8a138952bde105f6980b2374386c124ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/8f9143e8a138952bde105f6980b2374386c124ec/pixelmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4957, 863, 22, 1717, 9037, 863, 12, 10049, 438, 16, 3159, 273, 404, 18, 20, 16, 1384, 273, 5589, 22, 12, 20, 16, 374, 3631, 1433, 28576, 273, 599, 4672, 2199, 16, 5231, 273, 4957, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4957, 863, 22, 1717, 9037, 863, 12, 10049, 438, 16, 3159, 273, 404, 18, 20, 16, 1384, 273, 5589, 22, 12, 20, 16, 374, 3631, 1433, 28576, 273, 599, 4672, 2199, 16, 5231, 273, 4957, 86...
return code
return (code,msg)
def data(self,msg): """SMTP 'DATA' command -- sends message data to server. Automatically quotes lines beginning with a period per rfc821. """ self.putcmd("data") (code,repl)=self.getreply() if self.debuglevel >0 : print "data:", (code,repl) if code <> 354: return -1 else: self.send(quotedata(msg)) self.send("%s.%s" % ...
296e14301a7aa23a5ee2bfaa1210af54e594cbbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/296e14301a7aa23a5ee2bfaa1210af54e594cbbf/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 12, 2890, 16, 3576, 4672, 3536, 55, 14636, 296, 4883, 11, 1296, 1493, 9573, 883, 501, 358, 1438, 18, 11809, 20271, 10681, 2362, 8435, 598, 279, 3879, 1534, 16590, 28, 5340, 18, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 12, 2890, 16, 3576, 4672, 3536, 55, 14636, 296, 4883, 11, 1296, 1493, 9573, 883, 501, 358, 1438, 18, 11809, 20271, 10681, 2362, 8435, 598, 279, 3879, 1534, 16590, 28, 5340, 18, 3536...
StmtReturn(ExprDeref(c.callGetConstPtr()))
StmtReturn(c.getConstValue())
def maybeReconstruct(memb, newTypeVar): ifdied = StmtIf(callMaybeDestroy(newTypeVar)) ifdied.addifstmt(StmtExpr(memb.callCtor())) return ifdied
e293dbe9c70c2a5c98b997e4d35cbb72fbf4c278 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/e293dbe9c70c2a5c98b997e4d35cbb72fbf4c278/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6944, 426, 10062, 12, 3917, 70, 16, 23319, 1537, 4672, 309, 72, 2092, 273, 13751, 2047, 12, 1991, 24876, 10740, 12, 2704, 559, 1537, 3719, 309, 72, 2092, 18, 1289, 430, 10589, 12, 8952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6944, 426, 10062, 12, 3917, 70, 16, 23319, 1537, 4672, 309, 72, 2092, 273, 13751, 2047, 12, 1991, 24876, 10740, 12, 2704, 559, 1537, 3719, 309, 72, 2092, 18, 1289, 430, 10589, 12, 8952, ...
if sectionStart > 0 and self._namespace not in [14]: self._section = t[sectionStart+1 : ].lstrip(" ") self._section = sectionencode(self._section, self._site.encoding()) if not self._section: self._section = None t = t[ : sectionStart].rstrip(" ")
if sectionStart > 0: if self._namespace == 14: raise InvalidTitle(u"Invalid section in category '%s'" % t) else: self._section = t[sectionStart+1 : ].lstrip(" ") self._section = sectionencode(self._section, self._site.encoding()) if not self._section: self._section = None t = t[ : sectionStart].rstrip(" ")
def __init__(self, site, title, insite=None, defaultNamespace=0): try: # if _editrestriction is True, it means that the page has been found # to have an edit restriction, but we do not know yet whether the # restriction affects us or not self._editrestriction = False
4b0d958562e96002e104a3487a055c8e731b744b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/4b0d958562e96002e104a3487a055c8e731b744b/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 16, 2763, 1137, 33, 7036, 16, 805, 3402, 33, 20, 4672, 775, 30, 468, 309, 389, 4619, 23954, 353, 1053, 16, 518, 4696, 716, 326, 1363, 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, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 16, 2763, 1137, 33, 7036, 16, 805, 3402, 33, 20, 4672, 775, 30, 468, 309, 389, 4619, 23954, 353, 1053, 16, 518, 4696, 716, 326, 1363, 7...
'API_version_vendor_implemention':
'API_version_vendor_implementation':
def host_get_record(self, session, host_ref): node = XendNode.instance() dom = XendDomain.instance() record = {'uuid': node.uuid, 'name_label': node.name, 'name_description': '', 'API_version_major': XEN_API_VERSION_MAJOR, 'API_version_minor': XEN_API_VERSION_MINOR, 'API_version_vendor': XEN_API_VERSION_VENDOR, 'API_ve...
4ac1ffe2f58f9fccea7af0932011bb19bd7c2d8c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/4ac1ffe2f58f9fccea7af0932011bb19bd7c2d8c/XendAPI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1479, 67, 588, 67, 3366, 12, 2890, 16, 1339, 16, 1479, 67, 1734, 4672, 756, 273, 1139, 409, 907, 18, 1336, 1435, 4092, 273, 1139, 409, 3748, 18, 1336, 1435, 1409, 273, 13666, 7080, 427...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1479, 67, 588, 67, 3366, 12, 2890, 16, 1339, 16, 1479, 67, 1734, 4672, 756, 273, 1139, 409, 907, 18, 1336, 1435, 4092, 273, 1139, 409, 3748, 18, 1336, 1435, 1409, 273, 13666, 7080, 427...
el = self.etree.findall('stylesheet')
el = self.etree.findall('.//stylesheet')
def render(self, out): el = self.etree.findall('docinit') if el: self.docinit(el)
3deeeb112a71bd7004e7b4f9442577d106bf1b49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3deeeb112a71bd7004e7b4f9442577d106bf1b49/trml2pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 596, 4672, 415, 273, 365, 18, 31303, 18, 4720, 454, 2668, 2434, 2738, 6134, 309, 415, 30, 365, 18, 2434, 2738, 12, 292, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 596, 4672, 415, 273, 365, 18, 31303, 18, 4720, 454, 2668, 2434, 2738, 6134, 309, 415, 30, 365, 18, 2434, 2738, 12, 292, 13, 2, -100, -100, -100, -100, -100, -100, ...
vim.current.window.cursor = (lineno, colno + len(text))
self.cursor = (lineno, colno + len(text))
def insert(self, text): lineno, colno = vim.current.window.cursor line = self.buffer[lineno - 1] self.buffer[lineno - 1] = line[:colno] + text + line[colno:] vim.current.window.cursor = (lineno, colno + len(text))
5c72b0eb3d32899f744a2be08ce57312b3a3dd75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8177/5c72b0eb3d32899f744a2be08ce57312b3a3dd75/ropevim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 977, 4672, 7586, 16, 645, 2135, 273, 18727, 18, 2972, 18, 5668, 18, 9216, 980, 273, 365, 18, 4106, 63, 17782, 300, 404, 65, 365, 18, 4106, 63, 17782, 300, 404, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 977, 4672, 7586, 16, 645, 2135, 273, 18727, 18, 2972, 18, 5668, 18, 9216, 980, 273, 365, 18, 4106, 63, 17782, 300, 404, 65, 365, 18, 4106, 63, 17782, 300, 404, 65...
data['title'] = row[titleCol-1]
try: data['title'] = row[titleCol-1] except: pass
def on_buttonCSVImport_clicked(self, widget): logging.debug('>>') #Determine values dateCol = self.cbCSVDate.get_active() distanceCol = self.cbCSVDistance.get_active() durationCol = self.cbCSVDuration.get_active() titleCol = self.cbCSVTitle.get_active() sportCol = self.cbCSVSport.get_active() avgspeedCol = self.cbCSVAv...
dd4ff95048f583245124e63653737a807c710257 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11865/dd4ff95048f583245124e63653737a807c710257/windowimportdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5391, 16570, 5010, 67, 7475, 329, 12, 2890, 16, 3604, 4672, 2907, 18, 4148, 2668, 34, 1870, 13, 468, 8519, 924, 1509, 914, 273, 365, 18, 7358, 16570, 1626, 18, 588, 67, 3535, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5391, 16570, 5010, 67, 7475, 329, 12, 2890, 16, 3604, 4672, 2907, 18, 4148, 2668, 34, 1870, 13, 468, 8519, 924, 1509, 914, 273, 365, 18, 7358, 16570, 1626, 18, 588, 67, 3535, ...
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
def runtime_library_dir_option(self, dir): # XXX Hackish, at the very least. See Python bug #445902: # http://sourceforge.net/tracker/index.php # ?func=detail&aid=445902&group_id=5470&atid=105470 # Linkers on different platforms need different options to # specify that directories need to be added to the list of # d...
b27cf34f04461c30d60bc807c118537b02bf010a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b27cf34f04461c30d60bc807c118537b02bf010a/unixccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3099, 67, 12083, 67, 1214, 67, 3482, 12, 2890, 16, 1577, 4672, 468, 11329, 670, 484, 1468, 16, 622, 326, 8572, 4520, 18, 225, 2164, 6600, 7934, 468, 6334, 6162, 3103, 30, 468, 1062, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3099, 67, 12083, 67, 1214, 67, 3482, 12, 2890, 16, 1577, 4672, 468, 11329, 670, 484, 1468, 16, 622, 326, 8572, 4520, 18, 225, 2164, 6600, 7934, 468, 6334, 6162, 3103, 30, 468, 1062, 22...
for (row, returnVal, size) in cu:
for (row, returnVal, size) in cu.fetchall():
def getEntry(self, item, recurse, withFiles, withFileContents, excludeAutoSource): (name, (oldVersion, oldFlavor), (newVersion, newFlavor), absolute) = \ item
c0259e891ad8b9ce80d97a3559a204acca8002e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c0259e891ad8b9ce80d97a3559a204acca8002e9/netserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15428, 12, 2890, 16, 761, 16, 11502, 16, 598, 2697, 16, 598, 812, 6323, 16, 4433, 4965, 1830, 4672, 261, 529, 16, 261, 1673, 1444, 16, 1592, 2340, 9444, 3631, 261, 2704, 1444, 16, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15428, 12, 2890, 16, 761, 16, 11502, 16, 598, 2697, 16, 598, 812, 6323, 16, 4433, 4965, 1830, 4672, 261, 529, 16, 261, 1673, 1444, 16, 1592, 2340, 9444, 3631, 261, 2704, 1444, 16, 394,...
if isinstance(domain[i], list):
arg = domain[i] if isinstance(arg, tuple) or \ (isinstance(arg, list) and len(arg) > 2 and \ arg[1] in OPERATORS): if arg[0] == 'active': active_found = True elif isinstance(arg, list):
def process(domain): i = 0 active_found = False while i < len(domain): if isinstance(domain[i], list): domain[i] = process(domain[i]) if isinstance(domain[i], tuple): if domain[i][0] == 'active': active_found = True i += 1 if not active_found: if domain and ((isinstance(domain[0], basestring) \ and domain[0] == 'AND') ...
48de11d47c4cc6ff3ad70daf9d84ea2b9e8d4ca8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/48de11d47c4cc6ff3ad70daf9d84ea2b9e8d4ca8/modelstorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 4308, 4672, 277, 273, 374, 2695, 67, 7015, 273, 1083, 1323, 277, 411, 562, 12, 4308, 4672, 1501, 273, 2461, 63, 77, 65, 225, 309, 1549, 12, 3175, 16, 3193, 13, 578, 521, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 4308, 4672, 277, 273, 374, 2695, 67, 7015, 273, 1083, 1323, 277, 411, 562, 12, 4308, 4672, 1501, 273, 2461, 63, 77, 65, 225, 309, 1549, 12, 3175, 16, 3193, 13, 578, 521, 26...
self.sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_LOOP, 1)
self.sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_LOOP, '1')
def run(self): """Listens on Ganglia's multicast channel for interesting metrics"""
5421b196185ad3acb49424f7028bbc69f0bbfd28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7066/5421b196185ad3acb49424f7028bbc69f0bbfd28/reporter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 682, 773, 603, 611, 539, 549, 69, 1807, 24470, 1904, 364, 26122, 4309, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 12, 2890, 4672, 3536, 682, 773, 603, 611, 539, 549, 69, 1807, 24470, 1904, 364, 26122, 4309, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if mtr is not None:
if mtr is not None and mtr.time is not None:
def doit(stid, now): metarPass = 0 metarFail = 0 processed = 0 sqlFail = 0 url = "http://www.wunderground.com/history/airport/K%s/%s/%-i/%-i/DailyHistory.html?req_city=NA&req_state=NA&req_statename=NA&format=1" % (stid, now.year, now.month, now.day) try: data = opener.open(url).read() except: print "Fail STID: %s NOW: ...
e248076cbf57fd813885821c35f9bf9048a650fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/e248076cbf57fd813885821c35f9bf9048a650fa/wunder_ingest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 305, 12, 334, 350, 16, 2037, 4672, 5100, 297, 6433, 273, 374, 5100, 297, 3754, 273, 374, 5204, 273, 374, 1847, 3754, 273, 374, 880, 273, 315, 2505, 2207, 5591, 18, 91, 9341, 2915,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 305, 12, 334, 350, 16, 2037, 4672, 5100, 297, 6433, 273, 374, 5100, 297, 3754, 273, 374, 5204, 273, 374, 1847, 3754, 273, 374, 880, 273, 315, 2505, 2207, 5591, 18, 91, 9341, 2915,...
if _debug: print "%s: Here is the evaluation stack" % rendererName
if _debug: print "\t%s: Here is the evaluation stack" % rendererName
def render(self,pause=False,interactive=False): """ Render (or re-render) the scene Render the scene, either to screen, or to a buffer waiting for a save
e5624fba8328f9fa4825085648d72c2c1aaca7d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/e5624fba8328f9fa4825085648d72c2c1aaca7d1/scene.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 19476, 33, 8381, 16, 24761, 33, 8381, 4672, 3536, 6987, 261, 280, 283, 17, 5902, 13, 326, 9065, 225, 6987, 326, 9065, 16, 3344, 358, 5518, 16, 578, 358, 279, 1613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 19476, 33, 8381, 16, 24761, 33, 8381, 4672, 3536, 6987, 261, 280, 283, 17, 5902, 13, 326, 9065, 225, 6987, 326, 9065, 16, 3344, 358, 5518, 16, 578, 358, 279, 1613, ...
endcases = [unicode(''), unicode('<\\u>'), unicode('<\\\u1234>'), unicode('<\n>'), unicode('<\\>')]
endcases = [u'', u'<\\u>', u'<\\\\u1234>', u'<\n>', u'<\\>', u'<\\\\U00012345>']
def test_unicode(self): endcases = [unicode(''), unicode('<\\u>'), unicode('<\\\u1234>'), unicode('<\n>'), unicode('<\\>')] for proto in protocols: for u in endcases: p = self.dumps(u, proto) u2 = self.loads(p) self.assertEqual(u2, u)
5af579e10af6e5d689292342111c1311d58bcd7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/5af579e10af6e5d689292342111c1311d58bcd7e/pickletester.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 12, 2890, 4672, 679, 22186, 273, 306, 89, 11, 2187, 582, 11, 32, 1695, 89, 1870, 16, 582, 11, 32, 13011, 89, 28462, 1870, 16, 582, 11, 31428, 82, 1870, 16, 582, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 12, 2890, 4672, 679, 22186, 273, 306, 89, 11, 2187, 582, 11, 32, 1695, 89, 1870, 16, 582, 11, 32, 13011, 89, 28462, 1870, 16, 582, 11, 31428, 82, 1870, 16, 582, 11, ...
self.jobdb = JobDatabaseSQLite() self.monitordb = MonitorDatabase() self.dsage_server = DSageServer(self.jobdb, self.monitordb) return self.dsage_server.generate_xml_stats()
jobdb = JobDatabaseSQLite() monitordb = MonitorDatabase() dsage_server = DSageServer(jobdb, monitordb) print dsage_server.generate_xml_stats()
def main(): self.jobdb = JobDatabaseSQLite() self.monitordb = MonitorDatabase() self.dsage_server = DSageServer(self.jobdb, self.monitordb) return self.dsage_server.generate_xml_stats()
fbd54da3fe4a115de9371b1f49d193ef11f2180a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/fbd54da3fe4a115de9371b1f49d193ef11f2180a/dsage_get_stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1719, 1966, 273, 3956, 4254, 3997, 1137, 1435, 6921, 305, 517, 70, 273, 14086, 4254, 1435, 3780, 410, 67, 3567, 273, 8678, 410, 2081, 12, 4688, 1966, 16, 6921, 305, 517, 70,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1719, 1966, 273, 3956, 4254, 3997, 1137, 1435, 6921, 305, 517, 70, 273, 14086, 4254, 1435, 3780, 410, 67, 3567, 273, 8678, 410, 2081, 12, 4688, 1966, 16, 6921, 305, 517, 70,...
print "stopping HTTP server thread" os.remove(tempFilePath)
pass
def run(self):
8e5a55daa232db574dda28509b1ccde3bae047bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/8e5a55daa232db574dda28509b1ccde3bae047bc/http_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
text_key = self._stringfactory.get(self._memory[addr])
text_key = self._stringfactory.get(addr)
def get_dictionary(self, address): """Load a z-machine-format dictionary at ADDRESS -- which maps zstrings to bytestrings -- into a python dictionary which maps ascii strings to the address of the word in the original dictionary. Return the new dictionary."""
6890a74c51e08c7139ef0d72f90ca2b1e42723e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3943/6890a74c51e08c7139ef0d72f90ca2b1e42723e5/zlexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15556, 12, 2890, 16, 1758, 4672, 3536, 2563, 279, 998, 17, 9149, 17, 2139, 3880, 622, 11689, 10203, 1493, 1492, 7565, 998, 10219, 358, 1731, 371, 87, 1493, 1368, 279, 5790, 3880...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15556, 12, 2890, 16, 1758, 4672, 3536, 2563, 279, 998, 17, 9149, 17, 2139, 3880, 622, 11689, 10203, 1493, 1492, 7565, 998, 10219, 358, 1731, 371, 87, 1493, 1368, 279, 5790, 3880...
whoRedirect = item.getAttributeAspect('who', 'redirectTo') try: whoString = item.who except AttributeError: whoString = '' if len(whoString) > 0:
whoContacts = item.who whoString = '' if len(whoContacts) > 0:
def loadAttributeIntoWidget (self, item, widget): whoRedirect = item.getAttributeAspect('who', 'redirectTo') try: whoString = item.who # get redirected who list except AttributeError: whoString = '' if len(whoString) > 0: whoNames = [] for whom in whoString.values(): whoNames += (whom.getItemDisplayName(),) whoString =...
59e2a8cd46abd0b66d1a0f9775fe4f828894033e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/59e2a8cd46abd0b66d1a0f9775fe4f828894033e/Detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1499, 5952, 4609, 261, 2890, 16, 761, 16, 3604, 4672, 10354, 5961, 273, 761, 18, 588, 1499, 17468, 2668, 3350, 83, 2187, 296, 7590, 774, 6134, 775, 30, 10354, 780, 273, 761, 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, 1262, 1499, 5952, 4609, 261, 2890, 16, 761, 16, 3604, 4672, 10354, 5961, 273, 761, 18, 588, 1499, 17468, 2668, 3350, 83, 2187, 296, 7590, 774, 6134, 775, 30, 10354, 780, 273, 761, 18, ...
"""A stub participation for use in hasPermission"""
"""A stub participation for use in hasPermission."""
def __call__(self): self.update() return self.index()
801356ff595778281e56319d364d568132d50a85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/801356ff595778281e56319d364d568132d50a85/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 365, 18, 2725, 1435, 327, 365, 18, 1615, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 365, 18, 2725, 1435, 327, 365, 18, 1615, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (isinstance(shares[0].conduit, WebDAVConduit) and
if (len(shares) > 1 and isinstance(shares[0].conduit, WebDAVConduit) and
def mergeFunction(code, item, attribute, value): # 'value' is the one from the *this* view # getattr(item, attribute) is the value from a different view
c2acf0f35bf4a6a450b7fed2648a2fadbb8846d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c2acf0f35bf4a6a450b7fed2648a2fadbb8846d9/Sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 2083, 12, 710, 16, 761, 16, 1566, 16, 460, 4672, 468, 296, 1132, 11, 353, 326, 1245, 628, 326, 380, 2211, 14, 1476, 468, 3869, 12, 1726, 16, 1566, 13, 353, 326, 460, 628, 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, 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, 2691, 2083, 12, 710, 16, 761, 16, 1566, 16, 460, 4672, 468, 296, 1132, 11, 353, 326, 1245, 628, 326, 380, 2211, 14, 1476, 468, 3869, 12, 1726, 16, 1566, 13, 353, 326, 460, 628, 279, ...
try: return self.__is_even except AttributeError: pass self.__is_even = (self(-1) == self.base_ring()(1)) return self.__is_even
return (self(-1) == self.base_ring()(1)) @cached_method
def is_even(self): r""" Return ``True`` if and only if `\varepsilon(-1) = 1`. EXAMPLES:: sage: G = DirichletGroup(13) sage: e = G.0 sage: e.is_even() False sage: e(-1) -1 sage: [e.is_even() for e in G] [True, False, True, False, True, False, True, False, True, False, True, False] Note that ``is_even`` need not be th...
2d29bdbbd76a69f79b998867461156f2c290f64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2d29bdbbd76a69f79b998867461156f2c290f64a/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 16728, 12, 2890, 4672, 436, 8395, 2000, 12176, 5510, 10335, 309, 471, 1338, 309, 1375, 64, 90, 834, 1121, 10327, 19236, 21, 13, 273, 404, 8338, 225, 5675, 8900, 11386, 2866, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 16728, 12, 2890, 4672, 436, 8395, 2000, 12176, 5510, 10335, 309, 471, 1338, 309, 1375, 64, 90, 834, 1121, 10327, 19236, 21, 13, 273, 404, 8338, 225, 5675, 8900, 11386, 2866, 225...
headings = [item.__dict__['title'][0] for item in ordered_results[res_range['start']:res_range['end']]] else: headings = [item.__dict__[sortorder[0]] for item in ordered_results[res_range['start']:res_range['end']]] headings.sort() context['headings'] = set(headings)
headings = [title_heading(item.__dict__['title']) for item in results[res_range['start']:res_range['end']]] else: headings = [item.__dict__[sortorder[0]] for item in results[res_range['start']:res_range['end']]] context['headings'] = list(set(headings)) context['headings'].sort()
def archive_classes(request, category, options, sortorder = None): context = {'selection': 'Classes'} context['category'] = category context['options'] = options url_criterion = ArchiveFilter(category = category, options = options) criteria_list = [url_criterion] criteria_list += extract_criteria(request.POST) # as...
59b904d7d88eeb2541e0a366e0733ae3d8312d61 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/59b904d7d88eeb2541e0a366e0733ae3d8312d61/archives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 67, 4701, 12, 2293, 16, 3150, 16, 702, 16, 1524, 1019, 273, 599, 4672, 819, 273, 13666, 10705, 4278, 296, 4818, 11, 97, 819, 3292, 4743, 3546, 273, 3150, 819, 3292, 2116, 3546, 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, 5052, 67, 4701, 12, 2293, 16, 3150, 16, 702, 16, 1524, 1019, 273, 599, 4672, 819, 273, 13666, 10705, 4278, 296, 4818, 11, 97, 819, 3292, 4743, 3546, 273, 3150, 819, 3292, 2116, 3546, 2...
nodes = [ n for n in self.children if n.name = attr ]
nodes = [ n for n in self.children if n.name == attr ]
def getattr(self, attr): if self.attr.haskey(attr): return self.attr.get(attr) nodes = [ n for n in self.children if n.name = attr ] if len(nodes) == 1: return nodes[0] return None
6153744b7f249d4ebec172c2c3cfd8c218250f79 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11722/6153744b7f249d4ebec172c2c3cfd8c218250f79/xmlutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3869, 12, 2890, 16, 1604, 4672, 309, 365, 18, 1747, 18, 76, 835, 402, 12, 1747, 4672, 327, 365, 18, 1747, 18, 588, 12, 1747, 13, 2199, 273, 306, 290, 364, 290, 316, 365, 18, 5906, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3869, 12, 2890, 16, 1604, 4672, 309, 365, 18, 1747, 18, 76, 835, 402, 12, 1747, 4672, 327, 365, 18, 1747, 18, 588, 12, 1747, 13, 2199, 273, 306, 290, 364, 290, 316, 365, 18, 5906, ...
if self.InterestDebug: print 'INTEREST DEBUG: interestDone(): handle=%s' % handle
if self.__verbose(): print 'CR::INTEREST.interestDone(handle=%s)' % handle
def handleInterestDoneMessage(self, di): """ This handles the interest done messages and may dispatch an event """ assert DoInterestManager.notify.debugCall() handle = di.getUint16() scopeId = di.getUint32() if self.InterestDebug: print 'INTEREST DEBUG: interestDone(): handle=%s' % handle DoInterestManager.notify.debug...
5f779fa12ecab28126e191fe82db1852c6112cbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/5f779fa12ecab28126e191fe82db1852c6112cbf/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640...
def __init__(self, dbpath, tmpDir, protocolVersion):
def __init__(self, dbpath, tmpDir, schemaVersion):
def __init__(self, dbpath, tmpDir, protocolVersion):
c1fb30ff97c24803d5cb35db4bc1d6376529b6fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c1fb30ff97c24803d5cb35db4bc1d6376529b6fa/netserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1319, 803, 16, 22521, 16, 1771, 1444, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1319, 803, 16, 22521, 16, 1771, 1444, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for gp in bld.groups: for tg in gp: try: tasks.extend(tg.tasks) except TypeError: tasks.append(tg.tasks)
bld = tsk.generator.bld gp = bld.groups[bld.get_group_idx(tsk.generator)] for tg in gp: try: tasks.extend(tg.tasks) except TypeError: tasks.append(tg)
def get_fortran_tasks(bld): tasks = [] for gp in bld.groups: # FIXME the current group only for tg in gp: try: tasks.extend(tg.tasks) except TypeError: tasks.append(tg.tasks) return [task for task in tasks if isinstance(task, fc) and not getattr(task, 'nomod', None)]
38f254ccce0ba04419f44a7e683ada4d02f278c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/38f254ccce0ba04419f44a7e683ada4d02f278c9/fc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1884, 13171, 67, 9416, 12, 70, 1236, 4672, 4592, 273, 5378, 364, 4178, 316, 324, 1236, 18, 4650, 30, 468, 9852, 326, 783, 1041, 1338, 364, 18289, 316, 4178, 30, 775, 30, 4592,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1884, 13171, 67, 9416, 12, 70, 1236, 4672, 4592, 273, 5378, 364, 4178, 316, 324, 1236, 18, 4650, 30, 468, 9852, 326, 783, 1041, 1338, 364, 18289, 316, 4178, 30, 775, 30, 4592,...
for facet in raw_table: a1 = facet['at1_serial'] a2 = facet['at2_serial']
for facet in raw_table.iterDicts(): a1 = facet['serial_1'] a2 = facet['serial_2']
def __mapfacets2Atoms( self, raw_table ): """ Create an atom profile 'facets' that contains the facet dictionaries each atom is involved in ( empty list if the atom is not part of the interface). The entries of the profile are Biskit.DictList objects that function like normal lists but have additional functions to dire...
600a99d513b19994aab9fb8dd567b3ad90dc7ad1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/600a99d513b19994aab9fb8dd567b3ad90dc7ad1/Intervor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1458, 11639, 2413, 22, 14280, 12, 365, 16, 1831, 67, 2121, 262, 30, 3536, 1788, 392, 3179, 3042, 296, 11639, 2413, 11, 716, 1914, 326, 11082, 16176, 1517, 3179, 353, 24589, 316, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1458, 11639, 2413, 22, 14280, 12, 365, 16, 1831, 67, 2121, 262, 30, 3536, 1788, 392, 3179, 3042, 296, 11639, 2413, 11, 716, 1914, 326, 11082, 16176, 1517, 3179, 353, 24589, 316, 26...
if define_name == '' or define_value == '':
if not define_name or not define_value:
def getDefines(argv): """Extract any defines from the arg list, and put them in a dictionary. Args: argv - list of arguments to extract defines from. """ defines = {} for arg in argv[1:]: if arg.startswith('-D'): # Check for any arguments of the format -Dxx=yy or -Dxx="yy" match = re.search(r'-D([^=]*)="?(.*?)"?$', a...
00ea35b9791951af01325916fb87ff7ff1bbf5a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/00ea35b9791951af01325916fb87ff7ff1bbf5a5/parse_stab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15109, 12, 19485, 4672, 3536, 4976, 1281, 11164, 628, 326, 1501, 666, 16, 471, 1378, 2182, 316, 279, 3880, 18, 225, 6634, 30, 5261, 300, 666, 434, 1775, 358, 2608, 11164, 628, 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, 336, 15109, 12, 19485, 4672, 3536, 4976, 1281, 11164, 628, 326, 1501, 666, 16, 471, 1378, 2182, 316, 279, 3880, 18, 225, 6634, 30, 5261, 300, 666, 434, 1775, 358, 2608, 11164, 628, 18, ...
self.skip("{0} does not exist".format(zero))
self.skipTest("{0} does not exist".format(zero))
def test_unbounded_file(self): # Issue #1174606: reading from an unbounded stream such as /dev/zero. zero = "/dev/zero" if not os.path.exists(zero): self.skip("{0} does not exist".format(zero)) if sys.maxsize > 0x7FFFFFFF: self.skip("test can only run in a 32-bit address space") if support.real_max_memuse < support._2G...
c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25/test_io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 26220, 67, 768, 12, 2890, 4672, 468, 11820, 468, 2499, 5608, 4848, 26, 30, 6453, 628, 392, 640, 26220, 1407, 4123, 487, 342, 5206, 19, 7124, 18, 3634, 273, 2206, 5206, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 26220, 67, 768, 12, 2890, 4672, 468, 11820, 468, 2499, 5608, 4848, 26, 30, 6453, 628, 392, 640, 26220, 1407, 4123, 487, 342, 5206, 19, 7124, 18, 3634, 273, 2206, 5206, 1...
sage: print is_bitrade(T1, T2)
sage: is_bitrade(T1, T2)
def beta1(rce, T1, T2): """ Find the unique (x, c, e) in T2 such that (r, c, e) is in T1. INPUT: rce -- tuple (or list) (r, c, e) in T1 T1, T2 -- latin bitrade OUTPUT: (x, c, e) in T2. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2,3,4) ) sa...
9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6796, 21, 12, 86, 311, 16, 399, 21, 16, 399, 22, 4672, 3536, 4163, 326, 3089, 261, 92, 16, 276, 16, 425, 13, 316, 399, 22, 4123, 716, 261, 86, 16, 276, 16, 425, 13, 353, 316, 399...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6796, 21, 12, 86, 311, 16, 399, 21, 16, 399, 22, 4672, 3536, 4163, 326, 3089, 261, 92, 16, 276, 16, 425, 13, 316, 399, 22, 4123, 716, 261, 86, 16, 276, 16, 425, 13, 353, 316, 399...
if 'cpp' in _server_options:
if _server_options.find('cpp') != -1:
def runtest(self): if 'cpp' in _server_options: # With gcc, adding -MMD makes the compiler give a warning, instead # of the normal error message, when encountering a non-existent # include file specified in angle brackets. In pump mode, the # distcc client adds -MMD to the gcc options. FIXME(klarlund): this # is arg...
fdaf4c739372bb2a573823fa0779dc82dc60ac67 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7392/fdaf4c739372bb2a573823fa0779dc82dc60ac67/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 309, 389, 3567, 67, 2116, 18, 4720, 2668, 4057, 84, 6134, 480, 300, 21, 30, 468, 225, 3423, 314, 952, 16, 6534, 300, 49, 6188, 7297, 326, 5274, 8492, 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, 1086, 3813, 12, 2890, 4672, 309, 389, 3567, 67, 2116, 18, 4720, 2668, 4057, 84, 6134, 480, 300, 21, 30, 468, 225, 3423, 314, 952, 16, 6534, 300, 49, 6188, 7297, 326, 5274, 8492, 279, ...
r = self.read_var
r = self._read_var
def read_config(self,file): """ Read config parameters from open file passed in argument and return a Config instance. """ c = Config() self.parser.readfp(file) r = self.read_var c.project_name = r('MAIN', 'project_name') c.project_short = r('MAIN', 'project_short') c.db_type ...
bb08eac28c7d0ad70b0a2b2068b26769c5aac765 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/bb08eac28c7d0ad70b0a2b2068b26769c5aac765/Config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1425, 12, 2890, 16, 768, 4672, 3536, 2720, 642, 1472, 628, 1696, 585, 2275, 316, 1237, 471, 327, 279, 1903, 791, 18, 3536, 276, 273, 1903, 1435, 365, 18, 4288, 18, 896, 7944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1425, 12, 2890, 16, 768, 4672, 3536, 2720, 642, 1472, 628, 1696, 585, 2275, 316, 1237, 471, 327, 279, 1903, 791, 18, 3536, 276, 273, 1903, 1435, 365, 18, 4288, 18, 896, 7944, ...
origin = dragState.originalDragBox.GetDragOrigin()
def GetDragAdjustedStartTime(self, tzinfo): """ Get the number of columns the item has been dragged and adjust start time appropriately, allowing start time to be before the beginning of the canvas item (the beginning of the canvas item can't start before the beginning of the week in week view). Or fall back to the dr...
63cad76516b3fe17fab8cbf9f8dc0d7baa874918 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/63cad76516b3fe17fab8cbf9f8dc0d7baa874918/AllDayCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 11728, 10952, 329, 13649, 12, 2890, 16, 15732, 4672, 3536, 968, 326, 1300, 434, 2168, 326, 761, 711, 2118, 8823, 2423, 471, 5765, 787, 813, 21419, 16, 15632, 787, 813, 358, 506, 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, 968, 11728, 10952, 329, 13649, 12, 2890, 16, 15732, 4672, 3536, 968, 326, 1300, 434, 2168, 326, 761, 711, 2118, 8823, 2423, 471, 5765, 787, 813, 21419, 16, 15632, 787, 813, 358, 506, 186...
m = __import__(name) return self.rexec.copy_except(m, ())
m = __import__(name) return self.rexec.copy_except(m, ())
def init_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, 1208, 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, 1208, 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,...
s = [None] + [mpf(0)] * n
s = [None] + [0] * n
def pslq(x, eps=None): """ Given a vector of real numbers x = [x1, x2, ..., xn], pslq(x) uses the PSLQ algorithm to find a list of integers [c1, c2, ..., cn] such that c1*x1 + c2*x2 + ... + cn*xn = 0 approximately. """ n = len(x) assert n >= 1 prec = mp.prec assert prec >= 53 target = prec // max(2,n) if target < 30: i...
2aa95d086172fe0409027180d099c2472b14086a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/2aa95d086172fe0409027180d099c2472b14086a/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2069, 85, 12, 92, 16, 7785, 33, 7036, 4672, 3536, 16803, 279, 3806, 434, 2863, 5600, 619, 273, 306, 92, 21, 16, 619, 22, 16, 1372, 16, 619, 82, 6487, 293, 2069, 85, 12, 92, 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, 293, 2069, 85, 12, 92, 16, 7785, 33, 7036, 4672, 3536, 16803, 279, 3806, 434, 2863, 5600, 619, 273, 306, 92, 21, 16, 619, 22, 16, 1372, 16, 619, 82, 6487, 293, 2069, 85, 12, 92, 13...
l10ndirs += options.l10n_src srcdirs = options.s + [srcdir]
l10ndirs += map(lambda s: os.path.normpath(os.path.abspath(s)), options.l10n_src) srcdirs = map(lambda s: os.path.normpath(os.path.abspath(s)), options.s) + \ [srcdir]
def main(): jm = JarMaker() p = jm.getCommandLineParser() (options, args) = p.parse_args() jm.processIncludes(options.I) jm.outputFormat = options.f if options.e: jm.useChromeManifest = True jm.useJarfileManifest = False if options.bothManifests: jm.useChromeManifest = True jm.useJarfileManifest = True noise = logging....
3d1fc7d7f53e30dc1c3b583a491db3f80cd11767 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/3d1fc7d7f53e30dc1c3b583a491db3f80cd11767/JarMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 28296, 273, 15644, 12373, 1435, 293, 273, 28296, 18, 588, 21391, 2678, 1435, 261, 2116, 16, 833, 13, 273, 293, 18, 2670, 67, 1968, 1435, 28296, 18, 2567, 16815, 12, 2116, 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, 2774, 13332, 28296, 273, 15644, 12373, 1435, 293, 273, 28296, 18, 588, 21391, 2678, 1435, 261, 2116, 16, 833, 13, 273, 293, 18, 2670, 67, 1968, 1435, 28296, 18, 2567, 16815, 12, 2116, 18...
import random return [(random.randint(0, 2**31), 0) for x in range(100)]
r = [] for x in string.ascii_lowercase: r += list(x * 10) for x in range(10): r += [str(i) for i in range(10)] random.shuffle(r) return [(base64.encodestring(x), '') for x in r]
def fun_map(e, params): import random return [(random.randint(0, 2**31), 0) for x in range(100)]
9c3821853c3652a0995dae0075ccd965312e715e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/9c3821853c3652a0995dae0075ccd965312e715e/test_sort.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9831, 67, 1458, 12, 73, 16, 859, 4672, 436, 273, 5378, 364, 619, 316, 533, 18, 9184, 67, 8167, 3593, 30, 436, 1011, 666, 12, 92, 380, 1728, 13, 364, 619, 316, 1048, 12, 2163, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9831, 67, 1458, 12, 73, 16, 859, 4672, 436, 273, 5378, 364, 619, 316, 533, 18, 9184, 67, 8167, 3593, 30, 436, 1011, 666, 12, 92, 380, 1728, 13, 364, 619, 316, 1048, 12, 2163, 4672, ...
new_menu_entry = etree.SubElement(find_menu_entry(root_menu, category), "Include")
new_menu_entry = etree.SubElement(find_menu_entry(root_menu, category, "Include"), "Filename")
def make_menu_entry(root_menu, iconfile="" , category=""): file = os.path.join(APPSDIR, iconfile) if os.path.exists(file): # Check if dry-run if options.simulate: print arrow + "Copying " + iconfile + " to " + ICONDIR
89ff449cd51df1e880259bbf4d5bd3b11d48e558 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7161/89ff449cd51df1e880259bbf4d5bd3b11d48e558/genmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5414, 67, 4099, 12, 3085, 67, 5414, 16, 4126, 768, 1546, 6, 269, 3150, 1546, 6, 4672, 585, 273, 1140, 18, 803, 18, 5701, 12, 2203, 5857, 4537, 16, 4126, 768, 13, 309, 1140,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5414, 67, 4099, 12, 3085, 67, 5414, 16, 4126, 768, 1546, 6, 269, 3150, 1546, 6, 4672, 585, 273, 1140, 18, 803, 18, 5701, 12, 2203, 5857, 4537, 16, 4126, 768, 13, 309, 1140,...
elem.getparent().remove(elem)
if hasattr(elem, 'getparent'): elem.getparent().remove(elem) else: elem = SPAN(elem)
def _generate(self, article, style=None, extra_css=None): content = article.content if article.content else '' summary = article.summary if article.summary else '' text = content if len(content) > len(summary) else summary head = HEAD(TITLE(article.title)) if style: head.append(STYLE(style, type='text/css')) if extra_c...
522e439115e5b78491da54db925ea0394470392c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/522e439115e5b78491da54db925ea0394470392c/templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 12, 2890, 16, 7559, 16, 2154, 33, 7036, 16, 2870, 67, 5212, 33, 7036, 4672, 913, 273, 7559, 18, 1745, 309, 7559, 18, 1745, 469, 875, 4916, 273, 7559, 18, 7687, 309, 7559, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7163, 12, 2890, 16, 7559, 16, 2154, 33, 7036, 16, 2870, 67, 5212, 33, 7036, 4672, 913, 273, 7559, 18, 1745, 309, 7559, 18, 1745, 469, 875, 4916, 273, 7559, 18, 7687, 309, 7559, ...
def main(args):
__version__ = "0.1" if __name__ == '__main__': import os import optparse parser = optparse.OptionParser(usage="%prog", version=str(__version__)) (options, args) = parser.parse_args()
def main(args): def usage(): sys.stderr.write("usage: %s URI-OF-MEDIA-FILE\n" % args[0]) sys.exit(1) w = PlayerWindow() if len(args) != 2: usage() if not gst.uri_is_valid(args[1]): sys.stderr.write("Error: Invalid URI: %s\n" % args[1]) sys.exit(1) w.load_file(args[1]) w.show_all() print "gtk.main()" gtk.main()
b4e6e89baa9bd3a98b4a662b7f65ff271a69248a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/579/b4e6e89baa9bd3a98b4a662b7f65ff271a69248a/gst-hello.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1001, 1589, 972, 273, 315, 20, 18, 21, 6, 309, 1001, 529, 972, 422, 4940, 5254, 972, 4278, 1930, 1140, 1930, 2153, 2670, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 11613, 14654, 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, 225, 1001, 1589, 972, 273, 315, 20, 18, 21, 6, 309, 1001, 529, 972, 422, 4940, 5254, 972, 4278, 1930, 1140, 1930, 2153, 2670, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 11613, 14654, 3...
self._ranges.unselectRange(range)
self._ranges.unSelectRange(range)
def removeRange(self, range):
8254af72203b57452fa182d42a48b455717faf64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8254af72203b57452fa182d42a48b455717faf64/Indexes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 2655, 12, 2890, 16, 1048, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 2655, 12, 2890, 16, 1048, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
writePackage(content) writePackages(compiledPackages)
self.writePackage(content, script) self.writePackages(compiledPackages, script)
def writePackage(content, packageId=""): # Construct file name resolvedFilePath = self._resolveFileName(filePath, variants, settings, packageId)
f3814ff7d05377a66a4c5fc9e9babe3a2fcbb84b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/f3814ff7d05377a66a4c5fc9e9babe3a2fcbb84b/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2261, 12, 1745, 16, 2181, 548, 1546, 6, 4672, 468, 14291, 585, 508, 4640, 5598, 273, 365, 6315, 10828, 4771, 12, 22787, 16, 12935, 16, 1947, 16, 2181, 548, 13, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 2261, 12, 1745, 16, 2181, 548, 1546, 6, 4672, 468, 14291, 585, 508, 4640, 5598, 273, 365, 6315, 10828, 4771, 12, 22787, 16, 12935, 16, 1947, 16, 2181, 548, 13, 2, -100, -100, -10...
return self.get(instance, **kwargs)
return self.getAccessor(instance)(**kwargs)
def getRaw(self, instance, **kwargs): return self.get(instance, **kwargs)
50a20bae563d52235640422a43e2e3cc07f195c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/50a20bae563d52235640422a43e2e3cc07f195c0/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10547, 12, 2890, 16, 791, 16, 2826, 4333, 4672, 327, 365, 18, 588, 12, 1336, 16, 2826, 4333, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10547, 12, 2890, 16, 791, 16, 2826, 4333, 4672, 327, 365, 18, 588, 12, 1336, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for d in Directory.select(): populate_directory_cache(d)
populate_directory_cache()
def populate_all_caches(): populate_host_country_allowed_cache() populate_netblock_cache() for d in Directory.select(): populate_directory_cache(d) print "mirrorlist caches populated"
e15a52dbde749000bdad35402b0bc452c40a3f3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13031/e15a52dbde749000bdad35402b0bc452c40a3f3f/mirrorlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 454, 67, 17703, 281, 13332, 6490, 67, 2564, 67, 9082, 67, 8151, 67, 2493, 1435, 6490, 67, 2758, 2629, 67, 2493, 1435, 6490, 67, 5149, 67, 2493, 1435, 1172, 315, 27197, 1098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 454, 67, 17703, 281, 13332, 6490, 67, 2564, 67, 9082, 67, 8151, 67, 2493, 1435, 6490, 67, 2758, 2629, 67, 2493, 1435, 6490, 67, 5149, 67, 2493, 1435, 1172, 315, 27197, 1098, ...
def goodTest(x,t,tb=0,**kw):
def goodTest(x,t,tb=0,inOnly=0,**kw):
def goodTest(x,t,tb=0,**kw): try: P=_pyRXP.Parser(**kw) r = P(x) rb = 0 except: et, ev, _unused = sys.exc_info() r = '%s %s' % (et.__name__, str(ev)) rb = 1 s = '' for k,v in kw.items(): s = s+', %s=%s' % (k,str(v)) if type(t) is type(''): t = t.replace('\r','\\r') t = t.replace('\n','\\n') if type(r) is type(''): r =...
084e500e38e70d23dbd057dbd5918432eed4c66e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/084e500e38e70d23dbd057dbd5918432eed4c66e/testRXPbasic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7494, 4709, 12, 92, 16, 88, 16, 18587, 33, 20, 16, 267, 3386, 33, 20, 16, 636, 9987, 4672, 775, 30, 453, 33, 67, 2074, 54, 60, 52, 18, 2678, 12, 636, 9987, 13, 436, 273, 453, 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, 7494, 4709, 12, 92, 16, 88, 16, 18587, 33, 20, 16, 267, 3386, 33, 20, 16, 636, 9987, 4672, 775, 30, 453, 33, 67, 2074, 54, 60, 52, 18, 2678, 12, 636, 9987, 13, 436, 273, 453, 12,...
log.info('inotify delete: %s', item)
log.info('inotify: delete %s', item)
def _inotify_event(self, mask, name, *args): """ Callback for inotify. """ if mask & INotify.MODIFY and name in self._inotify_timer and \ self._inotify_timer[name][1]: # A file was modified. Do this check as fast as we can because the # events may come in bursts when a file is just copied. In this case # a timer is alr...
cb8afa376d134f198700f8477a56bab058d993ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11703/cb8afa376d134f198700f8477a56bab058d993ae/crawl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 352, 1164, 67, 2575, 12, 2890, 16, 3066, 16, 508, 16, 380, 1968, 4672, 3536, 8444, 364, 316, 352, 1164, 18, 3536, 309, 3066, 473, 467, 9168, 18, 6720, 12096, 471, 508, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 352, 1164, 67, 2575, 12, 2890, 16, 3066, 16, 508, 16, 380, 1968, 4672, 3536, 8444, 364, 316, 352, 1164, 18, 3536, 309, 3066, 473, 467, 9168, 18, 6720, 12096, 471, 508, 316, ...
self.compiler.find_library_file(lib_dirs, 'panel')):
self.compiler.find_library_file(lib_dirs, panel_library)):
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
d9a37b8091d03a0573acd8ae220beb72b498fff1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d9a37b8091d03a0573acd8ae220beb72b498fff1/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
video_url = output
video_url = output.strip()
def download_youtube_dl(self,widget,url): #################### # Description # =========== """Downloads video files from sites like youtube.com, metacafe.com and video.google.com.""" # Arguments # ========= # url http url of the remote file to download eg. http://www.example.org/movie.mpg # # Further Details # ======...
ad472429e729ab33e07eeec855a935a7958e235c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4607/ad472429e729ab33e07eeec855a935a7958e235c/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 31749, 67, 5761, 12, 2890, 16, 6587, 16, 718, 4672, 29570, 13151, 468, 6507, 468, 422, 1432, 33, 3536, 22141, 6191, 1390, 628, 9180, 3007, 677, 21105, 18, 832, 16, 2191, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 31749, 67, 5761, 12, 2890, 16, 6587, 16, 718, 4672, 29570, 13151, 468, 6507, 468, 422, 1432, 33, 3536, 22141, 6191, 1390, 628, 9180, 3007, 677, 21105, 18, 832, 16, 2191, 71, ...
output.write("</decoration>\n")
output.write("\t</item\n</decoration>\n")
def roda_arquivo(nome_input, nome_output, map): input = open(nome_input) lines = input.readlines() result = [] in_item = False for line in lines: # Comentário match = re.match(r'#(?P<comentario>.*)$', line) if match: result.append(comment(match.groupdict()['comentario'])) continue #2051 933 -23 match = re.match(r'(?P...
c678e40510b766149b1be6bfe946b2810a84522c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2534/c678e40510b766149b1be6bfe946b2810a84522c/converte.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 721, 2414, 67, 297, 372, 20593, 12, 82, 1742, 67, 2630, 16, 290, 1742, 67, 2844, 16, 852, 4672, 810, 273, 1696, 12, 82, 1742, 67, 2630, 13, 2362, 273, 810, 18, 896, 3548, 1435, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 721, 2414, 67, 297, 372, 20593, 12, 82, 1742, 67, 2630, 16, 290, 1742, 67, 2844, 16, 852, 4672, 810, 273, 1696, 12, 82, 1742, 67, 2630, 13, 2362, 273, 810, 18, 896, 3548, 1435, 225, ...
raise "\nERROR: Invalid Tree Item. "
raise Exception("\nERROR: Invalid Tree Item. ")
def EditLabel(self, item): """Starts editing an item label."""
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15328, 2224, 12, 2890, 16, 761, 4672, 3536, 11203, 15755, 392, 761, 1433, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15328, 2224, 12, 2890, 16, 761, 4672, 3536, 11203, 15755, 392, 761, 1433, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def write(*args): pass def close(*args): pass
def write(self, s): 'Do nothing.' def close(self): 'Do nothing.'
def write(*args): pass
6ecda71cd0e7e4752ddec3a0c1619699a3092855 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/6ecda71cd0e7e4752ddec3a0c1619699a3092855/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 30857, 1968, 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, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 30857, 1968, 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, -100, -100, ...
wp = wp*general_array hp = hp*general_array
rp = rp*general_array
def show_circles(self,xw,yw,r,layer=False,**kwargs): ''' Overlay circles on the current plot. Required arguments: *xw*: [ list | numpy.ndarray ] The x postions of the circles (in world coordinates) *yw*: [ list | numpy.ndarray ] The y positions of the circles (in world coordinates) *r*: [integer | float | list | nu...
78a1ac657333c3ede783d0f7816bf5bd10182a08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13232/78a1ac657333c3ede783d0f7816bf5bd10182a08/aplpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 11614, 9558, 12, 2890, 16, 92, 91, 16, 93, 91, 16, 86, 16, 6363, 33, 8381, 16, 636, 4333, 4672, 9163, 26834, 5886, 9558, 603, 326, 783, 3207, 18, 225, 10647, 1775, 30, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 11614, 9558, 12, 2890, 16, 92, 91, 16, 93, 91, 16, 86, 16, 6363, 33, 8381, 16, 636, 4333, 4672, 9163, 26834, 5886, 9558, 603, 326, 783, 3207, 18, 225, 10647, 1775, 30, 225,...
""" z = s
INPUT: s -- a string of the code from the cell to be executed C -- the cell object EXAMPLES: First, we set up a new notebook and worksheet. sage: nb = sage.server.notebook.notebook.Notebook(tmp_dir()) sage: nb.add_user('sage','sage','sage@sagemath.org',force=True) sage: W = nb.create_new_worksheet('Test', 'sage') W...
def check_for_system_switching(self, s, C): r""" Check for input cells that start with \code{\%foo}, where \var{foo} is an object with an eval method. """ z = s s = s.lstrip() S = self.system() if S != 'sage': if s.startswith('%sage'): s = after_first_word(s).lstrip() z = s else: return True, self._eval_cmd(S, s, os.pa...
3ddc8ee2dbf2eeecd939448fa1a97d25590c8172 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3ddc8ee2dbf2eeecd939448fa1a97d25590c8172/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1884, 67, 4299, 67, 9610, 310, 12, 2890, 16, 272, 16, 385, 4672, 436, 8395, 2073, 364, 810, 5983, 716, 787, 598, 521, 710, 23241, 9, 11351, 5779, 1625, 521, 1401, 95, 11351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1884, 67, 4299, 67, 9610, 310, 12, 2890, 16, 272, 16, 385, 4672, 436, 8395, 2073, 364, 810, 5983, 716, 787, 598, 521, 710, 23241, 9, 11351, 5779, 1625, 521, 1401, 95, 11351, ...
if first != None and len(first) > 0: descrpt = path(first).abspath() if not descrpt.exists(): self.ctx.dbg("No such file: %s -- Using as target" % descrpt) other.insert(0, first) descrpt = None else: descrpt = None if descrpt == None: descrpt = self.dir / "etc" / "grid" / "default.xml" self.ctx.err("No descriptor giv...
descript = self._descript(first, other)
def start(self, args): """ First checks for a valid installation, then checks the grid, then registers the action: "node HOST start" """ self._initDir() props = self._properties() # Do a check to see if we've started before. self._regdata() self.check([])
62abe45d96b003eafd58b4f9d9019e12a935f538 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/62abe45d96b003eafd58b4f9d9019e12a935f538/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 833, 4672, 3536, 5783, 4271, 364, 279, 923, 13193, 16, 1508, 4271, 326, 3068, 16, 1508, 10285, 326, 1301, 30, 315, 2159, 21425, 787, 6, 3536, 365, 6315, 2738, 1621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 833, 4672, 3536, 5783, 4271, 364, 279, 923, 13193, 16, 1508, 4271, 326, 3068, 16, 1508, 10285, 326, 1301, 30, 315, 2159, 21425, 787, 6, 3536, 365, 6315, 2738, 1621, ...
raise "channel_closed called for unknown channel!"
return
def channel_closed(self, channel): if channel in self.channels: del self.channels[self.channels.index(channel)] else: raise "channel_closed called for unknown channel!"
3aca0ae7796ad2f58975b1db764bc6526a744333 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2718/3aca0ae7796ad2f58975b1db764bc6526a744333/wxserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1904, 67, 12204, 12, 2890, 16, 1904, 4672, 309, 1904, 316, 365, 18, 9114, 30, 1464, 365, 18, 9114, 63, 2890, 18, 9114, 18, 1615, 12, 4327, 25887, 469, 30, 1002, 315, 4327, 67, 12204, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1904, 67, 12204, 12, 2890, 16, 1904, 4672, 309, 1904, 316, 365, 18, 9114, 30, 1464, 365, 18, 9114, 63, 2890, 18, 9114, 18, 1615, 12, 4327, 25887, 469, 30, 1002, 315, 4327, 67, 12204, ...
reinstall = False for inst in verify_results.get('verify'): self.logger.debug('reinstall_check: %s %s:%s-%s.%s' % inst.get('nevra')) for file_result in inst.get('files', []): self.logger.debug('reinstall_check: file: %s' % file_result) if file_result[-2] != 'c': reinstall = True return reinstall
fix = False if inst_status.get('installed', False) == False: if instance.get('installed_action', 'install') == "install" and \ self.installed_action == "install": fix = True else: self.logger.debug('Installed Action for %s %s is to not install' % \ (inst_status.get('pkg').get('name'), self.str_evra(instance))) elif i...
def reinstall_check(self, verify_results): ''' Control if a reinstall of a package happens or not based on the results from RPMng.VerifyPackage().
495f950666bb59ebc380101cd902415c211124a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/495f950666bb59ebc380101cd902415c211124a2/RPMng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 5425, 67, 1893, 12, 2890, 16, 3929, 67, 4717, 4672, 9163, 8888, 309, 279, 283, 5425, 434, 279, 2181, 10555, 578, 486, 2511, 603, 326, 1686, 628, 534, 12728, 3368, 18, 8097, 2261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 5425, 67, 1893, 12, 2890, 16, 3929, 67, 4717, 4672, 9163, 8888, 309, 279, 283, 5425, 434, 279, 2181, 10555, 578, 486, 2511, 603, 326, 1686, 628, 534, 12728, 3368, 18, 8097, 2261, ...
(l_descr,r_descr) = hlr_utils.get_descr(left, right)
(l_descr, r_descr) = hlr_utils.get_descr(left, right)
def energy_transfer(left, right, **kwargs): """ This function takes a tuple and a SOM, a tuple and a SO or two tuples and calculates the energy transfer in units of THz. The SOM principle axis must be in units of meV. The SO and tuples are assumed to be in units of meV. Parameters: ---------- -> left is a SOM, SO or t...
4bcb1f7c4f06bc569f409896d29504c41483d846 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/4bcb1f7c4f06bc569f409896d29504c41483d846/hlr_energy_transfer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12929, 67, 13866, 12, 4482, 16, 2145, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 3193, 471, 279, 348, 1872, 16, 279, 3193, 471, 279, 7460, 578, 2795, 10384, 471, 17264, 326, 12929...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12929, 67, 13866, 12, 4482, 16, 2145, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 3193, 471, 279, 348, 1872, 16, 279, 3193, 471, 279, 7460, 578, 2795, 10384, 471, 17264, 326, 12929...