rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
sage: g = networkx.Graph({0:[1,2,3], 2:[5]}); g <networkx.base.Graph object at 0x9297870>
sage: g = networkx.Graph({0:[1,2,3], 2:[5]})
def __init__(self, data=None, pos=None, **kwds): """ Create a graph object. INPUT: data -- can be any of the following: 1. A NetworkX graph 2. A dictionary of dictionaries 3. A dictionary of lists 4. A numpy matrix or ndarray 5. A pygraphviz agraph 6. A scipy sparse matrix
2ebd36bafafb67bf005da138a71b9ce99d893add /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/2ebd36bafafb67bf005da138a71b9ce99d893add/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 2826, 25577, 4672, 3536, 1788, 279, 2667, 733, 18, 225, 12943, 30, 501, 1493, 848, 506, 1281, 434, 326, 3751, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 2826, 25577, 4672, 3536, 1788, 279, 2667, 733, 18, 225, 12943, 30, 501, 1493, 848, 506, 1281, 434, 326, 3751, 30, ...
return http.Response(stream = s)
return HTMLResponse(stream = s)
def render(self, ctx): if self.worksheet.owner() != self.username: s = message('You must be the owner of this worksheet to configure it.') else: s = notebook.html_worksheet_settings(self.worksheet, self.username) return http.Response(stream = s)
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 309, 365, 18, 1252, 8118, 18, 8443, 1435, 480, 365, 18, 5053, 30, 272, 273, 883, 2668, 6225, 1297, 506, 326, 3410, 434, 333, 13622, 358, 5068, 518, 1093...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 309, 365, 18, 1252, 8118, 18, 8443, 1435, 480, 365, 18, 5053, 30, 272, 273, 883, 2668, 6225, 1297, 506, 326, 3410, 434, 333, 13622, 358, 5068, 518, 1093...
[ 3 0 -1 0 -1 0 0 0 -1] [ 0 3 0 0 -1 0 -1 0 -1] [-1 0 2 0 0 0 0 -1 0] [ 0 0 0 3 0 -1 -1 0 -1] [-1 -1 0 0 2 0 0 0 0] [ 0 0 0 -1 0 2 0 -1 0] [ 0 -1 0 -1 0 0 2 0 0] [ 0 0 -1 0 0 -1 0 3 -1] [-1 -1 0 -1 0 0 0 -1 4] sage: M.determinant() 0 """ M = self.am()
[ 3 -1 -1 -1] [-1 2 -1 0] [-1 -1 2 0] [-1 0 0 1] """ if weighted: M = self.weighted_adjacency_matrix() else: M = self.am()
def kirchhoff_matrix(self): """ Returns the Kirchhoff matrix (a.k.a. the Laplacian) of the graph.
928e3f8dd0a83c7962a3f00f910838348623d97d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/928e3f8dd0a83c7962a3f00f910838348623d97d/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 481, 343, 76, 3674, 67, 5667, 12, 2890, 4672, 3536, 2860, 326, 1475, 481, 343, 76, 3674, 3148, 261, 69, 18, 79, 18, 69, 18, 326, 21072, 30538, 2779, 13, 434, 326, 2667, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 481, 343, 76, 3674, 67, 5667, 12, 2890, 4672, 3536, 2860, 326, 1475, 481, 343, 76, 3674, 3148, 261, 69, 18, 79, 18, 69, 18, 326, 21072, 30538, 2779, 13, 434, 326, 2667, 18, 2, ...
if self.debug > 0: print 'returning total energy' print nc.variables['TotalEnergy'][:]
def get_potential_energy(self,atoms=None,force_consistent=False): ''' return the potential energy. ''' if self.calculation_required(atoms): if self.debug > 0: print 'calculation required for energy' self.calculate() else: if self.debug > 0: print 'no calculation required for energy' nc = netCDF(self.get_nc(),'r') try:...
e111e7f7da49e775bf6f578ffb8369e435e7a68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e111e7f7da49e775bf6f578ffb8369e435e7a68c/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26451, 67, 15358, 12, 2890, 16, 14937, 33, 7036, 16, 5734, 67, 16952, 33, 8381, 4672, 9163, 327, 326, 8555, 12929, 18, 9163, 309, 365, 18, 29916, 67, 4718, 12, 14937, 4672, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26451, 67, 15358, 12, 2890, 16, 14937, 33, 7036, 16, 5734, 67, 16952, 33, 8381, 4672, 9163, 327, 326, 8555, 12929, 18, 9163, 309, 365, 18, 29916, 67, 4718, 12, 14937, 4672, 30...
create_results_log(results, logdir, missing, summary=summary, coverdir=coverdir) if counts_file: try: marshal.dump( (results.counts, results.modules), open(counts_file, 'wb')) except IOError, err: _err_exit("Cannot save counts file %s because: %s" % \ (`counts_file`, err)) elif report: old_counts, old_modules = marsh...
results.write_results(missing, summary=summary, coverdir=coverdir)
def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir=", "coverdir="]) except getopt.error, msg: print >> sys.stderr,...
dc6ad8d207ed136b6b1c7c8a4e6aa0c126e7bc61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dc6ad8d207ed136b6b1c7c8a4e6aa0c126e7bc61/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
""" Return the (path, rev, chg) tuple corresponding to the previous revision for that node.
"""Return the change event corresponding to the previous revision. This returns a `(path, rev, chg)` tuple.
def get_previous(self): """ Return the (path, rev, chg) tuple corresponding to the previous revision for that node. """ skip = True for p in self.get_history(2): if skip: skip = False else: return p
0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11515, 12, 2890, 4672, 3536, 990, 326, 2549, 871, 4656, 358, 326, 2416, 6350, 18, 225, 1220, 1135, 279, 1375, 12, 803, 16, 5588, 16, 462, 75, 22025, 3193, 18, 3536, 2488, 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, 336, 67, 11515, 12, 2890, 4672, 3536, 990, 326, 2549, 871, 4656, 358, 326, 2416, 6350, 18, 225, 1220, 1135, 279, 1375, 12, 803, 16, 5588, 16, 462, 75, 22025, 3193, 18, 3536, 2488, 273,...
configMode = config.Nims[slotid].configMode.value
configMode = nim.configMode.value
def getSatListForNim(self, slotid): list = [] if self.nim_slots[slotid].isCompatible("DVB-S"): #print "slotid:", slotid
c811a6c46840ab5901d08849eb2fc19acdf1baae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/c811a6c46840ab5901d08849eb2fc19acdf1baae/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 270, 682, 1290, 50, 381, 12, 2890, 16, 4694, 350, 4672, 666, 273, 5378, 309, 365, 18, 82, 381, 67, 18875, 63, 14194, 350, 8009, 291, 14599, 2932, 30199, 38, 17, 55, 6, 4672, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 270, 682, 1290, 50, 381, 12, 2890, 16, 4694, 350, 4672, 666, 273, 5378, 309, 365, 18, 82, 381, 67, 18875, 63, 14194, 350, 8009, 291, 14599, 2932, 30199, 38, 17, 55, 6, 4672, 46...
c = tk.Checkbutton(right_frame,text=str(44),variable=option12)
c = tk.Checkbutton(right_frame,text=str(44),variable=option13)
def validedChanges(): """Check for a least one selected kana portion (display of a message if not the case), catch parameters, then close the window.""" if not 1 in temp_list: tkMessageBox.showinfo(str(65),str(66))
3a6dad7a323fbc7f6f42fe577c64863117677d29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/3a6dad7a323fbc7f6f42fe577c64863117677d29/tkinter_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 13898, 7173, 13332, 3536, 1564, 364, 279, 4520, 1245, 3170, 417, 13848, 14769, 261, 5417, 434, 279, 883, 309, 486, 326, 648, 3631, 1044, 1472, 16, 1508, 1746, 326, 2742, 12123, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 13898, 7173, 13332, 3536, 1564, 364, 279, 4520, 1245, 3170, 417, 13848, 14769, 261, 5417, 434, 279, 883, 309, 486, 326, 648, 3631, 1044, 1472, 16, 1508, 1746, 326, 2742, 12123, 309, ...
sage: sr = mq.SR(1,2,1,4)
sage: sr = mq.SR(1, 2, 1, 4)
def SR(n=1,r=1,c=1,e=4, star=False, **kwargs): """ Return a small scale variant of the AES polynomial system constructor subject to the following conditions: INPUT: n -- the number of rounds (default: 1) r -- the number of rows in the state array (default: 1) c -- the number of columns in the state array (default: 1) ...
26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 86, 33, 21, 16, 71, 33, 21, 16, 73, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 3536, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, 2619, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 86, 33, 21, 16, 71, 33, 21, 16, 73, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 3536, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, 2619, 3...
@route("/datenspuren/(?P<id>([^/](?!(atom|json)))*)(?P<mode>/(comment|rate|reply))?")
@route("/datenspuren/(?P<id>([^/](?!(atom|json)))+)(?P<mode>/(comment|rate|reply))?")
def datenspur_file(web, id, filename, mode): try: # FIXME wrap db queries into one episode = Episode.find().filter_by(link = filename).\ filter(Episode.category.endswith(id)).\ order_by(Episode.date).one() comments = Comment.find().filter_by(episode = episode.id).all() files = File.find().filter_by(episode = episode...
8b496058f4e85c66a2fbd50bad220b4db1ba6243 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11349/8b496058f4e85c66a2fbd50bad220b4db1ba6243/routes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1150, 773, 12688, 67, 768, 12, 4875, 16, 612, 16, 1544, 16, 1965, 4672, 775, 30, 468, 9852, 2193, 1319, 6218, 1368, 1245, 17054, 273, 512, 84, 11802, 18, 4720, 7675, 2188, 67, 1637, 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, 1150, 773, 12688, 67, 768, 12, 4875, 16, 612, 16, 1544, 16, 1965, 4672, 775, 30, 468, 9852, 2193, 1319, 6218, 1368, 1245, 17054, 273, 512, 84, 11802, 18, 4720, 7675, 2188, 67, 1637, 12...
return(p) def read_PacketList(self): """return a PacketList() of all packets in the pcap file """ return PacketList(self.read_all(), self.filename)
return PacketList(res,name = os.path.basename(self.filename))
def read_all(self): """return a list of all packets in the pcap file """ res=[] p = self.read_packet() while p != None: res.append(p) return(p)
c8bb4ffbf1fe5b0fc994675b25b0d3a55bdab83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/c8bb4ffbf1fe5b0fc994675b25b0d3a55bdab83d/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 454, 12, 2890, 4672, 3536, 2463, 279, 666, 434, 777, 12640, 316, 326, 293, 5909, 585, 3536, 400, 33, 8526, 293, 273, 365, 18, 896, 67, 11482, 1435, 1323, 293, 480, 599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 454, 12, 2890, 4672, 3536, 2463, 279, 666, 434, 777, 12640, 316, 326, 293, 5909, 585, 3536, 400, 33, 8526, 293, 273, 365, 18, 896, 67, 11482, 1435, 1323, 293, 480, 599, 30, ...
extract_old_files(files, out_path)
self.extract_old_files(files, out_path)
def extract_files(self, out_path, files = None): if files is None: files = self.files if self.disc_type == 'adD': extract_old_files(files, out_path) elif self.disc_type == 'adE': extract_new_files(files, out_path) elif self.disc_type == 'adEbig': extract_new_files(files, out_path) else: extract_old_files(file...
25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3059/25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3/ADF2INF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 2354, 12, 2890, 16, 596, 67, 803, 16, 1390, 273, 599, 4672, 225, 309, 1390, 353, 599, 30, 225, 1390, 273, 365, 18, 2354, 225, 309, 365, 18, 2251, 71, 67, 723, 422, 296, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 2354, 12, 2890, 16, 596, 67, 803, 16, 1390, 273, 599, 4672, 225, 309, 1390, 353, 599, 30, 225, 1390, 273, 365, 18, 2354, 225, 309, 365, 18, 2251, 71, 67, 723, 422, 296, 3...
'~/gangadir/robot/report/${runid}.txt',
'~/gangadir_robot/robot/report/${runid}.txt',
def _initconfig(): config=Ganga.Utility.Config.makeConfig('Robot','Parameters for the Robot to run repetitive tests',is_open=True) config.addOption('Driver_Run',['submit', 20, 'finish', 'extract', 'report'], 'List of action names and sleep periods (seconds)') config.addOption('Driver_Repeat',False, 'boolean indicating...
0f49cad3a2f03a9d7a8890adee85e27f34516cdd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/0f49cad3a2f03a9d7a8890adee85e27f34516cdd/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 1425, 13332, 642, 33, 43, 539, 69, 18, 6497, 18, 809, 18, 6540, 809, 2668, 20605, 17023, 2402, 364, 326, 19686, 352, 358, 1086, 22265, 3720, 7434, 2187, 291, 67, 3190, 33, 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, 389, 2738, 1425, 13332, 642, 33, 43, 539, 69, 18, 6497, 18, 809, 18, 6540, 809, 2668, 20605, 17023, 2402, 364, 326, 19686, 352, 358, 1086, 22265, 3720, 7434, 2187, 291, 67, 3190, 33, 5...
def reset (self):
def reset (self, **kw):
def reset (self): """Reset this instance to the state it was when created.
20892067b88dfe8ab7683ea413a981c7c20fff77 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/20892067b88dfe8ab7683ea413a981c7c20fff77/domutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 261, 2890, 16, 2826, 9987, 4672, 3536, 7013, 333, 791, 358, 326, 919, 518, 1703, 1347, 2522, 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, 2715, 261, 2890, 16, 2826, 9987, 4672, 3536, 7013, 333, 791, 358, 326, 919, 518, 1703, 1347, 2522, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
context={'language': req_user.language.code}),
context={'language': req_user.language and \ req_user.language.code or "en_US"}),
def _callback(self, cursor, cron): try: args = (cron['args'] or []) and eval(cron['args']) obj = self.pool.get(cron['model']) if not obj and hasattr(obj, cron['function']): return False fct = getattr(obj, cron['function']) fct(cursor, cron['user'], *args) except Exception, error: cursor.rollback()
bc56bf47f3ba62d60e43ead2354144a6b63ee70d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/bc56bf47f3ba62d60e43ead2354144a6b63ee70d/cron.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3394, 12, 2890, 16, 3347, 16, 9998, 4672, 775, 30, 833, 273, 261, 18041, 3292, 1968, 3546, 578, 5378, 13, 471, 5302, 12, 18041, 3292, 1968, 19486, 1081, 273, 365, 18, 6011, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3394, 12, 2890, 16, 3347, 16, 9998, 4672, 775, 30, 833, 273, 261, 18041, 3292, 1968, 3546, 578, 5378, 13, 471, 5302, 12, 18041, 3292, 1968, 19486, 1081, 273, 365, 18, 6011, 18, 58...
if nText!='' and nText[0]!=' ':
if (nText!='' and nText[0]!=' ') or hasattr(f,'cbDefn'):
def breakLines(self, width): """ Returns a broken line structure. There are two cases A) For the simple case of a single formatting input fragment the output is A fragment specifier with kind = 0 fontName, fontSize, leading, textColor lines= A list of lines Each line has two items. 1) unused width in points 2) word li...
e1c823dc115a67670281d6b96de3035f53bf7b2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/e1c823dc115a67670281d6b96de3035f53bf7b2a/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 898, 5763, 12, 2890, 16, 1835, 4672, 3536, 2860, 279, 12933, 980, 3695, 18, 6149, 854, 2795, 6088, 225, 432, 13, 2457, 326, 4143, 648, 434, 279, 2202, 10407, 810, 5481, 326, 876, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 898, 5763, 12, 2890, 16, 1835, 4672, 3536, 2860, 279, 12933, 980, 3695, 18, 6149, 854, 2795, 6088, 225, 432, 13, 2457, 326, 4143, 648, 434, 279, 2202, 10407, 810, 5481, 326, 876, 353, ...
_logger.debug("set cloud for %s" % job.taskID)
_logger.debug("%s set cloud for %s" % (self.timestamp,job.taskID))
def _correctLFN(self): lfnMap = {} valMap = {} prodError = {} missingDS = {} jobsWaiting = [] jobsFailed = [] jobsProcessed = [] allLFNs = {} allGUIDs = {} cloudMap = {} replicaMap = {} for job in self.jobs: if self.onlyTA: _logger.debug("%s start TA session %s" % (self.timestamp,job.taskID)) # check if sitename ...
4e25ff459b78e50b61ea2614281204d0c39c6fc9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7525/4e25ff459b78e50b61ea2614281204d0c39c6fc9/Setupper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6746, 9105, 50, 12, 2890, 4672, 328, 4293, 863, 273, 2618, 1244, 863, 273, 2618, 10791, 668, 273, 2618, 3315, 3948, 273, 2618, 6550, 15946, 282, 273, 5378, 6550, 2925, 565, 273, 537...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6746, 9105, 50, 12, 2890, 4672, 328, 4293, 863, 273, 2618, 1244, 863, 273, 2618, 10791, 668, 273, 2618, 3315, 3948, 273, 2618, 6550, 15946, 282, 273, 5378, 6550, 2925, 565, 273, 537...
self.make_main() self.make_osname()
self.make_main() self.make_osname()
def make_initial_modules(self):
b9c951d8cedeec531cce217b5117b5d471b1e468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b9c951d8cedeec531cce217b5117b5d471b1e468/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 6769, 67, 6400, 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, ...
[ 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, 1221, 67, 6769, 67, 6400, 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,...
m = re.search("\.ctors\s+PROGBITS\s+[0-9a-f]+\s+[0-9a-f]+\s+([0-9a-f]+)", line) if m: return int(m.group(1), 16)
f = line.split() if len(f) != 11: continue if f[1] == ".ctors" and f[2] == "PROGBITS": return int(f[5], 16) / int(f[10]) - 2; if f[1] == ".init_array" and f[2] == "PROGBITS": return int(f[5], 16) / int(f[10]);
def count_ctors(filename): proc = subprocess.Popen(['readelf', '-W', '-S', filename], stdout=subprocess.PIPE) for line in proc.stdout: m = re.search("\.ctors\s+PROGBITS\s+[0-9a-f]+\s+[0-9a-f]+\s+([0-9a-f]+)", line) if m: return int(m.group(1), 16)
d60250658edf4863271766fbb3f5b0fc984d3369 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/d60250658edf4863271766fbb3f5b0fc984d3369/count_ctors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 67, 299, 1383, 12, 3459, 4672, 5418, 273, 6652, 18, 52, 3190, 12, 3292, 896, 19079, 2187, 2400, 59, 2187, 2400, 55, 2187, 1544, 6487, 3909, 33, 1717, 2567, 18, 27602, 13, 225, 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, 1056, 67, 299, 1383, 12, 3459, 4672, 5418, 273, 6652, 18, 52, 3190, 12, 3292, 896, 19079, 2187, 2400, 59, 2187, 2400, 55, 2187, 1544, 6487, 3909, 33, 1717, 2567, 18, 27602, 13, 225, 36...
GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC)
gtk.ScrolledWindow.__init__ (self) self.set_policy (gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know...
ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3419, 16, 595, 4672, 3536, 11417, 18, 3536, 22718, 18, 1541, 25054, 3829, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 67, 5086, 261, 4521, 79, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3419, 16, 595, 4672, 3536, 11417, 18, 3536, 22718, 18, 1541, 25054, 3829, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 67, 5086, 261, 4521, 79, 18, 26...
print "warning: getItemIndexForItemID: item not found!"
self.notify.warning("getItemIndexForItemID: item not found!")
def getItemIndexForItemID(self, itemID): assert self.notify.debugStateCall(self) #for i in range(len(self["items"])): # print "buttontext[", i,"]", self["items"][i]["text"]
920a7f21df18e5c883bde48bca63565ecae09673 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/920a7f21df18e5c883bde48bca63565ecae09673/DirectScrolledList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8143, 1016, 1290, 1180, 734, 12, 2890, 16, 761, 734, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 468, 1884, 277, 316, 1048, 12, 1897, 12, 2890, 9614, 3319, 11929, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8143, 1016, 1290, 1180, 734, 12, 2890, 16, 761, 734, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 468, 1884, 277, 316, 1048, 12, 1897, 12, 2890, 9614, 3319, 11929, 3...
totalAvg = (totalcpu/totaltime)
def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: return # Increment total time totaltime += elapsedtime # Increment CPU use if ((tota...
7ff0ca7b57e36cdb016614eadef35a451a1870ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7995/7ff0ca7b57e36cdb016614eadef35a451a1870ef/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 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, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
res = self.db.seManager.findSE(seName)
res = self.db.seManager.findSE( seName )
def removeFile(self,lfns,connection=False): connection = self._getConnection(connection) """ Remove file from the catalog """ successful = {} failed = {} res = self._findFiles(lfns,['DirID','FileID','Size'],connection=connection) successful = {} for lfn,error in res['Value']['Failed'].items(): if error == 'No such file...
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 3581, 585, 628, 326, 6222, 3536, 6873, 273, 2618, 2535, 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, 1206, 812, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 3581, 585, 628, 326, 6222, 3536, 6873, 273, 2618, 2535, 273, 2618, ...
try: l = poller.wait(len(selectables), timeout) except select.error, e: if e[0] == errno.EINTR: return else: raise
l = poller.wait(len(selectables), timeout)
def doPoll(self, timeout, reads=reads, writes=writes, selectables=selectables, select=select, log=log): """Poll the poller for new events.""" if timeout is None: timeout = 1000 else: timeout = int(timeout * 1000) # convert seconds to milliseconds
69b415ae585525f317df67e24d75e098005da1a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/69b415ae585525f317df67e24d75e098005da1a1/epollreactor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 19085, 12, 2890, 16, 2021, 16, 6838, 33, 11904, 16, 7262, 33, 13284, 16, 2027, 1538, 33, 4025, 1538, 16, 2027, 33, 4025, 16, 613, 33, 1330, 4672, 3536, 19085, 326, 24525, 364, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 19085, 12, 2890, 16, 2021, 16, 6838, 33, 11904, 16, 7262, 33, 13284, 16, 2027, 1538, 33, 4025, 1538, 16, 2027, 33, 4025, 16, 613, 33, 1330, 4672, 3536, 19085, 326, 24525, 364, 394...
if (var_visible != VISIBLE_BARREL_ONLY) { // (Never VISIBLE_NOTHING here.)
if (//false && /// May skip the endcap entirely to see just the barrel. visibility_type != VISIBLE_BARREL_ONLY) { // (Never VISIBLE_NOTHING here.)
#ifdef N_CONST_XFORMS // Get transforms from a fixed-sized block of uniform (constant) memory. // The GL_EXT_bindable_uniform extension allows sharing this through a VBO. for (i = 0; i <= 1; i++) endpts[i] = transforms[int(transform_id)] * endpts[i];
1bbb39314caa7d2a53dada43541c0768abeeb445 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11221/1bbb39314caa7d2a53dada43541c0768abeeb445/cylinder_shader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 423, 67, 26411, 67, 60, 4983, 55, 368, 968, 13680, 628, 279, 5499, 17, 87, 1235, 1203, 434, 10823, 261, 14384, 13, 3778, 18, 368, 1021, 10252, 67, 4142, 67, 4376, 429, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 423, 67, 26411, 67, 60, 4983, 55, 368, 968, 13680, 628, 279, 5499, 17, 87, 1235, 1203, 434, 10823, 261, 14384, 13, 3778, 18, 368, 1021, 10252, 67, 4142, 67, 4376, 429, 67, 2...
res = self.__getFileReplicas(fileIDs.keys(),allStatus=allStatus,connection=connection)
res = self.__getFileReplicas( fileIDs.keys(), allStatus = allStatus, connection = connection )
def getReplicas(self,lfns,allStatus=False,connection=False): """ Get replicas for the files specified by the lfn list """ gLogger.info("TransformationDB.getReplicas: Attempting to get replicas for %s files." % len(lfns)) connection = self.__getConnection(connection) res = self.__getFileIDsForLfns(lfns,connection=connec...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 10528, 12, 2890, 16, 20850, 2387, 16, 454, 1482, 33, 8381, 16, 4071, 33, 8381, 4672, 3536, 968, 21545, 364, 326, 1390, 1269, 635, 326, 328, 4293, 666, 3536, 314, 3328, 18, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 10528, 12, 2890, 16, 20850, 2387, 16, 454, 1482, 33, 8381, 16, 4071, 33, 8381, 4672, 3536, 968, 21545, 364, 326, 1390, 1269, 635, 326, 328, 4293, 666, 3536, 314, 3328, 18, 1376, ...
env['ENV']['DOX_DOT_PATH'] = dot
env['ENV']['DOX_DOT_PATH'] = os.path.split(dot)[0]
def result(self, deps_results=True): prj = self env = self.env
e82e4e37224123647eb970a55552a035bf52fb71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/e82e4e37224123647eb970a55552a035bf52fb71/doxygenproject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 12, 2890, 16, 8740, 67, 4717, 33, 5510, 4672, 27378, 273, 365, 1550, 273, 365, 18, 3074, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 563, 12, 2890, 16, 8740, 67, 4717, 33, 5510, 4672, 27378, 273, 365, 1550, 273, 365, 18, 3074, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
parts = ['..'] * (len(source_parts) - 1) + target_parts
parts = ['..'] * len(source_parts) + target_parts
def relative_path(source, target): """ Build and return a path to `target`, relative to `source`. If there is no common prefix, return the absolute path to `target`. """ source_parts = os.path.abspath(source or '').split(os.sep) target_parts = os.path.abspath(target).split(os.sep) # Check first 2 parts because '/dir'....
c671dae11dd30e5905773560da977c13315a40aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/c671dae11dd30e5905773560da977c13315a40aa/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3632, 67, 803, 12, 3168, 16, 1018, 4672, 3536, 3998, 471, 327, 279, 589, 358, 1375, 3299, 9191, 3632, 358, 1375, 3168, 8338, 225, 971, 1915, 353, 1158, 2975, 1633, 16, 327, 326, 4967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3632, 67, 803, 12, 3168, 16, 1018, 4672, 3536, 3998, 471, 327, 279, 589, 358, 1375, 3299, 9191, 3632, 358, 1375, 3168, 8338, 225, 971, 1915, 353, 1158, 2975, 1633, 16, 327, 326, 4967, ...
parser.add_option("-u", "--username", dest="username", default=None, help="The username to be used when connecting.", metavar="<username>")
parser.add_option("-u", "--username", dest="username", default=username, help="The username to be used when connecting.", metavar="<username>")
def main(): """Main program function: Grabs command-line arguments, starts up threads, and runs the program.""" # Grab command line arguments and the command to run (if any) usage = 'usage: %prog [options] "[command1]" "[command2]" ...' parser = OptionParser(usage=usage, version=__version__) parser.disable_interspers...
bbbaae0cb282baab885b674fec3ce3757842a85d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11566/bbbaae0cb282baab885b674fec3ce3757842a85d/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 445, 30, 225, 10812, 2038, 1296, 17, 1369, 1775, 16, 2542, 731, 7403, 16, 471, 7597, 326, 5402, 12123, 225, 468, 17150, 1296, 980, 1775, 471, 326, 1296, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 445, 30, 225, 10812, 2038, 1296, 17, 1369, 1775, 16, 2542, 731, 7403, 16, 471, 7597, 326, 5402, 12123, 225, 468, 17150, 1296, 980, 1775, 471, 326, 1296, 35...
^ \s* \d+ \.? \s+ (-?Mat\d+ | [-\d\.]+) \s+ [\d\.]+ \s+ [\d\.]+ \s+ (.+) \s* $
^ \s* \d+ [+\-\.]? \s+ (-?Mat\s*\d+ | [-\d\.]+) \s+ [\d\.]+ \s+ [\d\.]+ \s+ (.+) \s* $
def isdigits (strings): for s in strings: s = s.replace(".","") if s.startswith("-"): if not s[1:].isdigit(): return False else: if not s.isdigit(): return False return True
f1b90bd91b98b61b4ae44a534251bf927d8fdf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/f1b90bd91b98b61b4ae44a534251bf927d8fdf28/CECPEngine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 16649, 261, 10219, 4672, 364, 272, 316, 2064, 30, 272, 273, 272, 18, 2079, 2932, 1199, 16, 3660, 13, 309, 272, 18, 17514, 1918, 2932, 10951, 4672, 309, 486, 272, 63, 21, 30, 8009,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 16649, 261, 10219, 4672, 364, 272, 316, 2064, 30, 272, 273, 272, 18, 2079, 2932, 1199, 16, 3660, 13, 309, 272, 18, 17514, 1918, 2932, 10951, 4672, 309, 486, 272, 63, 21, 30, 8009,...
self._handle = handle
self._handle = handle
def __init__(self, handle=None, colwidth=15, maxwidth=80): """TaggingConsumer(handle=sys.stdout, colwidth=15, maxwidth=80)""" # I can't assign sys.stdout to handle in the argument list. # If I do that, handle will be assigned the value of sys.stdout # the first time this function is called. This will fail if # the use...
68f69ea2c3788fd96c3354b61da3b387e196046b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/68f69ea2c3788fd96c3354b61da3b387e196046b/ParserSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 33, 7036, 16, 645, 2819, 33, 3600, 16, 943, 2819, 33, 3672, 4672, 3536, 1805, 1998, 5869, 12, 4110, 33, 9499, 18, 10283, 16, 645, 2819, 33, 3600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 33, 7036, 16, 645, 2819, 33, 3600, 16, 943, 2819, 33, 3672, 4672, 3536, 1805, 1998, 5869, 12, 4110, 33, 9499, 18, 10283, 16, 645, 2819, 33, 3600, ...
categories=element.tags,
categories=element.tags if hasattr(element, "tags") else None,
def generate_feed(self, elements, context, filename=None, feed_type='atom'): """Generate a feed with the list of articles provided
3b7c546136d6987414e8d93804de18b5e86810e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14457/3b7c546136d6987414e8d93804de18b5e86810e5/generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 7848, 12, 2890, 16, 2186, 16, 819, 16, 1544, 33, 7036, 16, 4746, 67, 723, 2218, 7466, 11, 4672, 3536, 4625, 279, 4746, 598, 326, 666, 434, 15828, 2112, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 7848, 12, 2890, 16, 2186, 16, 819, 16, 1544, 33, 7036, 16, 4746, 67, 723, 2218, 7466, 11, 4672, 3536, 4625, 279, 4746, 598, 326, 666, 434, 15828, 2112, 2, -100, -100, -100, ...
text=expandItemText(infoDOM,textnode.attributes["value"].value, itemnum, page, itemsonthispage,chapternumber,chapterlist) textImage=Image.new("RGBA",picture.size) textDraw=ImageDraw.Draw(textImage) if text>"": paintText(textDraw,
text = expandItemText(infoDOM,textnode.attributes["value"].value, itemnum, page, itemsonthispage,chapternumber,chapterlist) textImage = Image.new("RGBA",picture.size) textDraw = ImageDraw.Draw(textImage) if text > "": paintText(textDraw, textImage,
def drawThemeItem(page, itemsonthispage, itemnum, menuitem, bgimage, draw, bgimagemask, drawmask, highlightcolor, spumuxdom, spunode, numberofitems, chapternumber, chapterlist): """Draws text and graphics onto a dvd menu, called by createMenu and createChapterMenu""" #Get the XML containing information about this item ...
c82d8a0c4a33fc669861191621297cdbb83d3d9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/c82d8a0c4a33fc669861191621297cdbb83d3d9b/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 8335, 1180, 12, 2433, 16, 761, 816, 2211, 2433, 16, 761, 2107, 16, 3824, 1726, 16, 7611, 2730, 16, 3724, 16, 7611, 15374, 351, 835, 16, 3724, 4455, 16, 8839, 3266, 16, 1694, 379,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 8335, 1180, 12, 2433, 16, 761, 816, 2211, 2433, 16, 761, 2107, 16, 3824, 1726, 16, 7611, 2730, 16, 3724, 16, 7611, 15374, 351, 835, 16, 3724, 4455, 16, 8839, 3266, 16, 1694, 379,...
try: self.imagePathsByKey.sync() except RuntimeError, re: pass
def getPosters(self, program): posters = [] key = self.createKey('getPosters', program) if key in self.imagePathsByKey: posters = self.imagePathsByKey[key] if not posters and self.nextProvider: posters = self.nextProvider.getPosters(program) if posters: # cache returned poster self.imagePathsByKey[key] = posters # TO...
1b57f163bd86bf1c476bb381e338779085973d19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12279/1b57f163bd86bf1c476bb381e338779085973d19/fanart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14150, 414, 12, 2890, 16, 5402, 4672, 1603, 414, 273, 5378, 498, 273, 365, 18, 2640, 653, 2668, 588, 3349, 414, 2187, 5402, 13, 309, 498, 316, 365, 18, 2730, 4466, 14560, 30, 1603, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14150, 414, 12, 2890, 16, 5402, 4672, 1603, 414, 273, 5378, 498, 273, 365, 18, 2640, 653, 2668, 588, 3349, 414, 2187, 5402, 13, 309, 498, 316, 365, 18, 2730, 4466, 14560, 30, 1603, 414...
self.__CheckExit()
pass
def __HandlePipeClosed(self, _): """Called when I/O pipe to process is closed.
7bf65bd4973515660943e355acab20a63a2e0e66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5330/7bf65bd4973515660943e355acab20a63a2e0e66/daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3259, 11546, 7395, 12, 2890, 16, 389, 4672, 3536, 8185, 1347, 467, 19, 51, 6010, 358, 1207, 353, 4375, 18, 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, 1001, 3259, 11546, 7395, 12, 2890, 16, 389, 4672, 3536, 8185, 1347, 467, 19, 51, 6010, 358, 1207, 353, 4375, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if os.path.isdir(os.path.join(base_dir, d)) and \ d not in ignore: dirs.append(os.path.join(base_dir, d)) dirs.sort(mtime_sort)
if d in ignore: continue p = os.path.join(base_dir, d) if not os.path.isdir(p): continue mtime = os.path.getmtime(p) dirs.append( (mtime, p) )
def purge(base_dirs, gigs, ignore, dry_run=False): """Delete directories under `base_dirs` until `gigs` GB are free Will not delete directories listed in the ignore list.""" gigs *= 1024 * 1024 * 1024 if freespace(base_dirs[0]) >= gigs: return dirs = [] for base_dir in base_dirs: if os.path.exists(base_dir): for d i...
840d2588455f3e57400ead43648bc5ee7a196968 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/840d2588455f3e57400ead43648bc5ee7a196968/purge_builds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 1969, 67, 8291, 16, 314, 360, 87, 16, 2305, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 2613, 6402, 3613, 1375, 1969, 67, 8291, 68, 3180, 1375, 75, 360, 87, 68, 25069, 854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 1969, 67, 8291, 16, 314, 360, 87, 16, 2305, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 2613, 6402, 3613, 1375, 1969, 67, 8291, 68, 3180, 1375, 75, 360, 87, 68, 25069, 854, ...
sr.showMsg("Taking test exposure at focus %.0f %sm" % \ (focPos, RO.StringUtil.MuStr))
sr.showMsg("Taking test exposure at focus %0.0f %s" % \ (focPos, MicronStr))
def run(self, sr): """Take the series of focus exposures. """ self.initAll() # open slitviewer window if self.imageViewerTLName: self.tuiModel.tlSet.makeVisible(self.imageViewerTLName) self.sr.master.winfo_toplevel().lift() # fake data for debug mode # iteration #, FWHM self.debugIterFWHM = (1, 2.0) self.getInstInfo...
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, 1086, 12, 2890, 16, 9133, 4672, 3536, 13391, 326, 4166, 434, 7155, 431, 917, 1823, 18, 3536, 365, 18, 2738, 1595, 1435, 225, 468, 1696, 2020, 305, 25256, 2742, 309, 365, 18, 2730, 18415,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 9133, 4672, 3536, 13391, 326, 4166, 434, 7155, 431, 917, 1823, 18, 3536, 365, 18, 2738, 1595, 1435, 225, 468, 1696, 2020, 305, 25256, 2742, 309, 365, 18, 2730, 18415,...
path = get_example_path() os.chdir(path)
def test_simulation_with_algebraic_variables(self): """Run a simulation with a model with algebraic variables""" path = get_example_path() os.chdir(path)
2ddcc83dfd83d78f91307a8c14edc98fc9c1ea0a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/2ddcc83dfd83d78f91307a8c14edc98fc9c1ea0a/test_sundials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9812, 6234, 67, 1918, 67, 287, 29087, 335, 67, 7528, 12, 2890, 4672, 3536, 1997, 279, 14754, 598, 279, 938, 598, 524, 29087, 335, 3152, 8395, 589, 273, 336, 67, 8236, 67, 803...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 9812, 6234, 67, 1918, 67, 287, 29087, 335, 67, 7528, 12, 2890, 4672, 3536, 1997, 279, 14754, 598, 279, 938, 598, 524, 29087, 335, 3152, 8395, 589, 273, 336, 67, 8236, 67, 803...
sequence2ast(tree)
parser.sequence2ast(tree)
def check_bad_tree(tree, label): print print label try: sequence2ast(tree) except parser.ParserError: print "caught expected exception for invalid tree" pass else: print "test failed: did not properly detect invalid tree:" pprint.pprint(tree)
5f08a0aae00652b1d3df57237760c23a0aae4c16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5f08a0aae00652b1d3df57237760c23a0aae4c16/test_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 8759, 67, 3413, 12, 3413, 16, 1433, 4672, 1172, 1172, 1433, 775, 30, 2082, 18, 6178, 22, 689, 12, 3413, 13, 1335, 2082, 18, 2678, 668, 30, 1172, 315, 27611, 2665, 1520, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 8759, 67, 3413, 12, 3413, 16, 1433, 4672, 1172, 1172, 1433, 775, 30, 2082, 18, 6178, 22, 689, 12, 3413, 13, 1335, 2082, 18, 2678, 668, 30, 1172, 315, 27611, 2665, 1520, 364, ...
if 'default-list' not in self._preso._styles_added: self._preso._styles_added['default-list'] = 1
style = bl.style_name if style not in self._preso._styles_added: self._preso._styles_added[style] = 1
def add_bullet_list(self, bl): """ note that this pushes the cur_element, but doesn't pop it. You'll need to do that """ # text:list doesn't like being a child of text:p if self.cur_element is None: self.add_text_frame() self.push_element() self.cur_element.node.attrib['presentation:class'] = 'outline' self.cur_element...
dd47297f38aa72cafcca6d091006423d6973c407 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/dd47297f38aa72cafcca6d091006423d6973c407/preso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 70, 19994, 67, 1098, 12, 2890, 16, 2811, 4672, 3536, 4721, 716, 333, 27351, 326, 662, 67, 2956, 16, 1496, 3302, 1404, 1843, 518, 18, 4554, 5614, 1608, 358, 741, 716, 3536, 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, 527, 67, 70, 19994, 67, 1098, 12, 2890, 16, 2811, 4672, 3536, 4721, 716, 333, 27351, 326, 662, 67, 2956, 16, 1496, 3302, 1404, 1843, 518, 18, 4554, 5614, 1608, 358, 741, 716, 3536, 468...
class WrappingOptionMenu (GtkButton): """ Something that looks similar to a GtkOptionMenu ...
class WrappingOptionMenu (gtk.Button): """ Something that looks similar to a gtk.OptionMenu ...
def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack_st...
ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1433, 16, 31455, 33, 46, 5996, 12096, 67, 10066, 16, 2193, 33, 18724, 16, 1835, 33, 20, 16, 2072, 33, 20, 4672, 3536, 11417, 18, 3536, 22132, 1564, 3616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 1433, 16, 31455, 33, 46, 5996, 12096, 67, 10066, 16, 2193, 33, 18724, 16, 1835, 33, 20, 16, 2072, 33, 20, 4672, 3536, 11417, 18, 3536, 22132, 1564, 3616...
self.client = HgWebClient(repository.path)
self.client = HgWebClient(repository.path, repository.username, repository.password)
def __init__(self, repository): SCMTool.__init__(self, repository) if repository.path.startswith('http'): self.client = HgWebClient(repository.path) else: self.client = HgClient(repository.path)
8ecb712c6b259fedef8b6a85171331d9edc4bf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/8ecb712c6b259fedef8b6a85171331d9edc4bf5f/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3352, 4672, 8795, 49, 6364, 16186, 2738, 972, 12, 2890, 16, 3352, 13, 309, 3352, 18, 803, 18, 17514, 1918, 2668, 2505, 11, 4672, 365, 18, 2625, 273, 670,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3352, 4672, 8795, 49, 6364, 16186, 2738, 972, 12, 2890, 16, 3352, 13, 309, 3352, 18, 803, 18, 17514, 1918, 2668, 2505, 11, 4672, 365, 18, 2625, 273, 670,...
return with_mode(NO_CONVERSION, r.do_call)('rbind', mat)
return r.do_call('rbind', mat)
def rmatrix(mat): ''' VERY IMPORTANT convert a Python 2d list to r matrix format that can be passed to functions like image directly. ''' return with_mode(NO_CONVERSION, r.do_call)('rbind', mat)
0731ae08adccf41d053f6aa3359994cd77496a34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/0731ae08adccf41d053f6aa3359994cd77496a34/simuRPy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 5667, 12, 7373, 4672, 9163, 6422, 61, 21840, 6856, 1765, 279, 6600, 576, 72, 666, 358, 436, 3148, 740, 716, 848, 506, 2275, 358, 4186, 3007, 1316, 5122, 18, 9163, 225, 327, 436, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 436, 5667, 12, 7373, 4672, 9163, 6422, 61, 21840, 6856, 1765, 279, 6600, 576, 72, 666, 358, 436, 3148, 740, 716, 848, 506, 2275, 358, 4186, 3007, 1316, 5122, 18, 9163, 225, 327, 436, 1...
if H<=maxHeight:
if H<=maxHeight-_FUZZ:
def func(x): W, H = _listWrapOn(self._content,x*availWidth,self.canv) W /= x H /= x return W, H
026f7cbb1263946fbcc0b345557c6f44c85e0949 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/026f7cbb1263946fbcc0b345557c6f44c85e0949/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 12, 92, 4672, 678, 16, 670, 273, 389, 1098, 2964, 1398, 12, 2890, 6315, 1745, 16, 92, 14, 842, 671, 2384, 16, 2890, 18, 4169, 90, 13, 678, 9531, 619, 670, 9531, 619, 327, 678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1326, 12, 92, 4672, 678, 16, 670, 273, 389, 1098, 2964, 1398, 12, 2890, 6315, 1745, 16, 92, 14, 842, 671, 2384, 16, 2890, 18, 4169, 90, 13, 678, 9531, 619, 670, 9531, 619, 327, 678, ...
if hdrtype < Header.SEPARATOR:
time0 = header.time if hdrtype < Header.SEPARATOR:
def parseMessages(self): '''Parses complete messages until connection closed. Raises ConnectionLost exception.''' CHANNEL_MASK = 0x3F while True: hdrsize = ord((yield self.stream.read(1))[0]) # read header size byte channel = hdrsize & CHANNEL_MASK if channel == 0: # we need one more byte # if _debug: print 'need one ...
210091ee02f88f01bb87e064716a0c59d2356c04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10498/210091ee02f88f01bb87e064716a0c59d2356c04/rtmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 5058, 12, 2890, 4672, 9163, 6656, 3912, 2743, 3180, 1459, 4375, 18, 20497, 4050, 19024, 1520, 1093, 6309, 27417, 67, 11704, 273, 374, 92, 23, 42, 1323, 1053, 30, 7723, 1467, 273, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 5058, 12, 2890, 4672, 9163, 6656, 3912, 2743, 3180, 1459, 4375, 18, 20497, 4050, 19024, 1520, 1093, 6309, 27417, 67, 11704, 273, 374, 92, 23, 42, 1323, 1053, 30, 7723, 1467, 273, 4...
try:
if isinstance(obj, gdk.Pixbuf):
def __init__(self, obj, mipmap_level=0): try: obj = helpers.gdkpixbuf2numpy(obj) except: # it was already an array (eg. when creating the mipmap) pass try: r, g, b = obj except: pass else: obj = numpy.zeros((N, N, 3), dtype='uint8') obj[:,:,:] = r, g, b
21297efb2740fbd7e9f8ec26a2486ee8cfdcd77a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/21297efb2740fbd7e9f8ec26a2486ee8cfdcd77a/backgroundsurface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1081, 16, 312, 625, 1458, 67, 2815, 33, 20, 4672, 309, 1549, 12, 2603, 16, 314, 2883, 18, 21816, 4385, 4672, 1081, 273, 9246, 18, 75, 2883, 14861, 4385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1081, 16, 312, 625, 1458, 67, 2815, 33, 20, 4672, 309, 1549, 12, 2603, 16, 314, 2883, 18, 21816, 4385, 4672, 1081, 273, 9246, 18, 75, 2883, 14861, 4385, ...
def title_index_teardown(tc):
TITLEINDEX3_MACRO_TEST_CASES = u""" ============================== TitleIndex, group format [[TitleIndex(Wiki,format=group)]] ------------------------------ <p> <ul class="titleindex"><li><strong>Wiki </strong><ul><li><strong>End/</strong><ul><li><a href="/wiki/WikiEnd/First">WikiEnd/First</a></li><li><a href="/wiki/Wi...
def title_index_teardown(tc): tc.env.reset_db()
5cb7060a9c0d51f76a97f0260d605523f67158c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2831/5cb7060a9c0d51f76a97f0260d605523f67158c3/macros.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 29406, 9199, 23, 67, 10875, 1457, 67, 16961, 67, 13415, 55, 273, 582, 8395, 28562, 14468, 10984, 1016, 16, 1041, 740, 12167, 4247, 1016, 12, 25438, 16, 2139, 33, 1655, 13, 13563, 12146, 16982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 29406, 9199, 23, 67, 10875, 1457, 67, 16961, 67, 13415, 55, 273, 582, 8395, 28562, 14468, 10984, 1016, 16, 1041, 740, 12167, 4247, 1016, 12, 25438, 16, 2139, 33, 1655, 13, 13563, 12146, 16982, ...
and self.selected_index + 1 < len (self.entries)
and self.selected_index + 1 < len (self._entries)
def can_select_next (self): return self.selected_index != -1 \ and self.selected_index + 1 < len (self.entries)
ed500b819555108af67057bd24de252315b598d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/ed500b819555108af67057bd24de252315b598d2/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 4025, 67, 4285, 261, 2890, 4672, 327, 365, 18, 8109, 67, 1615, 480, 300, 21, 521, 471, 365, 18, 8109, 67, 1615, 397, 404, 411, 562, 261, 2890, 6315, 8219, 13, 225, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 848, 67, 4025, 67, 4285, 261, 2890, 4672, 327, 365, 18, 8109, 67, 1615, 480, 300, 21, 521, 471, 365, 18, 8109, 67, 1615, 397, 404, 411, 562, 261, 2890, 6315, 8219, 13, 225, 2, -100, ...
{ 'name': 'all', 'query_string': 'q=bug', 'count': 2 },
{ 'name': 'any', 'query_string': 'q=bug&language=', 'count': 2 },
def test_get_possible_facets(self): project1 = Project.create_dummy(language='c') project2 = Project.create_dummy(language='d') project3 = Project.create_dummy(language='e') Bug.create_dummy(project=project1, description='bug', good_for_newcomers=True) Bug.create_dummy(project=project2, description='bug') Bug.create_du...
a35d9cb0088dc8954841b6a6810c5266efe0a501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/a35d9cb0088dc8954841b6a6810c5266efe0a501/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 12708, 67, 11639, 2413, 12, 2890, 4672, 1984, 21, 273, 5420, 18, 2640, 67, 21050, 12, 4923, 2218, 71, 6134, 1984, 22, 273, 5420, 18, 2640, 67, 21050, 12, 4923, 2218,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 12708, 67, 11639, 2413, 12, 2890, 4672, 1984, 21, 273, 5420, 18, 2640, 67, 21050, 12, 4923, 2218, 71, 6134, 1984, 22, 273, 5420, 18, 2640, 67, 21050, 12, 4923, 2218,...
gump.addText(50, 389, tr("Back"), 0x480)
gump.addText(50, 389, tr("Back"), enabbledhue)
def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF)
0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3189, 12, 2890, 16, 7291, 16, 1775, 4672, 309, 365, 18, 2938, 18, 75, 379, 27672, 480, 374, 30, 7291, 18, 7814, 18, 4412, 75, 2801, 12, 2890, 18, 2938, 18, 75, 379, 27672, 16, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3189, 12, 2890, 16, 7291, 16, 1775, 4672, 309, 365, 18, 2938, 18, 75, 379, 27672, 480, 374, 30, 7291, 18, 7814, 18, 4412, 75, 2801, 12, 2890, 18, 2938, 18, 75, 379, 27672, 16, 374, ...
def run( self, local=0 ): """ run function test @param local: transfer local variables to global and perform other tasks only when run locally @type local: 1|0 @return: 1 @rtype: int """
def prepare(self):
def process_all( self, file_dic, keep_hetatoms=0 ): """ Process PDB files in file_dic. The PDB is read from: - L{TemplateSearcher.F_NR}
3c67395bc83ba0fdd19fdd2ce8fa8bd5278f16c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/3c67395bc83ba0fdd19fdd2ce8fa8bd5278f16c9/TemplateCleaner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 454, 12, 365, 16, 585, 67, 15859, 16, 3455, 67, 76, 278, 14937, 33, 20, 262, 30, 3536, 4389, 21601, 1390, 316, 585, 67, 15859, 18, 1021, 21601, 353, 855, 628, 30, 300, 511,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 67, 454, 12, 365, 16, 585, 67, 15859, 16, 3455, 67, 76, 278, 14937, 33, 20, 262, 30, 3536, 4389, 21601, 1390, 316, 585, 67, 15859, 18, 1021, 21601, 353, 855, 628, 30, 300, 511,...
if not self.name: self.name = "Mesh"
def __init__(self, list=None): if list is not None: for property in list: getattr(self, "set_%s" % property[0])(property[1:]) if not self.name: self.name = "Mesh"
26a568ddb62579e291dad3cf21632bef9bd72772 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/26a568ddb62579e291dad3cf21632bef9bd72772/Mesh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 666, 33, 7036, 4672, 309, 666, 353, 486, 599, 30, 364, 1272, 316, 666, 30, 3869, 12, 2890, 16, 315, 542, 10185, 87, 6, 738, 1272, 63, 20, 5717, 12, 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, 1001, 2738, 972, 12, 2890, 16, 666, 33, 7036, 4672, 309, 666, 353, 486, 599, 30, 364, 1272, 316, 666, 30, 3869, 12, 2890, 16, 315, 542, 10185, 87, 6, 738, 1272, 63, 20, 5717, 12, 4...
actions.append([id, proc, runtime, status, progress])
actions.append([id, proc, runtime, (status !="" and status or ''), (progress !="" and progress or '')])
def perform_runwebcoll(colID, ln, confirm=0, callback='yes'): """form to delete an output format not in use. colID - the collection id of the current collection. fmtID - the format id to delete.""" subtitle = """<a name="11"></a>Webcoll Status""" output = "" colID = int(colID) col_dict = dict(get_def_name('', "colle...
1f0231159c61e0df959c94ae682b24a31ae4ef28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/1f0231159c61e0df959c94ae682b24a31ae4ef28/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2681, 4875, 12910, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 687, 358, 1430, 392, 876, 740, 486, 316, 999, 18, 645, 734, 300, 326, 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, 3073, 67, 2681, 4875, 12910, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 687, 358, 1430, 392, 876, 740, 486, 316, 999, 18, 645, 734, 300, 326, 18...
or field['name'] == 'owner':
or field['name'] in ('owner', 'reporter'):
def _render_view(self, req, db, milestone): milestone_groups = [] available_groups = [] component_group_available = False ticket_fields = TicketSystem(self.env).get_ticket_fields()
fae6f2999e8131d3ee9fb62a17c8e0532950c8e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/fae6f2999e8131d3ee9fb62a17c8e0532950c8e0/roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 28664, 4672, 28664, 67, 4650, 273, 5378, 2319, 67, 4650, 273, 5378, 1794, 67, 1655, 67, 5699, 273, 1083, 9322, 67, 2821, 273, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 28664, 4672, 28664, 67, 4650, 273, 5378, 2319, 67, 4650, 273, 5378, 1794, 67, 1655, 67, 5699, 273, 1083, 9322, 67, 2821, 273, 220...
"Looks up and returns the value of a SAX2 property."
def getProperty(self, name): "Looks up and returns the value of a SAX2 property." raise SAXNotRecognizedException("Property '%s' not recognized" % name)
c5252b9fd6d85186c0b2dd684b36bb5006dca568 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c5252b9fd6d85186c0b2dd684b36bb5006dca568/expatreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3911, 12, 2890, 16, 508, 4672, 1002, 10168, 1248, 5650, 9367, 503, 2932, 1396, 1995, 87, 11, 486, 16332, 6, 738, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3911, 12, 2890, 16, 508, 4672, 1002, 10168, 1248, 5650, 9367, 503, 2932, 1396, 1995, 87, 11, 486, 16332, 6, 738, 508, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return matrix_integer_sparse.Matrix_sparse_integer return matrix_sparse.Matrix_pid_sparse
return matrix_integer_sparse.Matrix_integer_sparse return matrix_pid_sparse.Matrix_pid_sparse
def _get_matrix_class(self): if self.is_dense(): if isinstance(self.base_ring(), integer_ring.IntegerRing): return matrix_integer_dense.Matrix_integer_dense return matrix_pid.Matrix_pid else: if isinstance(self.base_ring(), integer_ring.IntegerRing): return matrix_integer_sparse.Matrix_sparse_integer return matrix_spar...
1ca99689abda06679ffa5a695efe9764c08ae61f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/1ca99689abda06679ffa5a695efe9764c08ae61f/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5667, 67, 1106, 12, 2890, 4672, 309, 365, 18, 291, 67, 25942, 13332, 309, 1549, 12, 2890, 18, 1969, 67, 8022, 9334, 3571, 67, 8022, 18, 4522, 10369, 4672, 327, 3148, 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, 389, 588, 67, 5667, 67, 1106, 12, 2890, 4672, 309, 365, 18, 291, 67, 25942, 13332, 309, 1549, 12, 2890, 18, 1969, 67, 8022, 9334, 3571, 67, 8022, 18, 4522, 10369, 4672, 327, 3148, 67, ...
class _AsyncJobPollError(Exception): pass
def send_exception(self, *args): # the arguments and the same as for greenlet.throw return self.send(None, args)
59b59acd2339640b7dab05c6761583e5d949185f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/59b59acd2339640b7dab05c6761583e5d949185f/coros.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4064, 12, 2890, 16, 380, 1968, 4672, 468, 326, 1775, 471, 326, 1967, 487, 364, 10004, 1810, 18, 12849, 327, 365, 18, 4661, 12, 7036, 16, 833, 13, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4064, 12, 2890, 16, 380, 1968, 4672, 468, 326, 1775, 471, 326, 1967, 487, 364, 10004, 1810, 18, 12849, 327, 365, 18, 4661, 12, 7036, 16, 833, 13, 2, -100, -100, -100, -100, ...
inputKeys: { ccdExposure: isrExposure""" + str(snap) + """ } outputKeys: { sdqaCcdExposure: isrExposure""" + str(snap) + """
stagePolicy: { inputKeys: { ccdExposure: isrExposure""" + str(snap) + """ } outputKeys: { sdqaCcdExposure: isrExposure""" + str(snap) + """ }
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
303dfdf62e16f4c3c6657c8635b2192f2d5ed3f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6538/303dfdf62e16f4c3c6657c8635b2192f2d5ed3f4/createImSimPipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 4315, 24368, 2227, 12, 74, 4672, 364, 10915, 316, 261, 20, 16, 404, 4672, 1172, 1671, 74, 16, 3536, 595, 8755, 30, 288, 508, 30, 276, 4315, 24368, 39, 4315, 682, 8395, 397, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4315, 24368, 2227, 12, 74, 4672, 364, 10915, 316, 261, 20, 16, 404, 4672, 1172, 1671, 74, 16, 3536, 595, 8755, 30, 288, 508, 30, 276, 4315, 24368, 39, 4315, 682, 8395, 397, 609, ...
return self._bind(('bind', className), sequence, func, add)
return self._bind(('bind', className), sequence, func, add, 0)
def bind_class(self, className, sequence=None, func=None, add=None): return self._bind(('bind', className), sequence, func, add)
48044b41c45fe4093db593d53822db0a1eb635ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/48044b41c45fe4093db593d53822db0a1eb635ae/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 1106, 12, 2890, 16, 2658, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12, 2668, 4376, 2187, 2658, 3631, 3102, 16, 1326, 16, 527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1993, 67, 1106, 12, 2890, 16, 2658, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12, 2668, 4376, 2187, 2658, 3631, 3102, 16, 1326, 16, 527, ...
('Aiuto', None, '_Aiuto', None, 'Aiuto...', 'aiuto_apri'),
('Help', None, '_Aiuto', None, 'Aiuto...', 'aiuto_apri'),
def create_menu(self): w = [ ('Acquario', None, '_Acquario'), ('Calcoli', None, '_Calcoli', '<control>C', 'Calcoli...', 'calcoli_apri'), ('Vasche', None, '_Vasche', '<control>V', 'Vasche...', 'vasca_apri'), ('Test', None, '_Test', '<control>T', 'Test', 'test_apri'), ('Pesci', None, '_Pesci', '<control>P', 'Pes...
98364a9b1d1eacaf7227501cc8025b716126133c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2406/98364a9b1d1eacaf7227501cc8025b716126133c/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5414, 12, 2890, 4672, 341, 273, 306, 7707, 9988, 372, 25124, 2187, 599, 16, 2070, 9988, 372, 25124, 19899, 7707, 3005, 1293, 77, 2187, 202, 7036, 16, 202, 202, 11, 67, 3005, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5414, 12, 2890, 4672, 341, 273, 306, 7707, 9988, 372, 25124, 2187, 599, 16, 2070, 9988, 372, 25124, 19899, 7707, 3005, 1293, 77, 2187, 202, 7036, 16, 202, 202, 11, 67, 3005, 1...
y = scipy.stats.stdev(LITTLE)
y = scipy.stats.std(LITTLE)
def check_stdLITTLE(self): y = scipy.stats.stdev(LITTLE) assert_approx_equal(y,2.738612788e-8)
0d3c2bdf977aa7a5fa412dd330df792dac70eeac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/0d3c2bdf977aa7a5fa412dd330df792dac70eeac/test_stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5084, 15716, 56, 900, 12, 2890, 4672, 677, 273, 10966, 18, 5296, 18, 5084, 12, 15716, 56, 900, 13, 1815, 67, 26742, 67, 9729, 12, 93, 16, 22, 18, 9036, 5292, 14260, 5482, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5084, 15716, 56, 900, 12, 2890, 4672, 677, 273, 10966, 18, 5296, 18, 5084, 12, 15716, 56, 900, 13, 1815, 67, 26742, 67, 9729, 12, 93, 16, 22, 18, 9036, 5292, 14260, 5482, 73...
species_map={'O':1, 'Si':2}, cel_angstrom=False, pos_angstrom=False): self.pos = pos self.cel = cel self.force = force self.energy = energy self.stress = stress
species_map={'O':1, 'Si':2}, cel_angstrom=False, pos_angstrom=False, rydberg=True):
def __init__(self, basename=None, pos='pos.in', cel='cel.in', force='force.in', energy='energy.in', stress='stress.in', step_name='', species_map={'O':1, 'Si':2}, cel_angstrom=False, pos_angstrom=False): self.pos = pos self.cel = cel self.force = force self.energy = energy self.stress = stress if basename is not None: ...
aa058d12f01c015ff4496d1d7d2c6865e46f4066 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/aa058d12f01c015ff4496d1d7d2c6865e46f4066/sio2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4882, 33, 7036, 16, 949, 2218, 917, 18, 267, 2187, 25357, 2218, 2183, 18, 267, 2187, 2944, 2218, 5734, 18, 267, 2187, 12929, 2218, 15358, 18, 267, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4882, 33, 7036, 16, 949, 2218, 917, 18, 267, 2187, 25357, 2218, 2183, 18, 267, 2187, 2944, 2218, 5734, 18, 267, 2187, 12929, 2218, 15358, 18, 267, 2187, ...
def found_terminator (self):
if DEBUG: def push(self, data): log(">>", repr(data)) asynchat.async_chat.push(self, data) def found_terminator(self):
def found_terminator (self): """ This method is called by asynchronous engine when it finds command terminator in the input stream """ # Take the complete line line = self.data
ce2710566fb00079a9c5574c6244943702ea0800 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/ce2710566fb00079a9c5574c6244943702ea0800/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 6369, 30, 1652, 1817, 12, 2890, 16, 501, 4672, 613, 2932, 34, 2984, 16, 8480, 12, 892, 3719, 487, 2515, 270, 18, 3810, 67, 10880, 18, 6206, 12, 2890, 16, 501, 13, 282, 1652, 1392, 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, 309, 6369, 30, 1652, 1817, 12, 2890, 16, 501, 4672, 613, 2932, 34, 2984, 16, 8480, 12, 892, 3719, 487, 2515, 270, 18, 3810, 67, 10880, 18, 6206, 12, 2890, 16, 501, 13, 282, 1652, 1392, 67,...
break
return
def read_from_server(server_address): while (True): # if this server is not connected break try: this_server = server[server_address] except KeyError: print "stopping read thread server: "+server_address break frame = NATFrame() # read from the socket try: frame.initFromSocket(this_server['socket']) except Exception...
1e267b4ee87b89ef2ed59bca32de64d9bb119be5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/1e267b4ee87b89ef2ed59bca32de64d9bb119be5/forwarder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2080, 67, 3567, 12, 3567, 67, 2867, 4672, 1323, 261, 5510, 4672, 225, 468, 309, 333, 1438, 353, 486, 5840, 327, 775, 30, 333, 67, 3567, 273, 1438, 63, 3567, 67, 2867, 65, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2080, 67, 3567, 12, 3567, 67, 2867, 4672, 1323, 261, 5510, 4672, 225, 468, 309, 333, 1438, 353, 486, 5840, 327, 775, 30, 333, 67, 3567, 273, 1438, 63, 3567, 67, 2867, 65, 13...
security.declareProtected(view, 'checkPermissionParticipateInMeeting')
def saveProperties(self, REQUEST=None, **kwargs): """ """ if not self.checkPermissionEditObject(): raise EXCEPTION_NOTAUTHORIZED, EXCEPTION_NOTAUTHORIZED_MSG
8ef4364c572e84fa3c4af32b7b1ba2f42e335fa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/8ef4364c572e84fa3c4af32b7b1ba2f42e335fa3/meeting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 2297, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 3536, 309, 486, 365, 18, 1893, 5041, 4666, 921, 13332, 1002, 23136, 67, 4400, 28383, 16, 23136, 67, 4400, 28383, 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, 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, 1923, 2297, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 3536, 309, 486, 365, 18, 1893, 5041, 4666, 921, 13332, 1002, 23136, 67, 4400, 28383, 16, 23136, 67, 4400, 28383, 67...
path = os.path.expanduser("~/.config/Contacts") filename = os.path.join(path, unescape(self.vcard.fn.value) + ".vcf")
filename = os.path.join(self.new_parent.contact_dir, unescape(self.vcard.fn.value) + ".vcf")
def save(self): new_vcard = vobject.vCard() new_vcard.add("prodid").value = "Arkadas 1.0" if has_child(self.vcard, "uid"): new_vcard.add("uid").value = uuid()
83a200d579bb831f8f76d2d58f83b385981056c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/83a200d579bb831f8f76d2d58f83b385981056c5/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 394, 67, 90, 3327, 273, 331, 1612, 18, 90, 6415, 1435, 394, 67, 90, 3327, 18, 1289, 2932, 685, 14044, 20387, 1132, 273, 315, 686, 79, 361, 345, 404, 18, 20, 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, 1923, 12, 2890, 4672, 394, 67, 90, 3327, 273, 331, 1612, 18, 90, 6415, 1435, 394, 67, 90, 3327, 18, 1289, 2932, 685, 14044, 20387, 1132, 273, 315, 686, 79, 361, 345, 404, 18, 20, 6, ...
if self.debug: environ['wsgi.errors'].write( '=> paste.errordocuments: -> %r\n'%url[0][0] )
def change_response(status, headers, exc_info=None): status_code = status.split(' ') try: code = int(status_code[0]) except ValueError, TypeError: raise Exception( 'StatusBasedForward middleware ' 'received an invalid status code %s'%repr(status_code[0]) ) message = ' '.join(status_code[1:]) new_url = self.mapper( cod...
2476741eff1920c9216c32de8b4c82867f573da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/2476741eff1920c9216c32de8b4c82867f573da9/errordocument.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 225, 1267, 67, 710, 273, 1267, 18, 4939, 2668, 8624, 775, 30, 981, 273, 509, 12, 2327, 67, 710, 63, 20, 5717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 225, 1267, 67, 710, 273, 1267, 18, 4939, 2668, 8624, 775, 30, 981, 273, 509, 12, 2327, 67, 710, 63, 20, 5717, ...
pickle -- the pickle to explain, as a string (default: None) file -- a filename of a pickle (default: None) compress -- if False, don't attempt to decompress the pickle
- ``pickle`` -- the pickle to explain, as a string (default: None) - ``file`` -- a filename of a pickle (default: None) - ``compress`` -- if False, don't attempt to decompress the pickle
def explain_pickle(pickle=None, file=None, compress=True, **kwargs): r""" Explain a pickle. (That is, produce source code such that evaluating the code is equivalent to loading the pickle.) Feeding the result of explain_pickle to sage_eval should be totally equivalent to loading the pickle with cPickle. INPUTS: pick...
3bed29c45c1270055cd235e22fd02f632971b39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3bed29c45c1270055cd235e22fd02f632971b39e/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19765, 67, 20847, 12, 20847, 33, 7036, 16, 585, 33, 7036, 16, 8099, 33, 5510, 16, 2826, 4333, 4672, 436, 8395, 1312, 7446, 279, 13379, 18, 225, 261, 18163, 353, 16, 11402, 1084, 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, 19765, 67, 20847, 12, 20847, 33, 7036, 16, 585, 33, 7036, 16, 8099, 33, 5510, 16, 2826, 4333, 4672, 436, 8395, 1312, 7446, 279, 13379, 18, 225, 261, 18163, 353, 16, 11402, 1084, 981, 4...
def render_wireframe(self):
def render_wireframe(self, rgbcolor = (0,0,1)):
def render_wireframe(self): """ For polytopes in 2 or 3 dimensions, returns the edges as a list of lines.
352c4b2bdc8922987d0ba54010741ec804088e5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/352c4b2bdc8922987d0ba54010741ec804088e5f/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 14538, 3789, 12, 2890, 16, 6917, 3266, 273, 261, 20, 16, 20, 16, 21, 3719, 30, 3536, 2457, 7573, 3669, 281, 316, 576, 578, 890, 5769, 16, 1135, 326, 5231, 487, 279, 666, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 67, 14538, 3789, 12, 2890, 16, 6917, 3266, 273, 261, 20, 16, 20, 16, 21, 3719, 30, 3536, 2457, 7573, 3669, 281, 316, 576, 578, 890, 5769, 16, 1135, 326, 5231, 487, 279, 666, 43...
data = pyqtProperty(Preprocessor_featureSelection,
data = _pyqtProperty(Preprocessor_featureSelection,
def getFeatureSelection(self): return Preprocessor_featureSelection(measure=self.MEASURES[self.measureInd][1], filter=self.FILTERS[self.selectBy], limit=self.bestP if self.selectBy else self.bestN)
e07f8cc72f7b3b07eca503cffe3f1edeef0a5948 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/e07f8cc72f7b3b07eca503cffe3f1edeef0a5948/OWPreprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17961, 6233, 12, 2890, 4672, 327, 2962, 8700, 67, 7238, 6233, 12, 10772, 33, 2890, 18, 28964, 55, 63, 2890, 18, 10772, 3866, 6362, 21, 6487, 1034, 33, 2890, 18, 11126, 55, 63, 2890, 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, 17961, 6233, 12, 2890, 4672, 327, 2962, 8700, 67, 7238, 6233, 12, 10772, 33, 2890, 18, 28964, 55, 63, 2890, 18, 10772, 3866, 6362, 21, 6487, 1034, 33, 2890, 18, 11126, 55, 63, 2890, 18...
set([2, 3, 4, 37, 8, 342, 11, 14, 816, 52, 21, 406, 93])
set([2, 3, 4, 37, 406, 8, 11, 14, 816, 52, 21, 342, 93])
def integral_points(self, mw_base='auto', both_signs=False, verbose=False): """ Computes all integral points (up to sign) on this elliptic curve.
aaebf313d910a24c25d5a21ddc8c2c225c85c319 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/aaebf313d910a24c25d5a21ddc8c2c225c85c319/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21423, 67, 4139, 12, 2890, 16, 14721, 67, 1969, 2218, 6079, 2187, 3937, 67, 2977, 87, 33, 8381, 16, 3988, 33, 8381, 4672, 3536, 14169, 281, 777, 21423, 3143, 261, 416, 358, 1573, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21423, 67, 4139, 12, 2890, 16, 14721, 67, 1969, 2218, 6079, 2187, 3937, 67, 2977, 87, 33, 8381, 16, 3988, 33, 8381, 4672, 3536, 14169, 281, 777, 21423, 3143, 261, 416, 358, 1573, 13, 6...
Must be called before parseString when the input grammar contains elements that
Must be called before parseString when the input grammar contains elements that
def parseWithTabs( self ): """Overrides default behavior to expand <TAB>s to spaces before parsing the input string. Must be called before parseString when the input grammar contains elements that match <TAB> characters.""" self.keepTabs = True return self
f734f22ba11a967624c3b1351b79174f1d17c2ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3554/f734f22ba11a967624c3b1351b79174f1d17c2ac/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1190, 17348, 12, 365, 262, 30, 3536, 13084, 805, 6885, 358, 4542, 411, 28899, 34, 87, 358, 7292, 1865, 5811, 326, 810, 533, 18, 6753, 506, 2566, 1865, 23659, 1347, 326, 810, 6473, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 1190, 17348, 12, 365, 262, 30, 3536, 13084, 805, 6885, 358, 4542, 411, 28899, 34, 87, 358, 7292, 1865, 5811, 326, 810, 533, 18, 6753, 506, 2566, 1865, 23659, 1347, 326, 810, 6473, ...
CreateControl(False, readOnly, parentWidget, id, parentBlock, font)
CreateControl(False, True, parentWidget, id, parentBlock, font)
def CreateControl(self, forEditing, readOnly, parentWidget, id, parentBlock, font): return super(StaticStringAttributeEditor, self).\ CreateControl(False, readOnly, parentWidget, id, parentBlock, font)
7ba47930d43298aa76a00d48d3b970b296e46fb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7ba47930d43298aa76a00d48d3b970b296e46fb1/AttributeEditors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3367, 12, 2890, 16, 364, 28029, 16, 15075, 16, 982, 4609, 16, 612, 16, 982, 1768, 16, 3512, 4672, 327, 2240, 12, 5788, 780, 1499, 6946, 16, 365, 2934, 64, 1788, 3367, 12, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3367, 12, 2890, 16, 364, 28029, 16, 15075, 16, 982, 4609, 16, 612, 16, 982, 1768, 16, 3512, 4672, 327, 2240, 12, 5788, 780, 1499, 6946, 16, 365, 2934, 64, 1788, 3367, 12, 8381, ...
label = config.get("medium_label") partsel = config.get("medium_search") if partsel == "nodevice": partsel = "" elif partsel == "device": partsel = "partition" format = not command.uiask(":noformat.active") self.mediumbuilder.make(btype, device, label, partsel, format, command.uiask(":larchboot.active"))
label = config.get("medium_label") partsel = config.get("medium_search") if partsel == "nodevice": partsel = "" elif partsel == "device": partsel = "partition" format = not command.uiask(":noformat.active") larchboot = command.uiask(":larchboot.active") self.mediumbuilder.make(btype, device, label, partsel, format,...
def makedevice(self): iso = config.get("medium_iso") != ""
77998e6c89d33de0ee8e438e96e158d8ddcbbe18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3177/77998e6c89d33de0ee8e438e96e158d8ddcbbe18/mediumpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5964, 12, 2890, 4672, 8702, 273, 642, 18, 588, 2932, 19011, 67, 9699, 7923, 480, 1408, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5964, 12, 2890, 4672, 8702, 273, 642, 18, 588, 2932, 19011, 67, 9699, 7923, 480, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not self.tabnanny(filename): return
def run_module_event(self, event): """Run the module after setting up the environment.
82522fd1a23bf57b7f9de4560fca2a4714bc5143 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/82522fd1a23bf57b7f9de4560fca2a4714bc5143/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 3536, 1997, 326, 1605, 1839, 3637, 731, 326, 3330, 18, 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, 1086, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 3536, 1997, 326, 1605, 1839, 3637, 731, 326, 3330, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sizer_flow.Add(10, 10, 1, wxEXPAND, 0)
def __do_layout(self): # begin wxGlade: SerialConfigDialog.__do_layout # end wxGlade sizer_2 = wxBoxSizer(wxVERTICAL) sizer_3 = wxBoxSizer(wxHORIZONTAL) sizer_basics = wxStaticBoxSizer(wxStaticBox(self, -1, "Basics"), wxVERTICAL) sizer_5 = wxBoxSizer(wxHORIZONTAL) sizer_5.Add(self.label_2, 1, wxALL|wxALIGN_CENTER_VERTI...
5fad5ad84821f4f4663c749bd7ada085af0a808c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/5fad5ad84821f4f4663c749bd7ada085af0a808c/wxSerialConfigDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 7366, 809, 6353, 16186, 2896, 67, 6741, 468, 679, 7075, 21308, 2486, 272, 1824, 67, 22, 273, 7075, 3514, 20512, 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, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 7366, 809, 6353, 16186, 2896, 67, 6741, 468, 679, 7075, 21308, 2486, 272, 1824, 67, 22, 273, 7075, 3514, 20512, 12...
sys.exit('%r doesn\'t seem to be a Subversion working copy')
sys.exit('%r doesn\'t seem to be a Subversion working copy' % opts.target_dir)
def do_export(self, subcmd, opts, *args): """${cmd_name}: export the mirror list as text file
60c0965429edee712e1311e05ec40b5375fb8230 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10990/60c0965429edee712e1311e05ec40b5375fb8230/mirrordoctor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6530, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 1968, 4672, 3536, 18498, 4172, 67, 529, 6713, 3359, 326, 15593, 666, 487, 977, 585, 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, 741, 67, 6530, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 1968, 4672, 3536, 18498, 4172, 67, 529, 6713, 3359, 326, 15593, 666, 487, 977, 585, 2, -100, -100, -100, -100, -100, -100, -1...
if trip.has_key('return_transport_type'):
if trip.has_key('outgoing_transport_type'):
def build_stats(trip_list, type, statyear=False): # TODO break this apart and/or do similar things in subroutines # TODO build more year metadata # TODO don't do as much work for front page # TODO cache? stats = {'countries': {}, 'cities': {}, 'years': {}, 'months': {}, 'home': { 'trips': 0, 'duration':...
1dc0a1565dbc8b50ddb12b506f8145f68074f64d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11110/1dc0a1565dbc8b50ddb12b506f8145f68074f64d/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5296, 12, 25125, 67, 1098, 16, 618, 16, 610, 6874, 33, 8381, 4672, 468, 2660, 898, 333, 513, 485, 471, 19, 280, 741, 7281, 9198, 316, 720, 7028, 1465, 468, 2660, 1361, 1898, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5296, 12, 25125, 67, 1098, 16, 618, 16, 610, 6874, 33, 8381, 4672, 468, 2660, 898, 333, 513, 485, 471, 19, 280, 741, 7281, 9198, 316, 720, 7028, 1465, 468, 2660, 1361, 1898, ...
if not firstItem: res += ",\n"
if ('js_target' in c and len(c['js_target']) > 0): try: os.makedirs(c['js_target']) except OSError: pass shutil.copyfile('source/class/%s.js' % clazz.replace('.','/'), "%s/%s.src.js" % (c['js_target'],clazz))
def main(dist, scan): res = "" structurize = False firstCategory = True for category in os.listdir(scan): if category in [".svn", ".DS_Store"]: continue ext = os.path.splitext(category)[1] if ext == ".html" or ext == ".js": continue if not firstCategory: res += "}," res += "{" res += "\"classname\":\""+category+"\"...
a444ba5dd52fe79e230a6b635c98d2eb5f790204 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/a444ba5dd52fe79e230a6b635c98d2eb5f790204/genjson.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 4413, 16, 4135, 4672, 400, 273, 1408, 1958, 295, 554, 273, 1083, 225, 1122, 4457, 273, 1053, 364, 3150, 316, 1140, 18, 1098, 1214, 12, 9871, 4672, 309, 3150, 316, 8247, 18, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 4413, 16, 4135, 4672, 400, 273, 1408, 1958, 295, 554, 273, 1083, 225, 1122, 4457, 273, 1053, 364, 3150, 316, 1140, 18, 1098, 1214, 12, 9871, 4672, 309, 3150, 316, 8247, 18, 3...
irq.name = match_obj.group(2) irq.fullname = "softirq-" + irq.name
irq.name = "%s-%s" % (match_obj.group(2),irq.process_id) irq.fullname = "softirq-%s" % match_obj.group(2)
def sortedDictValues(adict): items = adict.items() items.sort() return [value for key, value in items]
555c0cf12d305b82bd76ac01b17e8bf212ffff79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11526/555c0cf12d305b82bd76ac01b17e8bf212ffff79/listirqinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3115, 5014, 1972, 12, 361, 933, 4672, 1516, 273, 1261, 933, 18, 3319, 1435, 1516, 18, 3804, 1435, 327, 306, 1132, 364, 498, 16, 460, 316, 1516, 65, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3115, 5014, 1972, 12, 361, 933, 4672, 1516, 273, 1261, 933, 18, 3319, 1435, 1516, 18, 3804, 1435, 327, 306, 1132, 364, 498, 16, 460, 316, 1516, 65, 225, 2, -100, -100, -100, -100, -100...
self.connections.append(connection) index = len(self.connections) if alias is not None and type(alias) in StringTypes: self.aliases[alias] = index return index
self._connections.append(connection) self.current_index = len(self._connections) if isinstance(alias, basestring): self._aliases[alias] = self.current_index return self.current_index
def register(self, connection, alias=None): """Registers given connection with optional alias and returns its index. Given connection is set to be the current connection. Alias must be a string. The index of the first connection after initialization or close_all or empty_cache is 1, second is 2, etc. """ self.current ...
02a3ef9147675cde8422ffbe96a90d929365bddb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/02a3ef9147675cde8422ffbe96a90d929365bddb/connectioncache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2890, 16, 1459, 16, 2308, 33, 7036, 4672, 3536, 10277, 864, 1459, 598, 3129, 2308, 471, 1135, 2097, 770, 18, 225, 16803, 1459, 353, 444, 358, 506, 326, 783, 1459, 18, 11873, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2890, 16, 1459, 16, 2308, 33, 7036, 4672, 3536, 10277, 864, 1459, 598, 3129, 2308, 471, 1135, 2097, 770, 18, 225, 16803, 1459, 353, 444, 358, 506, 326, 783, 1459, 18, 11873, ...
return S_OK({})
return S_OK( {} )
def getExtraConditions(self,site): """ Get extra conditions allowing site throttling """ # Find Site job limits grid,siteName,country = site.split('.') siteSection = '/Resources/Sites/%s/%s' % (grid,site) result = gConfig.getSections('%s/JobLimits' % siteSection) if not result['OK']: return result sections = result['Va...
059c4744ef6766e0575a5cd4d6f09d892a66a7df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/059c4744ef6766e0575a5cd4d6f09d892a66a7df/MatcherHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24973, 8545, 12, 2890, 16, 4256, 4672, 3536, 968, 2870, 4636, 15632, 2834, 30700, 3536, 468, 4163, 9063, 1719, 8181, 3068, 16, 4256, 461, 16, 9082, 273, 2834, 18, 4939, 2668, 1093, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24973, 8545, 12, 2890, 16, 4256, 4672, 3536, 968, 2870, 4636, 15632, 2834, 30700, 3536, 468, 4163, 9063, 1719, 8181, 3068, 16, 4256, 461, 16, 9082, 273, 2834, 18, 4939, 2668, 1093, 13, 2...
current_move = self.copy(cr, uid, move.id, {'state': move.state})
current_move = self.copy(cr, uid, move.id, {'state': move.state})
def action_split(self, cr, uid, ids, quantity, split_by_qty=1, prefix=False, with_lot=True, context=None): ''' Split Stock Move lines into production lot which specified split by quantity. @ param cr: the database cursor @ param uid: the user id @ param ids: ids of stock move object to be splited @ param split_by_qty ...
18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 4939, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 1416, 67, 1637, 67, 85, 4098, 33, 21, 16, 1633, 33, 8381, 16, 598, 67, 23372, 33, 5510, 16, 819, 33, 7036, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 4939, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 1416, 67, 1637, 67, 85, 4098, 33, 21, 16, 1633, 33, 8381, 16, 598, 67, 23372, 33, 5510, 16, 819, 33, 7036, 46...
def groupby(self):
def group_by(self):
def groupby(self): return Query(self.G) \ .groupby(lambda s: s[0]) \ .select(lambda (key, items): (key, items.tolist())) \ .todict()
f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 67, 1637, 12, 2890, 4672, 327, 2770, 12, 2890, 18, 43, 13, 521, 263, 1655, 1637, 12, 14661, 272, 30, 272, 63, 20, 5717, 521, 263, 4025, 12, 14661, 261, 856, 16, 1516, 4672, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1041, 67, 1637, 12, 2890, 4672, 327, 2770, 12, 2890, 18, 43, 13, 521, 263, 1655, 1637, 12, 14661, 272, 30, 272, 63, 20, 5717, 521, 263, 4025, 12, 14661, 261, 856, 16, 1516, 4672, 261...
lapack_libs = self.get_libs('lapack_libs', ['lapack']) for d in lib_dirs: lapack = self.check_libs(d,lapack_libs,[]) if lapack is not None: info = lapack break else: return atlas_libs = self.get_libs('atlas_libs', ['f77blas', 'cblas', 'atlas'])
atlas_libs = self.get_libs('atlas_libs', ['lapack','f77blas', 'cblas', 'atlas'])
def calc_info(self): lib_dirs = self.get_lib_dirs() include_dirs = self.get_include_dirs()
5e3b7826da1bb357993e68d8af77480fced1f4fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5e3b7826da1bb357993e68d8af77480fced1f4fb/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 4672, 2561, 67, 8291, 273, 365, 18, 588, 67, 2941, 67, 8291, 1435, 2341, 67, 8291, 273, 365, 18, 588, 67, 6702, 67, 8291, 1435, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 4672, 2561, 67, 8291, 273, 365, 18, 588, 67, 2941, 67, 8291, 1435, 2341, 67, 8291, 273, 365, 18, 588, 67, 6702, 67, 8291, 1435, 2, -100, -100, -100, -100, -...
>>> map(k('::'), ('abc', kp('abc')))
>>> map(k('{x}'), ('abc', kp('abc')))
def __call__(self, *args): """call the k object
887ebe3916a71237281e14989d294c41eb5cb0e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/65/887ebe3916a71237281e14989d294c41eb5cb0e5/q.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 3536, 1991, 326, 417, 733, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 3536, 1991, 326, 417, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
relations = RpmRelations(self.config, self.erases, OP_ERASE) order2 = relations.genOrder() if order2 == None: return None order2.reverse() order.extend(order2)
if len(self.erases) == 1: order.extend(self.erases) else: relations = RpmRelations(self.config, self.erases, OP_ERASE) order2 = relations.genOrder() if order2 == None: return None order2.reverse() order.extend(order2)
def genOrder(self): """Return an ordered list of RpmPackage's, first installs, then erases.
71efa249ff5aea27b24aa609a6dea3b07bf3af0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/71efa249ff5aea27b24aa609a6dea3b07bf3af0c/orderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 2448, 12, 2890, 4672, 3536, 990, 392, 5901, 666, 434, 534, 7755, 2261, 1807, 16, 1122, 31011, 16, 1508, 6445, 3304, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 3157, 2448, 12, 2890, 4672, 3536, 990, 392, 5901, 666, 434, 534, 7755, 2261, 1807, 16, 1122, 31011, 16, 1508, 6445, 3304, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.listc.ClearAll()
self.listc.DeleteAllItems()
def ClearAll(self, event): items = self.events.items() for it in items: idx = it[0] ev = it[1] del self.events[idx] ev.delete() self.listc.ClearAll() self.numevents = 0 return
a36af21f2774b7126c51763d64fc394bb3c9707a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/a36af21f2774b7126c51763d64fc394bb3c9707a/_sel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10121, 1595, 12, 2890, 16, 871, 4672, 1516, 273, 365, 18, 5989, 18, 3319, 1435, 364, 518, 316, 1516, 30, 2067, 273, 518, 63, 20, 65, 2113, 273, 518, 63, 21, 65, 1464, 365, 18, 5989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10121, 1595, 12, 2890, 16, 871, 4672, 1516, 273, 365, 18, 5989, 18, 3319, 1435, 364, 518, 316, 1516, 30, 2067, 273, 518, 63, 20, 65, 2113, 273, 518, 63, 21, 65, 1464, 365, 18, 5989, ...
return option in self.__sections[section]
return (option in self.__sections[section] or option in self.__defaults)
def has_option(self, section, option): """Check for the existence of a given option in a given section.""" if not section or section == "DEFAULT": return option in self.__defaults elif not self.has_section(section): return 0 else: option = self.optionxform(option) return option in self.__sections[section]
c2ff9051d2dace414d5ec928fa3e41edd9297992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c2ff9051d2dace414d5ec928fa3e41edd9297992/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 1564, 364, 326, 15782, 434, 279, 864, 1456, 316, 279, 864, 2442, 12123, 309, 486, 2442, 578, 2442, 422, 315, 5280, 6877, 327, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 1564, 364, 326, 15782, 434, 279, 864, 1456, 316, 279, 864, 2442, 12123, 309, 486, 2442, 578, 2442, 422, 315, 5280, 6877, 327, 1...
def findT1File(fontName,ext='.pfb'):
def _searchT1Dirs(n):
def findT1File(fontName,ext='.pfb'): from reportlab.rl_config import T1SearchPath assert T1SearchPath!=[], "No Type-1 font search path" if sys.platform in ('linux2',) and ext=='.pfb': ext = '' n = _findFNR(fontName)+ext for d in T1SearchPath: f = os.path.join(d,n) if os.path.isfile(f): return f return None
310be394f7c2a2b8843f5053515eb2cb0a21a047 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/310be394f7c2a2b8843f5053515eb2cb0a21a047/_fontdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 56, 21, 9872, 12, 82, 4672, 628, 2605, 7411, 18, 1321, 67, 1425, 1930, 399, 21, 2979, 743, 1815, 399, 21, 2979, 743, 5, 22850, 6487, 315, 2279, 1412, 17, 21, 3512, 1623, 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, 389, 3072, 56, 21, 9872, 12, 82, 4672, 628, 2605, 7411, 18, 1321, 67, 1425, 1930, 399, 21, 2979, 743, 1815, 399, 21, 2979, 743, 5, 22850, 6487, 315, 2279, 1412, 17, 21, 3512, 1623, 5...
_string = p.sub(r"\\begin{\1}", _string)
string = p.sub(r"\\begin{\1}", string)
def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) ...
1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 1080, 4672, 3536, 1765, 19, 6547, 1245, 980, 3536, 2552, 2623, 67, 25304, 16, 2792, 67, 1726, 67, 2815, 565, 468, 290, 689, 93, 7757, 358, 741, 2552, 2623, 67, 3374, 16, 2623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 1080, 4672, 3536, 1765, 19, 6547, 1245, 980, 3536, 2552, 2623, 67, 25304, 16, 2792, 67, 1726, 67, 2815, 565, 468, 290, 689, 93, 7757, 358, 741, 2552, 2623, 67, 3374, 16, 2623...
break
more_mods.extend(olmods_found) log.msg("Found these modules that failed last time: %s" % \ ','.join(olmods_found)) break
def start(self): #TODO FIX: # need to change the static slave path self.logfiles = {} # builddir = self.build.builder.builddir if not self.args.get('addonsdir'): if self.build.builder.properties.get('addons_dir'): self.args['addonsdir'] = self.build.builder.properties['addons_dir'] else: self.args['addonsdir'] = '../a...
5b87ee2bb8c3c2a290e86c2b7d2df34519e53335 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12355/5b87ee2bb8c3c2a290e86c2b7d2df34519e53335/buildstep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 468, 6241, 8563, 30, 468, 1608, 358, 2549, 326, 760, 11735, 589, 365, 18, 1330, 2354, 273, 2618, 468, 25666, 330, 449, 481, 273, 365, 18, 3510, 18, 9574, 18, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 468, 6241, 8563, 30, 468, 1608, 358, 2549, 326, 760, 11735, 589, 365, 18, 1330, 2354, 273, 2618, 468, 25666, 330, 449, 481, 273, 365, 18, 3510, 18, 9574, 18, 70, ...
sage: E=EllipticCurve('14a1')
sage: E = EllipticCurve('14a1')
def has_nonsplit_multiplicative_reduction(self): r""" Return True if there is non-split multiplicative reduction.
e5919ce2ed8be2ebf365206bac58d89cf855be71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/e5919ce2ed8be2ebf365206bac58d89cf855be71/ell_local_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 5836, 4939, 67, 7027, 28884, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2000, 1053, 309, 1915, 353, 1661, 17, 4939, 3309, 28884, 225, 20176, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 5836, 4939, 67, 7027, 28884, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2000, 1053, 309, 1915, 353, 1661, 17, 4939, 3309, 28884, 225, 20176, 18, 2, -100, -100, -100, -100, -100,...
return dynamic.Dispatch(dispatch, userName, CDispatch, typeinfo, UnicodeToString=UnicodeToString,clsctx=clsctx)
if WrapperClass is None: WrapperClass = CDispatch return dynamic.Dispatch(dispatch, userName, WrapperClass, typeinfo, UnicodeToString=UnicodeToString,clsctx=clsctx)
def __WrapDispatch(dispatch, userName = None, resultCLSID = None, typeinfo = None, \ UnicodeToString = NeedUnicodeConversions, clsctx = pythoncom.CLSCTX_SERVER): """ Helper function to return a makepy generated class for a CLSID if it exists, otherwise cope by using CDispatch. """ if resultCLSID is None: try: typeinfo ...
2e823b44c0979d6ba6b0fa47b639235b9ca3b286 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/2e823b44c0979d6ba6b0fa47b639235b9ca3b286/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2964, 5325, 12, 10739, 16, 12065, 273, 599, 16, 563, 39, 3045, 734, 273, 599, 16, 618, 1376, 273, 599, 16, 521, 9633, 5808, 273, 12324, 16532, 29287, 16, 2028, 5900, 273, 5790, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2964, 5325, 12, 10739, 16, 12065, 273, 599, 16, 563, 39, 3045, 734, 273, 599, 16, 618, 1376, 273, 599, 16, 521, 9633, 5808, 273, 12324, 16532, 29287, 16, 2028, 5900, 273, 5790, 8...
return self._update(req,connection) def __deleteTransformationTask(self,transID,taskID,connection=False):
return self._update( req, connection ) def __deleteTransformationTask( self, transID, taskID, connection = False ):
def __deleteTransformationTasks(self,transID,connection=False): """ Delete all the tasks from the TransformationTasks table for transformation with TransformationID """ req = "DELETE FROM TransformationTasks WHERE TransformationID=%d" % transID return self._update(req,connection)
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3733, 15292, 6685, 12, 2890, 16, 2338, 734, 16, 4071, 33, 8381, 4672, 3536, 2504, 777, 326, 4592, 628, 326, 21274, 6685, 1014, 364, 8620, 598, 21274, 734, 3536, 1111, 273, 315, 646...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3733, 15292, 6685, 12, 2890, 16, 2338, 734, 16, 4071, 33, 8381, 4672, 3536, 2504, 777, 326, 4592, 628, 326, 21274, 6685, 1014, 364, 8620, 598, 21274, 734, 3536, 1111, 273, 315, 646...
flag=wx.ALIGN_RIGHT | wx.GROW | wx.ALL) def _init_coll_buttonsSizer_Items(self, parent): parent.AddWindow(self.panel1, 1, border=0, flag=wx.GROW) parent.AddWindow(self.btnOK, 0, border=10, flag=wx.ALL | wx.ALIGN_RIGHT) parent.AddWindow(self.btnCancel, 0, border=10, flag=wx.ALL | wx.ALIGN_RIGHT)
flag=wx.ALIGN_RIGHT | wx.ALL)
def _init_coll_mainSizer_Items(self, parent): # generated method, don't edit
ab8bf7166b70d1f1fb97cbc0de6889b353768dec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4325/ab8bf7166b70d1f1fb97cbc0de6889b353768dec/PyInterpreterChooser.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 12910, 67, 5254, 20512, 67, 3126, 12, 2890, 16, 982, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 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, 389, 2738, 67, 12910, 67, 5254, 20512, 67, 3126, 12, 2890, 16, 982, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
TERMIOS.ECHOCTL|TERMIOS.ECHOKE|TERMIOS.ISIG|TERMIOS.IEXTEN)
TERMIOS.ISIG|TERMIOS.IEXTEN) for flag in ('ECHOCTL', 'ECHOKE'): if hasattr(TERMIOS, flag): lflag &= ~getattr(TERMIOS, flag)
def _reconfigurePort(self): """Set commuication parameters on opened port.""" if self.fd is None: raise SerialException("Can only operate on a valid port handle") vmin = vtime = 0 #timeout is done via select try: iflag, oflag, cflag, lflag, ispeed, ospeed, cc = termios.tcgetattr(self.fd) except termios....
1ee47886ddcef4338e2a7a24fe61428746041280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/1ee47886ddcef4338e2a7a24fe61428746041280/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 266, 14895, 2617, 12, 2890, 4672, 3536, 694, 1543, 89, 829, 1472, 603, 10191, 1756, 12123, 309, 365, 18, 8313, 353, 599, 30, 1002, 7366, 503, 2932, 2568, 1338, 20829, 603, 279, 923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 266, 14895, 2617, 12, 2890, 4672, 3536, 694, 1543, 89, 829, 1472, 603, 10191, 1756, 12123, 309, 365, 18, 8313, 353, 599, 30, 1002, 7366, 503, 2932, 2568, 1338, 20829, 603, 279, 923,...
e = sys.executable if getattr(sys, 'froze', False) else sys.argv[0]
e = sys.executable if getattr(sys, 'frozen', False) else sys.argv[0]
def run_gui(opts, args, actions, listener, app): initialize_file_icon_provider() if not dynamic.get('welcome_wizard_was_run', False): from calibre.gui2.wizard import wizard wizard().exec_() dynamic.set('welcome_wizard_was_run', True) main = Main(listener, opts, actions) sys.excepthook = main.unhandled_exception if len(...
2aa725abe0e6011f31a7108b54681deb7c514edd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/2aa725abe0e6011f31a7108b54681deb7c514edd/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 20292, 12, 4952, 16, 833, 16, 4209, 16, 2991, 16, 595, 4672, 4046, 67, 768, 67, 3950, 67, 6778, 1435, 309, 486, 5976, 18, 588, 2668, 91, 16312, 67, 31837, 67, 17416, 67, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 20292, 12, 4952, 16, 833, 16, 4209, 16, 2991, 16, 595, 4672, 4046, 67, 768, 67, 3950, 67, 6778, 1435, 309, 486, 5976, 18, 588, 2668, 91, 16312, 67, 31837, 67, 17416, 67, 26...
results = results + \ _("You have been successfully subscribed to %s.") % \ (mlist.real_name) PrintResults(mlist, results, doc, language) def PrintResults(mlist, results, doc, lang=None): if lang is None: lang = mlist.preferred_language
rname = mlist.real_name results += _("You have been successfully subscribed to %(rname)s.") print_results(mlist, results, doc, lang) def print_results(mlist, results, doc, lang):
def process_form(mlist, doc): form = cgi.FieldStorage() error = 0 results = '' # Preliminaries done, actual processing of the form input below. if form.has_key("language"): language = form["language"].value else: language = mlist.preferred_language os.environ['LANG'] = language if form.has_key("UserOptions") or \ fo...
b121e4076f4c5d170d07eefd6361b44bbafc2f9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/b121e4076f4c5d170d07eefd6361b44bbafc2f9f/subscribe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 687, 12, 781, 376, 16, 997, 4672, 646, 273, 276, 10052, 18, 974, 3245, 1435, 555, 273, 374, 1686, 273, 875, 225, 468, 453, 2878, 381, 267, 5646, 2731, 16, 3214, 4929, 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, 1207, 67, 687, 12, 781, 376, 16, 997, 4672, 646, 273, 276, 10052, 18, 974, 3245, 1435, 555, 273, 374, 1686, 273, 875, 225, 468, 453, 2878, 381, 267, 5646, 2731, 16, 3214, 4929, 434, ...
if (ignore.count(srcfile)): return([]);
if (ignore.count(srcfile)): return([])
def CxxCalcDependencies(srcfile, ipath, ignore): if (CxxDependencyCache.has_key(srcfile)): return CxxDependencyCache[srcfile] if (ignore.count(srcfile)): return([]); dep = {} dep[srcfile] = 1 includes = CxxGetIncludes(srcfile) for include in includes: if (CxxIgnoreHeader.has_key(include)==0): header = CxxFindHeader(src...
4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 5279, 25779, 8053, 12, 4816, 768, 16, 277, 803, 16, 2305, 4672, 309, 261, 39, 5279, 7787, 1649, 18, 5332, 67, 856, 12, 4816, 768, 3719, 30, 327, 385, 5279, 7787, 1649, 63, 4816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 5279, 25779, 8053, 12, 4816, 768, 16, 277, 803, 16, 2305, 4672, 309, 261, 39, 5279, 7787, 1649, 18, 5332, 67, 856, 12, 4816, 768, 3719, 30, 327, 385, 5279, 7787, 1649, 63, 4816, ...