rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
print >> sys.stderr, 'Either %s or %s is not a valid docname for recid %s' % (docname, into_docname, recid)
print >> sys.stderr, 'ERROR: Either %s or %s is not a valid docname for recid %s' % (docname, into_docname, recid)
def cli_merge_into(recid, docname, into_docname): """Merge docname into_docname for the given recid.""" bibrecdocs = BibRecDocs(recid) docnames = bibrecdocs.get_bibdoc_names() if docname in docnames and into_docname in docnames: try: bibrecdocs.merge_bibdocs(into_docname, docname) except InvenioWebSubmitFileError, e: p...
ccc0ff19181f56da96bb4dfd7216fe5bbda91724 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/ccc0ff19181f56da96bb4dfd7216fe5bbda91724/bibdocfilecli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 67, 2702, 67, 18591, 12, 3927, 350, 16, 997, 529, 16, 1368, 67, 2434, 529, 4672, 3536, 6786, 997, 529, 1368, 67, 2434, 529, 364, 326, 864, 1950, 350, 12123, 25581, 3927, 8532, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 67, 2702, 67, 18591, 12, 3927, 350, 16, 997, 529, 16, 1368, 67, 2434, 529, 4672, 3536, 6786, 997, 529, 1368, 67, 2434, 529, 364, 326, 864, 1950, 350, 12123, 25581, 3927, 8532, 27...
raise NotImplementedError
raise KeyError
def m(self): raise NotImplementedError
8f9b6e710a25b172bcfdc69cf0bd9320373a7669 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/8f9b6e710a25b172bcfdc69cf0bd9320373a7669/test_rpbc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 12, 2890, 4672, 1002, 11206, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 12, 2890, 4672, 1002, 11206, 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, -...
{}, _("Similar records"),
{}, _("Similar records"),
def tmpl_print_record_brief_links(self, ln, recID, weburl): """Displays links for brief record on-the-fly
d80e9e5b545268d60103014de3d2c09f38531285 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/d80e9e5b545268d60103014de3d2c09f38531285/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 1188, 67, 3366, 67, 25888, 67, 7135, 12, 2890, 16, 7211, 16, 1950, 734, 16, 3311, 718, 4672, 3536, 16900, 4716, 364, 324, 17802, 1409, 603, 17, 5787, 17, 29670, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10720, 67, 1188, 67, 3366, 67, 25888, 67, 7135, 12, 2890, 16, 7211, 16, 1950, 734, 16, 3311, 718, 4672, 3536, 16900, 4716, 364, 324, 17802, 1409, 603, 17, 5787, 17, 29670, 2, -100, -10...
print "Setting up PXE boot using TFTP root %s" % self.tftp_root
print "Setting up PXE boot using TFTP root %s" % self.tftp
def setup_pxe_boot(self): """ Sets up a PXE boot environment using the built in qemu TFTP server. Copies the PXE Linux bootloader pxelinux.0 from the host (needs the pxelinux package or equivalent for your distro), and vmlinuz and initrd.img files from the CD to a directory that qemu will serve trough TFTP to the VM. "...
d245408f9a2fd5877bf4770afc7b97ad08147815 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/d245408f9a2fd5877bf4770afc7b97ad08147815/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 4430, 73, 67, 7137, 12, 2890, 4672, 3536, 11511, 731, 279, 453, 60, 41, 4835, 3330, 1450, 326, 6650, 316, 1043, 24995, 399, 17104, 1438, 18, 28506, 606, 326, 453, 60, 41, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 4430, 73, 67, 7137, 12, 2890, 4672, 3536, 11511, 731, 279, 453, 60, 41, 4835, 3330, 1450, 326, 6650, 316, 1043, 24995, 399, 17104, 1438, 18, 28506, 606, 326, 453, 60, 41, 133...
description=u"Description of the resource.")
description=_("Description of the resource."))
def setPassword(password): """Set the password in a hashed form, so it can be verified later.
4e2ef6797bab9d75607b3490573ef52269c2649b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/4e2ef6797bab9d75607b3490573ef52269c2649b/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23753, 12, 3664, 4672, 3536, 694, 326, 2201, 316, 279, 14242, 646, 16, 1427, 518, 848, 506, 13808, 5137, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23753, 12, 3664, 4672, 3536, 694, 326, 2201, 316, 279, 14242, 646, 16, 1427, 518, 848, 506, 13808, 5137, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 660) else quickfix.IntField.__init__(self, 660, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 4848, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 4848, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
pending, current, next, finished = self._known_edges() all_edges = pending.union(current).union(next).union(finished)
pending, current, next, finished, never_run = self._known_edges() self._remove_unrun(never_run) all_edges = pending.union(current).union(next).union(finished) \ - never_run
def _reevaluate(self): """ Queue addition edge requests if necessary. """ #print "_reevaluate -- called." self._remove_old_candidates() graph = self.parent.ctx.graph
e1305c3595026820ec130e58997a75eefa6cef7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4007/e1305c3595026820ec130e58997a75eefa6cef7b/requestingbundles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 992, 4531, 340, 12, 2890, 4672, 3536, 7530, 2719, 3591, 3285, 309, 4573, 18, 3536, 468, 1188, 4192, 992, 4531, 340, 1493, 2566, 1199, 365, 6315, 4479, 67, 1673, 67, 21635, 1435, 266...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 992, 4531, 340, 12, 2890, 4672, 3536, 7530, 2719, 3591, 3285, 309, 4573, 18, 3536, 468, 1188, 4192, 992, 4531, 340, 1493, 2566, 1199, 365, 6315, 4479, 67, 1673, 67, 21635, 1435, 266...
wikipedia.output(u'%s has no contributions.' % username )
wikipedia.output(u'%s has no contributions.' % userpage.titleWithoutNamespace() )
def parselog(wsite, raw, talk, number): """ The function to load the users (only users who have a certain number of edits) """ done = list() pos = 0 # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure). while 1: # FIXME: That's the regex, if there are ...
d608ac78e9271f1c999a138c1cc6e79d7f66d358 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/d608ac78e9271f1c999a138c1cc6e79d7f66d358/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3536, 2731, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3536, 2731, 273, ...
failTest(bigDepth(257),"""Error Internal error, stack limit reached!\n""", inOnly=1)
failTest(bigDepth(257),"""error Internal error, stack limit reached!\n""", inOnly=1)
def _runTests(pyRXP): global _pyRXP _pyRXP = pyRXP print >>_logf, '############# Testing',pyRXP.__name__ try: for k,v in pyRXP.parser_flags.items(): eval('pyRXP.Parser(%s=%d)' % (k,v)) print >>_logf,'Parser keywords OK' _dot('.') except: traceback.print_exc() print >>_logf,'Parser keywords BAD' _dot('E') try: for k,v i...
af23fef7f39cb2f14bb7ead8d13fd010b2544284 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/af23fef7f39cb2f14bb7ead8d13fd010b2544284/testRXPbasic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 14650, 12, 2074, 54, 60, 52, 4672, 2552, 389, 2074, 54, 60, 52, 389, 2074, 54, 60, 52, 273, 2395, 54, 60, 52, 1172, 1671, 67, 1330, 74, 16, 296, 26487, 7, 7766, 310, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 14650, 12, 2074, 54, 60, 52, 4672, 2552, 389, 2074, 54, 60, 52, 389, 2074, 54, 60, 52, 273, 2395, 54, 60, 52, 1172, 1671, 67, 1330, 74, 16, 296, 26487, 7, 7766, 310, 218...
'UNICODE': ('ref/strings', 'encodings unicode TYPES STRING'),
'UNICODE': ('ref/strings', 'encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES'),
def writedocs(dir, pkgpath='', done=None): """Write out HTML documentation for all modules in a directory tree.""" if done is None: done = {} for file in os.listdir(dir): path = os.path.join(dir, file) if ispackage(path): writedocs(path, pkgpath + file + '.', done) elif os.path.isfile(path): modname = inspect.getmodule...
54f871e19351af3cc2de39d34fa4fe24cedb92f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/54f871e19351af3cc2de39d34fa4fe24cedb92f7/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273,...
output = data.encode(self.options.output_encoding)
output = data.encode(self.settings.output_encoding)
def write(self, data): """Encode `data`, write it to a single file, and return it.""" output = data.encode(self.options.output_encoding) if not self.opened: self.open() self.destination.write(output) if self.autoclose: self.close() return output
3f9490a061df406cd80f543206a76f29cb5b8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/3f9490a061df406cd80f543206a76f29cb5b8e57/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 3536, 5509, 1375, 892, 9191, 1045, 518, 358, 279, 2202, 585, 16, 471, 327, 518, 12123, 876, 273, 501, 18, 3015, 12, 2890, 18, 4272, 18, 2844, 67, 5999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 3536, 5509, 1375, 892, 9191, 1045, 518, 358, 279, 2202, 585, 16, 471, 327, 518, 12123, 876, 273, 501, 18, 3015, 12, 2890, 18, 4272, 18, 2844, 67, 5999, ...
self.redirect('/settings')
self.redirect('/settings')
def post(self): try: volunteer = Authorize.login(self, requireVolunteer=False) except: return params = Parameters.parameterize(self.request)
c1af05f5412d51e0e1dea2722de36b10d3dc7634 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/c1af05f5412d51e0e1dea2722de36b10d3dc7634/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 775, 30, 6626, 318, 736, 264, 273, 23859, 18, 5819, 12, 2890, 16, 2583, 17431, 318, 736, 264, 33, 8381, 13, 1335, 30, 327, 225, 859, 273, 7012, 18, 6775, 554, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 12, 2890, 4672, 775, 30, 6626, 318, 736, 264, 273, 23859, 18, 5819, 12, 2890, 16, 2583, 17431, 318, 736, 264, 33, 8381, 13, 1335, 30, 327, 225, 859, 273, 7012, 18, 6775, 554, 1...
maxCols = t.numcols
if t.__class__ == advtree.Table: maxCols = t.numcols
def writeTable(self, t): self.nestingLevel += 1 elements = [] data = [] maxCols = t.numcols t = rltables.reformatTable(t, maxCols) maxCols = t.numcols
85d5b519f77d8b0188102382d8aca272e865f302 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12390/85d5b519f77d8b0188102382d8aca272e865f302/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1388, 12, 2890, 16, 268, 4672, 365, 18, 82, 10100, 2355, 1011, 404, 2186, 273, 5378, 501, 273, 5378, 309, 268, 16186, 1106, 972, 422, 17825, 3413, 18, 1388, 30, 943, 8011, 273, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1388, 12, 2890, 16, 268, 4672, 365, 18, 82, 10100, 2355, 1011, 404, 2186, 273, 5378, 501, 273, 5378, 309, 268, 16186, 1106, 972, 422, 17825, 3413, 18, 1388, 30, 943, 8011, 273, 2...
if Et.conductor() == self.E.conductor(): Et = self.E D = 1
D = ZZ(D) if D % p == 0: D = D/p for ell in D.prime_divisors(): if ell % 2 == 1: if Et.conductor() % ell**2 == 0: D = D/ell ve = valuation(D,2) de = (D/2**ve).abs() if de % 4 == 3: de = -de Et = self.E.quadratic_twist(de) Nmin = Et.conductor() Dmax = de for DD in [-4*de,8*de,-8*de]: Et = self.E.quadratic_twist(DD) if...
def an_padic(self, p, prec=0,use_twists=True): r""" Returns the conjectural order of Sha(E), according to the `p`-adic analogue of the Birch and Swinnerton-Dyer conjecture as formulated in [MTT] and [BP].
099e096cda7408fcb3b1ffb2bd17aa7e0a8fe864 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/099e096cda7408fcb3b1ffb2bd17aa7e0a8fe864/sha_tate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 67, 6982, 335, 12, 2890, 16, 293, 16, 13382, 33, 20, 16, 1202, 67, 11246, 1486, 33, 5510, 4672, 436, 8395, 2860, 326, 356, 937, 3766, 1353, 434, 2638, 69, 12, 41, 3631, 4888, 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, 392, 67, 6982, 335, 12, 2890, 16, 293, 16, 13382, 33, 20, 16, 1202, 67, 11246, 1486, 33, 5510, 4672, 436, 8395, 2860, 326, 356, 937, 3766, 1353, 434, 2638, 69, 12, 41, 3631, 4888, 35...
def redirect_to_url(req, url, redirection_type=apache.HTTP_TEMPORARY_REDIRECT):
def redirect_to_url(req, url, redirection_type=None):
def redirect_to_url(req, url, redirection_type=apache.HTTP_TEMPORARY_REDIRECT): """ Redirect current page to url. @param req: request as received from apache @param url: url to redirect to @param redirection_type: what kind of redirection is required: e.g.: apache.HTTP_MULTIPLE_CHOICES = 300 apache.HTTP_MOV...
b6020d4aee4814d25e435ff12365e99e9f5ec1ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1780/b6020d4aee4814d25e435ff12365e99e9f5ec1ed/urlutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 869, 67, 718, 12, 3658, 16, 880, 16, 19611, 67, 723, 33, 7036, 4672, 3536, 9942, 783, 1363, 358, 880, 18, 632, 891, 1111, 30, 590, 487, 5079, 628, 12291, 632, 891, 880, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 869, 67, 718, 12, 3658, 16, 880, 16, 19611, 67, 723, 33, 7036, 4672, 3536, 9942, 783, 1363, 358, 880, 18, 632, 891, 1111, 30, 590, 487, 5079, 628, 12291, 632, 891, 880, 30,...
def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y. For the usual division polynomial only in x, see the
def full_division_polynomial(self, m, use_divpoly=True): """ Return the $m$-th bivariate division polynomial in $x$ and $y$. When $m$ is odd this is exactly the same as the usual $m$th division polynomial. For the usual division polynomial only in $x$, see the
def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y.
927f9ed0bbbe55a368188fa3a82765b3f37320bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/927f9ed0bbbe55a368188fa3a82765b3f37320bb/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 67, 2892, 1951, 67, 3915, 13602, 12, 2890, 16, 312, 4672, 3536, 2000, 326, 312, 17, 451, 324, 27693, 16536, 16991, 316, 619, 471, 677, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1983, 67, 2892, 1951, 67, 3915, 13602, 12, 2890, 16, 312, 4672, 3536, 2000, 326, 312, 17, 451, 324, 27693, 16536, 16991, 316, 619, 471, 677, 18, 2, -100, -100, -100, -100, -100, -100, ...
reg += u'\?title=%s(?P<user>.*?)&(?:amp;|)action=(?:edit|editredlink|edit&amp;redlink=1)\"' % talk
reg += u'\?title=%s(?P<user>.*?)&(?:amp;|)action=(?:edit|editredlink|edit&amp;redlink=1)\"' % re.escape(talk)
def parselog(wsite, raw, talk, number, sul): """ The function to load the users (only users who have a certain number of edits) """ someone_found = False autocreated = wsite.mediawiki_message('newuserlog-autocreate-entry') # I search with a regex how many user have not the talk page # and i put them in a list (i find ...
93301e75bbfed927dda945cacc94d3b2c7e703a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/93301e75bbfed927dda945cacc94d3b2c7e703a4/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 16, 272, 332, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 16, 272, 332, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3...
elif (sys.platform == "darwin"): CopyAllHeaders('panda/src/osxdisplay') else: CopyAllHeaders('panda/src/glxdisplay')
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))...
3d9c0e012fd5ecb5a8156a6ef677b6fbb4876afc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/3d9c0e012fd5ecb5a8156a6ef677b6fbb4876afc/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, ...
v[i] = v[0] v[0] = tmp_bit
v[0], v[i] = v[i], v[0]
def HyperStarGraph(self,n,k): r''' Returns the hyper-star graph HS(n,k). The vertices of the hyper-star graph are the set of binary strings of length n which contain k 1s. Two vertices, u and v, are adjacent only if u can be obtained from v by swapping the first bit with a different symbol in another position. INPUT:...
1be1a0d618c98f7271de2c2537d19ea8d861b96e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1be1a0d618c98f7271de2c2537d19ea8d861b96e/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18274, 18379, 4137, 12, 2890, 16, 82, 16, 79, 4672, 436, 26418, 2860, 326, 9512, 17, 10983, 2667, 670, 55, 12, 82, 16, 79, 2934, 225, 1021, 6928, 434, 326, 9512, 17, 10983, 2667, 854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18274, 18379, 4137, 12, 2890, 16, 82, 16, 79, 4672, 436, 26418, 2860, 326, 9512, 17, 10983, 2667, 670, 55, 12, 82, 16, 79, 2934, 225, 1021, 6928, 434, 326, 9512, 17, 10983, 2667, 854, ...
LOG('XWFMailingList', INFO, 'hunting for individual moderation')
m = '%s (%s) is a moderated list; hunting for individual ' 'moderation' % (self.getProperty('title', ''), self.getId()) log.info(m)
def processModeration(self, REQUEST): # a hook for handling the moderation stage of processing the email mailString = getMailFromRequest(REQUEST) # TODO: erradicate splitMail usage (header, body) = MailBoxerTools.splitMail(mailString)
022876f88e927316bd924ded9b9dc1cbc88f4167 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/022876f88e927316bd924ded9b9dc1cbc88f4167/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1739, 7067, 12, 2890, 16, 12492, 4672, 468, 279, 3953, 364, 5057, 326, 681, 7067, 6009, 434, 4929, 326, 2699, 4791, 780, 273, 31991, 25074, 12, 5519, 13, 225, 468, 2660, 30, 6445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1739, 7067, 12, 2890, 16, 12492, 4672, 468, 279, 3953, 364, 5057, 326, 681, 7067, 6009, 434, 4929, 326, 2699, 4791, 780, 273, 31991, 25074, 12, 5519, 13, 225, 468, 2660, 30, 6445, ...
results.append(self.select(sel).measurability())
results.append(self.select(sel).measurability(cutoff=cutoff))
def measurability(self, use_binning=False, cutoff=3.0): ## Peter Zwart 3/4/2005 """\
d841835b71e304c7fd3ea12ab820d5fce58fc011 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/d841835b71e304c7fd3ea12ab820d5fce58fc011/miller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10017, 295, 2967, 12, 2890, 16, 999, 67, 4757, 2093, 33, 8381, 16, 13383, 33, 23, 18, 20, 4672, 7541, 453, 847, 2285, 91, 485, 890, 19, 24, 19, 6976, 25, 3536, 64, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10017, 295, 2967, 12, 2890, 16, 999, 67, 4757, 2093, 33, 8381, 16, 13383, 33, 23, 18, 20, 4672, 7541, 453, 847, 2285, 91, 485, 890, 19, 24, 19, 6976, 25, 3536, 64, 2, -100, -100, -...
user_taro.login.user_name + '@' + domain, list_name)
user_taro.login.user_name + '@' + apps_domain, list_name)
def test001MethodsForEmaillist(self): """Tests methods for emaillist """ user_name = 'YujiMatsuo-' + self.postfix family_name = 'Matsuo' given_name = 'Yuji' password = '123$$abc' suspended = 'false'
432cc086d6a9ff3dc03c0c0c8c2e4f58f235ba5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/432cc086d6a9ff3dc03c0c0c8c2e4f58f235ba5a/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 11664, 4712, 1290, 4134, 1098, 12, 2890, 4672, 3536, 14650, 2590, 364, 2699, 1098, 3536, 225, 729, 67, 529, 273, 296, 61, 11501, 77, 49, 2323, 89, 83, 6627, 397, 365, 18, 2767, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11664, 4712, 1290, 4134, 1098, 12, 2890, 4672, 3536, 14650, 2590, 364, 2699, 1098, 3536, 225, 729, 67, 529, 273, 296, 61, 11501, 77, 49, 2323, 89, 83, 6627, 397, 365, 18, 2767, 9...
bfrom = bfrom.replace(")", "")
bfrom = bfrom.replace(" )", "")
def readusersettings(conffile): fileHandle = open(configFile) limits = fileHandle.readline() bfrom = fileHandle.readline() bto = fileHandle.readline() limits = limits.replace("limit=( ","") limits = limits.replace(")", "") limits = limits.split(" ") bfrom = bfrom.replace("from=( ", "") bfrom = bfrom.replace(")", "") bf...
b93699de4d882fa4b6a1bb749cfb78bc1c92d8d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/b93699de4d882fa4b6a1bb749cfb78bc1c92d8d7/timekpr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5577, 278, 1256, 12, 3923, 768, 4672, 26662, 273, 1696, 12, 1425, 812, 13, 8181, 273, 26662, 18, 896, 1369, 1435, 324, 2080, 273, 26662, 18, 896, 1369, 1435, 324, 869, 273, 26662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5577, 278, 1256, 12, 3923, 768, 4672, 26662, 273, 1696, 12, 1425, 812, 13, 8181, 273, 26662, 18, 896, 1369, 1435, 324, 2080, 273, 26662, 18, 896, 1369, 1435, 324, 869, 273, 26662, ...
def readline(self): if self._file is not None and not self._query_in_progress: try: data = self._file.readline().rstrip() except IOError: data = None return data
def readline(self, timeout=0): if self._file is not None and any(select([self._file], [], [], timeout)): return self._file.readline().rstrip()
def readline(self): if self._file is not None and not self._query_in_progress: try: data = self._file.readline().rstrip() except IOError: data = None return data
1c5a908b381400f4fcfe18ff159d9999a1ec2078 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12327/1c5a908b381400f4fcfe18ff159d9999a1ec2078/pymplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 309, 365, 6315, 768, 353, 486, 599, 471, 486, 365, 6315, 2271, 67, 267, 67, 8298, 30, 775, 30, 501, 273, 365, 6315, 768, 18, 896, 1369, 7675, 86, 6406, 1435, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 309, 365, 6315, 768, 353, 486, 599, 471, 486, 365, 6315, 2271, 67, 267, 67, 8298, 30, 775, 30, 501, 273, 365, 6315, 768, 18, 896, 1369, 7675, 86, 6406, 1435, 1...
self.__itdb = self.create_db()
self.__itdb = self.__create_db()
def __load_db(self): if self.__itdb: return self.__itdb
397ae1e5aca90ed5fb3e318d890ef846a87b048e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/397ae1e5aca90ed5fb3e318d890ef846a87b048e/ipod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 67, 1966, 12, 2890, 4672, 309, 365, 16186, 305, 1966, 30, 327, 365, 16186, 305, 1966, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 67, 1966, 12, 2890, 4672, 309, 365, 16186, 305, 1966, 30, 327, 365, 16186, 305, 1966, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
node.appendChild(lastNode) lastNode = node if lastNode.parent: lastNode.parent.removeChild(lastNode) if commonAncestor.name in frozenset(("table", "tbody", "tfoot", "thead", "tr")): parent, insertBefore = self.tree.getTableMisnestedNodePosition() parent.insertBefore(lastNode, insertBefore) else: commonAncestor....
if commonAncestor.name in frozenset(("table", "tbody", "tfoot", "thead", "tr")): parent, insertBefore = self.tree.getTableMisnestedNodePosition() parent.insertBefore(lastNode, insertBefore) else: commonAncestor.appendChild(lastNode) clone = formattingElement.cloneNode() furthestBlock.reparentChildren(clone) furt...
def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 formattingElement = self.tree.elementInActiveFormattingElements( toke...
7b800000ab5eed9d02fde3c4b884769a0bfbf17a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/7b800000ab5eed9d02fde3c4b884769a0bfbf17a/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
return confm.TP/tot
return confm.TN/tot
def NPV(confm): """Return negative predictive value over the given confusion matrix.""" if type(confm) == list: return [NPV(cm) for cm in confm] else: tot = confm.TP+confm.TN if tot < 1e-6: import warnings warnings.warn("Can't compute NPV: one or both classes have no instances") return -1 return confm.TP/tot
eaf7688f2e477915da4a1c6d7ce3a1197fc752d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/eaf7688f2e477915da4a1c6d7ce3a1197fc752d3/orngStat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 30201, 12, 3923, 81, 4672, 3536, 990, 6092, 7810, 688, 460, 1879, 326, 864, 31067, 3148, 12123, 309, 618, 12, 3923, 81, 13, 422, 666, 30, 327, 306, 23430, 58, 12, 7670, 13, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 30201, 12, 3923, 81, 4672, 3536, 990, 6092, 7810, 688, 460, 1879, 326, 864, 31067, 3148, 12123, 309, 618, 12, 3923, 81, 13, 422, 666, 30, 327, 306, 23430, 58, 12, 7670, 13, 364, ...
stripebody = self.flatten(stripe,depth+1)
stripebody = self.flatten(stripe,depth)
def flatten(self, stripeset, depth=0, context="show"): """Converts a stripe or stripeset into a string"""
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, -100, -100, -100, -100, -100, ...
def urljoin(base, url, allow_framents = 1):
def urljoin(base, url, allow_fragments = 1):
def urljoin(base, url, allow_framents = 1): if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ urlparse(base, '', allow_framents) scheme, netloc, path, params, query, fragment = \ urlparse(url, bscheme, allow_framents) # XXX Unofficial hack: default netloc to bnetloc even if # schemes diffe...
ed62db008f673ef0ce9a7179b727012629de90ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ed62db008f673ef0ce9a7179b727012629de90ca/urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25447, 12, 1969, 16, 880, 16, 1699, 67, 29528, 273, 404, 4672, 309, 486, 1026, 30, 327, 880, 7081, 2905, 16, 324, 2758, 1829, 16, 324, 803, 16, 324, 2010, 16, 324, 2271, 16, 324, 119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25447, 12, 1969, 16, 880, 16, 1699, 67, 29528, 273, 404, 4672, 309, 486, 1026, 30, 327, 880, 7081, 2905, 16, 324, 2758, 1829, 16, 324, 803, 16, 324, 2010, 16, 324, 2271, 16, 324, 119...
file_obj = open(TO_GRADE_DIR+"/"+filename,'r') student_file_data = file_obj.read() file_obj.close()
def run_webserver_tests(filename,name_ip_tuples): # get a tuple for each test [(filename,file_content_str)...] test_tuples = get_tests() # get the student file to grade file_obj = open(TO_GRADE_DIR+"/"+filename,'r') student_file_data = file_obj.read() file_obj.close() #get list of hosts host_list =[] for (host,ip) i...
f448ac0aa00383d8363134c56e7549a55e26dc82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/f448ac0aa00383d8363134c56e7549a55e26dc82/autograder_runner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 1814, 2266, 502, 67, 16341, 12, 3459, 16, 529, 67, 625, 67, 17705, 4672, 225, 468, 336, 279, 3193, 364, 1517, 1842, 306, 12, 3459, 16, 768, 67, 1745, 67, 701, 13, 2777, 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, 1086, 67, 1814, 2266, 502, 67, 16341, 12, 3459, 16, 529, 67, 625, 67, 17705, 4672, 225, 468, 336, 279, 3193, 364, 1517, 1842, 306, 12, 3459, 16, 768, 67, 1745, 67, 701, 13, 2777, 65,...
item.Enable(pi.GetEnabled())
item.EnableTab(pi.GetEnabled())
def PopupTabsMenu(self): """ Pops up the menu activated with the drop down arrow in the navigation area. """
3a0b1f421ffd09b66f7f6a99913173fbe0ebb517 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12725/3a0b1f421ffd09b66f7f6a99913173fbe0ebb517/flatnotebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10264, 416, 17348, 4599, 12, 2890, 4672, 3536, 453, 4473, 731, 326, 3824, 14892, 598, 326, 3640, 2588, 12274, 316, 326, 10394, 5091, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 10264, 416, 17348, 4599, 12, 2890, 4672, 3536, 453, 4473, 731, 326, 3824, 14892, 598, 326, 3640, 2588, 12274, 316, 326, 10394, 5091, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, ...
@staticmethod
def build_signature(self, signature_method, consumer, token): # call the build signature method within the signature method return signature_method.build_signature(self, consumer, token)
6693d442ced806c6c8cda35b96d4347a543dcae0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1598/6693d442ced806c6c8cda35b96d4347a543dcae0/oauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 8195, 12, 2890, 16, 3372, 67, 2039, 16, 4765, 16, 1147, 4672, 468, 745, 326, 1361, 3372, 707, 3470, 326, 3372, 707, 327, 3372, 67, 2039, 18, 3510, 67, 8195, 12, 2890, 16, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 8195, 12, 2890, 16, 3372, 67, 2039, 16, 4765, 16, 1147, 4672, 468, 745, 326, 1361, 3372, 707, 3470, 326, 3372, 707, 327, 3372, 67, 2039, 18, 3510, 67, 8195, 12, 2890, 16, 4...
'L,Reserved1', 'L,SizeOfImage', 'L,SizeOfHeaders', 'L,CheckSum', 'H,Subsystem', 'H,DllCharacteristics', 'L,SizeOfStackReserve', 'L,SizeOfStackCommit', 'L,SizeOfHeapReserve', 'L,SizeOfHeapCommit', 'L,LoaderFlags', 'L,NumberOfRvaAndSizes' ))
'I,Reserved1', 'I,SizeOfImage', 'I,SizeOfHeaders', 'I,CheckSum', 'H,Subsystem', 'H,DllCharacteristics', 'I,SizeOfStackReserve', 'I,SizeOfStackCommit', 'I,SizeOfHeapReserve', 'I,SizeOfHeapCommit', 'I,LoaderFlags', 'I,NumberOfRvaAndSizes' ))
def __init__(self, **args): for key, value in args.items(): setattr(self, key, value)
d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
ditamap = workspace_resolve(ctx, ditamap) args = ' '.join(args)
def dita(ctx, config, output_dir=None, quiet=False, keep_going=False): """Runs a DITA-OT transformation. :param ctx: the build context :type ctx: `Context` :param config: the Eclipse launch configuration containing the build parameters :param keep_going: whether the toolkit should keep going when errors are encountere...
416a430a6463bed959e28c23833e0ef08ad579da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11107/416a430a6463bed959e28c23833e0ef08ad579da/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 23338, 12, 5900, 16, 642, 16, 876, 67, 1214, 33, 7036, 16, 10902, 33, 8381, 16, 3455, 67, 8162, 33, 8381, 4672, 3536, 9361, 279, 463, 1285, 37, 17, 1974, 8620, 18, 225, 294, 891...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 23338, 12, 5900, 16, 642, 16, 876, 67, 1214, 33, 7036, 16, 10902, 33, 8381, 16, 3455, 67, 8162, 33, 8381, 4672, 3536, 9361, 279, 463, 1285, 37, 17, 1974, 8620, 18, 225, 294, 891...
str += '<font size="+1"><b>%s</b></font><br />\n' % section
str += ('<font size="+1"><b>%s</b></font><br />\n' % section.replace(' ', '&nbsp;'))
def _write_toc_section(self, public, private, section, links): if not links: return
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 1391, 67, 3464, 12, 2890, 16, 1071, 16, 3238, 16, 2442, 16, 4716, 4672, 309, 486, 4716, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2626, 67, 1391, 67, 3464, 12, 2890, 16, 1071, 16, 3238, 16, 2442, 16, 4716, 4672, 309, 486, 4716, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
maxstep=0.2, dR=0.1, memory=25, damping=1.): Optimizer.__init__(self, atoms, restart, logfile, trajectory)
maxstep=None, dR=0.1, memory=25, damping=1., initial_hessian=None):
def __init__(self, atoms, restart=None, logfile='-', trajectory=None, maxstep=0.2, dR=0.1, memory=25, damping=1.): Optimizer.__init__(self, atoms, restart, logfile, trajectory)
1ba0800390297dd3e708c8b58dea0f8af9e2d82b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/1ba0800390297dd3e708c8b58dea0f8af9e2d82b/lbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9006, 16, 7870, 33, 7036, 16, 15204, 2218, 17, 2187, 27016, 33, 7036, 16, 943, 4119, 33, 20, 18, 22, 16, 302, 54, 33, 20, 18, 21, 16, 3778, 33, 2947,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9006, 16, 7870, 33, 7036, 16, 15204, 2218, 17, 2187, 27016, 33, 7036, 16, 943, 4119, 33, 20, 18, 22, 16, 302, 54, 33, 20, 18, 21, 16, 3778, 33, 2947,...
do {
while (i < input.length) {
def notebook_lib(): s= r"""
3d36dffe41957f3c4bc2f2aa92a8f97c4079f5e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/3d36dffe41957f3c4bc2f2aa92a8f97c4079f5e7/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 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...
processedMessage = self.element.message.replace("&e", str(self.event))
processedMessage = self.element.message.replace("&e", "%s.%s" % (self.event.__class__.__module__, self.event.__class__.__name__))
def __call__(self): logger = logging.getLogger(self.element.targetLogger) processedMessage = self.element.message.replace("&e", str(self.event)) if IObjectEvent.providedBy(self.event): processedMessage = processedMessage.replace("&c", str(self.event.object)) logger.log(self.element.loggingLevel, processedMessage) retur...
f3070a2760f0c2fa06d4731adefba3332130d86d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12184/f3070a2760f0c2fa06d4731adefba3332130d86d/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1194, 273, 2907, 18, 588, 3328, 12, 2890, 18, 2956, 18, 3299, 3328, 13, 5204, 1079, 273, 365, 18, 2956, 18, 2150, 18, 2079, 2932, 10, 73, 3113, 2213, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1194, 273, 2907, 18, 588, 3328, 12, 2890, 18, 2956, 18, 3299, 3328, 13, 5204, 1079, 273, 365, 18, 2956, 18, 2150, 18, 2079, 2932, 10, 73, 3113, 2213, ...
"""Return a sorted copy of `seq`"""
"""Return a sorted copy of `seq`."""
def sorted(seq): """Return a sorted copy of `seq`""" newseq = seq[:] newseq.sort() return newseq
46a0c8dd14843f2383711724a77c799cd55db324 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/46a0c8dd14843f2383711724a77c799cd55db324/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3115, 12, 5436, 4672, 3536, 990, 279, 3115, 1610, 434, 1375, 5436, 68, 12123, 394, 5436, 273, 3833, 10531, 65, 394, 5436, 18, 3804, 1435, 327, 394, 5436, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3115, 12, 5436, 4672, 3536, 990, 279, 3115, 1610, 434, 1375, 5436, 68, 12123, 394, 5436, 273, 3833, 10531, 65, 394, 5436, 18, 3804, 1435, 327, 394, 5436, 2, -100, -100, -100, -100, -100,...
if (len(argv)!=0) and (argv[0] == '-v' or argv[0] == '--verbose'):
if (len(argv)!=0) and (argv[0] == '-v' or \ argv[0] == '--verbose'):
def commandline(): """zhpy, the python language in chinese
4de126988891dabf7dd1f19d227bb2d682620904 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/4de126988891dabf7dd1f19d227bb2d682620904/commandline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28305, 13332, 3536, 23121, 2074, 16, 326, 5790, 2653, 316, 462, 25331, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 28305, 13332, 3536, 23121, 2074, 16, 326, 5790, 2653, 316, 462, 25331, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
print getruntime(),"Server Conn.",remoteip,remoteport
if DEBUG2: print getruntime(),"Server Conn.",remoteip,remoteport
def new_server(remoteip, remoteport, sock, thiscommhandle, listencommhandle): # DEBUG print getruntime(),"Server Conn.",remoteip,remoteport # Get the connection ID id = FORWARDER_STATE["Next_Conn_ID"] # Increment the global ID counter FORWARDER_STATE["Next_Conn_ID"] += 1 # Initialize the multiplexing socket with thi...
97c98a4639b5732c55eb56e45c05285f614b74a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/97c98a4639b5732c55eb56e45c05285f614b74a9/forwarder_rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 3567, 12, 7222, 625, 16, 2632, 655, 16, 7313, 16, 333, 5702, 4110, 16, 6514, 5702, 4110, 4672, 468, 6369, 309, 6369, 22, 30, 1172, 336, 9448, 9334, 6, 2081, 6683, 1199, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 3567, 12, 7222, 625, 16, 2632, 655, 16, 7313, 16, 333, 5702, 4110, 16, 6514, 5702, 4110, 4672, 468, 6369, 309, 6369, 22, 30, 1172, 336, 9448, 9334, 6, 2081, 6683, 1199, 16, ...
self.talkNamespacePattern = {
self.talkNamespacePatterns = {
def __init__(self): self.name = None # Updated from http://meta.wikimedia.org/wiki/Interwiki_sorting_order self.alphabetic = [ 'aa','af','ak','als','am','ang','ab','ar','an','roa-rup','frp','as', 'ast','gn','av','ay','az','bm','bn','zh-min-nan','map-bms','ba','be', 'bh','bpy','bi','bar','bo','bs','br','bg','bxr','ca','...
7f20001aefa656500ab3d04645613adc8cbb0d16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7f20001aefa656500ab3d04645613adc8cbb0d16/family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 529, 273, 599, 468, 19301, 628, 1062, 2207, 3901, 18, 11999, 381, 1980, 18, 3341, 19, 13044, 19, 2465, 13044, 67, 28751, 67, 1019, 365, 18, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 529, 273, 599, 468, 19301, 628, 1062, 2207, 3901, 18, 11999, 381, 1980, 18, 3341, 19, 13044, 19, 2465, 13044, 67, 28751, 67, 1019, 365, 18, 28...
assert False, 'Unknown notfound hander %r' % m_type except:
m_type, meth, m_remainder, warning = state._notfound_stack.pop() if warning: warn(warning, DeprecationWarning) if m_type == 'lookup': new_controller, new_remainder = meth(*m_remainder) state.add_controller(new_controller.__class__.__name__, new_controller) dispatcher = getattr(new_controller, '_dispatch', self._dispa...
def _dispatch_first_found_default_or_lookup(self, state, remainder): """ When the dispatch has reached the end of the tree but not found an applicable method, so therefore we head back up the branches of the tree until we found a method which matches with a default or lookup method. """
cd599512e86f91fb7e921e34b73864bc8cc03863 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/47/cd599512e86f91fb7e921e34b73864bc8cc03863/objectdispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 67, 3645, 67, 7015, 67, 1886, 67, 280, 67, 8664, 12, 2890, 16, 919, 16, 10022, 4672, 3536, 5203, 326, 3435, 711, 8675, 326, 679, 434, 326, 2151, 1496, 486, 1392, 392, 12008...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10739, 67, 3645, 67, 7015, 67, 1886, 67, 280, 67, 8664, 12, 2890, 16, 919, 16, 10022, 4672, 3536, 5203, 326, 3435, 711, 8675, 326, 679, 434, 326, 2151, 1496, 486, 1392, 392, 12008...
menu_dict = {} for menu, name, handler in sorted(self.control_map.values()): menu_dict.setdefault(menu, []).append((name,handler))
def mouse_up(self, when, event): res = super(GraphWidget, self).mouse_up(when, event) if when == 'post': return res
d830cb7b4e5c297811d021441d5fef5c0fa1fae4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5406/d830cb7b4e5c297811d021441d5fef5c0fa1fae4/GraphWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 67, 416, 12, 2890, 16, 1347, 16, 871, 4672, 400, 273, 2240, 12, 4137, 4609, 16, 365, 2934, 11697, 67, 416, 12, 13723, 16, 871, 13, 309, 1347, 422, 296, 2767, 4278, 327, 400, 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, 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, 7644, 67, 416, 12, 2890, 16, 1347, 16, 871, 4672, 400, 273, 2240, 12, 4137, 4609, 16, 365, 2934, 11697, 67, 416, 12, 13723, 16, 871, 13, 309, 1347, 422, 296, 2767, 4278, 327, 400, 2,...
report_directive.options = options
report_directive.options = RENDER_OPTIONS.copy() report_directive.options.update( DISPLAY_OPTIONS.copy() )
def report_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): return run(arguments, options, lineno, content, state_machine )
53c6b812924b1cf4a66a206cd831699a530d0218 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8044/53c6b812924b1cf4a66a206cd831699a530d0218/report_directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 22347, 12, 529, 16, 1775, 16, 702, 16, 913, 16, 7586, 16, 913, 67, 3348, 16, 1203, 67, 955, 16, 919, 16, 919, 67, 9149, 4672, 327, 1086, 12, 7099, 16, 702, 16, 7586, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 22347, 12, 529, 16, 1775, 16, 702, 16, 913, 16, 7586, 16, 913, 67, 3348, 16, 1203, 67, 955, 16, 919, 16, 919, 67, 9149, 4672, 327, 1086, 12, 7099, 16, 702, 16, 7586, 16, ...
""" To let people use different DBs, use specific class derived from Database """ if dbtype == 'pgsql' : return PgSQLDatabase(dbname) elif dbtype == 'mysql' : return MySQLDatabase(dbname) else : raise UnknownDBException('Unknown database type %s' % dbtype)
""" To let people use different DBs, use specific class derived from Database """ if dbtype == 'pgsql' : return PgSQLDatabase(dbname) elif dbtype == 'mysql' : return MySQLDatabase(dbname) else : raise UnknownDBException('Unknown database type %s' % dbtype)
def get_database(dbtype, dbname) : """ To let people use different DBs, use specific class derived from Database """ if dbtype == 'pgsql' : return PgSQLDatabase(dbname) elif dbtype == 'mysql' : return MySQLDatabase(dbname) else : raise UnknownDBException('Unknown database type %s' % dbtype)
29a6ea4f096502e912843ce3e87d9bd38a4b7e4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/29a6ea4f096502e912843ce3e87d9bd38a4b7e4a/DataLayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6231, 12, 1966, 723, 16, 18448, 13, 294, 3536, 2974, 2231, 16951, 999, 3775, 2383, 87, 16, 999, 2923, 667, 10379, 628, 5130, 3536, 225, 309, 1319, 723, 422, 296, 84, 30175, 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, 336, 67, 6231, 12, 1966, 723, 16, 18448, 13, 294, 3536, 2974, 2231, 16951, 999, 3775, 2383, 87, 16, 999, 2923, 667, 10379, 628, 5130, 3536, 225, 309, 1319, 723, 422, 296, 84, 30175, 11...
Returns the b-statistic for the Dyck word corresponding to the bounce statistic of the Dyck word.
Returns the b-statistic for the Dyck word corresponding to the bounce statistic of the Dyck word.
def b_statistic(self): r""" Returns the b-statistic for the Dyck word corresponding to the bounce statistic of the Dyck word.
7e1334f768dfbfef3881c254af52ae022484f92b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7e1334f768dfbfef3881c254af52ae022484f92b/dyck_word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 67, 5642, 5846, 12, 2890, 4672, 436, 8395, 2860, 326, 324, 17, 5642, 5846, 364, 326, 463, 93, 363, 2076, 4656, 358, 326, 324, 8386, 21605, 434, 326, 463, 93, 363, 2076, 18, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 67, 5642, 5846, 12, 2890, 4672, 436, 8395, 2860, 326, 324, 17, 5642, 5846, 364, 326, 463, 93, 363, 2076, 4656, 358, 326, 324, 8386, 21605, 434, 326, 463, 93, 363, 2076, 18, 2, -...
client = TestHTTPClient('http://www.foo.com', self.callback, self.errback)
client = TestHTTPClient('http://www.foo.com', self.callback, self.errback)
def testGetFilenameFromResponse(self): client = TestHTTPClient('http://www.foo.com', self.callback, self.errback) def getIt(path, cd=None): response = {'path': path} if cd: response['content-disposition'] = cd return client.getFilenameFromResponse(response) self.assertEquals("unknown", getIt("/")) self.assertEquals("in...
418adb76d5649de26cfbb2d53e4b3a1e94bdbc2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/418adb76d5649de26cfbb2d53e4b3a1e94bdbc2b/httpclienttest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 5359, 1265, 1064, 12, 2890, 4672, 1004, 273, 7766, 26211, 2668, 2505, 2207, 5591, 18, 11351, 18, 832, 2187, 365, 18, 3394, 16, 365, 18, 370, 823, 13, 225, 1652, 336, 7193, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 5359, 1265, 1064, 12, 2890, 4672, 1004, 273, 7766, 26211, 2668, 2505, 2207, 5591, 18, 11351, 18, 832, 2187, 365, 18, 3394, 16, 365, 18, 370, 823, 13, 225, 1652, 336, 7193, 1...
def getThumbnailSet(thumbnailStore, length, pixelsIds):
def getThumbnailSet(thumbnailStore, length, pixelIds):
def getThumbnailSet(thumbnailStore, length, pixelsIds): """ Returns map of thumbnails whose keys are the pixels id and the values are the image, the longest side is 'length' @param thumbnailStore: The Omero thumbnail store @param pixelsIds: The collection of pixels ID. @param length: Length of longest side. int @re...
33b7aab917f7f35751c3d1a4fd7a7d9909274923 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/33b7aab917f7f35751c3d1a4fd7a7d9909274923/imageUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 16270, 694, 12, 14904, 2257, 16, 769, 16, 4957, 2673, 4672, 3536, 2860, 852, 434, 30526, 8272, 1311, 854, 326, 8948, 612, 471, 326, 924, 854, 326, 1316, 16, 326, 12163, 4889, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 16270, 694, 12, 14904, 2257, 16, 769, 16, 4957, 2673, 4672, 3536, 2860, 852, 434, 30526, 8272, 1311, 854, 326, 8948, 612, 471, 326, 924, 854, 326, 1316, 16, 326, 12163, 4889, 353, ...
if _debug: print "\t%s: Called Camera.getElevation()" % rendererName
debugMsg("Called Camera.getElevation()")
def getElevation(self): """ Gets the elevation angle (in degrees) of the Camera """ if _debug: print "\t%s: Called Camera.getElevation()" % rendererName return self.elevation
9eafeed6682cc7693274ff2418342722b828961f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/9eafeed6682cc7693274ff2418342722b828961f/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4774, 298, 7112, 12, 2890, 4672, 3536, 11881, 326, 19051, 5291, 261, 267, 10904, 13, 434, 326, 30355, 3536, 1198, 3332, 2932, 8185, 30355, 18, 588, 17274, 7112, 1435, 7923, 225, 327, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4774, 298, 7112, 12, 2890, 4672, 3536, 11881, 326, 19051, 5291, 261, 267, 10904, 13, 434, 326, 30355, 3536, 1198, 3332, 2932, 8185, 30355, 18, 588, 17274, 7112, 1435, 7923, 225, 327, 365, ...
def precompile_hook (self): pass def prelink_hook (self):
def msvc_prelink_hack (self, sources, ext, extra_args):
def find_swig (self): """Return the name of the SWIG executable. On Unix, this is just "swig" -- it should be in the PATH. Tries a bit harder on Windows. """
c99d45c8e6af0eee6a4fe351d4786a13ee7f5e03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c99d45c8e6af0eee6a4fe351d4786a13ee7f5e03/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 5328, 360, 261, 2890, 4672, 3536, 990, 326, 508, 434, 326, 16392, 3047, 9070, 18, 225, 2755, 9480, 16, 333, 353, 2537, 315, 5328, 360, 6, 1493, 518, 1410, 506, 316, 326, 7767...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 67, 5328, 360, 261, 2890, 4672, 3536, 990, 326, 508, 434, 326, 16392, 3047, 9070, 18, 225, 2755, 9480, 16, 333, 353, 2537, 315, 5328, 360, 6, 1493, 518, 1410, 506, 316, 326, 7767...
toDelete.append(key)
toDelete += conversion
def load_ad_hoc_data(self, node, elt_data, elt_ad_hoc=None): #reading new files if elt_ad_hoc and len(elt_ad_hoc): node.set_ad_hoc_dict(metadatadict.MetaDataDict(elt_ad_hoc)) return #extracting ad hoc data from old files. #we parse the Node class' __ad_hoc_from_old_map__ #which defines conversions between new ad_hoc_d...
39a71bddbe1b69f4b3c0ec062aa99c25fd7ad58b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11338/39a71bddbe1b69f4b3c0ec062aa99c25fd7ad58b/compositenode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 361, 67, 76, 504, 67, 892, 12, 2890, 16, 756, 16, 11572, 67, 892, 16, 11572, 67, 361, 67, 76, 504, 33, 7036, 4672, 468, 21803, 394, 1390, 309, 11572, 67, 361, 67, 76, 504...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 361, 67, 76, 504, 67, 892, 12, 2890, 16, 756, 16, 11572, 67, 892, 16, 11572, 67, 361, 67, 76, 504, 33, 7036, 4672, 468, 21803, 394, 1390, 309, 11572, 67, 361, 67, 76, 504...
log("flipping cache files. new current = %d" % current)
self.log("flipping cache files. new current = %d" % current)
def checkSize(self, size): # Make sure we aren't going to exceed the target size. # If we are, then flip the cache. self._acquire() try: if self._pos + size > self._limit: current = not self._current self._current = current self._trace(0x70) log("flipping cache files. new current = %d" % current) # Delete the half of ...
18c6f729fe9eb1dc56bff0cb3204d846147e59cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/18c6f729fe9eb1dc56bff0cb3204d846147e59cb/ClientCache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1225, 12, 2890, 16, 963, 4672, 468, 4344, 3071, 732, 11526, 1404, 8554, 358, 9943, 326, 1018, 963, 18, 468, 971, 732, 854, 16, 1508, 9668, 326, 1247, 18, 365, 6315, 1077, 1039, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1225, 12, 2890, 16, 963, 4672, 468, 4344, 3071, 732, 11526, 1404, 8554, 358, 9943, 326, 1018, 963, 18, 468, 971, 732, 854, 16, 1508, 9668, 326, 1247, 18, 365, 6315, 1077, 1039, 14...
self.checkbuttonPublicEvent.get_active()
self.checkbuttonPublishEvent.get_active()
def dicts2XML(self): """ Returns information of all dictionaries as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.dictEvent['xmlEventID'] event_type = Sub(xml, "event_type") Sub(event_type, "value").text = "manual" Sub(event_type, "user").text = self.username Sub(event_type, "publi...
08072571b11b984a33e9ee53ba52401ff881eaff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/08072571b11b984a33e9ee53ba52401ff881eaff/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, 2575, 67, 350, 6, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, 2575, 67, 350, 6, 3...
from Bio import SeqIO from StringIO import StringIO my_iterator = SeqIO.parse(StringIO(data), format)
>>> data = ">Alpha\nACCGGATGTA\n>Beta\nAGGCTCGGTTA\n" >>> from Bio import SeqIO >>> from StringIO import StringIO >>> for record in SeqIO.parse(StringIO(data), "fasta") : ... print record.id, record.seq Alpha ACCGGATGTA Beta AGGCTCGGTTA
def parse(handle, format, alphabet=None) : """Turns a sequence file into an iterator returning SeqRecords. - handle - handle to the file. - format - lower case string describing the file format. - alphabet - optional Alphabet object, useful when the sequence type cannot be automatically inferred from the file itse...
50f7b8f7beb9789bef45ce3b81c92b11d7f5b873 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/50f7b8f7beb9789bef45ce3b81c92b11d7f5b873/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 4110, 16, 740, 16, 10877, 33, 7036, 13, 294, 3536, 31873, 279, 3102, 585, 1368, 392, 2775, 5785, 14367, 6499, 18, 225, 300, 1640, 282, 300, 1640, 358, 326, 585, 18, 300, 740,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 4110, 16, 740, 16, 10877, 33, 7036, 13, 294, 3536, 31873, 279, 3102, 585, 1368, 392, 2775, 5785, 14367, 6499, 18, 225, 300, 1640, 282, 300, 1640, 358, 326, 585, 18, 300, 740,...
self.plugins[plugin_name] = aMSNProfilePlugin(self, plugin_config_dict)
self.plugin_configs[plugin_name] = \ aMSNPluginConfiguration(self, plugin_name, plugin_config_dict)
def addPlugin(self, plugin_name, plugin_config_dict): self.plugins[plugin_name] = aMSNProfilePlugin(self, plugin_config_dict)
5ddbbe125f507c3bd05f8b9774782cfab523da74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/206/5ddbbe125f507c3bd05f8b9774782cfab523da74/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3773, 12, 2890, 16, 1909, 67, 529, 16, 1909, 67, 1425, 67, 1576, 4672, 365, 18, 4094, 67, 10955, 63, 4094, 67, 529, 65, 273, 521, 279, 3537, 50, 3773, 1750, 12, 2890, 16, 1909, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3773, 12, 2890, 16, 1909, 67, 529, 16, 1909, 67, 1425, 67, 1576, 4672, 365, 18, 4094, 67, 10955, 63, 4094, 67, 529, 65, 273, 521, 279, 3537, 50, 3773, 1750, 12, 2890, 16, 1909, ...
'origin': (production.origin or '') +':'+production.name,
'origin': (production.origin or '').split(':')[0] +':'+production.name,
def action_confirm(self, cr, uid, ids): picking_id=False for production in self.browse(cr, uid, ids): if not production.product_lines: self.action_compute(cr, uid, [production.id]) production = self.browse(cr, uid, [production.id])[0] picking_id = self.pool.get('stock.picking').create(cr, uid, { 'origin': (production.o...
2a8141bb37592b69b0e16cb14df88cc17c7b02cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/2a8141bb37592b69b0e16cb14df88cc17c7b02cc/mrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 6002, 310, 67, 350, 33, 8381, 364, 12449, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 486, 12449, 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, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 6002, 310, 67, 350, 33, 8381, 364, 12449, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 486, 12449, 18, ...
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': ANSWER for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).') pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of ANSWER: '+sANSWER)
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': ANSWER for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).', 2) pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of ANSWER: '+sAnswer, 3)
def Answer(self, sAnswer): """send Answer"""
e17fbeafbd8fe4fbd118c6cba7484fbf380f5539 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/e17fbeafbd8fe4fbd118c6cba7484fbf380f5539/cNeighbourOwl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21019, 12, 2890, 16, 272, 13203, 4672, 3536, 4661, 21019, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21019, 12, 2890, 16, 272, 13203, 4672, 3536, 4661, 21019, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def testExceptionCleanup(self):
def testExceptionCleanupNames(self):
def testExceptionCleanup(self): # Make sure "except V as N" exceptions are cleaned up properly
0020b69f36db3ce2c0114cbc43390f8542314045 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/0020b69f36db3ce2c0114cbc43390f8542314045/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 503, 15007, 12, 2890, 4672, 468, 4344, 3071, 315, 14137, 776, 487, 423, 6, 4798, 854, 9426, 731, 8214, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 503, 15007, 12, 2890, 4672, 468, 4344, 3071, 315, 14137, 776, 487, 423, 6, 4798, 854, 9426, 731, 8214, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
else:
else:
def ftp_LIST(self, line): "Return a list of files" if line: # some FTP clients (like Konqueror or Nautilus) erroneously use # /bin/ls-like LIST formats (e.g. "LIST -l", "LIST -al" and so on...). # If this happens we LIST the current working directory. if line.lower() in ("-a", "-l", "-al", "-la"): path = self.fs.transl...
e1763c9db15d5d6d781646fb0678f3c70d95867a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e1763c9db15d5d6d781646fb0678f3c70d95867a/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 7085, 12, 2890, 16, 980, 4672, 315, 990, 279, 666, 434, 1390, 6, 309, 980, 30, 468, 2690, 19324, 7712, 261, 5625, 1475, 265, 25734, 280, 578, 16350, 1367, 407, 13, 393, 476,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 7085, 12, 2890, 16, 980, 4672, 315, 990, 279, 666, 434, 1390, 6, 309, 980, 30, 468, 2690, 19324, 7712, 261, 5625, 1475, 265, 25734, 280, 578, 16350, 1367, 407, 13, 393, 476,...
EXAMPLES:
EXAMPLES::
def __call__(self, n): """ Calls the euler_phi function.
2bbe2334c6ee2df9794388e492bb1effd39e27d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2bbe2334c6ee2df9794388e492bb1effd39e27d2/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 290, 4672, 3536, 23665, 326, 425, 17040, 67, 9973, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 290, 4672, 3536, 23665, 326, 425, 17040, 67, 9973, 445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return structure_factors(xray_structure=self, miller_set=miller_set, method=method)
return structure_factors( xray_structure=self, miller_set=miller_set, method=method)
def structure_factors(self, anomalous_flag=None, d_min=None, method=None): miller_set = miller.build_set(self, anomalous_flag, d_min) return structure_factors(xray_structure=self, miller_set=miller_set, method=method)
051d866cd4a17a33019ebe602ee95293c356b688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/051d866cd4a17a33019ebe602ee95293c356b688/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3695, 67, 22108, 12, 2890, 16, 392, 362, 287, 1481, 67, 6420, 33, 7036, 16, 302, 67, 1154, 33, 7036, 16, 707, 33, 7036, 4672, 312, 24462, 67, 542, 273, 312, 24462, 18, 3510, 67, 542,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3695, 67, 22108, 12, 2890, 16, 392, 362, 287, 1481, 67, 6420, 33, 7036, 16, 302, 67, 1154, 33, 7036, 16, 707, 33, 7036, 4672, 312, 24462, 67, 542, 273, 312, 24462, 18, 3510, 67, 542,...
can_compute = True for child in current.child_id: if child.id not in sums: can_compute = False try: brs.insert(0, brs.pop(brs.index(child))) except ValueError: brs.insert(0, child) if can_compute: brs.pop(0) for fn in field_names: sums.setdefault(current.id, {})[fn] = accounts.get(current.id, {}).get(fn, 0.0) if curren...
brs.pop(0) for fn in field_names: sums.setdefault(current.id, {})[fn] = accounts.get(current.id, {}).get(fn, 0.0) if current.child_id: sums[current.id][fn] += sum(sums[child.id][fn] for child in current.child_id)
def __compute(self, cr, uid, ids, field_names, arg=None, context=None, query='', query_params=()): """ compute the balance, debit and/or credit for the provided account ids Arguments: `ids`: account ids `field_names`: the fields to compute (a list of any of 'balance', 'debit' and 'credit') `arg`: unused fields.function...
0846b6491e09f04b63f730f270a0f5d207f3b3b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0846b6491e09f04b63f730f270a0f5d207f3b3b1/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9200, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 33, 7036, 16, 819, 33, 7036, 16, 843, 2218, 2187, 843, 67, 2010, 33, 1435, 4672, 3536, 3671, 326, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9200, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 33, 7036, 16, 819, 33, 7036, 16, 843, 2218, 2187, 843, 67, 2010, 33, 1435, 4672, 3536, 3671, 326, 110...
json.dump (data, open (schema_list_file, 'wb'))
json.dump (data, open (schema_list_file, 'wb'), indent=(2 if options.pretty else None))
def update_schema_list (): global schema, schema_name schema_list_file = os.path.join (DEST_DIR, 'SchemaList.json') if os.path.exists (schema_list_file): data = filter (lambda x: x['schema'] != schema, json.load (open (schema_list_file, 'rb'))) else: data = [] s = {'schema': schema, 'displayName': schema_name} data.app...
fa66438d8d93c6d403ad2764a79d708cc0ff492a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5124/fa66438d8d93c6d403ad2764a79d708cc0ff492a/make-json.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 4821, 67, 1098, 1832, 30, 2552, 1963, 16, 1963, 67, 529, 1963, 67, 1098, 67, 768, 273, 1140, 18, 803, 18, 5701, 261, 1639, 882, 67, 4537, 16, 296, 3078, 682, 18, 1977, 6134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 4821, 67, 1098, 1832, 30, 2552, 1963, 16, 1963, 67, 529, 1963, 67, 1098, 67, 768, 273, 1140, 18, 803, 18, 5701, 261, 1639, 882, 67, 4537, 16, 296, 3078, 682, 18, 1977, 6134...
def load(self, file):
if format is None: raise ValueError, "You must specify an image format" if scene is None: raise ValueError, "You must specify a scene object" def load(self, fname):
def load(self, file): """ Loads image data from file.
c59096d2c45ad7954a06149fe95aa52ed46c5315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/c59096d2c45ad7954a06149fe95aa52ed46c5315/image.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 740, 353, 599, 30, 1002, 2068, 16, 315, 6225, 1297, 4800, 392, 1316, 740, 6, 225, 309, 9065, 353, 599, 30, 1002, 2068, 16, 315, 6225, 1297, 4800, 279, 9065, 733, 6, 225, 1652, 1262, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 740, 353, 599, 30, 1002, 2068, 16, 315, 6225, 1297, 4800, 392, 1316, 740, 6, 225, 309, 9065, 353, 599, 30, 1002, 2068, 16, 315, 6225, 1297, 4800, 279, 9065, 733, 6, 225, 1652, 1262, 1...
a = ByteArraySubclass(b"abcd")
a = self.subclass2test(b"abcd")
def test_pickle(self): a = ByteArraySubclass(b"abcd") a.x = 10 a.y = ByteArraySubclass(b"efgh") for proto in range(pickle.HIGHEST_PROTOCOL + 1): b = pickle.loads(pickle.dumps(a, proto)) self.assertNotEqual(id(a), id(b)) self.assertEqual(a, b) self.assertEqual(a.x, b.x) self.assertEqual(a.y, b.y) self.assertEqual(type(a...
ba7cec6a9528c9fadb893e08b3ba866089442024 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/ba7cec6a9528c9fadb893e08b3ba866089442024/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 20847, 12, 2890, 4672, 279, 273, 365, 18, 10678, 22, 3813, 12, 70, 6, 378, 4315, 7923, 279, 18, 92, 273, 1728, 279, 18, 93, 273, 7964, 1676, 1106, 12, 70, 6, 73, 2137, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20847, 12, 2890, 4672, 279, 273, 365, 18, 10678, 22, 3813, 12, 70, 6, 378, 4315, 7923, 279, 18, 92, 273, 1728, 279, 18, 93, 273, 7964, 1676, 1106, 12, 70, 6, 73, 2137, 76...
os.rename ( old_file_path, new_file_path )
os.unlink( new_file_path ) os.rename( old_file_path, new_file_path )
def fix_file_names( dir ): """ The current version of xslproc doesn't correctly handle spaces. We have to manually go through the result set and decode encoded spaces (%20). """ utils.log( 'Fixing encoded file names...' ) for root, dirs, files in os.walk( dir ): for file in files: if file.find( "%20" ) > -1: new_name =...
87a2735caa470541d059ab0b251cab951e4a4045 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7959/87a2735caa470541d059ab0b251cab951e4a4045/boost_wide_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 768, 67, 1973, 12, 1577, 262, 30, 3536, 1021, 783, 1177, 434, 20791, 9381, 3302, 1404, 8783, 1640, 7292, 18, 1660, 1240, 358, 10036, 1960, 3059, 326, 563, 444, 471, 2495, 3749,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 768, 67, 1973, 12, 1577, 262, 30, 3536, 1021, 783, 1177, 434, 20791, 9381, 3302, 1404, 8783, 1640, 7292, 18, 1660, 1240, 358, 10036, 1960, 3059, 326, 563, 444, 471, 2495, 3749,...
def nodefamily (self, auth, node_id, arch):
def nodefamily (self, auth, node_id, fcdistro, arch):
def nodefamily (self, auth, node_id, arch):
b62dd6ca4b3e9d6702aae5c5c6a32cff7d39baac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/b62dd6ca4b3e9d6702aae5c5c6a32cff7d39baac/GetNodeFlavour.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 756, 9309, 261, 2890, 16, 1357, 16, 756, 67, 350, 16, 6637, 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, ...
[ 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, 756, 9309, 261, 2890, 16, 1357, 16, 756, 67, 350, 16, 6637, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
files__comment__interfilediff__diffset=interdiff)
files__comments__interfilediff__diffset=interdiff)
def has_comments_in_diffsets_excluding(review, diffset_pair): """ Returns whether or not the specified review has any comments that aren't in the specified diffset or interdiff. """ if not review: return False current_diffset, interdiff = diffset_pair # See if there are any diffsets with comments on them in this revi...
2518f266ac1faa0fe8e7f8c161b72a450b24cec1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/2518f266ac1faa0fe8e7f8c161b72a450b24cec1/reviewtags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 9231, 67, 267, 67, 11593, 988, 87, 67, 338, 18596, 12, 16041, 16, 1901, 988, 67, 6017, 4672, 3536, 2860, 2856, 578, 486, 326, 1269, 10725, 711, 1281, 5678, 716, 11526, 1404, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 9231, 67, 267, 67, 11593, 988, 87, 67, 338, 18596, 12, 16041, 16, 1901, 988, 67, 6017, 4672, 3536, 2860, 2856, 578, 486, 326, 1269, 10725, 711, 1281, 5678, 716, 11526, 1404, 3...
data = {'id': rest_id, 'time': 0, 'changetime': 0, 'summary': tag.em(e)} tickets.insert(orig_list.index(rest_id), data)
pass
def display_html(self, req, query): db = self.env.get_db_cnx() tickets = query.execute(req, db)
a68ba8e7dfd0077b366b8503477b2ebcd82b3799 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/a68ba8e7dfd0077b366b8503477b2ebcd82b3799/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 2620, 12, 2890, 16, 1111, 16, 843, 4672, 1319, 273, 365, 18, 3074, 18, 588, 67, 1966, 67, 10305, 92, 1435, 24475, 273, 843, 18, 8837, 12, 3658, 16, 1319, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 2620, 12, 2890, 16, 1111, 16, 843, 4672, 1319, 273, 365, 18, 3074, 18, 588, 67, 1966, 67, 10305, 92, 1435, 24475, 273, 843, 18, 8837, 12, 3658, 16, 1319, 13, 2, -100, -100,...
if opts.no_plotsnrchisq:
if not opts.no_plotsnrchisq:
#def __init__(self,job,ifo,fileName,trig,page,dag,inspiralNode,opts,ifoString=None): """
7f8c7be842e6dca27460bb4856683cf3978bca19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/7f8c7be842e6dca27460bb4856683cf3978bca19/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 536, 1001, 2738, 972, 12, 2890, 16, 4688, 16, 20299, 16, 17812, 16, 313, 360, 16, 2433, 16, 30204, 16, 267, 1752, 481, 287, 907, 16, 4952, 16, 20299, 780, 33, 7036, 4672, 3536, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 536, 1001, 2738, 972, 12, 2890, 16, 4688, 16, 20299, 16, 17812, 16, 313, 360, 16, 2433, 16, 30204, 16, 267, 1752, 481, 287, 907, 16, 4952, 16, 20299, 780, 33, 7036, 4672, 3536, 2, -10...
return [recid[0] for recid in res]
return intbitset(res)
def retrieve_fulltext_recids(): """Returns the list of all the recid number linked with at least a fulltext file.""" res = run_sql('SELECT DISTINCT id_bibrec FROM bibrec_bibdoc') return [recid[0] for recid in res]
34b19d5f6283b282c54ebb3902f9ff834b497d88 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/34b19d5f6283b282c54ebb3902f9ff834b497d88/fulltext_files_migration_kit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 2854, 955, 67, 3927, 2232, 13332, 3536, 1356, 326, 666, 434, 777, 326, 1950, 350, 1300, 8459, 598, 622, 4520, 279, 1983, 955, 585, 12123, 400, 273, 1086, 67, 4669, 2668, 4803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 2854, 955, 67, 3927, 2232, 13332, 3536, 1356, 326, 666, 434, 777, 326, 1950, 350, 1300, 8459, 598, 622, 4520, 279, 1983, 955, 585, 12123, 400, 273, 1086, 67, 4669, 2668, 4803, ...
basename, ext = os.path.splitext (output_filename) output_filename = basename + '_d' + ext
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, debug=0, extra_preargs=None, extra_postargs=None):
eb3066ab5706021a5e3633458218840e8fc110d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/eb3066ab5706021a5e3633458218840e8fc110d3/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, ...
c.ConnectNode(node)
self._ConnectNode(c, node)
def call_instance_reboot(self, node, instance, reboot_type, extra_args): """Reboots an instance.
253482126e14ec90848550d2d2005740e45f62a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/253482126e14ec90848550d2d2005740e45f62a8/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1336, 67, 266, 7137, 12, 2890, 16, 756, 16, 791, 16, 22852, 67, 723, 16, 2870, 67, 1968, 4672, 3536, 426, 1075, 6968, 392, 791, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1336, 67, 266, 7137, 12, 2890, 16, 756, 16, 791, 16, 22852, 67, 723, 16, 2870, 67, 1968, 4672, 3536, 426, 1075, 6968, 392, 791, 18, 2, -100, -100, -100, -100, -100, -100, -1...
self.__patch_dir = self.__series_dir
self.__patch_dir = self._dir()
def convert(self): """Either convert to use a separate patch directory, or unconvert to place the patches in the same directory with series control files """ if self.__patch_dir == self.__series_dir: print 'Converting old-style to new-style...', sys.stdout.flush()
8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 4672, 3536, 26091, 1765, 358, 999, 279, 9004, 4729, 1867, 16, 578, 23980, 1097, 358, 3166, 326, 16482, 316, 326, 1967, 1867, 598, 4166, 3325, 1390, 3536, 309, 365, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 4672, 3536, 26091, 1765, 358, 999, 279, 9004, 4729, 1867, 16, 578, 23980, 1097, 358, 3166, 326, 16482, 316, 326, 1967, 1867, 598, 4166, 3325, 1390, 3536, 309, 365, 16186, ...
self.currentdata[i] = [int(track.id), item]
iter = self.currentdata.get_iter((i, )) self.currentdata.set(iter, 0, int(track.id), 1, item)
def update_playlist(self): if self.conn: try: prev_songs = self.songs except: prev_songs = None self.songs = self.conn.do.playlistinfo() all_files_unchanged = self.playlist_files_unchanged(prev_songs) self.total_time = 0 if not all_files_unchanged: self.currentdata.clear() self.current.freeze_child_notify() self.curren...
27f1f2ad79f83b91d8810b1edb2b6dd839d8471c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/27f1f2ad79f83b91d8810b1edb2b6dd839d8471c/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1601, 1098, 12, 2890, 4672, 309, 365, 18, 4646, 30, 775, 30, 2807, 67, 816, 564, 273, 365, 18, 816, 564, 1335, 30, 2807, 67, 816, 564, 273, 599, 365, 18, 816, 564, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1601, 1098, 12, 2890, 4672, 309, 365, 18, 4646, 30, 775, 30, 2807, 67, 816, 564, 273, 365, 18, 816, 564, 1335, 30, 2807, 67, 816, 564, 273, 599, 365, 18, 816, 564, 273, 3...
print "bugzilla2trac - Imports a bug database from Bugzilla into Trac." print print "Usage: bugzilla2trac.py [options]" print print "Available Options:" print " --db <MySQL dbname> - Bugzilla's database" print " --tracenv /path/to/trac/env - full path to Trac db environment" print " -h | --host <My...
print """bugzilla2trac - Imports a bug database from Bugzilla into Trac. Usage: bugzilla2trac.py [options] Available Options: --db <MySQL dbname> - Bugzilla's database name --tracenv /path/to/trac/env - Full path to Trac db environment -h | --host <MySQL hostname> - Bugzilla's DNS host name -u |...
def usage(): print "bugzilla2trac - Imports a bug database from Bugzilla into Trac." print print "Usage: bugzilla2trac.py [options]" print print "Available Options:" print " --db <MySQL dbname> - Bugzilla's database" print " --tracenv /path/to/trac/env - full path to Trac db environment" print " -h...
d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 3536, 925, 15990, 22, 313, 1077, 300, 2221, 4363, 279, 7934, 2063, 628, 16907, 15990, 1368, 2197, 71, 18, 225, 10858, 30, 7934, 15990, 22, 313, 1077, 18, 2074, 306, 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, 4084, 13332, 1172, 3536, 925, 15990, 22, 313, 1077, 300, 2221, 4363, 279, 7934, 2063, 628, 16907, 15990, 1368, 2197, 71, 18, 225, 10858, 30, 7934, 15990, 22, 313, 1077, 18, 2074, 306, 21...
return {'value': {'factor_inv': round(1/value, 4)}}
if value == 0.0: return {'value': {'factor_inv': 0}} return {'value': {'factor_inv': round(1/value, 6)}}
def onchange_factor(self, cursor, user, ids, value): return {'value': {'factor_inv': round(1/value, 4)}}
29f8dbb10daae89c7236f94d3db2fab17e258f9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/29f8dbb10daae89c7236f94d3db2fab17e258f9e/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 6812, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 460, 4672, 327, 13666, 1132, 4278, 13666, 6812, 67, 5768, 4278, 3643, 12, 21, 19, 1132, 16, 1059, 13, 9090, 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, 603, 3427, 67, 6812, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 460, 4672, 327, 13666, 1132, 4278, 13666, 6812, 67, 5768, 4278, 3643, 12, 21, 19, 1132, 16, 1059, 13, 9090, 2, -100, -...
else
else:
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 21) else quickfix.CharField.__init__(self, 21, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 9035, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 9035, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 97...
if self.collectingCharacters: self.finishCollectingCharacters(name)
def processStartTag(self, name, attributes): if self.collectingCharacters: self.finishCollectingCharacters(name)
ab15c3b3f917f705d916b1828046ffbfd5e2bab5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/ab15c3b3f917f705d916b1828046ffbfd5e2bab5/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 30512, 12, 2890, 16, 508, 16, 1677, 4672, 309, 365, 18, 14676, 310, 11600, 30, 365, 18, 13749, 10808, 310, 11600, 12, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1207, 30512, 12, 2890, 16, 508, 16, 1677, 4672, 309, 365, 18, 14676, 310, 11600, 30, 365, 18, 13749, 10808, 310, 11600, 12, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._allRefreshCmdsSent = True return actor, cmdStr = refreshCmdInfo try: cmdVar = keyvar.CmdVar ( actor = actor, cmdStr = cmdStr, timeLim = _RefreshTimeLim, callFunc = self._refreshCmdCallback, isRefresh = True, ) self._runningRefreshCmdSet.add(cmdVar) self.executeCmd(cmdVar) except: sys.stderr.write("%s._sendNextRef...
return for keyVar in keyVarList: if includeNotCurrent or keyVar.isCurrent: keyVar.doCallbacks() self.reactor.callLater(0.001, self._nextKeyVarCallback, keyVarListIter, includeNotCurrent)
def _sendNextRefreshCmd(self, refreshCmdItemIter=None): """Helper function for refreshAllVar. Plow through a keyVarList iterator until a refresh command is found that is wanted, issue it, then schedule a call for myself for ASAP (giving other events a chance to execute first). Inputs: - refreshCmdItemIter: iterator o...
36fa5bf2f08aa3f4e54d078ecac109d31a7dde95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/425/36fa5bf2f08aa3f4e54d078ecac109d31a7dde95/cmdkeydispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 2134, 8323, 5931, 12, 2890, 16, 4460, 5931, 1180, 2360, 33, 7036, 4672, 3536, 2276, 445, 364, 4460, 1595, 1537, 18, 225, 453, 821, 3059, 279, 498, 1537, 682, 2775, 3180, 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, 389, 4661, 2134, 8323, 5931, 12, 2890, 16, 4460, 5931, 1180, 2360, 33, 7036, 4672, 3536, 2276, 445, 364, 4460, 1595, 1537, 18, 225, 453, 821, 3059, 279, 498, 1537, 682, 2775, 3180, 279, ...
def test_getOneMessage_multi(self):
def test_extract_message_multi(self):
def test_getOneMessage_multi(self): """ Test the handling of multiple concatenated messages by the buffer. """ m1 = 'CONNECT\nsession:207567f3-cce7-4a0a-930b-46fc394dd53d\n\n0123456789\x00\n' m2 = 'SUBSCRIBE\nack:auto\ndestination:/queue/test\n\n\x00SEND\ndestination:/queue/test\n\n\x00' sb = StompFrameBuffer() sb.ap...
d449f708e10a4ccd6e53d9237356e9b70565b11d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10258/d449f708e10a4ccd6e53d9237356e9b70565b11d/test_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8004, 67, 2150, 67, 7027, 12, 2890, 4672, 3536, 7766, 326, 5057, 434, 3229, 22080, 2743, 635, 326, 1613, 18, 3536, 225, 312, 21, 273, 296, 11032, 64, 2387, 893, 30, 3462, 27,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8004, 67, 2150, 67, 7027, 12, 2890, 4672, 3536, 7766, 326, 5057, 434, 3229, 22080, 2743, 635, 326, 1613, 18, 3536, 225, 312, 21, 273, 296, 11032, 64, 2387, 893, 30, 3462, 27,...
f = urllib2.urlopen(url)
f = urllib2.urlopen(self.url)
def __init__(self, symbol): """ Download stock's attributes and attribute them to this object. * Basic attributes:
ce524487ba7123bc566e8640cc226942e9b3dbb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2318/ce524487ba7123bc566e8640cc226942e9b3dbb2/YahooQuotes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3273, 4672, 3536, 13059, 12480, 1807, 1677, 471, 1566, 2182, 358, 333, 733, 18, 225, 380, 7651, 1677, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 3273, 4672, 3536, 13059, 12480, 1807, 1677, 471, 1566, 2182, 358, 333, 733, 18, 225, 380, 7651, 1677, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100...
The given ics sets the initial values of the dependent vars in maxima, so subsequent ODEs involving these variables will have these initial conditions automatically imposed. EXAMPLES:
The given ics sets the initial values of the dependent vars in maxima, so subsequent ODEs involving these variables will have these initial conditions automatically imposed. EXAMPLES::
def desolve_system_strings(des,vars,ics=None): """ Solves any size system of 1st order ODE's. Initials conditions are optional. INPUT: de -- a list of strings representing the ODEs in maxima notation (eg, de = "diff(f(x),x,2)=diff(f(x),x)+sin(x)") vars -- a list of strings representing the variables (eg, vars = [...
9902f1225cf51ac05097f8e749c306b7e620fc70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/9902f1225cf51ac05097f8e749c306b7e620fc70/desolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2832, 5390, 67, 4299, 67, 10219, 12, 5489, 16, 4699, 16, 2102, 33, 7036, 4672, 3536, 348, 355, 3324, 1281, 963, 2619, 434, 404, 334, 1353, 531, 1639, 1807, 18, 10188, 87, 4636, 854, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2832, 5390, 67, 4299, 67, 10219, 12, 5489, 16, 4699, 16, 2102, 33, 7036, 4672, 3536, 348, 355, 3324, 1281, 963, 2619, 434, 404, 334, 1353, 531, 1639, 1807, 18, 10188, 87, 4636, 854, 31...
except wikipedia.NoSuchSite: wikipedia.output(lang+ u'.' + familyName + u' is not a valid site, please remove it from your config')
except pywikibot.NoSuchSite: pywikibot.output(lang+ u'.' + familyName + u' is not a valid site, please remove it from your config')
def main(): username = password = None sysop = False logall = False forceLogin = False verbose = False clean = False testonly = False for arg in wikipedia.handleArgs(): if arg.startswith("-pass"): if len(arg) == 5: password = wikipedia.input(u'Password for all accounts:', password = True) else: password = arg[6:] elif...
608981a1811e769d811dd6211e35a67e7339add5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/608981a1811e769d811dd6211e35a67e7339add5/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2718, 273, 2201, 273, 599, 2589, 556, 273, 1083, 613, 454, 273, 1083, 2944, 5358, 273, 1083, 3988, 273, 1083, 2721, 273, 1083, 1842, 3700, 273, 1083, 225, 364, 1501, 316, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2718, 273, 2201, 273, 599, 2589, 556, 273, 1083, 613, 454, 273, 1083, 2944, 5358, 273, 1083, 3988, 273, 1083, 2721, 273, 1083, 1842, 3700, 273, 1083, 225, 364, 1501, 316, 21...
from prefs_constants import watchRealtimeMinimization_prefs_key prefer_dylib_sim = env.prefs[watchRealtimeMinimization_prefs_key] if prefer_dylib_sim: use_dylib_sim = True
prefer_standalone_sim = debug_pref("force use of standalone sim", Choice_boolean_False, prefs_key = 'use-standalone-sim', non_debug = True) if prefer_standalone_sim: use_dylib_sim = False
def __init__(self, part, mflag, simaspect = None, use_dylib_sim = use_pyrex_sim, cmdname = "Simulator"): # [bruce 051230 added use_dylib_sim; revised 060102; 060106 added cmdname] "set up external relations from the part we'll operate on; take mflag since someday it'll specify the subclass to use" from debug_prefs impo...
af73aa7ade2e1088bcc568c39e7f213ed0a89ca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/af73aa7ade2e1088bcc568c39e7f213ed0a89ca6/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1087, 16, 312, 6420, 16, 3142, 23579, 273, 599, 16, 999, 67, 15680, 2941, 67, 9812, 273, 999, 67, 2074, 266, 92, 67, 9812, 16, 1797, 529, 273, 315, 799...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1087, 16, 312, 6420, 16, 3142, 23579, 273, 599, 16, 999, 67, 15680, 2941, 67, 9812, 273, 999, 67, 2074, 266, 92, 67, 9812, 16, 1797, 529, 273, 315, 799...
filtered = [ n.lower().replace(' ','') for n in names ] filtered.sort() assert_equals(suite.filtered.suites, filtered) assert_equals(suite.filtered.tests, [])
def test_with_suites(self): for names, count in [ (['Root'], 5), (['Sub1'], 4), (['Sub 11'], 3), (['s u b 2'], 1), (['Sub?'], 5), (['Sub 1*'], 4), (['ROOT','Sub1'], 5), (['Sub2','Nonex'], 1), (['Sub11.Sub'], 1), (['Root.Sub1.Sub'], 1)]: suite = self._get_suite() suite.filter_by_names(names, []) assert_equals(suite.get_...
8c46904d36374d3c0d5eb0ded061e9ab9da659cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/8c46904d36374d3c0d5eb0ded061e9ab9da659cc/test_baseobjects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1918, 67, 26560, 2997, 12, 2890, 4672, 364, 1257, 16, 1056, 316, 306, 261, 3292, 2375, 17337, 1381, 3631, 261, 3292, 1676, 21, 17337, 1059, 3631, 261, 3292, 1676, 4648, 17337, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1918, 67, 26560, 2997, 12, 2890, 4672, 364, 1257, 16, 1056, 316, 306, 261, 3292, 2375, 17337, 1381, 3631, 261, 3292, 1676, 21, 17337, 1059, 3631, 261, 3292, 1676, 4648, 17337, ...
self.assertRaises(TypeError, bytearray, 0.0)
self.assertRaises(TypeError, self.type2test, 0.0)
def test_constructor_type_errors(self): self.assertRaises(TypeError, bytearray, 0.0) class C: pass self.assertRaises(TypeError, bytearray, ["0"]) self.assertRaises(TypeError, bytearray, [0.0]) self.assertRaises(TypeError, bytearray, [None]) self.assertRaises(TypeError, bytearray, [C()])
ee68bbafb3455a5d2d59063851393925977e8adc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/ee68bbafb3455a5d2d59063851393925977e8adc/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12316, 67, 723, 67, 4324, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 365, 18, 723, 22, 3813, 16, 374, 18, 20, 13, 667, 385, 30, 1342, 365, 18, 11231, 12649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12316, 67, 723, 67, 4324, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 365, 18, 723, 22, 3813, 16, 374, 18, 20, 13, 667, 385, 30, 1342, 365, 18, 11231, 12649...
graphs.append(tag('img', _class='graph', src="graph/signal:%s" % length)) return tag('div', _class='graphs')[ graphs ]
graphs.append('signal') return tag('div', _class='graphs')[[ tag('img', _class='graph', width=691, height=205, alt="%s graph" % name, src="graph/%s:%s" % (name, length)) for name in graphs ]]
def renderInterval(self, length): if not length: return self.renderLatest() graphs = []
714af92c4e55d8eaedfe268d172fdad7a6d42f24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/714af92c4e55d8eaedfe268d172fdad7a6d42f24/web.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 4006, 12, 2890, 16, 769, 4672, 309, 486, 769, 30, 327, 365, 18, 5902, 18650, 1435, 19422, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4006, 12, 2890, 16, 769, 4672, 309, 486, 769, 30, 327, 365, 18, 5902, 18650, 1435, 19422, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Z = Matrix(GF(2),8,8,[1,0,0,0,1,1,1,1,\ 1,1,0,0,0,1,1,1,\ 1,1,1,0,0,0,1,1,\ 1,1,1,1,0,0,0,1,\ 1,1,1,1,1,0,0,0,\ 0,1,1,1,1,1,0,0,\ 0,0,1,1,1,1,1,0,\ 0,0,0,1,1,1,1,1])
Z = Matrix(GF(2), 8, 8, [1, 0, 0, 0, 1, 1, 1, 1, \ 1, 1, 0, 0, 0, 1, 1, 1, \ 1, 1, 1, 0, 0, 0, 1, 1, \ 1, 1, 1, 1, 0, 0, 0, 1, \ 1, 1, 1, 1, 1, 0, 0, 0, \ 0, 1, 1, 1, 1, 1, 0, 0, \ 0, 0, 1, 1, 1, 1, 1, 0, \ 0, 0, 0, 1, 1, 1, 1, 1])
def lin_matrix(self, length=None): """ Return the Lin matrix.
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4739, 67, 5667, 12, 2890, 16, 769, 33, 7036, 4672, 3536, 2000, 326, 27865, 3148, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 4739, 67, 5667, 12, 2890, 16, 769, 33, 7036, 4672, 3536, 2000, 326, 27865, 3148, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.slideshow_window.move(2, int(winheight-y-2)) self.slideshow_window2.move(winwidth-ss_win2width-2, int(winheight-y-2))
self.slideshow_window.move(2+xpos, int(winheight-y-2)) self.slideshow_window2.move(winwidth-ss_win2width-2+xpos, int(winheight-y-2))
def slideshow_controls_hide(self): if self.slideshow_controls_visible == True and self.controls_moving == False: self.slideshow_controls_visible = False
7c51c655dea9c69a01864efb508268bc0e741c68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/7c51c655dea9c69a01864efb508268bc0e741c68/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30119, 13606, 67, 24350, 67, 11248, 12, 2890, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 24350, 67, 8613, 422, 1053, 471, 365, 18, 24350, 67, 81, 13767, 422, 1083, 30, 365, 18, 2069, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30119, 13606, 67, 24350, 67, 11248, 12, 2890, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 24350, 67, 8613, 422, 1053, 471, 365, 18, 24350, 67, 81, 13767, 422, 1083, 30, 365, 18, 2069, 4...
security.declareProtected(CMFCorePermissions.View, 'searchable')
security.declareProtected(permissions.View, 'searchable')
def keys(self): return self._names
209dd0431121be615174f562fcf89fd6fae6c083 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/209dd0431121be615174f562fcf89fd6fae6c083/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 12, 2890, 4672, 327, 365, 6315, 1973, 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, 1311, 12, 2890, 4672, 327, 365, 6315, 1973, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
sage: A2 = WeylCharacterRing(['A',2]) sage: [A2(0,0,0)+A2(2,1,0), A2(2,1,0)+A2(0,0,0), - A2(0,0,0)+2*A2(0,0,0), -2*A2(0,0,0)+A2(0,0,0), -A2(2,1,0)+2*A2(2,1,0)-A2(2,1,0)] [A2(0,0,0) + A2(2,1,0), A2(0,0,0) + A2(2,1,0), A2(0,0,0), -A2(0,0,0), 0]
sage: A2 = WeylCharacterRing(['A',2]) sage: [A2(0,0,0)+A2(2,1,0), A2(2,1,0)+A2(0,0,0), - A2(0,0,0)+2*A2(0,0,0), -2*A2(0,0,0)+A2(0,0,0), -A2(2,1,0)+2*A2(2,1,0)-A2(2,1,0)] [A2(0,0,0) + A2(2,1,0), A2(0,0,0) + A2(2,1,0), A2(0,0,0), -A2(0,0,0), 0]
def _add_(self, y): """ EXAMPLES: sage: A2 = WeylCharacterRing(['A',2]) sage: [A2(0,0,0)+A2(2,1,0), A2(2,1,0)+A2(0,0,0), - A2(0,0,0)+2*A2(0,0,0), -2*A2(0,0,0)+A2(0,0,0), -A2(2,1,0)+2*A2(2,1,0)-A2(2,1,0)] [A2(0,0,0) + A2(2,1,0), A2(0,0,0) + A2(2,1,0), A2(0,0,0), -A2(0,0,0), 0] """ hdict = {} mdict = {} for k in self._hd...
585641b32ec9003014ab40e39d632a05e840e883 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/585641b32ec9003014ab40e39d632a05e840e883/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 12, 2890, 16, 677, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 432, 22, 273, 678, 402, 80, 7069, 10369, 12, 3292, 37, 2187, 22, 5717, 272, 410, 30, 306, 37, 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, 389, 1289, 67, 12, 2890, 16, 677, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 432, 22, 273, 678, 402, 80, 7069, 10369, 12, 3292, 37, 2187, 22, 5717, 272, 410, 30, 306, 37, 22, ...
if self._cartan_type.is_irreducible():
if self._cartan_type.is_atomic():
def coerce_to_sl(self, x): """ For type ['A',r], this coerces an element of the ambient space into SL(r+1,CC) by subtracting a (possibly fractional) power of the determinant. """ if self._cartan_type.is_irreducible(): if self._cartan_type[0] == 'A': x = x - self._space.det(sum(x.to_vector())/(self._rank+1)) else: xv = ...
d966043ff3afe5f44a733aa354323210394501b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d966043ff3afe5f44a733aa354323210394501b7/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12270, 67, 869, 67, 2069, 12, 2890, 16, 619, 4672, 3536, 2457, 618, 10228, 37, 2187, 86, 6487, 333, 1825, 264, 764, 392, 930, 434, 326, 13232, 1979, 3476, 1368, 348, 48, 12, 86, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12270, 67, 869, 67, 2069, 12, 2890, 16, 619, 4672, 3536, 2457, 618, 10228, 37, 2187, 86, 6487, 333, 1825, 264, 764, 392, 930, 434, 326, 13232, 1979, 3476, 1368, 348, 48, 12, 86, 15, ...
A stochastic matrix is a matrix such that the sum of the elements of any row is equal to 1. A bistochastic matrix is a stochastic matrix whose transpose matrix is also stochastic ( there are conditions both on the rows and on the columns ).
A stochastic matrix is a matrix with nonnegative real entries such that the sum of the elements of any row is equal to 1. A bistochastic matrix is a stochastic matrix whose transpose matrix is also stochastic ( there are conditions both on the rows and on the columns ).
def bistochastic_as_sum_of_permutations(M, check = True): r""" Returns the positive sum of permutations corresponding to the bistochastic matrix. A stochastic matrix is a matrix such that the sum of the elements of any row is equal to 1. A bistochastic matrix is a stochastic matrix whose transpose matrix is also stoch...
3d841b41396ffdcc7218e64fcbb4650c74bb529b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/3d841b41396ffdcc7218e64fcbb4650c74bb529b/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 376, 30774, 67, 345, 67, 1364, 67, 792, 67, 457, 29467, 12, 49, 16, 866, 273, 1053, 4672, 436, 8395, 2860, 326, 6895, 2142, 434, 26468, 4656, 358, 326, 324, 376, 30774, 3148, 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, 324, 376, 30774, 67, 345, 67, 1364, 67, 792, 67, 457, 29467, 12, 49, 16, 866, 273, 1053, 4672, 436, 8395, 2860, 326, 6895, 2142, 434, 26468, 4656, 358, 326, 324, 376, 30774, 3148, 18, ...
return self.l.search_s(self.configDns.dnsDN, ldap.SCOPE_SUBTREE, "(&(objectClass=dNSZone)(zoneName=%s)(relativeDomainName=%s))" % (zoneName, zoneName), None)
return self.l.search_s(self.configDns.dnsDN, ldap.SCOPE_SUBTREE, "(&(objectClass=dNSZone)(zoneName=%s)(relativeDomainName=%s))" % (zoneName, zoneName + "."), None)
def getZone(self, zoneName): return self.l.search_s(self.configDns.dnsDN, ldap.SCOPE_SUBTREE, "(&(objectClass=dNSZone)(zoneName=%s)(relativeDomainName=%s))" % (zoneName, zoneName), None)
4483b5cf7fda5e5a36bf0e31a076219be35be7b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5988/4483b5cf7fda5e5a36bf0e31a076219be35be7b1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30680, 12, 2890, 16, 4157, 461, 4672, 327, 365, 18, 80, 18, 3072, 67, 87, 12, 2890, 18, 1425, 18600, 18, 14926, 8609, 16, 8079, 18, 19444, 67, 8362, 26557, 16, 7751, 10, 12, 1612, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30680, 12, 2890, 16, 4157, 461, 4672, 327, 365, 18, 80, 18, 3072, 67, 87, 12, 2890, 18, 1425, 18600, 18, 14926, 8609, 16, 8079, 18, 19444, 67, 8362, 26557, 16, 7751, 10, 12, 1612, 79...
if line.strip().startswith('
line = line.strip() if line.startswith(' if not self.config.has_option('default', 'quiet'): self.logger.info('Skipping comment: %s' % line)
def getPackageObjects(self): """Cycle through the list of packages, get package object matches, and resolve deps.
be44e2527d8134ec855e844728a1201a6db6ce2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/be44e2527d8134ec855e844728a1201a6db6ce2b/gather.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 4710, 12, 2890, 4672, 3536, 13279, 3059, 326, 666, 434, 5907, 16, 336, 2181, 733, 1885, 16, 471, 2245, 8740, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 4710, 12, 2890, 4672, 3536, 13279, 3059, 326, 666, 434, 5907, 16, 336, 2181, 733, 1885, 16, 471, 2245, 8740, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.root_drawingitem.destroy() self.root_playingitem.destroy() if(self.root_erroritem): self.root_erroritem.destroy()
def end(self): # stop the animation if self.running: self.running = False gobject.source_remove(self.timeout) self.run_anim() # Remove the root item removes all the others inside it gcompris.set_cursor(gcompris.CURSOR_DEFAULT); self.rootitem.destroy() self.root_drawingitem.destroy() self.root_playingitem.destroy() # D...
b1c14c9a59e62e367ea62c3c74cab73788521d4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/b1c14c9a59e62e367ea62c3c74cab73788521d4b/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 12, 2890, 4672, 468, 2132, 326, 8794, 309, 365, 18, 8704, 30, 365, 18, 8704, 273, 1083, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 4538, 13, 365, 18, 2681, 67, 304, 381, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 12, 2890, 4672, 468, 2132, 326, 8794, 309, 365, 18, 8704, 30, 365, 18, 8704, 273, 1083, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 4538, 13, 365, 18, 2681, 67, 304, 381, 1435,...
>>> int(bool(it.next())) 1
>>> it.next() True
def parity(self): """Return 'odd' or 'even' depending on the position's parity
c2450cd2db47fce45ceeda283ccc45145d72ec81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9778/c2450cd2db47fce45ceeda283ccc45145d72ec81/tales.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19904, 12, 2890, 4672, 3536, 990, 296, 31755, 11, 578, 296, 16728, 11, 8353, 603, 326, 1754, 1807, 19904, 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, 19904, 12, 2890, 4672, 3536, 990, 296, 31755, 11, 578, 296, 16728, 11, 8353, 603, 326, 1754, 1807, 19904, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
while (prefix[-1] != '_' or ent[:len(prefix)] != prefix
while ((len(prefix) and prefix[-1] != '_') or ent[:len(prefix)] != prefix
def write_enum_defs(self, enums, fp=None): if not fp: fp = self.fp
951050a809d4368ed6fba283feffca0e7f6d8607 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8659/951050a809d4368ed6fba283feffca0e7f6d8607/h2def.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7924, 67, 12537, 12, 2890, 16, 17922, 16, 4253, 33, 7036, 4672, 309, 486, 4253, 30, 4253, 273, 365, 18, 7944, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7924, 67, 12537, 12, 2890, 16, 17922, 16, 4253, 33, 7036, 4672, 309, 486, 4253, 30, 4253, 273, 365, 18, 7944, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...