rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
print "__getattr__",name return getattr(self.cppthing, name)
value = getattr(self.cppthing, name) print "__getattr__",name,value return value
def __getattr__(self, name): print "__getattr__",name return getattr(self.cppthing, name)
4b0b328c923f0717b3268217429c217049e95557 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/4b0b328c923f0717b3268217429c217049e95557/Thing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 1172, 10425, 588, 1747, 972, 3113, 529, 327, 3869, 12, 2890, 18, 4057, 2397, 310, 16, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 1172, 10425, 588, 1747, 972, 3113, 529, 327, 3869, 12, 2890, 18, 4057, 2397, 310, 16, 508, 13, 2, -100, -100, -100, -100, -100, -100, -10...
return "cannot use -d with file patterns"
return "cannot use "+flag+" with file patterns"
def change(ui, repo, *pats, **opts): """create or edit a change list Create or edit a change list. A change list is a group of files to be reviewed and submitted together, plus a textual description of the change. Change lists are referred to by simple alphanumeric names. Changes must be reviewed before they can be s...
552488c0a2c9ad31e3e6aba82b8e2a038e34c4ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5761/552488c0a2c9ad31e3e6aba82b8e2a038e34c4ef/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 2640, 578, 3874, 279, 2549, 666, 225, 1788, 578, 3874, 279, 2549, 666, 18, 432, 2549, 666, 353, 279, 1041, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 2640, 578, 3874, 279, 2549, 666, 225, 1788, 578, 3874, 279, 2549, 666, 18, 432, 2549, 666, 353, 279, 1041, 434,...
for id in ids:
for objId in ids:
def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain...
d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
datum_frame.show()
def create_projprop(self): projpane = gtk.VBox(spacing=10) projpane.set_border_width(10) self.notebook.append_page(projpane, gtk.Label('Coordinate System'))
0a9f3291528240d019f1755ce071bd15e36e112d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/0a9f3291528240d019f1755ce071bd15e36e112d/gvrasterpropdlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 17995, 5986, 12, 2890, 4672, 10296, 29009, 273, 22718, 18, 58, 3514, 12, 14080, 33, 2163, 13, 10296, 29009, 18, 542, 67, 8815, 67, 2819, 12, 2163, 13, 365, 18, 24422, 18, 6923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 17995, 5986, 12, 2890, 4672, 10296, 29009, 273, 22718, 18, 58, 3514, 12, 14080, 33, 2163, 13, 10296, 29009, 18, 542, 67, 8815, 67, 2819, 12, 2163, 13, 365, 18, 24422, 18, 6923...
ontology = abbrevToOntology("bibtex") namespace = ontology.property(Soprano.Vocabulary.NAO.hasDefaultNamespace()).toString() print namespace
ontologies = findOntologies()
def slotOntologyUpdateFailed(message, messa): print "failed"
f81d7fb050283153437702b77c7760d627665297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1729/f81d7fb050283153437702b77c7760d627665297/datamanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4694, 51, 19610, 1891, 2925, 12, 2150, 16, 12755, 69, 4672, 1172, 315, 7307, 6, 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, ...
[ 1, 1, 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, 4694, 51, 19610, 1891, 2925, 12, 2150, 16, 12755, 69, 4672, 1172, 315, 7307, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (os.environ.has_key["VCTOOLKITINSTALLDIR"]):
if (os.environ.has_key("VCTOOLKITINSTALLDIR")):
def LocateVisualStudio(): # Try to use the Visual Toolkit 2003 if (os.environ.has_key["VCTOOLKITINSTALLDIR"]): vcdir = os.environ["VCTOOLKITINSTALLDIR"] platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\MicrosoftSDK\\InstalledSDKs\\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3", "Install Dir") if (platsdk == 0): sys.exit("Found VC ...
638acbe685744911de8005d5186826cedeefcac4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/638acbe685744911de8005d5186826cedeefcac4/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2851, 340, 25780, 510, 4484, 13332, 225, 468, 6161, 358, 999, 326, 26832, 13288, 8691, 4044, 23, 309, 261, 538, 18, 28684, 18, 5332, 67, 856, 2932, 58, 1268, 51, 1741, 47, 1285, 28865, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2851, 340, 25780, 510, 4484, 13332, 225, 468, 6161, 358, 999, 326, 26832, 13288, 8691, 4044, 23, 309, 261, 538, 18, 28684, 18, 5332, 67, 856, 2932, 58, 1268, 51, 1741, 47, 1285, 28865, ...
rational number times the square root of a rational number (if prec=None), or real number if a precision is given
Rational number times the square root of a rational number (if ``prec=None``), or real number if a precision is given.
def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number ...
88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 26, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 26, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
file.Write(" Validate%s(this, arg_count%s);\n" %
file.Write(" Validate%s(this, immediate_data_size%s);\n" %
def WriteImmediateHandlerImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write(" parse_error::ParseError result =\n") file.Write(" Validate%s(this, arg_count%s);\n" % (func.name, func.MakeOriginalArgString("", True))) file.Write(" if (result != parse_error::kParseNoError) {\n") file.Wri...
3975916c448229deb7fa73586d80d6aebe8671fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/3975916c448229deb7fa73586d80d6aebe8671fa/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1503, 13621, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 1109, 67, 1636, 2866, 21004, 563, 273, 64, 82, 7923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1503, 13621, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 1109, 67, 1636, 2866, 21004, 563, 273, 64, 82, 7923...
if hours == "1": hours_text = _('hour and') else: hours_text = _('hours and')
hours_text = gettext.ngettext('hour and', 'hours and', int(hours))
def update_statusbar(self): if self.conn and self.status and self.show_statusbar: hours = None mins = None total_time = convert_time(self.total_time) try: mins = total_time.split(":")[-2] hours = total_time.split(":")[-3] except: pass if mins: if mins.startswith('0') and len(mins) > 1: mins = mins[1:] if mins == "1": m...
f2a930d518c53af8d132699dccd579a48fa7f7f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/f2a930d518c53af8d132699dccd579a48fa7f7f9/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 3215, 12, 2890, 4672, 309, 365, 18, 4646, 471, 365, 18, 2327, 471, 365, 18, 4500, 67, 2327, 3215, 30, 7507, 273, 599, 26381, 273, 599, 2078, 67, 957, 273, 1765, 67, 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, 1089, 67, 2327, 3215, 12, 2890, 4672, 309, 365, 18, 4646, 471, 365, 18, 2327, 471, 365, 18, 4500, 67, 2327, 3215, 30, 7507, 273, 599, 26381, 273, 599, 2078, 67, 957, 273, 1765, 67, 9...
Credentials.setuser(self.opts.username, self.opts.password)
username = self.opts.username password = self.opts.password if username and password: Credentials.setuser(username, password)
def setup_connections(self): # first take into account the new credentials Credentials.setuser(self.opts.username, self.opts.password) self.authconn = UserConnection()
075e1a051457baefd2d342d860e673d4645afaa8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/075e1a051457baefd2d342d860e673d4645afaa8/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 13313, 12, 2890, 4672, 468, 1122, 4862, 1368, 2236, 326, 394, 4448, 2718, 273, 365, 18, 4952, 18, 5053, 2201, 273, 365, 18, 4952, 18, 3664, 309, 2718, 471, 2201, 30, 14582, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 13313, 12, 2890, 4672, 468, 1122, 4862, 1368, 2236, 326, 394, 4448, 2718, 273, 365, 18, 4952, 18, 5053, 2201, 273, 365, 18, 4952, 18, 3664, 309, 2718, 471, 2201, 30, 14582, 1...
self.context.plone_utils.addPortalMessage('Conversation %s workflow action %s' % (comment_id, workflow_action))
self.context.plone_utils.addPortalMessage('Workflow action for commment %s changed (%s)' % (comment_id, workflow_action))
def __call__(self):
dcc8c329eb558e1914132dfa415169c53d9794c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12197/dcc8c329eb558e1914132dfa415169c53d9794c2/comments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1001, 1991, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
s = os.stat(path) if not (s.st_mode & bits == bits):
s = os.lstat(path) if not stat.S_ISLNK(s.st_mode) and not (s.st_mode & bits == bits):
def _addModeBits(path, bits): s = os.stat(path) if not (s.st_mode & bits == bits): os.chmod(path, stat.S_IMODE(s.st_mode) | bits)
26f0f74e6ce20c7b5df104392e6da09620aa15bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8749/26f0f74e6ce20c7b5df104392e6da09620aa15bd/rootfactory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 2309, 6495, 12, 803, 16, 4125, 4672, 272, 273, 1140, 18, 80, 5642, 12, 803, 13, 309, 486, 610, 18, 55, 67, 45, 4559, 50, 47, 12, 87, 18, 334, 67, 3188, 13, 471, 486, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 2309, 6495, 12, 803, 16, 4125, 4672, 272, 273, 1140, 18, 80, 5642, 12, 803, 13, 309, 486, 610, 18, 55, 67, 45, 4559, 50, 47, 12, 87, 18, 334, 67, 3188, 13, 471, 486, 2...
"""Test whether a path is a mount point""" return isabs(splitdrive(path)[1])
"""Test whether a path is a mount point (defined as root of drive)""" p = splitdrive(path)[1] return len(p)==1 and p[0] in '/\\'
def ismount(path): """Test whether a path is a mount point""" return isabs(splitdrive(path)[1])
7890be096947e384a41b6a2e44cd1d90fa78915e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7890be096947e384a41b6a2e44cd1d90fa78915e/ntpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 4778, 12, 803, 4672, 3536, 4709, 2856, 279, 589, 353, 279, 5344, 1634, 261, 2178, 487, 1365, 434, 14316, 15574, 293, 273, 1416, 25431, 12, 803, 25146, 21, 65, 327, 562, 12, 84, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 4778, 12, 803, 4672, 3536, 4709, 2856, 279, 589, 353, 279, 5344, 1634, 261, 2178, 487, 1365, 434, 14316, 15574, 293, 273, 1416, 25431, 12, 803, 25146, 21, 65, 327, 562, 12, 84, 13...
_add_list(doc, token, stack, indent_stack, errors, warnings)
_add_list(doc, token, stack, indent_stack, errors)
def parse(str, errors = None, warnings = None): """ Return a DOM tree encoding the contents of an epytext string. Any errors or warnings generated during parsing will be stored in the C{errors} and C{warnings} parameters. @param str: The epytext string to parse. @type str: C{string} @param errors: A list where any er...
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 701, 16, 1334, 273, 599, 16, 5599, 273, 599, 4672, 3536, 2000, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 5502, 1334, 578, 5599, 4374, 4982, 5811, 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, 1109, 12, 701, 16, 1334, 273, 599, 16, 5599, 273, 599, 4672, 3536, 2000, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 5502, 1334, 578, 5599, 4374, 4982, 5811, 9...
If no handler is passed, the listener and it's connections
If no handler is passed, the listener and its connections
def close(handler=None): """Close the listener and all of it's connections
80ff7ba6ebed32a4a11af1cd8399e070416d398b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9502/80ff7ba6ebed32a4a11af1cd8399e070416d398b/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 4176, 33, 7036, 4672, 3536, 4605, 326, 2991, 471, 777, 434, 518, 1807, 5921, 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, 1746, 12, 4176, 33, 7036, 4672, 3536, 4605, 326, 2991, 471, 777, 434, 518, 1807, 5921, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
path_normcase = os.path.normcase(path)
path_normcase = op.normcase(path)
def add_repository(self, path): path = self.abs_path_clean(path) path_normcase = os.path.normcase(path) for repository_path in self.repository_paths: if (os.path.normcase(repository_path) == path_normcase): break else: self.repository_paths.append(path)
621ff93ea6f104ac4c6d943d7e9d6c18b1468502 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/621ff93ea6f104ac4c6d943d7e9d6c18b1468502/env_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9071, 12, 2890, 16, 589, 4672, 589, 273, 365, 18, 5113, 67, 803, 67, 6200, 12, 803, 13, 589, 67, 7959, 3593, 273, 1061, 18, 7959, 3593, 12, 803, 13, 364, 3352, 67, 803, 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, 527, 67, 9071, 12, 2890, 16, 589, 4672, 589, 273, 365, 18, 5113, 67, 803, 67, 6200, 12, 803, 13, 589, 67, 7959, 3593, 273, 1061, 18, 7959, 3593, 12, 803, 13, 364, 3352, 67, 803, 31...
raise ConversionError('Not supported') if _xdr: def unpack_float(self): i = self.__pos self.__pos = j = i+4 data = self.__buf[i:j] if len(data) < 4: raise EOFError try: return _xdr.unpack_float(data) except _xdr.error, msg: raise ConversionError(msg) def unpack_double(self): i = self.__pos self.__pos = j = i+8 data =...
i = self.__pos self.__pos = j = i+8 data = self.__buf[i:j] if len(data) < 8: raise EOFError return struct.unpack('>d', data)[0]
def unpack_double(self):
aa86e94c231a56cf6b254595b770f1b01b750811 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/aa86e94c231a56cf6b254595b770f1b01b750811/xdrlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 67, 9056, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6167, 67, 9056, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
cursor = db.cursor()
def _sync(self, reponame, rev, clean): rm = RepositoryManager(self.env) if reponame == '*': if rev is not None: raise TracError(_('Cannot synchronize a single revision ' 'on multiple repositories')) repositories = rm.get_real_repositories() else: if is_default(reponame): reponame = '' repos = rm.get_repository(reponame...
bea25b7165de1169e2ffdf11cb362722ef8a60d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/bea25b7165de1169e2ffdf11cb362722ef8a60d3/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8389, 12, 2890, 16, 283, 500, 339, 16, 5588, 16, 2721, 4672, 6692, 273, 6281, 1318, 12, 2890, 18, 3074, 13, 309, 283, 500, 339, 422, 5306, 30, 309, 5588, 353, 486, 599, 30, 1002...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8389, 12, 2890, 16, 283, 500, 339, 16, 5588, 16, 2721, 4672, 6692, 273, 6281, 1318, 12, 2890, 18, 3074, 13, 309, 283, 500, 339, 422, 5306, 30, 309, 5588, 353, 486, 599, 30, 1002...
cmd = "objdump -p -j .dynamic 2>/dev/null " + f
cmd = 'if ! type objdump >/dev/null 2>&1; then exit 10; fi;' \ "objdump -p -j .dynamic 2>/dev/null " + f f = os.popen(cmd) dump = f.read() rv = f.close() if rv == 10: raise OSError, 'objdump command not found'
def _get_soname(f): # assuming GNU binutils / ELF if not f: return None cmd = "objdump -p -j .dynamic 2>/dev/null " + f res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read()) if not res: return None return res.group(1)
174550111b0f53b518276a6f1c844954d39adbed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/174550111b0f53b518276a6f1c844954d39adbed/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 816, 339, 12, 74, 4672, 468, 15144, 611, 50, 57, 4158, 5471, 342, 512, 9105, 309, 486, 284, 30, 327, 599, 1797, 273, 296, 430, 401, 618, 1081, 8481, 405, 19, 5206, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 816, 339, 12, 74, 4672, 468, 15144, 611, 50, 57, 4158, 5471, 342, 512, 9105, 309, 486, 284, 30, 327, 599, 1797, 273, 296, 430, 401, 618, 1081, 8481, 405, 19, 5206, 19, ...
return result
return result
def export_rescheduleJob(self, jobIDs ): """ Reschedule a single job. If the optional proxy parameter is given it will be used to refresh the proxy in the Proxy Repository """
3627a93f3944af99e95d784e4895054d7d5cacaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3627a93f3944af99e95d784e4895054d7d5cacaf/JobManagerHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 455, 2847, 2278, 12, 2890, 16, 1719, 5103, 262, 30, 3536, 225, 1124, 2847, 279, 2202, 1719, 18, 971, 326, 3129, 2889, 1569, 353, 864, 518, 903, 506, 1399, 358, 4460, 326, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3359, 67, 455, 2847, 2278, 12, 2890, 16, 1719, 5103, 262, 30, 3536, 225, 1124, 2847, 279, 2202, 1719, 18, 971, 326, 3129, 2889, 1569, 353, 864, 518, 903, 506, 1399, 358, 4460, 326, 288...
\code{indexset} must be a SAGE object with an _iter_ method
\code{index_object} must be a SAGE object with an _iter_ method
def __init__(self, list, indexset): r""" \code{indexset} must be a SAGE object with an _iter_ method containing the same number of elements as self, which is a list of elements taken from a field.
5d0c7d543a1b24ac0a1d29ac68884870541a3a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d0c7d543a1b24ac0a1d29ac68884870541a3a98/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 666, 16, 770, 542, 4672, 436, 8395, 521, 710, 95, 1615, 67, 1612, 97, 1297, 506, 279, 348, 2833, 733, 598, 392, 389, 2165, 67, 707, 4191, 326, 1967, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 666, 16, 770, 542, 4672, 436, 8395, 521, 710, 95, 1615, 67, 1612, 97, 1297, 506, 279, 348, 2833, 733, 598, 392, 389, 2165, 67, 707, 4191, 326, 1967, 13...
-0.58853274398186273
-0.588532743981862...
def find_root(self, a, b, var=None, xtol=10e-13, rtol=4.5e-16, maxiter=100, full_output=False): """ Numerically find a root of self on the closed interval [a,b] (or [b,a]) if possible, where self is a function in the one variable.
2b6ad56bcf2516ea032c64349bb279c9ac313cda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2b6ad56bcf2516ea032c64349bb279c9ac313cda/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3085, 12, 2890, 16, 279, 16, 324, 16, 569, 33, 7036, 16, 619, 3490, 33, 2163, 73, 17, 3437, 16, 436, 3490, 33, 24, 18, 25, 73, 17, 2313, 16, 25743, 33, 6625, 16, 1983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3085, 12, 2890, 16, 279, 16, 324, 16, 569, 33, 7036, 16, 619, 3490, 33, 2163, 73, 17, 3437, 16, 436, 3490, 33, 24, 18, 25, 73, 17, 2313, 16, 25743, 33, 6625, 16, 1983, ...
self.body.append('\\begin{center}\\setlength{\\fboxsep}{5pt}' '\\fbox{\\begin{minipage}{0.95\\textwidth}\n')
self.body.append('\\setbox0\\vbox{\n' '\\begin{minipage}{0.95\\textwidth}\n')
def visit_topic(self, node): self.body.append('\\begin{center}\\setlength{\\fboxsep}{5pt}' '\\fbox{\\begin{minipage}{0.95\\textwidth}\n')
2f6dcd3e23083e207c60fb04a34ce01e5552ccb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/2f6dcd3e23083e207c60fb04a34ce01e5552ccb1/latexwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 2668, 1695, 10086, 95, 5693, 97, 1695, 542, 2469, 95, 1695, 74, 2147, 10814, 8637, 25, 337, 1713, 3718, 74, 2147, 95,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 2668, 1695, 10086, 95, 5693, 97, 1695, 542, 2469, 95, 1695, 74, 2147, 10814, 8637, 25, 337, 1713, 3718, 74, 2147, 95,...
dialog = gtk.MessageDialog(None,gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,gtk.MESSAGE_QUESTION,gtk.BUTTONS_OK,None)
dialog = gtk.MessageDialog(None,gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,gtk.MESSAGE_QUESTION,gtk.BUTTONS_OK_CANCEL,None)
def menuopenyoutube(self,widget): #################### # Description # =========== """ Dialog that allows the user to enter a YouTube url. Once the user presses the 'ok' button, the download will begin""" # Arguments # ========= # # Further Details # =============== # #################### #base this on a message dialog...
d571f8e82ed7cc78a4e1f3045ea3a3a189c1e311 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4607/d571f8e82ed7cc78a4e1f3045ea3a3a189c1e311/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 30656, 21105, 12, 2890, 16, 6587, 4672, 29570, 13151, 468, 6507, 468, 422, 1432, 33, 3536, 17242, 716, 5360, 326, 729, 358, 6103, 279, 4554, 27195, 880, 18, 12419, 326, 729, 11779, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 30656, 21105, 12, 2890, 16, 6587, 4672, 29570, 13151, 468, 6507, 468, 422, 1432, 33, 3536, 17242, 716, 5360, 326, 729, 358, 6103, 279, 4554, 27195, 880, 18, 12419, 326, 729, 11779, ...
This means that best possible binary liear code of length 10 and dimension 5
This means that best possible binary linear code of length 10 and dimension 5
def best_known_linear_code(n,k,F): """ best_known_linear_code returns the best known (as of 11 May 2006) linear code of length n, dimension k over field F. The function uses the tables described in bounds_minimum_distance to construct this code. This does not require an internet connection. EXAMPLES: sage: best_known...
1715fe9c3ce6aa7200f76da31cbaa3b1c5f96a35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/1715fe9c3ce6aa7200f76da31cbaa3b1c5f96a35/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3796, 67, 2994, 67, 12379, 67, 710, 12, 82, 16, 79, 16, 42, 4672, 3536, 3796, 67, 2994, 67, 12379, 67, 710, 1135, 326, 3796, 4846, 261, 345, 434, 4648, 16734, 27212, 13, 9103, 981, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3796, 67, 2994, 67, 12379, 67, 710, 12, 82, 16, 79, 16, 42, 4672, 3536, 3796, 67, 2994, 67, 12379, 67, 710, 1135, 326, 3796, 4846, 261, 345, 434, 4648, 16734, 27212, 13, 9103, 981, 4...
return True else: return False
canditates.append((len(pane.tags), pane)) canditates.sort() return (canditates and canditates[0][1]) or None def can_filter(self, key): return (self.__get_filter_pane(key) is not None)
def can_filter(self, key): for pane in self.__panes: if (key in pane.tags or (key in PEOPLE and "~people" in pane.tags)): return True else: return False
65c353a2f58dd189cd3918d5836dbf8ca05e5f5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/65c353a2f58dd189cd3918d5836dbf8ca05e5f5f/paned.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 2188, 12, 2890, 16, 498, 4672, 364, 13618, 316, 365, 16186, 7355, 281, 30, 309, 261, 856, 316, 13618, 18, 4156, 578, 261, 856, 316, 16628, 3665, 900, 471, 19910, 28035, 6, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 2188, 12, 2890, 16, 498, 4672, 364, 13618, 316, 365, 16186, 7355, 281, 30, 309, 261, 856, 316, 13618, 18, 4156, 578, 261, 856, 316, 16628, 3665, 900, 471, 19910, 28035, 6, 316...
aus = unicode(self.author_sort.text())
aus = unicode(self.author_sort.text()).strip()
def accept(self): cf = getattr(self, 'cover_fetcher', None) if cf is not None and hasattr(cf, 'terminate'): cf.terminate() cf.wait() try: if self.formats_changed: self.sync_formats() title = unicode(self.title.text()) self.db.set_title(self.id, title, notify=False) au = unicode(self.authors.text()) if au: self.db.set_a...
7a8c447e53a0e2152e0368128fcc87045426d090 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7a8c447e53a0e2152e0368128fcc87045426d090/metadata_single.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 4672, 6080, 273, 3869, 12, 2890, 16, 296, 3165, 67, 5754, 264, 2187, 599, 13, 309, 6080, 353, 486, 599, 471, 3859, 12, 8522, 16, 296, 30017, 11, 4672, 6080, 18, 30017, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 4672, 6080, 273, 3869, 12, 2890, 16, 296, 3165, 67, 5754, 264, 2187, 599, 13, 309, 6080, 353, 486, 599, 471, 3859, 12, 8522, 16, 296, 30017, 11, 4672, 6080, 18, 30017, ...
i = 6 css_var = self._css_var = StringVar(self._top)
row = 0 l = Label(oframe6, text="Public", **COLOR_CONFIG) l.grid(row=row, col=0, sticky='e') l = Label(oframe6, text="Private", **COLOR_CONFIG) l.grid(row=row, col=1, sticky='w') row += 1 css_var = self._css_var = StringVar(self._root)
def _css_sort(css1, css2): if css1[0] == 'default': return -1 elif css2[0] == 'default': return 1 else: return cmp(css1[0], css2[0])
19275515c1011eb2ed1be810d73cf19c849a3b63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/19275515c1011eb2ed1be810d73cf19c849a3b63/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5212, 67, 3804, 12, 5212, 21, 16, 3747, 22, 4672, 309, 3747, 21, 63, 20, 65, 422, 296, 1886, 4278, 327, 300, 21, 1327, 3747, 22, 63, 20, 65, 422, 296, 1886, 4278, 327, 404, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5212, 67, 3804, 12, 5212, 21, 16, 3747, 22, 4672, 309, 3747, 21, 63, 20, 65, 422, 296, 1886, 4278, 327, 300, 21, 1327, 3747, 22, 63, 20, 65, 422, 296, 1886, 4278, 327, 404, 46...
self._setRealAddress(self.addr[1])
self._setRealAddress(self.addr[0])
def resolveAddress(self): if abstract.isIPAddress(self.addr[0]): self._setRealAddress(self.addr[1]) else: main.resolver.resolve(self.addr[0], self._setRealAddress, self.failIfNotConnected)
7f371502e7921166e6f8ea743ff91563c6403adc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/7f371502e7921166e6f8ea743ff91563c6403adc/tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 1887, 12, 2890, 4672, 309, 8770, 18, 291, 22507, 12, 2890, 18, 4793, 63, 20, 65, 4672, 365, 6315, 542, 6955, 1887, 12, 2890, 18, 4793, 63, 20, 5717, 469, 30, 2774, 18, 14122, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 1887, 12, 2890, 4672, 309, 8770, 18, 291, 22507, 12, 2890, 18, 4793, 63, 20, 65, 4672, 365, 6315, 542, 6955, 1887, 12, 2890, 18, 4793, 63, 20, 5717, 469, 30, 2774, 18, 14122, 1...
def initiate_send (self):
def initiate_send(self):
def initiate_send (self): num_sent = 0 num_sent = dispatcher.send (self, self.out_buffer[:512]) self.out_buffer = self.out_buffer[num_sent:]
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18711, 67, 4661, 12, 2890, 4672, 818, 67, 7569, 273, 374, 818, 67, 7569, 273, 7393, 18, 4661, 261, 2890, 16, 365, 18, 659, 67, 4106, 10531, 13757, 5717, 365, 18, 659, 67, 4106, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18711, 67, 4661, 12, 2890, 4672, 818, 67, 7569, 273, 374, 818, 67, 7569, 273, 7393, 18, 4661, 261, 2890, 16, 365, 18, 659, 67, 4106, 10531, 13757, 5717, 365, 18, 659, 67, 4106, 273, ...
"""Base calss for EnumArgument, IntArgument and BoolArgument"""
"""Base class for EnumArgument, IntArgument and BoolArgument"""
def GetInvalidArg(self, offset, index): """returns an invalid value and expected parse result by index.""" return ("-1", "kNoError", "GL_INVALID_VALUE")
51330b3a08d845da9815b843e020833e62577828 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/51330b3a08d845da9815b843e020833e62577828/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 6154, 392, 2057, 460, 471, 2665, 1109, 563, 635, 770, 12123, 327, 7566, 17, 21, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 6154, 392, 2057, 460, 471, 2665, 1109, 563, 635, 770, 12123, 327, 7566, 17, 21, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67...
self.logging.debug("Purge of %s successfully" % str(obj.runningJob['schedulerId']))
self.logging.debug("Purge of %s successfully" % str(obj.runningJob['schedulerId']))
def purgeService( self, obj ): """ Purge job (even bulk) from wms """
7c4efde2270e23664acd0941720340358547054e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/7c4efde2270e23664acd0941720340358547054e/SchedulerGLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 1179, 12, 365, 16, 1081, 262, 30, 3536, 14466, 908, 1719, 261, 16728, 8280, 13, 628, 341, 959, 3536, 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, 11668, 1179, 12, 365, 16, 1081, 262, 30, 3536, 14466, 908, 1719, 261, 16728, 8280, 13, 628, 341, 959, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
response.set_cookie(key=COOKIE_KEY, value=new_recently_watched_str, max_age=COOKIE_MAX_AGE, path=COOKIE_PATH)
expires = datetime.datetime.now() expires += datetime.timedelta(days=365) response.set_cookie(COOKIE_KEY, value=new_recently_watched_str, expires=expires.strftime('%a, %d-%b-%y %H:%M:%S GMT'))
def watch_episode(request, episode_no): """Add the specified episode number to the list of watched episodes in the client cookie.""" i_episode_no = 0 try: i_episode_no = int(episode_no) except ValueError: raise http.Http404 # Get the episode we are to record as watched show = alloallo.get_show() episode = show.get_e...
be2546e3c9efc540977acb99ad50048cb677b755 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13560/be2546e3c9efc540977acb99ad50048cb677b755/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4267, 67, 29687, 12, 2293, 16, 17054, 67, 2135, 4672, 3536, 986, 326, 1269, 17054, 1300, 358, 326, 666, 434, 23135, 5529, 27134, 316, 326, 1004, 3878, 12123, 225, 277, 67, 29687, 67, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4267, 67, 29687, 12, 2293, 16, 17054, 67, 2135, 4672, 3536, 986, 326, 1269, 17054, 1300, 358, 326, 666, 434, 23135, 5529, 27134, 316, 326, 1004, 3878, 12123, 225, 277, 67, 29687, 67, 213...
res = self.__getLFNGuid(lfn)
res = self.__getLFNGuid( lfn )
def __createDataset(self,datasetName,lfns): res = self.__makeDirs(datasetName) if not res['OK']: return res links = {} for lfn in lfns: res = self.__getLFNGuid(lfn) if not res['OK']: return res else: link = "%s/%s" % (datasetName, res['Value']) links[link] = lfn res = self.createLink(links) if len(res['Value']['Success...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 10656, 12, 2890, 16, 8682, 461, 16, 20850, 2387, 4672, 400, 273, 365, 16186, 6540, 9872, 12, 8682, 461, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 4716, 273, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2640, 10656, 12, 2890, 16, 8682, 461, 16, 20850, 2387, 4672, 400, 273, 365, 16186, 6540, 9872, 12, 8682, 461, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 4716, 273, 2618, ...
wikipedia.output(pl.get(get_redirect=True)[0:ctoshow])
wikipedia.output(u''+pl.get(get_redirect=True)[0:ctoshow])
def asktoadd(pl): ctoshow = 500 print print("==%s==")%pl.title() while 1: answer = raw_input("y(es)/n(o)/i(gnore)/(o)ther options? ") if answer=='y': include(pl) break if answer=='c': include(pl,realinclude=False) break if answer=='z': if pl.exists(): if not pl.isRedirectPage(): linkterm = wikipedia.input(u"In what man...
43ce29dfe9b2db05801502d948ed17e57be4c813 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/43ce29dfe9b2db05801502d948ed17e57be4c813/makecat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 869, 1289, 12, 412, 4672, 5691, 538, 13606, 273, 6604, 1172, 1172, 2932, 631, 9, 87, 631, 7923, 9, 412, 18, 2649, 1435, 1323, 404, 30, 5803, 273, 1831, 67, 2630, 2932, 93, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 869, 1289, 12, 412, 4672, 5691, 538, 13606, 273, 6604, 1172, 1172, 2932, 631, 9, 87, 631, 7923, 9, 412, 18, 2649, 1435, 1323, 404, 30, 5803, 273, 1831, 67, 2630, 2932, 93, 12, ...
+ '\s*<a href=".+?" title=".+?">.+?<\/a>\n'
+ '\s*<a href=".+?" (?:class="new" )?title=".+?">.+?<\/a>\n'
def refresh_messages(site = None): site = site or wikipedia.getSite() # get 'all messages' special page's path path = site.allmessages_address() print 'Retrieving MediaWiki messages for %s' % repr(site) wikipedia.put_throttle() # It actually is a get, but a heavy one. allmessages = site.getUrl(path) print 'Parsing Med...
7fcc7be5f2ae27085e96b0be7dcbc8ff6238aa9a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7fcc7be5f2ae27085e96b0be7dcbc8ff6238aa9a/mediawiki_messages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 6833, 12, 4256, 273, 599, 4672, 2834, 273, 2834, 578, 21137, 18, 588, 4956, 1435, 468, 336, 296, 454, 2743, 11, 4582, 1363, 1807, 589, 589, 273, 2834, 18, 454, 6833, 67, 2867...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 6833, 12, 4256, 273, 599, 4672, 2834, 273, 2834, 578, 21137, 18, 588, 4956, 1435, 468, 336, 296, 454, 2743, 11, 4582, 1363, 1807, 589, 589, 273, 2834, 18, 454, 6833, 67, 2867...
ds = (bins[1] - bins[0]) / 2
def histstat(trigs=None, slide_trigs=None,ifolist = None, min_val = None, \ max_val = None, nbins = 20, stat=None): """ function to plot a histogram of the snr of coincident events in the zero lag and times slides @param trigs: coincInspiralTable @param slide_trigs: dictionary of time slide triggers @param ifolist: li...
8457a406b26b73640c0c7f37d28eb968a8f79a66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/8457a406b26b73640c0c7f37d28eb968a8f79a66/viz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5356, 5642, 12, 313, 360, 87, 33, 7036, 16, 12701, 67, 313, 360, 87, 33, 7036, 16, 430, 355, 376, 273, 599, 16, 1131, 67, 1125, 273, 599, 16, 521, 943, 67, 1125, 273, 599, 16, 4264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5356, 5642, 12, 313, 360, 87, 33, 7036, 16, 12701, 67, 313, 360, 87, 33, 7036, 16, 430, 355, 376, 273, 599, 16, 1131, 67, 1125, 273, 599, 16, 521, 943, 67, 1125, 273, 599, 16, 4264...
filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'episodeimagedir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'episodeimagedir'], ext)
filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'episodeimagedir'], sanitiseFileName(video[u'channelTitle']), sanitiseFileName(video[u'title']), graphic_suffix[u'episodeimagedir'], ext)
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, imagemagick, statistics, requir...
0f178cb606ce1cfb96840e30bd489d420b041e6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/0f178cb606ce1cfb96840e30bd489d420b041e6d/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
def leftDown(self,event):
def leftDown(self, event):
def leftDown(self,event): pass
55ac4fdc2a170bd52fcbe417587721669a976b6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/55ac4fdc2a170bd52fcbe417587721669a976b6f/test_animation_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2002, 4164, 12, 2890, 16, 871, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2002, 4164, 12, 2890, 16, 871, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
..........
----------
def build_test_unit_discs(): """ test_image = build_test_unit_discs() build 2 discs of equal radius and same mean values for texture testing Parameters .......... None Returns .......... test_image : {nd_array} a 512x512 image with 4 test discs (one per quadrant) """ radius = 50 rows = 512 cols = 512 test_imag...
2e15b86a5b91fd399ef0d981713b1fbce76051f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/2e15b86a5b91fd399ef0d981713b1fbce76051f1/_segmenter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 3813, 67, 4873, 67, 2251, 2143, 13332, 3536, 1842, 67, 2730, 273, 1361, 67, 3813, 67, 4873, 67, 2251, 2143, 1435, 1361, 576, 1015, 2143, 434, 3959, 5725, 471, 1967, 3722, 924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 3813, 67, 4873, 67, 2251, 2143, 13332, 3536, 1842, 67, 2730, 273, 1361, 67, 3813, 67, 4873, 67, 2251, 2143, 1435, 1361, 576, 1015, 2143, 434, 3959, 5725, 471, 1967, 3722, 924, ...
$q$-expansion of this expression to be zero is a system of v + k linear equations in d**2 coefficients, where k is the number of nonzero negative coefficients that can appear.
$q$-expansion of this expression to be zero is a system of $v + k$ linear equations in $d**2$ coefficients, where $k$ is the number of nonzero negative coefficients that can appear.
def eta_poly_relations(eta_elements, degree, labels=['x1','x2'], verbose=False): r""" Find polynomial relations between eta products. INPUTS: -- eta_elements (list): a list of EtaGroupElement objects. Not implemented unless this list has precisely two elements. -- degree (integer): the maximal degree of polynomial to ...
0c130fed7b356e022134568630e483428d00fec2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c130fed7b356e022134568630e483428d00fec2/etaproducts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14251, 67, 16353, 67, 15018, 12, 1066, 67, 6274, 16, 10782, 16, 3249, 33, 3292, 92, 21, 17023, 92, 22, 17337, 3988, 33, 8381, 4672, 436, 8395, 4163, 16991, 7467, 3086, 14251, 10406, 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, 14251, 67, 16353, 67, 15018, 12, 1066, 67, 6274, 16, 10782, 16, 3249, 33, 3292, 92, 21, 17023, 92, 22, 17337, 3988, 33, 8381, 4672, 436, 8395, 4163, 16991, 7467, 3086, 14251, 10406, 18, ...
key = (filename, lineno,)
key = filename, lineno
def localtrace_trace_and_count(self, frame, why, arg): if why == 'line': # record the file name and line number of every trace # XXX I wish inspect offered me an optimized # `getfilename(frame)' to use in place of the presumably # heavier `getframeinfo()'. --Zooko 2001-10-14 filename, lineno, funcname, context, linei...
5a5b6abb6d4c811babb61db3411abaf2310d00d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5a5b6abb6d4c811babb61db3411abaf2310d00d1/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 5129, 67, 5129, 67, 464, 67, 1883, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 296, 1369, 4278, 468, 1409, 326, 585, 508, 471, 980, 1300, 434, 3614, 2606, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 5129, 67, 5129, 67, 464, 67, 1883, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 296, 1369, 4278, 468, 1409, 326, 585, 508, 471, 980, 1300, 434, 3614, 2606, 468...
headers, 'file:'+pathname2url(file))
headers, 'file:'+file)
def open_local_file(self, url): import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: return addinfourl(open(url2pathname(file), 'rb'), headers, 'file:'+pathname2...
0b5e6d6ad4865a3a387c03f7075755c7a63b6cd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0b5e6d6ad4865a3a387c03f7075755c7a63b6cd1/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718, 25146, 20, 65, 1607, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718, 25146, 20, 65, 1607, 273, ...
raise 'Empty names are invalid.'
raise CancelOperation, \ 'Empty names are invalid.'
def getExtractionInfo(self, xtype, caption): selection = self.view.GetSelectedText().strip() if not selection: raise 'No text selected. Highlight the region you want to extract.'
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 25757, 966, 12, 2890, 16, 619, 723, 16, 11006, 4672, 4421, 273, 365, 18, 1945, 18, 967, 7416, 1528, 7675, 6406, 1435, 309, 486, 4421, 30, 1002, 296, 2279, 977, 3170, 18, 31386, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 25757, 966, 12, 2890, 16, 619, 723, 16, 11006, 4672, 4421, 273, 365, 18, 1945, 18, 967, 7416, 1528, 7675, 6406, 1435, 309, 486, 4421, 30, 1002, 296, 2279, 977, 3170, 18, 31386, 32...
raw = open(self.file_name, 'rb').read()
def start_on_file(self, path, is_root=True, link_level=0): self.css = HTMLConverter.CSS.copy() self.pseudo_css = self.override_pcss.copy() self.css.update(self.override_css) path = os.path.abspath(path) os.chdir(os.path.dirname(path)) self.file_name = os.path.basename(path) self.logger.info('Processing %s\n\tParsing H...
6cfd3561e602c55c68be84253152a73d2c9a11bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/6cfd3561e602c55c68be84253152a73d2c9a11bb/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 265, 67, 768, 12, 2890, 16, 589, 16, 353, 67, 3085, 33, 5510, 16, 1692, 67, 2815, 33, 20, 4672, 365, 18, 5212, 273, 3982, 5072, 18, 10276, 18, 3530, 1435, 365, 18, 26023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 265, 67, 768, 12, 2890, 16, 589, 16, 353, 67, 3085, 33, 5510, 16, 1692, 67, 2815, 33, 20, 4672, 365, 18, 5212, 273, 3982, 5072, 18, 10276, 18, 3530, 1435, 365, 18, 26023, ...
try: spawn(["zip", "-rq", zip_filename, base_dir], dry_run=dry_run) except DistutilsExecError:
def make_zipfile (base_name, base_dir, verbose=0, dry_run=0): """Create a zip file from all the files under 'base_dir'. The output zip file will be named 'base_dir' + ".zip". Uses either the InfoZIP "zip" utility (if installed and found on the default search path) or the "zipfile" Python module (if available). If ne...
79143f726d00f332dcf828c4e1d6bd2349e7bc00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/79143f726d00f332dcf828c4e1d6bd2349e7bc00/archive_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4450, 768, 261, 1969, 67, 529, 16, 1026, 67, 1214, 16, 3988, 33, 20, 16, 10299, 67, 2681, 33, 20, 4672, 3536, 1684, 279, 3144, 585, 628, 777, 326, 1390, 3613, 296, 1969, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4450, 768, 261, 1969, 67, 529, 16, 1026, 67, 1214, 16, 3988, 33, 20, 16, 10299, 67, 2681, 33, 20, 4672, 3536, 1684, 279, 3144, 585, 628, 777, 326, 1390, 3613, 296, 1969, 67...
""" MS-SQL has a special mode for inserting non-NULL values into IDENTITY columns. Activate it if needed. """
""" MS-SQL has a special mode for inserting non-NULL values into IDENTITY columns. Activate it if the feature is turned on and needed. """
def pre_exec(self, engine, proxy, compiled, parameters, **kwargs): """ MS-SQL has a special mode for inserting non-NULL values into IDENTITY columns. Activate it if needed. """ if getattr(compiled, "isinsert", False): self.IINSERT = False self.HASIDENT = False for c in compiled.statement.table.c: if hasattr(c,'sequence...
facbaa3333a5ca24f1cd4d09e5f84b63d3faefe5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/facbaa3333a5ca24f1cd4d09e5f84b63d3faefe5/mssql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 67, 4177, 12, 2890, 16, 4073, 16, 2889, 16, 7743, 16, 1472, 16, 2826, 4333, 4672, 3536, 9238, 17, 3997, 711, 279, 4582, 1965, 364, 21079, 1661, 17, 8560, 924, 1368, 1599, 11101, 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, 675, 67, 4177, 12, 2890, 16, 4073, 16, 2889, 16, 7743, 16, 1472, 16, 2826, 4333, 4672, 3536, 9238, 17, 3997, 711, 279, 4582, 1965, 364, 21079, 1661, 17, 8560, 924, 1368, 1599, 11101, 2...
codecs.StreamReader.__init__(self,strict,errors)
codecs.StreamReader.__init__(self,stream,errors)
def __init__(self,stream,errors='strict',mapping=None):
2614256b91ba34e2d9447b0772478a349dccbdde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2614256b91ba34e2d9447b0772478a349dccbdde/charmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3256, 16, 4324, 2218, 13948, 2187, 6770, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3256, 16, 4324, 2218, 13948, 2187, 6770, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.langbox.set_markup('' + self.fromLang() + ' | ' + self.toLang() + ': ')
self.langbox.set_markup(self.fromLang() + ' | ' + self.toLang() + ': ')
def enter_callback(self, widget, data = None): '''Submit entrybox text for translation.'''
882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 3604, 16, 501, 273, 599, 4672, 9163, 11620, 1241, 2147, 977, 364, 4794, 1093, 6309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6103, 67, 3394, 12, 2890, 16, 3604, 16, 501, 273, 599, 4672, 9163, 11620, 1241, 2147, 977, 364, 4794, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
cursor.execute(self.as_sql())
cursor.execute(*self.as_sql())
def _execute(self): """ Private method for executing query, always runs query and then updates cache """ from django.db import connection, transaction cursor = connection.cursor() cursor.execute(self.as_sql()) results = []
996dd4ac39a759f112f7c45d526b72471fe4054e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/996dd4ac39a759f112f7c45d526b72471fe4054e/directional_stddev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 12, 2890, 4672, 3536, 8726, 707, 364, 11274, 843, 16, 3712, 7597, 843, 471, 1508, 4533, 1247, 3536, 628, 13710, 18, 1966, 1930, 1459, 16, 2492, 3347, 273, 1459, 18, 9216, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 12, 2890, 4672, 3536, 8726, 707, 364, 11274, 843, 16, 3712, 7597, 843, 471, 1508, 4533, 1247, 3536, 628, 13710, 18, 1966, 1930, 1459, 16, 2492, 3347, 273, 1459, 18, 9216, 1435...
else:
except Exception, e:
def onActivateStream(self, iq): fromJID = jid.internJID(iq["from"]).full() activateJID = jid.internJID(str(iq.query.activate)).full() sid = hashSID(iq.query["sid"], fromJID, activateJID) log.msg("Activation requested for: ", sid)
979b73b50d8b30e7c7fbe2f4f3f346371ed7af9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3999/979b73b50d8b30e7c7fbe2f4f3f346371ed7af9c/proxy65.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 21370, 1228, 12, 2890, 16, 24288, 4672, 628, 46, 734, 273, 14201, 18, 267, 798, 46, 734, 12, 18638, 9614, 2080, 11929, 2934, 2854, 1435, 10235, 46, 734, 273, 14201, 18, 267, 798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 21370, 1228, 12, 2890, 16, 24288, 4672, 628, 46, 734, 273, 14201, 18, 267, 798, 46, 734, 12, 18638, 9614, 2080, 11929, 2934, 2854, 1435, 10235, 46, 734, 273, 14201, 18, 267, 798, ...
zoom.set_range(-5.0, 5.0) zoom.set_increments(1, 1)
zoom.set_range(5, 75.0) zoom.set_increments(0.2, 0.2)
def __init__(self, project, mainview, mixView=None, small=False): """ project - the current active project mainview - the main Jokosher window mixView - the CompactMixView object that holds this if we are in mixing view. If we are in recording view then None small - set to True if we want small edit views (i.e. for mix...
875fafb228ba7e862b70c14c939ef30559d50690 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/875fafb228ba7e862b70c14c939ef30559d50690/RecordingView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1984, 16, 2774, 1945, 16, 6843, 1767, 33, 7036, 16, 5264, 33, 8381, 4672, 3536, 1984, 300, 326, 783, 2695, 1984, 2774, 1945, 300, 326, 2774, 804, 601, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1984, 16, 2774, 1945, 16, 6843, 1767, 33, 7036, 16, 5264, 33, 8381, 4672, 3536, 1984, 300, 326, 783, 2695, 1984, 2774, 1945, 300, 326, 2774, 804, 601, 53...
(1,2)(3,4)
(1,2)(3,4)
def has_element(self, item): """ Returns boolean value of "item in self" - however *ignores* parentage. EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: gens = G.gens() sage: H = DihedralGroup(4) sage: g = G([(1,2,3,4)]); g (1,2,3,4) sage: G.has_element(g) True sage: h = H([(1,2),(3,4)]); h (1,2)(3,4) sage: G.has...
895e1ae73086b953ed8633605c018ded03126ea2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/895e1ae73086b953ed8633605c018ded03126ea2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 2956, 12, 2890, 16, 761, 4672, 3536, 2860, 1250, 460, 434, 315, 1726, 316, 365, 6, 300, 14025, 380, 724, 3485, 14, 982, 410, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2956, 12, 2890, 16, 761, 4672, 3536, 2860, 1250, 460, 434, 315, 1726, 316, 365, 6, 300, 14025, 380, 724, 3485, 14, 982, 410, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, ...
f = open("err", "w") f.write(self.value) f.close()
def __init__(self, extension): self.id = tuple_to_OID(extension.getComponentByName("extnID")) critical = extension.getComponentByName("critical") if critical == 0: self.is_critical = False else: self.is_critical = True # set the bytes as the extension value self.value = extension.getComponentByName("extnValue")._value ...
b1b8d4e094a4db5d6a9641a76da1fe142be1120e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10685/b1b8d4e094a4db5d6a9641a76da1fe142be1120e/pkcs7_models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2710, 4672, 365, 18, 350, 273, 3193, 67, 869, 67, 12945, 12, 6447, 18, 588, 1841, 5911, 2932, 408, 82, 734, 6, 3719, 11239, 273, 2710, 18, 588, 1841, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2710, 4672, 365, 18, 350, 273, 3193, 67, 869, 67, 12945, 12, 6447, 18, 588, 1841, 5911, 2932, 408, 82, 734, 6, 3719, 11239, 273, 2710, 18, 588, 1841, 5...
out = popen.communicate()[0].strip() out = debug_output_pat.sub("", out) out, _, result = out.strip().rpartition("\n")
stdout, stderr = popen.communicate() stderr = debug_output_pat.sub("", stderr) stdout, _, result = stdout.strip().rpartition("\n")
def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None)) return if not quiet: print test sys.stdout.flush() # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.du...
0b02e9b20963e971a27586451a3eca5bdacf38dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/0b02e9b20963e971a27586451a3eca5bdacf38dc/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
self.__galois_closure = K
self.__galois_closure = K.change_names(names)
def galois_closure(self, names=None): """ Return number field $K$ that is the Galois closure of self, i.e., is generated by all roots of the defining polynomial of self
5d7dabdc0b6a48f4fa6e377e72a82e8ec9206b92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/5d7dabdc0b6a48f4fa6e377e72a82e8ec9206b92/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 20823, 12, 2890, 16, 1257, 33, 7036, 4672, 3536, 2000, 1300, 652, 271, 47, 8, 716, 353, 326, 611, 287, 19606, 7213, 434, 365, 16, 277, 18, 73, 12990, 353, 4374, 635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 20823, 12, 2890, 16, 1257, 33, 7036, 4672, 3536, 2000, 1300, 652, 271, 47, 8, 716, 353, 326, 611, 287, 19606, 7213, 434, 365, 16, 277, 18, 73, 12990, 353, 4374, 635, ...
sage: from sage.server.notebook.user import User sage: User('A', account_type='admin').account_type() 'admin' sage: User('B', account_type='user').account_type() 'user' sage: User('C', account_type='guest').account_type() 'guest'
EXAMPLES: sage: from sage.server.notebook.user import User sage: User('A', account_type='admin').account_type() 'admin' sage: User('B', account_type='user').account_type() 'user' sage: User('C', account_type='guest').account_type() 'guest'
def account_type(self): """ sage: from sage.server.notebook.user import User sage: User('A', account_type='admin').account_type() 'admin' sage: User('B', account_type='user').account_type() 'user' sage: User('C', account_type='guest').account_type() 'guest' """ return self.__account_type
71ca82f9dd0e24cff4dd2f1d6579f257277e8b02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/71ca82f9dd0e24cff4dd2f1d6579f257277e8b02/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 723, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 3567, 18, 24422, 18, 1355, 1930, 2177, 272, 410, 30, 2177, 2668, 37, 2187, 2236, 67, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 723, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 3567, 18, 24422, 18, 1355, 1930, 2177, 272, 410, 30, 2177, 2668, 37, 2187, 2236, 67, 723, ...
if proto.endswith(u'.py')]
if proto.endswith(u'.py') and proto not in (u'__init__.py', u'template.py')]
def main(): """Entry point to set up bot and run it""" log.basicConfig(**LOG) # where we are being run from if __file__.startswith(sys.argv[0]): prefix = sys.argv[0] else: prefix = __file__ prefix = os.path.abspath(os.path.dirname(prefix)) sys.path.insert(0, prefix) default_config = os.path.join(prefix, CONFIG) # ma...
8dc2b8e9b4685c1122f81bc0f6cca02663dda3a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/8dc2b8e9b4685c1122f81bc0f6cca02663dda3a4/madcow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 1622, 1634, 358, 444, 731, 2512, 471, 1086, 518, 8395, 225, 613, 18, 13240, 809, 12, 636, 4842, 13, 225, 468, 1625, 732, 854, 3832, 1086, 628, 309, 1001, 768, 25648, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3536, 1622, 1634, 358, 444, 731, 2512, 471, 1086, 518, 8395, 225, 613, 18, 13240, 809, 12, 636, 4842, 13, 225, 468, 1625, 732, 854, 3832, 1086, 628, 309, 1001, 768, 25648, ...
try: if (os.system("python setup.py %s" % build_command)): die("Build failed") except: die("Cannot run build")
if (os.system("%s setup.py %s" % (python, build_command))): die("Build failed")
def cygwinify(path): if not is_cygwin_command: return path else: path = os.path.abspath(path).lower().replace("\\","/") drive = path[0] return "/cygdrive/%s%s" % (drive, path[2:])
85e6653090e317d5b137c4c01d9746c373380977 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/85e6653090e317d5b137c4c01d9746c373380977/nightly.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 4338, 8082, 1164, 12, 803, 4672, 309, 486, 353, 67, 2431, 75, 8082, 67, 3076, 30, 327, 589, 469, 30, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 2934, 8167, 7675, 2079, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 4338, 8082, 1164, 12, 803, 4672, 309, 486, 353, 67, 2431, 75, 8082, 67, 3076, 30, 327, 589, 469, 30, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 2934, 8167, 7675, 2079, 293...
"""When the startup toggle box is toggled, this method is run to update the setting in Globals."""
""" When the startup toggle box is toggled, this method is run to update the setting in Globals. Parameters: widget -- reserved for GTK callbacks, don't use it explicitly. """
def OnStartupToggled(self, widget): """When the startup toggle box is toggled, this method is run to update the setting in Globals.""" if widget.get_active(): Globals.settings.general["startupaction"] = PreferencesDialog.STARTUP_NOTHING else: Globals.settings.general["startupaction"] = PreferencesDialog.STARTUP_WELCOM...
fdad701ef3921349b1a997410400939cb276664e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/fdad701ef3921349b1a997410400939cb276664e/WelcomeDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 22178, 56, 23972, 1259, 12, 2890, 16, 3604, 4672, 3536, 5203, 326, 11850, 10486, 3919, 353, 6316, 75, 1259, 16, 333, 707, 353, 1086, 358, 1089, 326, 3637, 316, 18901, 1031, 18, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 22178, 56, 23972, 1259, 12, 2890, 16, 3604, 4672, 3536, 5203, 326, 11850, 10486, 3919, 353, 6316, 75, 1259, 16, 333, 707, 353, 1086, 358, 1089, 326, 3637, 316, 18901, 1031, 18, 225...
return val except Errors.EmailAddressError: pass return getattr(mlist, prop) elif my_type == mm_cfg.EmailList:
return val elif wtype == mm_cfg.EmailList:
def get_valid_value(mlist, prop, my_type, val, dependant): if my_type == mm_cfg.Radio or my_type == mm_cfg.Toggle: if type(val) <> types.IntType: try: val = int(val) except ValueError: pass # Don't know what to do here... return val elif my_type == mm_cfg.String or my_type == mm_cfg.Text: return val elif my_type == mm_...
fa0e46b5bfa2180b822daee86334dd5980724324 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fa0e46b5bfa2180b822daee86334dd5980724324/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 877, 67, 1132, 12, 781, 376, 16, 2270, 16, 3399, 67, 723, 16, 1244, 16, 2447, 970, 4672, 309, 3399, 67, 723, 422, 9740, 67, 7066, 18, 19984, 578, 3399, 67, 723, 422, 9740, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 877, 67, 1132, 12, 781, 376, 16, 2270, 16, 3399, 67, 723, 16, 1244, 16, 2447, 970, 4672, 309, 3399, 67, 723, 422, 9740, 67, 7066, 18, 19984, 578, 3399, 67, 723, 422, 9740, ...
global _command_line_view, _command_line_video_ids
global _command_line_view, _command_line_videos
def reset_command_line_view(): global _command_line_view, _command_line_video_ids if _command_line_view is not None: _command_line_view.unlink() _command_line_view = None _command_line_video_ids = set()
552d0521bcb554094a3702ac015ae0fea1afbe93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/552d0521bcb554094a3702ac015ae0fea1afbe93/singleclick.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 67, 3076, 67, 1369, 67, 1945, 13332, 2552, 389, 3076, 67, 1369, 67, 1945, 16, 389, 3076, 67, 1369, 67, 6768, 538, 309, 389, 3076, 67, 1369, 67, 1945, 353, 486, 599, 30, 389, 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, 2715, 67, 3076, 67, 1369, 67, 1945, 13332, 2552, 389, 3076, 67, 1369, 67, 1945, 16, 389, 3076, 67, 1369, 67, 6768, 538, 309, 389, 3076, 67, 1369, 67, 1945, 353, 486, 599, 30, 389, 30...
"tar -zxf $BULK_SPEC_NAME\n",
"tar -zxf $BULK_SPEC_NAME >& /dev/null\n",
def bulkUnpackerScript(bulkSpecTarName,jobSpecName): """ _bulkUnpackerScript_ Unpacks bulk spec tarfile, for real bulk submission we have to use job arrays and construct the jobSpecName from the job index If file not found, it generates a failure report and exits Otherwise, JOB_SPEC_FILE will be set to point to the ...
9ac91ae4ea5dd8b7aa70c8ca6a9af4dc76f2d3f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/9ac91ae4ea5dd8b7aa70c8ca6a9af4dc76f2d3f9/T0LSFSubmitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8280, 23649, 264, 3651, 12, 14597, 1990, 20464, 461, 16, 4688, 1990, 461, 4672, 3536, 389, 14597, 23649, 264, 3651, 67, 225, 25411, 87, 8280, 857, 25857, 16, 225, 364, 2863, 8280, 8515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8280, 23649, 264, 3651, 12, 14597, 1990, 20464, 461, 16, 4688, 1990, 461, 4672, 3536, 389, 14597, 23649, 264, 3651, 67, 225, 25411, 87, 8280, 857, 25857, 16, 225, 364, 2863, 8280, 8515, ...
mt = osg.NodeToMatrixTransform(node) if mt: mt.setMatrix(osg.Matrixd_rotate(self._quat)) else: pot = osg.NodeToPositionAttitudeTransform(node) if pot: pot.setAttitude(self._quat) self._angle += self._speed;
pot = osg.NodeToPositionAttitudeTransform(node) if pot: pot.setAttitude(self._quat)
def __call__(self, node, nv): """casts the transform node and rotate and increment angle""" self._quat.makeRotate(self._angle, self._axis) #call the dynamic cast function that was added to the osg module mt = osg.NodeToMatrixTransform(node) if mt: mt.setMatrix(osg.Matrixd_rotate(self._quat)) else: pot = osg.NodeToPosit...
1fd429a31aa3b31f3a004f7d0bca1e65ecd1fabd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10412/1fd429a31aa3b31f3a004f7d0bca1e65ecd1fabd/todaysimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 756, 16, 8779, 4672, 3536, 4155, 87, 326, 2510, 756, 471, 8534, 471, 5504, 5291, 8395, 365, 6315, 372, 270, 18, 6540, 16357, 12, 2890, 6315, 4341, 16, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 756, 16, 8779, 4672, 3536, 4155, 87, 326, 2510, 756, 471, 8534, 471, 5504, 5291, 8395, 365, 6315, 372, 270, 18, 6540, 16357, 12, 2890, 6315, 4341, 16, 36...
def InitTempVars(self):
def InitVars(self):
def InitTempVars(self): if self._internal_name: self._template_dir = os.path.join(mm_cfg.TEMPLATE_DIR, self._internal_name) else: self._template_dir = mm_cfg.TEMPLATE_DIR
da2b258db38ea35b17b14393daa30749e5a58f3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/da2b258db38ea35b17b14393daa30749e5a58f3a/HTMLFormatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 5555, 12, 2890, 4672, 309, 365, 6315, 7236, 67, 529, 30, 365, 6315, 3202, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 7020, 67, 7066, 18, 12205, 67, 4537, 16, 365, 6315, 7236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 5555, 12, 2890, 4672, 309, 365, 6315, 7236, 67, 529, 30, 365, 6315, 3202, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 7020, 67, 7066, 18, 12205, 67, 4537, 16, 365, 6315, 7236, ...
if not os.path.isfile (init_py):
if os.path.isfile (init_py): return init_py else:
def check_package (self, package, package_dir):
8bbba17d3815a44eefbd0cf33db937a56fe50db5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bbba17d3815a44eefbd0cf33db937a56fe50db5/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5610, 261, 2890, 16, 2181, 16, 2181, 67, 1214, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5610, 261, 2890, 16, 2181, 16, 2181, 67, 1214, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
markForBuilding(n, newTrove[1], [f]) elif n in toBuild and f not in toBuild[n][1]:
markForBuilding(n, newTrove[1], [merged_flavor]) elif n in toBuild and \ merged_flavor not in toBuild[n][1]:
def markForBuilding(name, version, flavors): toBuild.setdefault(name, (version, set()))[1].update(flavors)
9ccac7b5e48aa634cb7db5f7bee3f782668fd8bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7644/9ccac7b5e48aa634cb7db5f7bee3f782668fd8bc/cook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 1290, 16713, 12, 529, 16, 1177, 16, 31227, 1383, 4672, 358, 3116, 18, 542, 1886, 12, 529, 16, 261, 1589, 16, 444, 1435, 3719, 63, 21, 8009, 2725, 12, 2242, 842, 1383, 13, 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, 2267, 1290, 16713, 12, 529, 16, 1177, 16, 31227, 1383, 4672, 358, 3116, 18, 542, 1886, 12, 529, 16, 261, 1589, 16, 444, 1435, 3719, 63, 21, 8009, 2725, 12, 2242, 842, 1383, 13, 2, -1...
def __neq__(self, other):
def __ne__(self, other):
def __neq__(self, other): return not self.__eq__(other)
5395e8c5b4dfe57491aeafb80327cad9fcd1ccd1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7978/5395e8c5b4dfe57491aeafb80327cad9fcd1ccd1/euclid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 16186, 11253, 972, 12, 3011, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 16186, 11253, 972, 12, 3011, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
centroidCmdStr = "centroid time=%s bin=1 on=%.1f,%.1f cradius=%.1f window=%d,%d,%d,%d" % \
centroidCmdStr = "centroid time=%s bin=1 on=%0.1f,%0.1f cradius=%0.1f window=%d,%d,%d,%d" % \
def waitCentroid(self, expTime, starPos, centroidRad, window): """Take an exposure and centroid using 1x1 binning. Inputs: - expTime: exposure time (sec) - starPos: star position (x,y pix) **relative to window** - centroidRad: centroid radius (pix) - window: (xmin, ymin, xmax, ymax) of subframe corners (inclusive, pix...
bdc20e03649e5a498573c69cad551b250ac0bc28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6236/bdc20e03649e5a498573c69cad551b250ac0bc28/BaseFocusScript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 15897, 5560, 12, 2890, 16, 1329, 950, 16, 10443, 1616, 16, 16767, 6621, 16, 2742, 4672, 3536, 13391, 392, 14620, 471, 16767, 1450, 404, 92, 21, 4158, 2093, 18, 225, 24472, 30, 300,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 15897, 5560, 12, 2890, 16, 1329, 950, 16, 10443, 1616, 16, 16767, 6621, 16, 2742, 4672, 3536, 13391, 392, 14620, 471, 16767, 1450, 404, 92, 21, 4158, 2093, 18, 225, 24472, 30, 300,...
def getHTML(self, url):
def getHTML(self, url, useActualHistory = True):
def getHTML(self, url): etag = None modified = None if self.linkHistory.has_key(url): if self.linkHistory[url].has_key('etag'): etag = self.linkHistory[url]['etag'] if self.linkHistory[url].has_key('modified'): modified = self.linkHistory[url]['modified'] info = grabURL(url, etag=etag, modified=modified) if info is Non...
78e2f9a7758c69397ec02fc5f57f5c3710fc5d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/78e2f9a7758c69397ec02fc5f57f5c3710fc5d32/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4870, 12, 2890, 16, 880, 16, 999, 11266, 5623, 273, 1053, 4672, 13655, 273, 599, 4358, 273, 599, 309, 365, 18, 1232, 5623, 18, 5332, 67, 856, 12, 718, 4672, 309, 365, 18, 1232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4870, 12, 2890, 16, 880, 16, 999, 11266, 5623, 273, 1053, 4672, 13655, 273, 599, 4358, 273, 599, 309, 365, 18, 1232, 5623, 18, 5332, 67, 856, 12, 718, 4672, 309, 365, 18, 1232, ...
def __new__(cls):
def __new__(cls, game_factory):
def __new__(cls): # set up jobs properly cls._job, cls._postjob = cls.job.onjob, cls.job.postjob
b762f423c2ca2a6cf976c06f21360bbae6c65705 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4543/b762f423c2ca2a6cf976c06f21360bbae6c65705/simulator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 7920, 67, 6848, 4672, 468, 444, 731, 6550, 8214, 2028, 6315, 4688, 16, 2028, 6315, 2767, 4688, 273, 2028, 18, 4688, 18, 265, 4688, 16, 2028, 18, 4688, 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, 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, 2704, 972, 12, 6429, 16, 7920, 67, 6848, 4672, 468, 444, 731, 6550, 8214, 2028, 6315, 4688, 16, 2028, 6315, 2767, 4688, 273, 2028, 18, 4688, 18, 265, 4688, 16, 2028, 18, 4688, 18...
b = widgetBox(widget, box, orientation) widgetLabel(b, label, labelWidth) wa = QSpinBox(min, max, step, b) wa.setValue(getattr(master, value)) if tooltip: QToolTip.add(wa, tooltip) master.connect(wa, SIGNAL("valueChanged(int)"), ValueCallback(master, value)) master.controledAttributes.append((value, CallFront_spin(wa...
b = widgetBox(widget, box, orientation) widgetLabel(b, label, labelWidth) wa = QSpinBox(min, max, step, b) wa.setValue(getattr(master, value)) if tooltip: QToolTip.add(wa, tooltip) master.connect(wa, SIGNAL("valueChanged(int)"), ValueCallback(master, value)) master.controledAttributes.append((value, CallFront_spin(wa...
def spin(widget, master, value, min, max, step=1, box=None, label=None, labelWidth=None, orientation=None, tooltip=None, callback=None): b = widgetBox(widget, box, orientation) widgetLabel(b, label, labelWidth) wa = QSpinBox(min, max, step, b) wa.setValue(getattr(master, value)) if tooltip: QToolTip.add(wa, tooltip) ...
ec58355f0e4e6cbc25734f2c717e88966d659bd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/ec58355f0e4e6cbc25734f2c717e88966d659bd7/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12490, 12, 6587, 16, 4171, 16, 460, 16, 1131, 16, 943, 16, 2235, 33, 21, 16, 3919, 33, 7036, 16, 1433, 33, 7036, 16, 1433, 2384, 33, 7036, 16, 9820, 33, 7036, 16, 11915, 33, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12490, 12, 6587, 16, 4171, 16, 460, 16, 1131, 16, 943, 16, 2235, 33, 21, 16, 3919, 33, 7036, 16, 1433, 33, 7036, 16, 1433, 2384, 33, 7036, 16, 9820, 33, 7036, 16, 11915, 33, 7036, ...
['DEPOSIT', 'MODIFY', 'FUSE', 'MOVIE']:
['MODIFY', 'FUSE', 'MOVIE']:
def ok_btn_clicked(self): 'Slot for the OK button' if platform.atom_debug: print 'ok button clicked' self._ok_or_preview(doneMsg=True) self.accept() #bruce 060621 self.struct = None self.closePropertyManager() # The following reopens the property manager of the mode after #when the PM of the reference geometry is clo...
b508515911dc32554e679d2ae796281b726e28bf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/b508515911dc32554e679d2ae796281b726e28bf/ReferenceGeometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1529, 67, 11898, 67, 7475, 329, 12, 2890, 4672, 296, 8764, 364, 326, 7791, 3568, 11, 309, 4072, 18, 7466, 67, 4148, 30, 1172, 296, 601, 3568, 17688, 11, 225, 365, 6315, 601, 67, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1529, 67, 11898, 67, 7475, 329, 12, 2890, 4672, 296, 8764, 364, 326, 7791, 3568, 11, 309, 4072, 18, 7466, 67, 4148, 30, 1172, 296, 601, 3568, 17688, 11, 225, 365, 6315, 601, 67, 280, ...
def __del__(self): print '__del__ selection group'
def __del__(self): print '__del__ selection group'
2dfc26470222dc7c48c18810d65dc6cd09f6688b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2dfc26470222dc7c48c18810d65dc6cd09f6688b/SelectionTags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If `Q` is the ambient quaternion algebra, then the ZZ-span of
If `Q` is the ambient quaternion algebra, then the `\\ZZ`-span of
def basis_matrix(self): """ Return basis matrix `M` in Hermite normal form for self as a matrix with rational entries.
1fe7e945a5e69662d3b79300c558387c31fea323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1fe7e945a5e69662d3b79300c558387c31fea323/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 67, 5667, 12, 2890, 4672, 3536, 2000, 10853, 3148, 1375, 49, 68, 316, 670, 1035, 1137, 2212, 646, 364, 365, 487, 279, 3148, 598, 436, 8371, 3222, 18, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 67, 5667, 12, 2890, 4672, 3536, 2000, 10853, 3148, 1375, 49, 68, 316, 670, 1035, 1137, 2212, 646, 364, 365, 487, 279, 3148, 598, 436, 8371, 3222, 18, 2, -100, -100, -100, -100, ...
@time_me
def getMutualInformation_slow(self, otherPartition): """Calculate mutual information.
4abb0661a2aa23a507facc7ef972c1b0ca8a4406 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/4abb0661a2aa23a507facc7ef972c1b0ca8a4406/communities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2108, 322, 1462, 5369, 67, 87, 821, 12, 2890, 16, 1308, 7003, 4672, 3536, 8695, 4318, 1462, 1779, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2108, 322, 1462, 5369, 67, 87, 821, 12, 2890, 16, 1308, 7003, 4672, 3536, 8695, 4318, 1462, 1779, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
'(I_(?P<image>\S+))|(C(?P<cprio>\d+)_(?P<class>\S+)))' + '(\.(?P<op>cat|udiff))?$')
'(I_(?P<image>\S+))|(C(?P<cprio>\d+)_(?P<class>\S+)))$')
def __cmp__(self, other): fields = ['all', 'image', 'classes', 'bundles', 'attributes', 'hostname'] try: most1 = [index for index in range(len(fields)) if getattr(self, fields[index])][0] except IndexError: most1 = 0 try: most2 = [index for index in range(len(fields)) if getattr(other, fields[index])][0] except IndexEr...
6012386e61cedda17d982e2ac9f7ae494671a57c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/6012386e61cedda17d982e2ac9f7ae494671a57c/Cfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 1466, 273, 10228, 454, 2187, 296, 2730, 2187, 296, 4701, 2187, 296, 22773, 2187, 296, 4350, 2187, 296, 10358, 3546, 775, 30, 4486, 21, 273, 306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 972, 12, 2890, 16, 1308, 4672, 1466, 273, 10228, 454, 2187, 296, 2730, 2187, 296, 4701, 2187, 296, 22773, 2187, 296, 4350, 2187, 296, 10358, 3546, 775, 30, 4486, 21, 273, 306...
str = self._header(`uid`)
str = self._header(uid.name())
def _module_to_html(self, uid): """ @return: An HTML page describing the module identified by C{uid}. @rtype: C{string} @param uid: The unique identifier for the module that should be documented. @type uid: L{UID} """ # Get the module's documentation. doc = self._docmap[uid]
7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2978, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 1605, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, 385, 95, 1080, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2978, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 1605, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, 385, 95, 1080, 97, ...
TER %s""" % (siguij_0_line, siguij_2_line))
%sTER """ % (siguij_0_line, siguij_2_line))
def exercise_chain(): c = pdb.hierarchy.chain() assert c.id == "" c = pdb.hierarchy.chain(id="a") assert c.id == "a" c.id = "x" assert c.id == "x" # m1 = pdb.hierarchy.model(id="1") m2 = pdb.hierarchy.model(id="2") assert m1.memory_id() != m2.memory_id() c = pdb.hierarchy.chain() assert c.parent() is None c = pdb.hiera...
391d1576bc7bef17c805b9cf7169b501ecd7fac4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/391d1576bc7bef17c805b9cf7169b501ecd7fac4/tst_hierarchy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 5639, 13332, 276, 273, 10892, 18, 17937, 18, 5639, 1435, 1815, 276, 18, 350, 422, 1408, 276, 273, 10892, 18, 17937, 18, 5639, 12, 350, 1546, 69, 7923, 1815, 276, 18, 350, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 5639, 13332, 276, 273, 10892, 18, 17937, 18, 5639, 1435, 1815, 276, 18, 350, 422, 1408, 276, 273, 10892, 18, 17937, 18, 5639, 12, 350, 1546, 69, 7923, 1815, 276, 18, 350, 42...
warnings.warn(msg, warnings.DeprecationWarning, stacklevel=2)
warnings.warn(msg, DeprecationWarning, stacklevel=2)
def _warn(msg): import warnings warnings.warn(msg, warnings.DeprecationWarning, stacklevel=2)
ca9490467932d215552503e4a9324ba6299ea5ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/ca9490467932d215552503e4a9324ba6299ea5ac/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8935, 12, 3576, 4672, 1930, 5599, 5599, 18, 8935, 12, 3576, 16, 24041, 16, 26847, 33, 22, 13, 225, 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, 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, 389, 8935, 12, 3576, 4672, 1930, 5599, 5599, 18, 8935, 12, 3576, 16, 24041, 16, 26847, 33, 22, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def on_overwrite_response(dialog, response_id): dialog.destroy()
def on_overwrite_response(confirm, response_id): confirm.destroy()
def save(self, _action, parent=None, on_save=None): if not self.filename: chooser = gtk.FileChooserDialog( "Save Script", parent or self, gtk.FILE_CHOOSER_ACTION_SAVE, ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_SAVE, gtk.RESPONSE_OK ) ) chooser.set_current_folder(os.path.realpath(os.path.join(urk.userpath, 'sc...
b8b285852d0af0600c32b6cff84d6678ae1df91a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/b8b285852d0af0600c32b6cff84d6678ae1df91a/editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 389, 1128, 16, 982, 33, 7036, 16, 603, 67, 5688, 33, 7036, 4672, 309, 486, 365, 18, 3459, 30, 5011, 13164, 273, 22718, 18, 812, 17324, 6353, 12, 315, 4755, 7739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 389, 1128, 16, 982, 33, 7036, 16, 603, 67, 5688, 33, 7036, 4672, 309, 486, 365, 18, 3459, 30, 5011, 13164, 273, 22718, 18, 812, 17324, 6353, 12, 315, 4755, 7739, ...
rconn.default_namespace = ns
conn.default_namespace = ns
def _build(): yacc.yacc(optimize=_optimize, tabmodule=_tabmodule) lex.lex(optimize=_optimize, lextab=_lextab)
b57e4134d5c4d753ca79d65a4ed90aec65ad0ee7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10648/b57e4134d5c4d753ca79d65a4ed90aec65ad0ee7/mof_compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 13332, 677, 8981, 18, 93, 8981, 12, 29155, 33, 67, 29155, 16, 3246, 2978, 33, 67, 7032, 2978, 13, 5275, 18, 4149, 12, 29155, 33, 67, 29155, 16, 5275, 7032, 33, 67, 4149, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 13332, 677, 8981, 18, 93, 8981, 12, 29155, 33, 67, 29155, 16, 3246, 2978, 33, 67, 7032, 2978, 13, 5275, 18, 4149, 12, 29155, 33, 67, 29155, 16, 5275, 7032, 33, 67, 4149, 7...
self.canvasitems.append(self.gcomprisBoard.canvas.root().add(
self.canvasitems[2] = self.gcomprisBoard.canvas.root().add(
def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=1 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1 gcompris.bar_set(0) gcompris.set_background(self.gcomprisBoard.canvas.root(), gcompris.utils.image_to_skin("gcompris-bg.jpg")) gcompris.bar_set_level(self.gcomprisBoard) self....
1ef017537441d403ca0c1b0d728e9039535f9c3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/1ef017537441d403ca0c1b0d728e9039535f9c3c/pythontest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
self.staticsize(),w_value)
raise NotImplementedError()
def atput0(self, index0, w_value): index0 = index0 - self.staticsize() if index0 < 0: # XXX Do something useful with this.... we are not a block # of memory as smalltalk expects but wrapped in py-os self.staticsize(),w_value) else: self.setbyte(index0, chr(unwrap_int(w_value)))
efd3307739f627066d13db4ab7c889e8e4372ed1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/efd3307739f627066d13db4ab7c889e8e4372ed1/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 622, 458, 20, 12, 2890, 16, 770, 20, 16, 341, 67, 1132, 4672, 770, 20, 273, 770, 20, 300, 365, 18, 3845, 1467, 1435, 309, 770, 20, 411, 374, 30, 468, 11329, 2256, 5943, 5301, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 622, 458, 20, 12, 2890, 16, 770, 20, 16, 341, 67, 1132, 4672, 770, 20, 273, 770, 20, 300, 365, 18, 3845, 1467, 1435, 309, 770, 20, 411, 374, 30, 468, 11329, 2256, 5943, 5301, 598, ...
self.run_build(*args, **kw)
apply(self.run_build, args, kw)
def full(self, *args, **kw): """ Runs a full build of SCons. """ self.run_build(*args, **kw) sys.stdout.write(self.stdout()) print "RESULT", self.elapsed_time()
01bfcfff6c126006cebe54fad0d7e5b6b629524a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/01bfcfff6c126006cebe54fad0d7e5b6b629524a/TestSCons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1939, 87, 279, 1983, 1361, 434, 20487, 18, 3536, 282, 2230, 12, 2890, 18, 2681, 67, 3510, 16, 833, 16, 5323, 13, 2589, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1939, 87, 279, 1983, 1361, 434, 20487, 18, 3536, 282, 2230, 12, 2890, 18, 2681, 67, 3510, 16, 833, 16, 5323, 13, 2589, 18, ...
del obj.gwikiimage
if not self.format in ['svg', 'zgr']: del obj.gwikiimage
def gather_layout_data(self, outgraph): _ = self.request.getText
84ce3d6091441e123f8447a32dafb9bf088ed16b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/84ce3d6091441e123f8447a32dafb9bf088ed16b/ShowGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11090, 67, 6741, 67, 892, 12, 2890, 16, 596, 4660, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11090, 67, 6741, 67, 892, 12, 2890, 16, 596, 4660, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.__toolbox.requestInstall( mackage)
self.__toolbox.requestInstall( mackage )
def api_requestinstall(self, mackageName): self.__toolbox.requestInstall( mackage)
b4c91173f1505ceed7c40fdb288046530b1c5f24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/87/b4c91173f1505ceed7c40fdb288046530b1c5f24/toolbox_manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1536, 67, 2293, 5425, 12, 2890, 16, 312, 1270, 461, 4672, 365, 16186, 6738, 2147, 18, 2293, 6410, 12, 312, 1270, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1536, 67, 2293, 5425, 12, 2890, 16, 312, 1270, 461, 4672, 365, 16186, 6738, 2147, 18, 2293, 6410, 12, 312, 1270, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: browse_sage_doc(identity_matrix, 'rst')[-60:-5] 'MatrixSpace of 3 by 3 sparse matrices over Integer Ring'
sage: browse_sage_doc(identity_matrix, 'rst')[-107:-47] 'Full MatrixSpace of 3 by 3 sparse matrices over Integer Ring'
'def identity_matrix'
13b45511e0af2c2739a23d4319c407e77f7867ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/13b45511e0af2c2739a23d4319c407e77f7867ca/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 296, 536, 4215, 67, 5667, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 296, 536, 4215, 67, 5667, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if NAME_OR_ADDRESS: factory.domain = NAME_OR_ADDRESS
def _sendingMail(self, from_addr, to_addrs, messageText, deferred, testing=False): if __debug__: trace("_sendingMail")
58591ebf447b68a05d62b9040bd5d4a1ebc217e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/58591ebf447b68a05d62b9040bd5d4a1ebc217e1/smtp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 2846, 6759, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 883, 1528, 16, 7045, 16, 7769, 33, 8381, 4672, 309, 1001, 4148, 972, 30, 2606, 2932, 67, 87, 2846, 6759, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 87, 2846, 6759, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 883, 1528, 16, 7045, 16, 7769, 33, 8381, 4672, 309, 1001, 4148, 972, 30, 2606, 2932, 67, 87, 2846, 6759, 792...
for bin in bdeps: if pkgname not in bdeps[bin]: bdeps[bin][pkgname] = [] pset.add(tuple(bdeps[bin][pkgname]))
for barch in bdeps: if pkgname not in bdeps[barch]: bdeps[barch][pkgname] = [] pset.add(tuple(bdeps[barch][pkgname]))
def read_files(self): bdeps = dict() bprov = dict() for fname in self.files: bin = [x for x in fname.split('@') if x.startswith('binary-')][0][7:] if bin not in bdeps: bdeps[bin] = dict() bprov[bin] = dict() try: reader = gzip.GzipFile(fname) except: print("Failed to read file %s" % fname) raise Exception() continue fo...
fb209805adfc35c07e127215f4f828bd44151f00 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/fb209805adfc35c07e127215f4f828bd44151f00/Packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2354, 12, 2890, 4672, 324, 14877, 273, 2065, 1435, 324, 25529, 273, 2065, 1435, 364, 5299, 316, 365, 18, 2354, 30, 4158, 273, 306, 92, 364, 619, 316, 5299, 18, 4939, 2668, 36,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2354, 12, 2890, 4672, 324, 14877, 273, 2065, 1435, 324, 25529, 273, 2065, 1435, 364, 5299, 316, 365, 18, 2354, 30, 4158, 273, 306, 92, 364, 619, 316, 5299, 18, 4939, 2668, 36,...
self.assertTrue(fnmatch(filename, pattern),
self.assertTrue(fn(filename, pattern),
def check_match(self, filename, pattern, should_match=1): if should_match: self.assertTrue(fnmatch(filename, pattern), "expected %r to match pattern %r" % (filename, pattern)) else: self.assertTrue(not fnmatch(filename, pattern), "expected %r not to match pattern %r" % (filename, pattern))
6eedef60a28512007bf6f78072a197530a961b57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/6eedef60a28512007bf6f78072a197530a961b57/test_fnmatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1916, 12, 2890, 16, 1544, 16, 1936, 16, 1410, 67, 1916, 33, 21, 4672, 309, 1410, 67, 1916, 30, 365, 18, 11231, 5510, 12, 4293, 12, 3459, 16, 1936, 3631, 315, 3825, 738, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1916, 12, 2890, 16, 1544, 16, 1936, 16, 1410, 67, 1916, 33, 21, 4672, 309, 1410, 67, 1916, 30, 365, 18, 11231, 5510, 12, 4293, 12, 3459, 16, 1936, 3631, 315, 3825, 738, 86, ...
u"ENTCS document class lots of useful bug reports"),
u"ENTCS document class and lots of useful bug reports"),
def main(argv, contributers): if len(argv) != 4: error(usage(argv[0])) txt_credits_data = unicode(as_txt_credits(contributers)).encode("utf-8") txt_credits = open(argv[1], "w") txt_credits.write(txt_credits_data) php_credits_data = unicode(as_php_credits(contributers, argv[2])).encode("utf-8") php_credits = open(argv...
7b8fb46bf986715199c474f09b7936846e953903 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/7b8fb46bf986715199c474f09b7936846e953903/generate_contributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 16, 13608, 322, 414, 4672, 309, 562, 12, 19485, 13, 480, 1059, 30, 555, 12, 9167, 12, 19485, 63, 20, 22643, 225, 6463, 67, 20610, 1282, 67, 892, 273, 5252, 12, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 16, 13608, 322, 414, 4672, 309, 562, 12, 19485, 13, 480, 1059, 30, 555, 12, 9167, 12, 19485, 63, 20, 22643, 225, 6463, 67, 20610, 1282, 67, 892, 273, 5252, 12, 345, ...
if str(row.param).find("--trig-start-time") > 0: start = eval(row.value) else: if str(row.param).find("--gps-start-time") >= 0: start = eval(row.value) if str(row.param).find("--trig-end-time") > 0: end = eval(row.value) else: if str(row.param).find("--gps-end-time") >= 0: end = eval(row.value) try: if ( (end >= time[i...
if str(row.param).find("--trig-start-time") >= 0: trigStart = eval(row.value) if str(row.param).find("--gps-start-time") >= 0: gpsStart = eval(row.value) if str(row.param).find("--trig-end-time") >= 0: trigEnd = eval(row.value) if str(row.param).find("--gps-end-time") >= 0: gpsEnd = eval(row.value) if str(row.param).fi...
def getProcessParamsFromCache(self, subCache, time): process = self.ifoDict() for ifo in subCache: for f in subCache[ifo]: doc = utils.load_filename(f.path(),None) proc = table.get_table(doc, lsctables.ProcessParamsTable.tableName) for row in proc: if str(row.param).find("--trig-start-time") > 0: start = eval(row.value...
9d26e30ffe927662fb55a104f574405b61c52570 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/9d26e30ffe927662fb55a104f574405b61c52570/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18758, 1370, 19800, 12, 2890, 16, 720, 1649, 16, 813, 4672, 1207, 273, 365, 18, 20299, 5014, 1435, 364, 21479, 316, 720, 1649, 30, 364, 284, 316, 720, 1649, 63, 20299, 14542, 997, 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, 18758, 1370, 19800, 12, 2890, 16, 720, 1649, 16, 813, 4672, 1207, 273, 365, 18, 20299, 5014, 1435, 364, 21479, 316, 720, 1649, 30, 364, 284, 316, 720, 1649, 63, 20299, 14542, 997, 273, ...
self.UndoToken()
self.__UndoToken()
def __GetFv(self): if not self.__GetNextToken(): return False
a83bd801068d42d6c1460cf15ea4f6626d50d403 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/a83bd801068d42d6c1460cf15ea4f6626d50d403/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 42, 90, 12, 2890, 4672, 309, 486, 365, 16186, 967, 9399, 13332, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 42, 90, 12, 2890, 4672, 309, 486, 365, 16186, 967, 9399, 13332, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for viewId in collapseViews: print ">>> Collapsing view '%s'..." % viewId collapsePackage = viewPackages[viewId][0] replacePackages = viewPackages[viewId][1:] print " - Modifying other views..." for subViewId in viewDefs: subViewContent = viewPackages[subViewId]
if len(collapseViews) > 0: for viewId in collapseViews: print ">>> Collapsing view '%s'..." % viewId collapsePackage = viewPackages[viewId][0] replacePackages = viewPackages[viewId][1:] print " - Modifying other views..." for subViewId in viewDefs: subViewContent = viewPackages[subViewId]
def processViews(viewDefs, loadDeps, runDeps, collapseViews, outputFile): global classes # Build bitmask ids for views viewBits = {} viewPos = 0 for viewId in viewDefs: viewBits[viewId] = 1<<viewPos viewPos += 1 # Find all used classes # Used to reduce loop size for further iterations (not using huge 'classes') pri...
978820638d4273f641ce423ff1160600bf29af2f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/978820638d4273f641ce423ff1160600bf29af2f/generator2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9959, 12, 1945, 14554, 16, 1262, 14430, 16, 1086, 14430, 16, 13627, 9959, 16, 15047, 4672, 2552, 3318, 282, 468, 3998, 24941, 3258, 364, 7361, 1476, 6495, 273, 2618, 1476, 1616, 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, 1207, 9959, 12, 1945, 14554, 16, 1262, 14430, 16, 1086, 14430, 16, 13627, 9959, 16, 15047, 4672, 2552, 3318, 282, 468, 3998, 24941, 3258, 364, 7361, 1476, 6495, 273, 2618, 1476, 1616, 273,...
label='Indentation Width', orient='horizontal',
orient='horizontal',
def CreatePageFontTab(self): #tkVars self.fontSize=StringVar(self) self.fontBold=BooleanVar(self) self.fontName=StringVar(self) self.spaceNum=IntVar(self) self.editFont=tkFont.Font(self,('courier',10,'normal')) ##widget creation #body frame frame=self.tabPages.pages['Fonts/Tabs']['page'] #body section frames frameFont=...
cb3fac2e967e9ef77ede3f9945cfed8702f7e0a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb3fac2e967e9ef77ede3f9945cfed8702f7e0a5/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 5711, 5661, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 5776, 1225, 33, 780, 1537, 12, 2890, 13, 365, 18, 5776, 38, 1673, 33, 5507, 1537, 12, 2890, 13, 365, 18, 5776, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1964, 5711, 5661, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 5776, 1225, 33, 780, 1537, 12, 2890, 13, 365, 18, 5776, 38, 1673, 33, 5507, 1537, 12, 2890, 13, 365, 18, 5776, 461, ...
Makefile = Makefile + "rebuild:\tclean build\n\n"
def write_makefile(self, doc, dir): """ Writes a Makefile to convert the source files into DocBook XML. """
ad51c42b1827f009d63e90c1b2fa8ac6c853400b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/ad51c42b1827f009d63e90c1b2fa8ac6c853400b/Makefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 6540, 768, 12, 2890, 16, 997, 16, 1577, 4672, 3536, 30053, 279, 4344, 768, 358, 1765, 326, 1084, 1390, 1368, 3521, 9084, 3167, 18, 3536, 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, 1045, 67, 6540, 768, 12, 2890, 16, 997, 16, 1577, 4672, 3536, 30053, 279, 4344, 768, 358, 1765, 326, 1084, 1390, 1368, 3521, 9084, 3167, 18, 3536, 2, -100, -100, -100, -100, -100, -100, ...
if mode != "r": name = tarname
def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9): """Open gzip compressed tar archive name for reading or writing. Appending is not allowed. """ if len(mode) > 1 or mode not in "rw": raise ValueError, "mode must be 'r' or 'w'"
9b850531089902aff19bef8039dcf1d70a67da80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9b850531089902aff19bef8039dcf1d70a67da80/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14136, 3190, 12, 6429, 16, 508, 16, 1965, 1546, 86, 3113, 17041, 33, 7036, 16, 8099, 2815, 33, 29, 4672, 3536, 3678, 10331, 8968, 8232, 5052, 508, 364, 6453, 578, 7410, 18, 6181, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14136, 3190, 12, 6429, 16, 508, 16, 1965, 1546, 86, 3113, 17041, 33, 7036, 16, 8099, 2815, 33, 29, 4672, 3536, 3678, 10331, 8968, 8232, 5052, 508, 364, 6453, 578, 7410, 18, 6181, 310, ...
import os
def getuser(): """Get the username from the environment or password database. First try various environment variables, then the password database. This works on Windows as long as USERNAME is set. """ import os for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'): user = os.environ.get(name) if user: return user ...
310d052e02eead76db6c6bd52b9910335a7a167c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/310d052e02eead76db6c6bd52b9910335a7a167c/getpass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1355, 13332, 3536, 967, 326, 2718, 628, 326, 3330, 578, 2201, 2063, 18, 225, 5783, 775, 11191, 3330, 3152, 16, 1508, 326, 2201, 2063, 18, 225, 1220, 6330, 603, 8202, 487, 1525, 487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1355, 13332, 3536, 967, 326, 2718, 628, 326, 3330, 578, 2201, 2063, 18, 225, 5783, 775, 11191, 3330, 3152, 16, 1508, 326, 2201, 2063, 18, 225, 1220, 6330, 603, 8202, 487, 1525, 487,...
self.fields['times_available'].initial = [mt.short_description for mt in room.matching_times()] self.fields['furnishings'].initial = [f.res_type.name for f in room.associated_resources()]
self.fields['times_available'].initial = [mt.id for mt in room.matching_times()] self.fields['furnishings'].initial = [f.res_type.id for f in room.associated_resources()]
def load_classroom(self, program, room): self.fields['id'].initial = room.id self.fields['room_number'].initial = room.name self.fields['num_students'].initial = room.num_students self.fields['times_available'].initial = [mt.short_description for mt in room.matching_times()] self.fields['furnishings'].initial = [f.res_...
f3b5b7f97286580553bc413f4a464b43d8cd7ffc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/f3b5b7f97286580553bc413f4a464b43d8cd7ffc/resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1106, 13924, 12, 2890, 16, 5402, 16, 7725, 4672, 365, 18, 2821, 3292, 350, 29489, 6769, 273, 7725, 18, 350, 365, 18, 2821, 3292, 13924, 67, 2696, 29489, 6769, 273, 7725, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1106, 13924, 12, 2890, 16, 5402, 16, 7725, 4672, 365, 18, 2821, 3292, 350, 29489, 6769, 273, 7725, 18, 350, 365, 18, 2821, 3292, 13924, 67, 2696, 29489, 6769, 273, 7725, 18, ...