rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
param = query.__param_tuple__
def display_properties(self, properties=None, layout='circular', query=None, graph6=None, \ num_vertices=None, num_edges=None, num_cycles=None, num_hamiltonian_cycles=None, \ eulerian=None, planar=None, perfect=None, lovasz_number=None, \ complement_graph6=None, aut_grp_size=None, num_orbits=None, \ num_fixed_points=None, vertex_transitive=None, edge_transitive=None, \ degree_sequence=None, min_degree=None, max_degree=None, \ average_degree=None, degrees_sd=None, regular=None, \ vertex_connectivity=None, edge_connectivity=None, \ num_components=None, girth=None, radius=None, diameter=None, \ clique_number=None, independence_number=None, num_cut_vertices=None, \ min_vertex_cover_size=None, num_spanning_trees=None, \ induced_subgraphs=None, spectrum=None, min_eigenvalue=None, \ max_eigenvalue=None, eigenvalues_sd=None, energy=None): r""" Displays the results of a query in a table, including all specified properties and an image for each graph. INPUT: query -- (String) A sqlite query for graphs.db (See examples below). The query string currently must lower case and begin with: 'SELECT graph_data.graph6' properties -- (List) A list of strings that are the exact name (as the following parameters) of the properties to display with the results. layout -- (String) The layout option for the graph image. Options include: 'circular' -- plots the graph with vertices evenly distributed on a circle 'spring' -- uses the traditional spring layout aut_grp_size -- (Integer) The desired size of the automorphism group. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' average_degree -- (Real) The desired average degree. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' clique_number -- (Integer) The desired clique number. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' complement_graph6 -- (String) A graph6 string isomorphic to the desired complement graph. (List) A list of graph6 strings. Will search for graphs with complement isomorphic to any string in the list. degree_sequence -- (Integer) The desired sequence of degrees. (Ordered highest to lowest). degrees_sd -- (Real) The desired standard deviation of degrees. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' diameter -- (Real) The desired diameter. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' edge_connectivity -- (Integer) The desired edge connectivity. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' edge_transitive -- (Boolean) eigenvalues_sd -- (Real) The desired standard deviation of eigenvalues. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' energy -- (Real) The desired energy. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' eulerian -- (Boolean) girth -- (Integer) The desired girth. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' graph6 -- (String) A graph6 string isomorphic to the desired graph. (List) A list of graph6 strings. Will search for graphs isomorphic to any string in the list. independence_number -- (Integer) The desired independence number. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' induced_subgraphs -- (String) graph6 string isomorphic to desired subgraph. (List) Format options: 1. ['one_of',<String>,...,<String>] Will search for graphs containing a subgraph isomorphic to any of the graph6 strings in the list. 2. ['all_of',<String>,...,<String>] Will search for graphs containing a subgraph isomorphic to each of the graph6 strings in the list. lovasz_number -- (Real) The desired lovasz number. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' max_degree -- (Integer) The desired maximum degree. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' max_eigenvalue -- (Real) The desired maximum eigenvalue. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' min_degree -- (Integer) The desired minimum degree. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' min_eigenvalue -- (Real) The desired minimum eigenvalue. (List) Format: [<String>,<Real>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' min_vertex_cover_size -- (Integer) The desired minimum vertex cover size. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_components -- (Integer) The desired number of components. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_cut_vertices -- (Integer) The desired number of cut vertices. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_cycles -- (Integer) The desired number of cycles. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_edges -- (Integer) The desired number of edges. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_fixed_points -- (Integer) The desired number of fixed points. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_hamiltonian_cycles -- (Integer) The desired number of hamiltonian cycles. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_orbits -- (Integer) The desired number of orbits. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_spanning_trees -- (Integer) The desired number of spanning trees. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' num_vertices -- (Integer) The desired number of vertices. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' perfect -- (Boolean) planar -- (Boolean) radius -- (Integer) The desired radius. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' regular -- (Boolean) spectrum -- (String) The desired spectrum. (Ordered highest to lowest, delimited by ', ' and rounded to 6 decimal places). vertex_connectivity -- (Integer) The desired vertex connectivity. (List) Format: [<String>,<Integer>] WHERE the first entry represents an inequality: '=','>','<','>=','<=' vertex_transitive -- (Boolean) EXAMPLES: The basics: sage.: graphs_query.display_properties(properties=['num_vertices','lovasz_number',\ ... 'girth','radius','diameter'], num_vertices=5,\ ... lovasz_number=3.0, girth=4, radius=2, diameter=3) sage.: graphs_query.display_properties(properties=['num_hamiltonian_cycles','regular',\ ... 'perfect','num_cycles','num_edges','spectrum'], \ ... layout='spring', num_hamiltonian_cycles=2,\ ... regular=True, perfect=False) sage.: graphs_query.display_properties(properties=['min_degree','max_degree',\ ... 'degrees_sd','average_degree','regular',\ ... 'induced_subgraphs'],layout='spring',\ ... degree_sequence=433211) Using Inequalities: sage.: graphs_query.display_properties(properties=['energy','spectrum','eigenvalues_sd',\ ... 'complement_graph6'], layout='circular', \ ... min_eigenvalue=['=',-1], eigenvalues_sd=['<=',1], \ ... energy=['>',5]) The query string: sage.: graphs_query.display_properties(properties=['eulerian','perfect','planar','regular',\ ... 'edge_transitive','vertex_transitive','num_cycles','degree_sequence',\ ... 'induced_subgraphs','num_vertices','max_degree'], layout='spring', \ ... query='SELECT graph_data.graph6 \ ... FROM graph_data WHERE num_vertices<=4 \ ... and num_edges>3') sage.: graphs_query.display_properties(query='SELECT graph_data.graph6 FROM graph_data \ ... INNER JOIN degrees on graph_data.graph_id=degrees.graph_id \ ... WHERE num_vertices>6 and eulerian=1 and regular=0 and planar=1 \ ... and num_cycles<=2', properties=['clique_number','independence_number']) sage.: graphs_query.display_properties(query="SELECT graph_data.graph6 \ ... FROM graph_data INNER JOIN misc on \ ... misc.graph_id=graph_data.graph_id WHERE \ ... misc.induced_subgraphs regexp '.*E~~w.*'", \ ... properties=['induced_subgraphs']) """ from sage.plot.plot import plot
eff23c93d1a7100c66dd3933d688f81e84b5bffd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/eff23c93d1a7100c66dd3933d688f81e84b5bffd/graph_database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 4738, 12, 2890, 16, 1790, 33, 7036, 16, 3511, 2218, 11614, 9559, 2187, 843, 33, 7036, 16, 2667, 26, 33, 7036, 16, 521, 818, 67, 17476, 33, 7036, 16, 818, 67, 8746, 33, 7036, 16, 818, 67, 23976, 33, 7036, 16, 818, 67, 76, 11580, 1917, 2779, 67, 23976, 33, 7036, 16, 521, 425, 17040, 2779, 33, 7036, 16, 4995, 297, 33, 7036, 16, 24746, 33, 7036, 16, 437, 4423, 94, 67, 2696, 33, 7036, 16, 521, 17161, 67, 4660, 26, 33, 7036, 16, 2059, 67, 17532, 67, 1467, 33, 7036, 16, 818, 67, 280, 6789, 33, 7036, 16, 521, 818, 67, 12429, 67, 4139, 33, 7036, 16, 5253, 67, 2338, 3720, 33, 7036, 16, 3591, 67, 2338, 3720, 33, 7036, 16, 521, 10782, 67, 6178, 33, 7036, 16, 1131, 67, 21361, 33, 7036, 16, 943, 67, 21361, 33, 7036, 16, 521, 8164, 67, 21361, 33, 7036, 16, 10904, 67, 6427, 33, 7036, 16, 6736, 33, 7036, 16, 521, 5253, 67, 3612, 2818, 33, 7036, 16, 3591, 67, 3612, 2818, 33, 7036, 16, 521, 818, 67, 8119, 33, 7036, 16, 314, 10542, 33, 7036, 16, 5725, 33, 7036, 16, 26386, 33, 7036, 16, 521, 31380, 67, 2696, 33, 7036, 16, 316, 5817, 802, 67, 2696, 33, 7036, 16, 818, 67, 5150, 67, 17476, 33, 7036, 16, 521, 1131, 67, 15281, 67, 3165, 67, 1467, 33, 7036, 16, 818, 67, 1752, 10903, 67, 17204, 33, 7036, 16, 521, 1547, 26372, 67, 1717, 30016, 33, 7036, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 4738, 12, 2890, 16, 1790, 33, 7036, 16, 3511, 2218, 11614, 9559, 2187, 843, 33, 7036, 16, 2667, 26, 33, 7036, 16, 521, 818, 67, 17476, 33, 7036, 16, 818, 67, 8746, 33, 7036, 16, 818, 67, 23976, 33, 7036, 16, 818, 67, 76, 11580, 1917, 2779, 67, 23976, 33, 7036, 16, 521, 425, 17040, 2779, 33, 7036, 16, 4995, 297, 33, 7036, 16, 24746, 33, 7036, 16, 437, 4423, 94, 67, 2696, 33, 7036, 16, 521, 17161, 67, 4660, 26, 33, 7036, 16, 2059, 67, 17532, 67, 1467, 33, 7036, 16, 818, 67, 280, 6789, 33, 7036, 16, 521, 818, 67, 12429, 67, 4139, 33, 7036, 16, 5253, 67, 2338, 3720, 33, 7036, 16, 3591, 2 ]
writer = io.StringIO(encoding=encoding)
use_encoding = "utf-8" if encoding is None else encoding writer = io.StringIO(encoding=use_encoding)
def toprettyxml(self, indent="\t", newl="\n", encoding=None): # indent = the indentation string to prepend, per level # newl = the newline string to append writer = io.StringIO(encoding=encoding) if self.nodeType == Node.DOCUMENT_NODE: # Can pass encoding only to document, to put it into XML header self.writexml(writer, "", indent, newl, encoding) else: self.writexml(writer, "", indent, newl) if encoding is None: return writer.getvalue() else: return writer.buffer.getvalue()
1db07efeadb72a42f142fcce25692aa3a036b146 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/1db07efeadb72a42f142fcce25692aa3a036b146/minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 19073, 2902, 12, 2890, 16, 3504, 1546, 64, 88, 3113, 394, 80, 1546, 64, 82, 3113, 2688, 33, 7036, 4672, 468, 3504, 273, 326, 12018, 533, 358, 8254, 16, 1534, 1801, 468, 394, 80, 273, 326, 9472, 533, 358, 714, 999, 67, 5999, 273, 315, 3158, 17, 28, 6, 309, 2688, 353, 599, 469, 2688, 2633, 273, 2527, 18, 780, 4294, 12, 5999, 33, 1202, 67, 5999, 13, 309, 365, 18, 2159, 559, 422, 2029, 18, 18450, 67, 8744, 30, 468, 4480, 1342, 2688, 1338, 358, 1668, 16, 358, 1378, 518, 1368, 3167, 1446, 365, 18, 5363, 338, 781, 12, 6299, 16, 23453, 3504, 16, 394, 80, 16, 2688, 13, 469, 30, 365, 18, 5363, 338, 781, 12, 6299, 16, 23453, 3504, 16, 394, 80, 13, 309, 2688, 353, 599, 30, 327, 2633, 18, 588, 1132, 1435, 469, 30, 327, 2633, 18, 4106, 18, 588, 1132, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 358, 19073, 2902, 12, 2890, 16, 3504, 1546, 64, 88, 3113, 394, 80, 1546, 64, 82, 3113, 2688, 33, 7036, 4672, 468, 3504, 273, 326, 12018, 533, 358, 8254, 16, 1534, 1801, 468, 394, 80, 273, 326, 9472, 533, 358, 714, 999, 67, 5999, 273, 315, 3158, 17, 28, 6, 309, 2688, 353, 599, 469, 2688, 2633, 273, 2527, 18, 780, 4294, 12, 5999, 33, 1202, 67, 5999, 13, 309, 365, 18, 2159, 559, 422, 2029, 18, 18450, 67, 8744, 30, 468, 4480, 1342, 2688, 1338, 358, 1668, 16, 358, 1378, 518, 1368, 3167, 1446, 365, 18, 5363, 338, 781, 12, 6299, 16, 23453, 3504, 16, 394, 80, 16, 2688, 13, 469, 30, 365, 18, 5363, 338, 781, 2 ]
avg = sum(diskFree)/len(diskFree) avgp = 100 * avg / diskTotal[0]
avg = round(sum(diskFree)/len(diskFree), 2) avgp = round(100 * avg / diskTotal[0], 2)
def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email or host or user: return None
76334c6b3cd698e75ba1c275cbedf6be7e3e6aea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/76334c6b3cd698e75ba1c275cbedf6be7e3e6aea/untangle_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 578, 1479, 578, 729, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
nslist = [inst['Name'] for inst in nsinsts]
nslist = [inst['Name'].strip('/') for inst in nsinsts]
def EnumNamespaces(req, url): conn = _frontMatter(req, url, '') nsinsts = [] try: for nsclass in ['CIM_Namespace', '__Namespace']: for interopns in ['Interop', 'interop', 'root', 'root/cimv2']: try: nsinsts = conn.EnumerateInstanceNames(nsclass, namespace = interopns) except pywbem.cim_http.AuthError, arg: raise apache.SERVER_RETURN, apache.HTTP_UNAUTHORIZED except pywbem.CIMError, arg: if arg[0] in [pywbem.CIM_ERR_INVALID_NAMESPACE, pywbem.CIM_ERR_NOT_SUPPORTED, pywbem.CIM_ERR_INVALID_CLASS]: continue else: raise if len(nsinsts) == 0: continue break if len(nsinsts) == 0: continue break except pywbem.CIMError, arg: ht = _printHead('Error') details = _code2string(arg[0]) ht+= '<i>'+details[0]+': '+details[1]+': '+cgi.escape(arg[1])+'</i>' return ht + '</body></html>' ht = _printHead('Namespaces','CIM Namespaces in '+url, req) if len(nsinsts) == 0: ht+= '<h1>Error</h1>' ht+= 'Unable to enumerate Namespaces. Return to the ' ht+= '<a href="'+_baseScript(req)+'">Login page</a> and specify a ' ht+= 'Namespace.' if req.conn.last_reply is not None: ht+= '<pre>'+cgi.escape(req.conn.last_reply)+'</pre>' return ht + '</body></html>' urlargs = {} urlargs['url'] = url nslist = [inst['Name'] for inst in nsinsts] if interopns not in nslist: # Pegasus didn't get the memo that namespaces aren't hierarchical # This will fall apart if there exists a namespace # <interopns>/<interopns> # Maybe we should check the Server: HTTP header instead. nslist = [interopns+'/'+subns for subns in nslist] nslist.append(interopns) nslist.sort() nsd = None if 'root/PG_InterOp' in nslist: nsd = dict([(x, 0) for x in nslist]) caps = conn.EnumerateInstances('PG_ProviderCapabilities', namespace='root/PG_InterOp', PropertyList=['Namespaces']) for cap in caps: for _ns in cap['Namespaces']: try: nsd[_ns] += 1 except KeyError: pass ht+= '<table border=0>' for nsname in nslist: urlargs['ns'] = nsname urlargs['instOnly'] = 'false' ht+= '<tr><td>'+_makeHref(req, 'EnumClassNames', urlargs, nsname) ht+= '</td><td>&nbsp;&nbsp;' if nsd and nsd[nsname] > 0: urlargs['instOnly'] = 'true' ht+= _makeHref(req, 'EnumClassNames', urlargs, '%s Instrumented Classes' % nsd[nsname]) ht+= '</td></tr>' ht+= '</table>' return ht + '</body></html>'
24574ed02a4b3e4d6c5c7556ecdd9fccf443fb74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1450/24574ed02a4b3e4d6c5c7556ecdd9fccf443fb74/yawn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6057, 13180, 12, 3658, 16, 880, 4672, 1487, 273, 389, 10211, 49, 9293, 12, 3658, 16, 880, 16, 28707, 3153, 8591, 87, 273, 5378, 775, 30, 364, 290, 1017, 459, 316, 10228, 39, 3445, 67, 3402, 2187, 4940, 3402, 3546, 30, 364, 1554, 556, 2387, 316, 10228, 2465, 556, 2187, 296, 30376, 2187, 296, 3085, 2187, 296, 3085, 19, 71, 381, 90, 22, 3546, 30, 775, 30, 3153, 8591, 87, 273, 1487, 18, 3572, 12600, 1442, 1557, 12, 82, 1017, 459, 16, 1981, 273, 1554, 556, 2387, 13, 1335, 2395, 9464, 351, 18, 71, 381, 67, 2505, 18, 1730, 668, 16, 1501, 30, 1002, 12291, 18, 4370, 67, 14033, 16, 12291, 18, 3693, 67, 2124, 28383, 1335, 2395, 9464, 351, 18, 39, 3445, 668, 16, 1501, 30, 309, 1501, 63, 20, 65, 316, 306, 2074, 9464, 351, 18, 39, 3445, 67, 9712, 67, 9347, 67, 11368, 16, 2395, 9464, 351, 18, 39, 3445, 67, 9712, 67, 4400, 67, 21134, 16, 2395, 9464, 351, 18, 39, 3445, 67, 9712, 67, 9347, 67, 5237, 14542, 1324, 469, 30, 1002, 309, 562, 12, 2387, 8591, 87, 13, 422, 374, 30, 1324, 898, 309, 562, 12, 2387, 8591, 87, 13, 422, 374, 30, 1324, 898, 1335, 2395, 9464, 351, 18, 39, 3445, 668, 16, 1501, 30, 14049, 273, 389, 1188, 1414, 2668, 668, 6134, 3189, 273, 389, 710, 22, 1080, 12, 3175, 63, 20, 5717, 14049, 15, 33, 2368, 77, 1870, 15, 6395, 63, 20, 3737, 4278, 15126, 6395, 63, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6057, 13180, 12, 3658, 16, 880, 4672, 1487, 273, 389, 10211, 49, 9293, 12, 3658, 16, 880, 16, 28707, 3153, 8591, 87, 273, 5378, 775, 30, 364, 290, 1017, 459, 316, 10228, 39, 3445, 67, 3402, 2187, 4940, 3402, 3546, 30, 364, 1554, 556, 2387, 316, 10228, 2465, 556, 2187, 296, 30376, 2187, 296, 3085, 2187, 296, 3085, 19, 71, 381, 90, 22, 3546, 30, 775, 30, 3153, 8591, 87, 273, 1487, 18, 3572, 12600, 1442, 1557, 12, 82, 1017, 459, 16, 1981, 273, 1554, 556, 2387, 13, 1335, 2395, 9464, 351, 18, 71, 381, 67, 2505, 18, 1730, 668, 16, 1501, 30, 1002, 12291, 18, 4370, 67, 14033, 16, 12291, 18, 3693, 67, 2124, 28383, 1335, 2395, 2 ]
if dir.find(sysdir + '/') == 0:
if dir.startswith(sysdir + '/'):
def check(self, pkg):
751ad2065972e4fb64b6d623b68426f04b14bc0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10341/751ad2065972e4fb64b6d623b68426f04b14bc0a/LibraryPolicyCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'iclass=%s'%wins[0].get_class_group.get_res_class())
'iclass=%s'%wins[0].get_class_group().get_res_class())
def action_compiz_scale_windows(self, widget, event): wins = self.get_unminimized_windows() if not wins: return print len(wins) if len(wins) == 1: self.windows[wins[0]].action_select_window(widget, event) return if self.globals.settings['show_only_current_desktop']: path = 'scale/allscreens/initiate_key' else: path = 'scale/allscreens/initiate_all_key' try: compiz_call(path, 'activate','root', self.root_xid,'match', \ 'iclass=%s'%wins[0].get_class_group.get_res_class()) except: return # A new button enter signal is sent when compiz is called, # a delay is therefor needed. gobject.timeout_add(self.globals.settings['popup_delay'] + 200, self.hide_list)
8e00a7e5b5b3c89cce94ef2f6ad5d6e30282f889 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/8e00a7e5b5b3c89cce94ef2f6ad5d6e30282f889/groupbutton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 2919, 452, 67, 5864, 67, 13226, 12, 2890, 16, 3604, 16, 871, 4672, 31307, 273, 365, 18, 588, 67, 318, 1154, 381, 1235, 67, 13226, 1435, 309, 486, 31307, 30, 327, 1172, 562, 12, 91, 2679, 13, 309, 562, 12, 91, 2679, 13, 422, 404, 30, 365, 18, 13226, 63, 91, 2679, 63, 20, 65, 8009, 1128, 67, 4025, 67, 5668, 12, 6587, 16, 871, 13, 327, 309, 365, 18, 16227, 18, 4272, 3292, 4500, 67, 3700, 67, 2972, 67, 31949, 3546, 30, 589, 273, 296, 5864, 19, 454, 1017, 266, 773, 19, 2738, 3840, 67, 856, 11, 469, 30, 589, 273, 296, 5864, 19, 454, 1017, 266, 773, 19, 2738, 3840, 67, 454, 67, 856, 11, 775, 30, 1161, 452, 67, 1991, 12, 803, 16, 296, 10014, 17023, 3085, 2187, 365, 18, 3085, 67, 6212, 11189, 1916, 2187, 521, 296, 335, 459, 5095, 87, 11, 9, 91, 2679, 63, 20, 8009, 588, 67, 1106, 67, 1655, 7675, 588, 67, 455, 67, 1106, 10756, 1335, 30, 327, 468, 432, 394, 3568, 6103, 4277, 353, 3271, 1347, 1161, 452, 353, 2566, 16, 468, 279, 4624, 353, 1915, 1884, 3577, 18, 314, 1612, 18, 4538, 67, 1289, 12, 2890, 18, 16227, 18, 4272, 3292, 16086, 67, 10790, 3546, 397, 4044, 16, 365, 18, 11248, 67, 1098, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 2919, 452, 67, 5864, 67, 13226, 12, 2890, 16, 3604, 16, 871, 4672, 31307, 273, 365, 18, 588, 67, 318, 1154, 381, 1235, 67, 13226, 1435, 309, 486, 31307, 30, 327, 1172, 562, 12, 91, 2679, 13, 309, 562, 12, 91, 2679, 13, 422, 404, 30, 365, 18, 13226, 63, 91, 2679, 63, 20, 65, 8009, 1128, 67, 4025, 67, 5668, 12, 6587, 16, 871, 13, 327, 309, 365, 18, 16227, 18, 4272, 3292, 4500, 67, 3700, 67, 2972, 67, 31949, 3546, 30, 589, 273, 296, 5864, 19, 454, 1017, 266, 773, 19, 2738, 3840, 67, 856, 11, 469, 30, 589, 273, 296, 5864, 19, 454, 1017, 266, 773, 19, 2738, 3840, 67, 454, 67, 856, 2 ]
MAXVERSIONS = [("MAX5", "SOFTWARE\\Autodesk\\3DSMAX\\5.0\\MAX-1:409", "uninstallpath", "Cstudio\\Sdk"), ("MAX6", "SOFTWARE\\Autodesk\\3DSMAX\\6.0", "installdir", "maxsdk\\cssdk\\include"), ("MAX7", "SOFTWARE\\Autodesk\\3DSMAX\\7.0", "Installdir", "maxsdk\\include\\CS")] for version,key1,key2,subdir in MAXVERSIONS:
MAXVERSIONINFO = [("MAX6", "SOFTWARE\\Autodesk\\3DSMAX\\6.0", "installdir", "maxsdk\\cssdk\\include"), ("MAX7", "SOFTWARE\\Autodesk\\3DSMAX\\7.0", "Installdir", "maxsdk\\include\\CS"), ("MAX8", "SOFTWARE\\Autodesk\\3DSMAX\\8.0", "Installdir", "maxsdk\\include\\CS"), ] for version,key1,key2,subdir in MAXVERSIONINFO:
def parseopts(args): global COMPILER,OPTIMIZE,OMIT,INSTALLER,GENMAN,SLAVEBUILD global VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE,SLAVEFILE,THREADCOUNT longopts = [ "help","package-info","compiler=","directx-sdk=","slavebuild=", "optimize=","everything","nothing","installer","quiet","verbose", "version=","lzma","no-python","slaves=","threads="] anything = 0 for pkg in PACKAGES: longopts.append("no-"+pkg.lower()) for pkg in PACKAGES: longopts.append("use-"+pkg.lower()) try: opts, extras = getopt.getopt(args, "", longopts) for option,value in opts: if (option=="--help"): raise "usage" elif (option=="--package-info"): raise "package-info" elif (option=="--compiler"): COMPILER=value elif (option=="--directx-sdk"): DIRECTXSDK=value elif (option=="--optimize"): OPTIMIZE=value elif (option=="--quiet"): VERBOSE-=1 elif (option=="--verbose"): VERBOSE+=1 elif (option=="--installer"): INSTALLER=1 elif (option=="--genman"): GENMAN=1 elif (option=="--everything"): OMIT=[] elif (option=="--nothing"): OMIT=PACKAGES[:] elif (option=="--slaves"): SLAVEFILE=value elif (option=="--threads"): THREADCOUNT=int(value) elif (option=="--slavebuild"): SLAVEBUILD=value elif (option=="--version"): VERSION=value if (len(VERSION.split(".")) != 3): raise "usage" elif (option=="--lzma"): COMPRESSOR="lzma" else: for pkg in PACKAGES: if (option=="--use-"+pkg.lower()): if (OMIT.count(pkg)): OMIT.remove(pkg) break for pkg in PACKAGES: if (option=="--no-"+pkg.lower()): if (OMIT.count(pkg)==0): OMIT.append(pkg) break anything = 1 except "package-info": packageInfo() except: usage(0) if (anything==0): usage(0) if (OPTIMIZE=="1"): OPTIMIZE=1 elif (OPTIMIZE=="2"): OPTIMIZE=2 elif (OPTIMIZE=="3"): OPTIMIZE=3 elif (OPTIMIZE=="4"): OPTIMIZE=4 else: usage("Invalid setting for OPTIMIZE") if (COMPILERS.count(COMPILER)==0): usage("Invalid setting for COMPILER: "+COMPILER)
c92b9d824116f0d2cc2e67ded17a2f353593d4fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c92b9d824116f0d2cc2e67ded17a2f353593d4fb/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 5423, 1102, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 28865, 654, 16, 16652, 9560, 16, 55, 2534, 3412, 20215, 2552, 8456, 16, 4208, 22526, 916, 16, 17541, 60, 22625, 16, 21900, 16, 55, 2534, 3412, 3776, 16, 21730, 7240, 1525, 4952, 273, 306, 315, 5201, 15937, 5610, 17, 1376, 15937, 9576, 1546, 10837, 7205, 92, 17, 20907, 1546, 10837, 27352, 3510, 1546, 16, 315, 29155, 1546, 10837, 20434, 4274, 15937, 30874, 15937, 20163, 15937, 20380, 15937, 11369, 3113, 315, 1589, 1546, 10837, 80, 94, 2540, 15937, 2135, 17, 8103, 15937, 2069, 6606, 1546, 10837, 12495, 1546, 65, 6967, 273, 374, 364, 3475, 316, 23599, 55, 30, 1525, 4952, 18, 6923, 2932, 2135, 10951, 15, 10657, 18, 8167, 10756, 364, 3475, 316, 23599, 55, 30, 1525, 4952, 18, 6923, 2932, 1202, 10951, 15, 10657, 18, 8167, 10756, 775, 30, 1500, 16, 11875, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 23453, 1525, 4952, 13, 364, 1456, 16, 1132, 316, 1500, 30, 309, 261, 3482, 31713, 413, 5201, 6, 4672, 1002, 315, 9167, 6, 1327, 261, 3482, 31713, 413, 5610, 17, 1376, 6, 4672, 1002, 315, 5610, 17, 1376, 6, 1327, 261, 3482, 31713, 413, 9576, 6, 4672, 5423, 1102, 14668, 33, 1132, 1327, 261, 3482, 31713, 413, 7205, 92, 17, 20907, 6, 4672, 29100, 60, 22625, 33, 1132, 1327, 261, 3482, 31713, 413, 29155, 6, 4672, 16456, 3445, 15641, 33, 1132, 1327, 261, 3482, 31713, 413, 20380, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4952, 12, 1968, 4672, 2552, 5423, 1102, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 28865, 654, 16, 16652, 9560, 16, 55, 2534, 3412, 20215, 2552, 8456, 16, 4208, 22526, 916, 16, 17541, 60, 22625, 16, 21900, 16, 55, 2534, 3412, 3776, 16, 21730, 7240, 1525, 4952, 273, 306, 315, 5201, 15937, 5610, 17, 1376, 15937, 9576, 1546, 10837, 7205, 92, 17, 20907, 1546, 10837, 27352, 3510, 1546, 16, 315, 29155, 1546, 10837, 20434, 4274, 15937, 30874, 15937, 20163, 15937, 20380, 15937, 11369, 3113, 315, 1589, 1546, 10837, 80, 94, 2540, 15937, 2135, 17, 8103, 15937, 2069, 6606, 1546, 10837, 12495, 1546, 65, 6967, 273, 374, 364, 3475, 316, 23599, 55, 30, 1525, 4952, 18, 6923, 2 ]
if for_stat == True:
if for_stat:
def _genCacheOpcodes(self, fusepath, for_stat=False): ''' Method encapsulating cache operations and determination of whether or not to use a cached copy, an nfs copy, update the cache, or raise an enoent.
a6d9cd0d8a6113b58070216ec182ebfa2f368118 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/a6d9cd0d8a6113b58070216ec182ebfa2f368118/cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 1649, 51, 18108, 12, 2890, 16, 19552, 803, 16, 364, 67, 5642, 33, 8381, 4672, 9163, 2985, 22106, 27967, 1247, 5295, 471, 6328, 367, 434, 2856, 578, 486, 358, 999, 279, 3472, 1610, 16, 392, 290, 2556, 1610,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4507, 1649, 51, 18108, 12, 2890, 16, 19552, 803, 16, 364, 67, 5642, 33, 8381, 4672, 9163, 2985, 22106, 27967, 1247, 5295, 471, 6328, 367, 434, 2856, 578, 486, 358, 999, 279, 3472, 1610, 16, 392, 290, 2556, 1610, 16, 1089, 326, 1247, 16, 578, 1002, 392, 570, 83, 319, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not parsed: print "SHELL: D'oh! The .bb files haven't been parsed yet. Next time call 'parse' before building stuff. This time I'll do it for 'ya." self.parse( None )
self._checkParsed()
def which( self, params ): """Computes the providers for a given providee""" item = params[0]
d0f9b4561cda2df828b4828cd97f219bd81e6c59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/d0f9b4561cda2df828b4828cd97f219bd81e6c59/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1492, 12, 365, 16, 859, 262, 30, 3536, 10743, 326, 9165, 364, 279, 864, 5615, 73, 8395, 761, 273, 859, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gap.eval('RequirePackage("HAP")')
load_hap()
def homology(self, n, p = 0): r""" Computes the group homology $H_n(G, F)$, where $F = Z$ if $p=0$ and $F = Z/pZ$ if $p >0$ is a prime. Wraps HAP's GroupHomology function, written by Graham Ellis.
f94ee0fd2259e59f9680be18b9e7c8204f75ddc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f94ee0fd2259e59f9680be18b9e7c8204f75ddc9/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13995, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 13995, 4676, 271, 44, 67, 82, 12, 43, 16, 478, 21877, 16, 1625, 271, 42, 273, 2285, 8, 309, 271, 84, 33, 20, 8, 471, 271, 42, 273, 2285, 19, 84, 62, 8, 309, 271, 84, 405, 20, 8, 353, 279, 17014, 18, 678, 7506, 670, 2203, 1807, 3756, 44, 362, 4676, 445, 16, 5941, 635, 10812, 31698, 512, 2906, 291, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13995, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 13995, 4676, 271, 44, 67, 82, 12, 43, 16, 478, 21877, 16, 1625, 271, 42, 273, 2285, 8, 309, 271, 84, 33, 20, 8, 471, 271, 42, 273, 2285, 19, 84, 62, 8, 309, 271, 84, 405, 20, 8, 353, 279, 17014, 18, 678, 7506, 670, 2203, 1807, 3756, 44, 362, 4676, 445, 16, 5941, 635, 10812, 31698, 512, 2906, 291, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
subject = descr_lines[0] while pos < end and descr_lines[pos] == '':
while pos < end:
def __parse_description(descr): """Parse the patch description and return the new description and author information (if any). """ subject = body = '' authname = authemail = None descr_lines = [line.strip() for line in descr.split('\n')] if not descr_lines: raise CmdException, "Empty patch description" pos = 1 end = len(descr_lines) # get the subject subject = descr_lines[0] # ignore the empty lines after subject while pos < end and descr_lines[pos] == '': pos += 1 # check for a "From:" line if pos < end and re.match('from:\s+', descr_lines[pos], re.I): auth = re.findall('^.*?:\s+(.*)$', descr_lines[pos])[0] authname, authemail = name_email(auth) pos += 1 # ignore the empty lines while pos < end and descr_lines[pos] == '': pos += 1 # get the body body = reduce(lambda x, y: x + '\n' + y, descr_lines[pos:], '').strip() return (subject + '\n\n' + body, authname, authemail)
0543bc5f5a7aa71bcb94062fc3ce019f4d274f1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/0543bc5f5a7aa71bcb94062fc3ce019f4d274f1d/imprt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 67, 3384, 12, 28313, 4672, 3536, 3201, 326, 4729, 2477, 471, 327, 326, 394, 2477, 471, 2869, 1779, 261, 430, 1281, 2934, 3536, 3221, 273, 1417, 273, 875, 1357, 529, 273, 1357, 3652, 273, 599, 225, 18426, 67, 3548, 273, 306, 1369, 18, 6406, 1435, 364, 980, 316, 18426, 18, 4939, 2668, 64, 82, 6134, 65, 309, 486, 18426, 67, 3548, 30, 1002, 13328, 503, 16, 315, 1921, 4729, 2477, 6, 225, 949, 273, 404, 679, 273, 562, 12, 28313, 67, 3548, 13, 225, 468, 336, 326, 3221, 3221, 273, 18426, 67, 3548, 63, 20, 65, 225, 468, 2305, 326, 1008, 2362, 1839, 3221, 1323, 949, 411, 679, 471, 18426, 67, 3548, 63, 917, 65, 422, 875, 30, 949, 1011, 404, 225, 468, 866, 364, 279, 315, 1265, 2773, 980, 309, 949, 411, 679, 471, 283, 18, 1916, 2668, 2080, 5581, 87, 15, 2187, 18426, 67, 3548, 63, 917, 6487, 283, 18, 45, 4672, 1357, 273, 283, 18, 4720, 454, 2668, 66, 23498, 5581, 87, 15, 14361, 8, 2187, 18426, 67, 3548, 63, 917, 5717, 63, 20, 65, 1357, 529, 16, 1357, 3652, 273, 508, 67, 3652, 12, 1944, 13, 949, 1011, 404, 225, 468, 2305, 326, 1008, 2362, 1323, 949, 411, 679, 471, 18426, 67, 3548, 63, 917, 65, 422, 875, 30, 949, 1011, 404, 225, 468, 336, 326, 1417, 1417, 273, 5459, 12, 14661, 619, 16, 677, 30, 619, 397, 2337, 82, 11, 397, 677, 16, 18426, 67, 3548, 63, 917, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 67, 3384, 12, 28313, 4672, 3536, 3201, 326, 4729, 2477, 471, 327, 326, 394, 2477, 471, 2869, 1779, 261, 430, 1281, 2934, 3536, 3221, 273, 1417, 273, 875, 1357, 529, 273, 1357, 3652, 273, 599, 225, 18426, 67, 3548, 273, 306, 1369, 18, 6406, 1435, 364, 980, 316, 18426, 18, 4939, 2668, 64, 82, 6134, 65, 309, 486, 18426, 67, 3548, 30, 1002, 13328, 503, 16, 315, 1921, 4729, 2477, 6, 225, 949, 273, 404, 679, 273, 562, 12, 28313, 67, 3548, 13, 225, 468, 336, 326, 3221, 3221, 273, 18426, 67, 3548, 63, 20, 65, 225, 468, 2305, 326, 1008, 2362, 1839, 3221, 1323, 949, 411, 679, 471, 18426, 67, 3548, 63, 917, 65, 422, 2 ]
tempProj = proj[:i] + rev + proj[j:]
tempProj = proj[:i+1] + rev + proj[j+1:]
def fixIntersectingPairs(proj, projVal, attrInfo): changed = 1 while changed: changed = 0 for i in range(len(projVal)-1): if changed: continue for j in range(i+2, len(projVal)-1): if changed: continue val1, exists1 = getAttributePairValue(proj[i], proj[j], attrInfo) val2, exists2 = getAttributePairValue(proj[i+1], proj[j+1], attrInfo) if exists1 and exists2 and (val1 + val2 > projVal[i] + projVal[j]): projVal[i] = val1 projVal[j] = val2 rev = proj[i:j] rev.reverse() tempProj = proj[:i] + rev + proj[j:] proj = tempProj changed = 1 # we rotated the projection. start checking from the begining return proj, projVal
6b4362052758b6cff2c7ba5d483e9157a64e8be1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/6b4362052758b6cff2c7ba5d483e9157a64e8be1/OWVisAttrSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 22541, 310, 10409, 12, 17995, 16, 10296, 3053, 16, 1604, 966, 4672, 3550, 273, 404, 1323, 3550, 30, 3550, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 17995, 3053, 24950, 21, 4672, 309, 3550, 30, 1324, 364, 525, 316, 1048, 12, 77, 15, 22, 16, 562, 12, 17995, 3053, 24950, 21, 4672, 309, 3550, 30, 1324, 1244, 21, 16, 1704, 21, 273, 4061, 4154, 620, 12, 17995, 63, 77, 6487, 10296, 63, 78, 6487, 1604, 966, 13, 1244, 22, 16, 1704, 22, 273, 4061, 4154, 620, 12, 17995, 63, 77, 15, 21, 6487, 10296, 63, 78, 15, 21, 6487, 1604, 966, 13, 309, 1704, 21, 471, 1704, 22, 471, 261, 1125, 21, 397, 1244, 22, 405, 10296, 3053, 63, 77, 65, 397, 10296, 3053, 63, 78, 65, 4672, 10296, 3053, 63, 77, 65, 273, 1244, 21, 10296, 3053, 63, 78, 65, 273, 1244, 22, 5588, 273, 10296, 63, 77, 30, 78, 65, 5588, 18, 9845, 1435, 1906, 626, 78, 273, 10296, 10531, 77, 15, 21, 65, 397, 5588, 397, 10296, 63, 78, 15, 21, 26894, 10296, 273, 1906, 626, 78, 3550, 273, 404, 377, 468, 732, 22864, 326, 8106, 18, 787, 6728, 628, 326, 2376, 310, 327, 10296, 16, 10296, 3053, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 22541, 310, 10409, 12, 17995, 16, 10296, 3053, 16, 1604, 966, 4672, 3550, 273, 404, 1323, 3550, 30, 3550, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 17995, 3053, 24950, 21, 4672, 309, 3550, 30, 1324, 364, 525, 316, 1048, 12, 77, 15, 22, 16, 562, 12, 17995, 3053, 24950, 21, 4672, 309, 3550, 30, 1324, 1244, 21, 16, 1704, 21, 273, 4061, 4154, 620, 12, 17995, 63, 77, 6487, 10296, 63, 78, 6487, 1604, 966, 13, 1244, 22, 16, 1704, 22, 273, 4061, 4154, 620, 12, 17995, 63, 77, 15, 21, 6487, 10296, 63, 78, 15, 21, 6487, 1604, 966, 13, 309, 1704, 21, 471, 1704, 22, 471, 261, 1125, 21, 397, 1244, 22, 405, 2 ]
getRecipeStores = os.popen("/bin/sh -c '. " + file +" 2> /dev/null; for i in \"${getRecipeStores[@]}\"; do echo $i; done'").read().strip('\n').split('\n')
getRecipeStores = os.popen("/bin/bash -c '. " + file +" 2> /dev/null; for i in \"${getRecipeStores[@]}\"; do echo $i; done'").read().strip('\n').split('\n')
def getCompileOptions() : import os goboUserSettings = getGoboVariable('goboUserSettings') goboSettings = getGoboVariable('goboSettings') goboPrograms = getGoboVariable('goboPrograms') goboCompileDefaults = goboPrograms+'/Compile/Current/Resources/Defaults/Settings/' compileSettingsFiles = [ goboUserSettings + "/Compile/Compile.conf", goboSettings + "/Compile/Compile.conf", goboCompileDefaults+"/Compile/Compile.conf" ] try : compileRecipeDirs = os.environ['compileRecipeDirs'].strip('\n').split() except : for file in compileSettingsFiles : compileRecipeDirs = os.popen("/bin/sh -c '. " +file+" 2> /dev/null; for i in \"${compileRecipeDirs[@]}\"; do echo $i; done'").read().strip('\n').split('\n') if compileRecipeDirs and compileRecipeDirs[0] : break try : getRecipeStores = os.environ['getRecipeStores'].strip('\n').split('\n') except : for file in compileSettingsFiles : getRecipeStores = os.popen("/bin/sh -c '. " + file +" 2> /dev/null; for i in \"${getRecipeStores[@]}\"; do echo $i; done'").read().strip('\n').split('\n') if getRecipeStores and getRecipeStores[0] : break #import sys #sys.stderr.write(str(compileRecipeDirs)) #sys.stderr.write(str(getRecipeStores)) import os.path return (map(os.path.expanduser,compileRecipeDirs), getRecipeStores)
e668b5802456f5dcdab7591814f8c4cc25c74d98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5186/e668b5802456f5dcdab7591814f8c4cc25c74d98/PythonUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9937, 1320, 1435, 294, 1930, 1140, 225, 20062, 83, 1299, 2628, 273, 7162, 947, 83, 3092, 2668, 75, 947, 83, 1299, 2628, 6134, 20062, 83, 2628, 273, 7162, 947, 83, 3092, 2668, 75, 947, 83, 2628, 6134, 20062, 83, 9459, 87, 273, 7162, 947, 83, 3092, 2668, 75, 947, 83, 9459, 87, 6134, 20062, 83, 9937, 7019, 273, 20062, 83, 9459, 87, 6797, 19, 9937, 19, 3935, 19, 3805, 19, 7019, 19, 2628, 2473, 4074, 2628, 2697, 273, 306, 20062, 83, 1299, 2628, 397, 2206, 9937, 19, 9937, 18, 3923, 3113, 20062, 83, 2628, 397, 2206, 9937, 19, 9937, 18, 3923, 3113, 225, 20062, 83, 9937, 7019, 9078, 19, 9937, 19, 9937, 18, 3923, 6, 308, 225, 775, 294, 4074, 5650, 3151, 9872, 273, 1140, 18, 28684, 3292, 11100, 5650, 3151, 9872, 29489, 6406, 2668, 64, 82, 16063, 4939, 1435, 1335, 294, 364, 585, 316, 4074, 2628, 2697, 294, 4074, 5650, 3151, 9872, 273, 1140, 18, 84, 3190, 2932, 19, 4757, 19, 674, 300, 71, 2418, 315, 397, 768, 9078, 576, 34, 342, 5206, 19, 2011, 31, 364, 277, 316, 1239, 18498, 11100, 5650, 3151, 9872, 14782, 65, 16276, 31, 741, 3376, 271, 77, 31, 2731, 4970, 2934, 896, 7675, 6406, 2668, 64, 82, 16063, 4939, 2668, 64, 82, 6134, 309, 4074, 5650, 3151, 9872, 471, 4074, 5650, 3151, 9872, 63, 20, 65, 294, 898, 225, 775, 294, 5561, 71, 3151, 13125, 273, 1140, 18, 28684, 3292, 588, 5650, 3151, 13125, 29489, 6406, 2668, 64, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9937, 1320, 1435, 294, 1930, 1140, 225, 20062, 83, 1299, 2628, 273, 7162, 947, 83, 3092, 2668, 75, 947, 83, 1299, 2628, 6134, 20062, 83, 2628, 273, 7162, 947, 83, 3092, 2668, 75, 947, 83, 2628, 6134, 20062, 83, 9459, 87, 273, 7162, 947, 83, 3092, 2668, 75, 947, 83, 9459, 87, 6134, 20062, 83, 9937, 7019, 273, 20062, 83, 9459, 87, 6797, 19, 9937, 19, 3935, 19, 3805, 19, 7019, 19, 2628, 2473, 4074, 2628, 2697, 273, 306, 20062, 83, 1299, 2628, 397, 2206, 9937, 19, 9937, 18, 3923, 3113, 20062, 83, 2628, 397, 2206, 9937, 19, 9937, 18, 3923, 3113, 225, 20062, 83, 9937, 7019, 9078, 19, 9937, 19, 9937, 18, 3923, 6, 308, 225, 2 ]
gc.disable()
def choose_image_update2(self): gc.disable() self.stop_art_update = False # Retrieve all images from amazon: artist_search = self.remote_artistentry.get_text() album_search = self.remote_albumentry.get_text() if len(artist_search) == 0 and len(album_search) == 0: gobject.idle_add(self.choose_image_no_artist_or_album_dialog) return filename = os.path.expanduser("~/.covers/temp/<imagenum>.jpg") if os.path.exists(os.path.dirname(filename)): removeall(os.path.dirname(filename)) if not os.path.exists(os.path.dirname(filename)): os.mkdir(os.path.dirname(filename)) imgfound = self.download_image_to_filename(artist_search, album_search, filename, True, True) self.change_cursor(None) if self.chooseimage_visible: if not imgfound: gobject.idle_add(self.choose_image_no_art_found) self.allow_art_search = True self.call_gc_collect = True gc.enable()
cf641a3be7814ac8c28fad1ecb9dab568ab225cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/cf641a3be7814ac8c28fad1ecb9dab568ab225cc/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 2730, 67, 2725, 22, 12, 2890, 4672, 365, 18, 5681, 67, 485, 67, 2725, 273, 1083, 468, 10708, 777, 4602, 628, 3750, 30, 15469, 67, 3072, 273, 365, 18, 7222, 67, 25737, 4099, 18, 588, 67, 955, 1435, 14844, 67, 3072, 273, 365, 18, 7222, 67, 25090, 4099, 18, 588, 67, 955, 1435, 309, 562, 12, 25737, 67, 3072, 13, 422, 374, 471, 562, 12, 25090, 67, 3072, 13, 422, 374, 30, 314, 1612, 18, 20390, 67, 1289, 12, 2890, 18, 25777, 67, 2730, 67, 2135, 67, 25737, 67, 280, 67, 25090, 67, 12730, 13, 327, 1544, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 14014, 414, 19, 5814, 28177, 15374, 7924, 18652, 14362, 7923, 309, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 3459, 3719, 30, 1206, 454, 12, 538, 18, 803, 18, 12287, 12, 3459, 3719, 309, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 3459, 3719, 30, 1140, 18, 26686, 12, 538, 18, 803, 18, 12287, 12, 3459, 3719, 3774, 7015, 273, 365, 18, 7813, 67, 2730, 67, 869, 67, 3459, 12, 25737, 67, 3072, 16, 14844, 67, 3072, 16, 1544, 16, 1053, 16, 1053, 13, 365, 18, 3427, 67, 9216, 12, 7036, 13, 309, 365, 18, 25777, 2730, 67, 8613, 30, 309, 486, 3774, 7015, 30, 314, 1612, 18, 20390, 67, 1289, 12, 2890, 18, 25777, 67, 2730, 67, 2135, 67, 485, 67, 7015, 13, 365, 18, 5965, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 2730, 67, 2725, 22, 12, 2890, 4672, 365, 18, 5681, 67, 485, 67, 2725, 273, 1083, 468, 10708, 777, 4602, 628, 3750, 30, 15469, 67, 3072, 273, 365, 18, 7222, 67, 25737, 4099, 18, 588, 67, 955, 1435, 14844, 67, 3072, 273, 365, 18, 7222, 67, 25090, 4099, 18, 588, 67, 955, 1435, 309, 562, 12, 25737, 67, 3072, 13, 422, 374, 471, 562, 12, 25090, 67, 3072, 13, 422, 374, 30, 314, 1612, 18, 20390, 67, 1289, 12, 2890, 18, 25777, 67, 2730, 67, 2135, 67, 25737, 67, 280, 67, 25090, 67, 12730, 13, 327, 1544, 273, 1140, 18, 803, 18, 12320, 1355, 2932, 98, 15865, 14014, 414, 19, 5814, 28177, 15374, 7924, 18652, 14362, 2 ]
self.assertEquals(FLAGS.x, 74565)
self.assertEquals(FLAGS.x, 0x12345)
def test_flags(self):
193f7d1add8b9e20126216b0be246c4b21a1a7dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7924/193f7d1add8b9e20126216b0be246c4b21a1a7dc/gflags_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7133, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7133, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else: return value
return value
def process(value): # pymssql will return SMALLDATETIME values as datetime.datetime(), truncate it back to datetime.date() if value and isinstance(value, datetime.datetime): return value.date() else: return value
46720f0bbcf78a609cbcc1b7af55a8f4fb4ec319 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/46720f0bbcf78a609cbcc1b7af55a8f4fb4ec319/mssql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1132, 4672, 468, 2395, 959, 4669, 903, 327, 17918, 22968, 924, 487, 3314, 18, 6585, 9334, 10310, 518, 1473, 358, 3314, 18, 712, 1435, 309, 460, 471, 1549, 12, 1132, 16, 3314, 18, 6585, 4672, 327, 460, 18, 712, 1435, 469, 30, 327, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1132, 4672, 468, 2395, 959, 4669, 903, 327, 17918, 22968, 924, 487, 3314, 18, 6585, 9334, 10310, 518, 1473, 358, 3314, 18, 712, 1435, 309, 460, 471, 1549, 12, 1132, 16, 3314, 18, 6585, 4672, 327, 460, 18, 712, 1435, 469, 30, 327, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.listbox = wxCheckListBox(self, -1, choices=[to_locale(c[0])
self.listbox = wxCheckListBox(self, -1, choices=[to_wx(c[0])
def __init__(self, parent, teacher_title, period_key, choices, resources): title = _("Activity Selection") wxDialog.__init__(self, parent, -1, title, style=DEFAULT_DLG_STYLE)
37c07bb93a6574354abfe8f76b9c44829e138f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/37c07bb93a6574354abfe8f76b9c44829e138f97/wxclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 6489, 27779, 67, 2649, 16, 3879, 67, 856, 16, 7246, 16, 2703, 4672, 2077, 273, 389, 2932, 6193, 12977, 7923, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 16, 2077, 16, 2154, 33, 5280, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 6489, 27779, 67, 2649, 16, 3879, 67, 856, 16, 7246, 16, 2703, 4672, 2077, 273, 389, 2932, 6193, 12977, 7923, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 16, 2077, 16, 2154, 33, 5280, 67, 8914, 43, 67, 15066, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.failUnless(e[0] == 'objects are not aligned', e)
self.failUnless(e[0].split()[1:4] == ['are', 'not', 'aligned'], e)
def not_aligned(self, x, y): z = dot(x,y) try: tz = eval_outputs([z]) except ValueError, e: self.failUnless(e[0] == 'objects are not aligned', e) return self.fail()
aee05365ada1998b19c50977836921109f92a850 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/aee05365ada1998b19c50977836921109f92a850/_test_tensor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 67, 20677, 12, 2890, 16, 619, 16, 677, 4672, 998, 273, 3928, 12, 92, 16, 93, 13, 775, 30, 6016, 273, 5302, 67, 12295, 3816, 94, 5717, 1335, 2068, 16, 425, 30, 365, 18, 6870, 984, 2656, 12, 73, 63, 20, 8009, 4939, 1435, 63, 21, 30, 24, 65, 422, 10228, 834, 2187, 296, 902, 2187, 296, 20677, 17337, 425, 13, 327, 365, 18, 6870, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 486, 67, 20677, 12, 2890, 16, 619, 16, 677, 4672, 998, 273, 3928, 12, 92, 16, 93, 13, 775, 30, 6016, 273, 5302, 67, 12295, 3816, 94, 5717, 1335, 2068, 16, 425, 30, 365, 18, 6870, 984, 2656, 12, 73, 63, 20, 8009, 4939, 1435, 63, 21, 30, 24, 65, 422, 10228, 834, 2187, 296, 902, 2187, 296, 20677, 17337, 425, 13, 327, 365, 18, 6870, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.outstream.write(">%s %s\n" % (id, description))
self.outstream.write(">%s %s%s" % (id, description,os.linesep))
def write(self, record): id = record.id description = record.description self.outstream.write(">%s %s\n" % (id, description))
842c7d3d15f376ed24a8bb00f08fad9db98860e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/842c7d3d15f376ed24a8bb00f08fad9db98860e9/generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1409, 4672, 612, 273, 1409, 18, 350, 2477, 273, 1409, 18, 3384, 225, 365, 18, 659, 3256, 18, 2626, 2932, 9822, 87, 738, 87, 64, 82, 6, 738, 261, 350, 16, 2477, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1409, 4672, 612, 273, 1409, 18, 350, 2477, 273, 1409, 18, 3384, 225, 365, 18, 659, 3256, 18, 2626, 2932, 9822, 87, 738, 87, 64, 82, 6, 738, 261, 350, 16, 2477, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if isinstance(atoms[-1], TokenObject) and atoms[-1].name == tok.COMMA:
last_token = atoms[-1] if isinstance(last_token, TokenObject) and last_token.name == tok.COMMA:
def build_print_stmt(builder, nb): """ print_stmt: 'print' ( '>>' test [ (',' test)+ [','] ] | [ test (',' test)* [','] ] ) """ atoms = get_atoms(builder, nb) l = len(atoms) items = [] dest = None start = 1 if l > 1: if isinstance(atoms[1], TokenObject) and atoms[1].name == tok.RIGHTSHIFT: dest = atoms[2] # skip following comma start = 4 for index in range(start, l, 2): items.append(atoms[index]) if isinstance(atoms[-1], TokenObject) and atoms[-1].name == tok.COMMA: builder.push(ast.Print(items, dest)) else: builder.push(ast.Printnl(items, dest))
e9b09762c21706bd72240d2078b80f33f96fbc08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/e9b09762c21706bd72240d2078b80f33f96fbc08/astbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 1188, 67, 10589, 12, 9574, 16, 4264, 4672, 3536, 1172, 67, 10589, 30, 296, 1188, 11, 261, 11279, 1870, 1842, 306, 261, 17023, 1842, 27921, 306, 2187, 3546, 308, 571, 306, 1842, 261, 17023, 1842, 17653, 306, 2187, 3546, 308, 262, 3536, 9006, 273, 336, 67, 14937, 12, 9574, 16, 4264, 13, 328, 273, 562, 12, 14937, 13, 1516, 273, 5378, 1570, 273, 599, 787, 273, 404, 309, 328, 405, 404, 30, 309, 1549, 12, 14937, 63, 21, 6487, 3155, 921, 13, 471, 9006, 63, 21, 8009, 529, 422, 946, 18, 11847, 23191, 30, 1570, 273, 9006, 63, 22, 65, 468, 2488, 3751, 8716, 787, 273, 1059, 364, 770, 316, 1048, 12, 1937, 16, 328, 16, 576, 4672, 1516, 18, 6923, 12, 14937, 63, 1615, 5717, 1142, 67, 2316, 273, 9006, 18919, 21, 65, 309, 1549, 12, 2722, 67, 2316, 16, 3155, 921, 13, 471, 1142, 67, 2316, 18, 529, 422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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, 1361, 67, 1188, 67, 10589, 12, 9574, 16, 4264, 4672, 3536, 1172, 67, 10589, 30, 296, 1188, 11, 261, 11279, 1870, 1842, 306, 261, 17023, 1842, 27921, 306, 2187, 3546, 308, 571, 306, 1842, 261, 17023, 1842, 17653, 306, 2187, 3546, 308, 262, 3536, 9006, 273, 336, 67, 14937, 12, 9574, 16, 4264, 13, 328, 273, 562, 12, 14937, 13, 1516, 273, 5378, 1570, 273, 599, 787, 273, 404, 309, 328, 405, 404, 30, 309, 1549, 12, 14937, 63, 21, 6487, 3155, 921, 13, 471, 9006, 63, 21, 8009, 529, 422, 946, 18, 11847, 23191, 30, 1570, 273, 9006, 63, 22, 65, 468, 2488, 3751, 8716, 787, 273, 1059, 364, 770, 316, 1048, 12, 1937, 16, 328, 16, 2 ]
main_result.toolbar(text="Scan this directory",icon="examine.png", link=query_type(family="Load Data", report="ScanFS", path=query['open_tree'], case=query['case']), pane='popup' )
def pane_cb(path,tmp): query['order']='Filename'
9f8757c699830af8106f5e465eb99eea756fea34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/9f8757c699830af8106f5e465eb99eea756fea34/DiskForensics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13618, 67, 7358, 12, 803, 16, 5645, 4672, 843, 3292, 1019, 3546, 2218, 5359, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13618, 67, 7358, 12, 803, 16, 5645, 4672, 843, 3292, 1019, 3546, 2218, 5359, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.engine.processFrame(StompFrame('SUBSCRIBE', headers={'destination': '/foo/bar'}))
self.engine.process_frame(StompFrame('SUBSCRIBE', headers={'destination': '/foo/bar'}))
def test_subscribe_noack(self): """ Test subscribing to topics and queues w/ no ACK. """ self._connect() self.engine.processFrame(StompFrame('SUBSCRIBE', headers={'destination': '/queue/bar'})) assert self.conn in self.qm.queues['/queue/bar'] self.engine.processFrame(StompFrame('SUBSCRIBE', headers={'destination': '/foo/bar'})) assert self.conn in self.tm.topics['/foo/bar']
f9d8d8c4b602e4da62a32eac4e04f31994d99e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10258/f9d8d8c4b602e4da62a32eac4e04f31994d99e97/test_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9174, 67, 2135, 484, 12, 2890, 4672, 3536, 7766, 10189, 310, 358, 11204, 471, 11897, 341, 19, 1158, 26069, 18, 3536, 365, 6315, 3612, 1435, 365, 18, 8944, 18, 2567, 3219, 12, 510, 20667, 3219, 2668, 8362, 26469, 2187, 1607, 5899, 11, 10590, 4278, 1173, 4000, 19, 3215, 11, 31700, 1815, 365, 18, 4646, 316, 365, 18, 26245, 18, 18924, 3292, 19, 4000, 19, 3215, 3546, 225, 365, 18, 8944, 18, 2567, 67, 3789, 12, 510, 20667, 3219, 2668, 8362, 26469, 2187, 1607, 5899, 11, 10590, 4278, 1173, 11351, 19, 3215, 11, 31700, 1815, 365, 18, 4646, 316, 365, 18, 16925, 18, 17905, 3292, 19, 11351, 19, 3215, 3546, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9174, 67, 2135, 484, 12, 2890, 4672, 3536, 7766, 10189, 310, 358, 11204, 471, 11897, 341, 19, 1158, 26069, 18, 3536, 365, 6315, 3612, 1435, 365, 18, 8944, 18, 2567, 3219, 12, 510, 20667, 3219, 2668, 8362, 26469, 2187, 1607, 5899, 11, 10590, 4278, 1173, 4000, 19, 3215, 11, 31700, 1815, 365, 18, 4646, 316, 365, 18, 26245, 18, 18924, 3292, 19, 4000, 19, 3215, 3546, 225, 365, 18, 8944, 18, 2567, 67, 3789, 12, 510, 20667, 3219, 2668, 8362, 26469, 2187, 1607, 5899, 11, 10590, 4278, 1173, 11351, 19, 3215, 11, 31700, 1815, 365, 18, 4646, 316, 365, 18, 16925, 18, 17905, 3292, 19, 11351, 19, 3215, 3546, 225, 2, -100, -100, -100, -100, -100, -100 ]
str += '<br>\n'
str += '<br>\n\n'
def _func_details(self, functions, cls, heading='Function Details'): """Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</table>'
493b240e73d87b9805c2fa61669017035e0ae245 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/493b240e73d87b9805c2fa61669017035e0ae245/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 2121, 1870, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 2121, 1870, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'amount': fields.float('Total', readonly=True, select=True),
def init(self, cr): tools.drop_view_if_exists(cr, 'report_sales_by_margin_pos') cr.execute(""" create or replace view report_sales_by_margin_pos as ( select min(pol.id) as id, po.user_id as user_id, pt.name as product_name, to_char(date_trunc('day',po.date_order),'YYYY-MM-DD')::text as date_order, sum(pol.qty) as qty, pt.list_price-pt.standard_price as net_margin_per_qty, (pt.list_price-pt.standard_price) *sum(pol.qty) as total from product_template as pt, product_product as pp, pos_order_line as pol, pos_order as po where pol.product_id = pp.product_tmpl_id and pp.product_tmpl_id = pt.id and po.id = pol.order_id
05caefc880abb2a70158b14885ef72a9ddd4f32d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/05caefc880abb2a70158b14885ef72a9ddd4f32d/pos.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 87, 5408, 67, 1637, 67, 10107, 67, 917, 6134, 4422, 18, 8837, 2932, 3660, 752, 578, 1453, 1476, 2605, 67, 87, 5408, 67, 1637, 67, 10107, 67, 917, 487, 261, 2027, 1131, 12, 3915, 18, 350, 13, 487, 612, 16, 8275, 18, 1355, 67, 350, 487, 729, 67, 350, 16, 5818, 18, 529, 487, 3017, 67, 529, 16, 358, 67, 3001, 12, 712, 67, 23558, 2668, 2881, 2187, 1631, 18, 712, 67, 1019, 3631, 11, 26287, 17, 8206, 17, 5698, 6134, 2866, 955, 487, 1509, 67, 1019, 16, 2142, 12, 3915, 18, 85, 4098, 13, 487, 26667, 16, 5818, 18, 1098, 67, 8694, 17, 337, 18, 10005, 67, 8694, 487, 2901, 67, 10107, 67, 457, 67, 85, 4098, 16, 261, 337, 18, 1098, 67, 8694, 17, 337, 18, 10005, 67, 8694, 13, 380, 1364, 12, 3915, 18, 85, 4098, 13, 487, 2078, 628, 3017, 67, 3202, 487, 5818, 16, 3017, 67, 5896, 487, 8228, 16, 949, 67, 1019, 67, 1369, 487, 2952, 16, 949, 67, 1019, 487, 8275, 1625, 2952, 18, 5896, 67, 350, 273, 8228, 18, 5896, 67, 24717, 67, 350, 471, 8228, 18, 5896, 67, 24717, 67, 350, 273, 5818, 18, 350, 471, 8275, 18, 350, 273, 2952, 18, 1019, 67, 350, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 87, 5408, 67, 1637, 67, 10107, 67, 917, 6134, 4422, 18, 8837, 2932, 3660, 752, 578, 1453, 1476, 2605, 67, 87, 5408, 67, 1637, 67, 10107, 67, 917, 487, 261, 2027, 1131, 12, 3915, 18, 350, 13, 487, 612, 16, 8275, 18, 1355, 67, 350, 487, 729, 67, 350, 16, 5818, 18, 529, 487, 3017, 67, 529, 16, 358, 67, 3001, 12, 712, 67, 23558, 2668, 2881, 2187, 1631, 18, 712, 67, 1019, 3631, 11, 26287, 17, 8206, 17, 5698, 6134, 2866, 955, 487, 1509, 67, 1019, 16, 2142, 12, 3915, 18, 85, 4098, 13, 487, 26667, 2 ]
t,v,tb = None
tb = None
def GetTypeLibsForSpec(arg): """Given an argument on the command line (either a file name or a library description) return a list of actual typelibs to use. """ typelibs = [] try: try: tlb = pythoncom.LoadTypeLib(arg) spec = selecttlb.TypelibSpec(None, 0,0,0) spec.FromTypelib(tlb, arg) typelibs.append((tlb, spec)) except pythoncom.com_error: # See if it is a description tlbs = selecttlb.FindTlbsWithDescription(arg) if len(tlbs)==0: print "Could not locate a type library matching '%s'" % (arg) for spec in tlbs: tlb = pythoncom.LoadRegTypeLib(spec.clsid, spec.major, spec.minor, spec.lcid) # We have a typelib, but it may not be exactly what we specified # (due to automatic version matching of COM). So we query what we really have! attr = tlb.GetLibAttr() spec.major = attr[3] spec.minor = attr[4] spec.lcid = attr[1] typelibs.append((tlb, spec)) return typelibs except pythoncom.com_error: t,v,tb=sys.exc_info() sys.stderr.write ("Unable to load type library from '%s' - %s\n" % (arg, v)) t,v,tb = None # Storing tb in a local is a cycle! sys.exit(1)
652b4a2bb25b526cc79f58c49c582266231f5d25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/652b4a2bb25b526cc79f58c49c582266231f5d25/makepy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29511, 5664, 28388, 1990, 12, 3175, 4672, 3536, 6083, 392, 1237, 603, 326, 1296, 980, 261, 73, 2927, 279, 585, 508, 578, 279, 5313, 2477, 13, 327, 279, 666, 434, 3214, 3815, 30575, 87, 358, 999, 18, 3536, 3815, 30575, 87, 273, 5378, 775, 30, 775, 30, 8332, 70, 273, 5790, 832, 18, 2563, 559, 5664, 12, 3175, 13, 857, 273, 2027, 6172, 70, 18, 18488, 30575, 1990, 12, 7036, 16, 374, 16, 20, 16, 20, 13, 857, 18, 1265, 18488, 30575, 12, 6172, 70, 16, 1501, 13, 3815, 30575, 87, 18, 6923, 12443, 6172, 70, 16, 857, 3719, 1335, 5790, 832, 18, 832, 67, 1636, 30, 468, 2164, 309, 518, 353, 279, 2477, 8332, 2038, 273, 2027, 6172, 70, 18, 3125, 56, 80, 2038, 1190, 3291, 12, 3175, 13, 309, 562, 12, 6172, 2038, 13, 631, 20, 30, 1172, 315, 4445, 486, 10627, 279, 618, 5313, 3607, 1995, 87, 4970, 738, 261, 3175, 13, 364, 857, 316, 8332, 2038, 30, 8332, 70, 273, 5790, 832, 18, 2563, 1617, 559, 5664, 12, 2793, 18, 6429, 350, 16, 857, 18, 14019, 16, 857, 18, 17364, 16, 857, 18, 80, 13478, 13, 468, 1660, 1240, 279, 3815, 30575, 16, 1496, 518, 2026, 486, 506, 8950, 4121, 732, 1269, 468, 261, 24334, 358, 5859, 1177, 3607, 434, 5423, 2934, 225, 6155, 732, 843, 4121, 732, 8654, 1240, 5, 1604, 273, 8332, 70, 18, 967, 5664, 3843, 1435, 857, 18, 14019, 273, 1604, 63, 23, 65, 857, 18, 17364, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29511, 5664, 28388, 1990, 12, 3175, 4672, 3536, 6083, 392, 1237, 603, 326, 1296, 980, 261, 73, 2927, 279, 585, 508, 578, 279, 5313, 2477, 13, 327, 279, 666, 434, 3214, 3815, 30575, 87, 358, 999, 18, 3536, 3815, 30575, 87, 273, 5378, 775, 30, 775, 30, 8332, 70, 273, 5790, 832, 18, 2563, 559, 5664, 12, 3175, 13, 857, 273, 2027, 6172, 70, 18, 18488, 30575, 1990, 12, 7036, 16, 374, 16, 20, 16, 20, 13, 857, 18, 1265, 18488, 30575, 12, 6172, 70, 16, 1501, 13, 3815, 30575, 87, 18, 6923, 12443, 6172, 70, 16, 857, 3719, 1335, 5790, 832, 18, 832, 67, 1636, 30, 468, 2164, 309, 518, 353, 279, 2477, 8332, 2038, 273, 2027, 2 ]
yield auth
yield unicode(i), auth
... def getQueriables(self):
0b5a80dbe559677fdc2dc2a5a562b124abbb5018 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/0b5a80dbe559677fdc2dc2a5a562b124abbb5018/vocabulary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 336, 928, 264, 77, 1538, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 336, 928, 264, 77, 1538, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.modules.register("bibtex", dict) for db in dict["arg"].split(","): self.modules["bibtex"].add_db(db)
if dict["arg"]: self.modules.register("bibtex", dict) for db in dict["arg"].split(","): self.modules["bibtex"].add_db(db)
def h_bibliography (self, dict): """ Called when the macro \\bibliography is found. This method actually registers the module bibtex (if not already done) and registers the databases. """ self.modules.register("bibtex", dict) for db in dict["arg"].split(","): self.modules["bibtex"].add_db(db)
a89c6e69e246c08c08ac0a0d07ecc8fff1d254d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/a89c6e69e246c08c08ac0a0d07ecc8fff1d254d1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 67, 70, 495, 549, 15669, 261, 2890, 16, 2065, 4672, 3536, 11782, 1347, 326, 11522, 1736, 70, 495, 549, 15669, 353, 1392, 18, 1220, 707, 6013, 10285, 326, 1605, 25581, 21763, 261, 430, 486, 1818, 2731, 13, 471, 10285, 326, 16358, 18, 3536, 365, 18, 6400, 18, 4861, 2932, 70, 495, 21763, 3113, 2065, 13, 364, 1319, 316, 2065, 9614, 3175, 6, 8009, 4939, 2932, 10837, 4672, 365, 18, 6400, 9614, 70, 495, 21763, 6, 8009, 1289, 67, 1966, 12, 1966, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 67, 70, 495, 549, 15669, 261, 2890, 16, 2065, 4672, 3536, 11782, 1347, 326, 11522, 1736, 70, 495, 549, 15669, 353, 1392, 18, 1220, 707, 6013, 10285, 326, 1605, 25581, 21763, 261, 430, 486, 1818, 2731, 13, 471, 10285, 326, 16358, 18, 3536, 365, 18, 6400, 18, 4861, 2932, 70, 495, 21763, 3113, 2065, 13, 364, 1319, 316, 2065, 9614, 3175, 6, 8009, 4939, 2932, 10837, 4672, 365, 18, 6400, 9614, 70, 495, 21763, 6, 8009, 1289, 67, 1966, 12, 1966, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.CCC = os.popen('$(WXCONFIG) --cxx', 'r').read()[:-1]
self.CCC = os.popen('%(WXCONFIG)s --cxx' % self.__dict__, 'r').read()[:-1]
def doFixups(self): # This is called after the config files have been evaluated # so we can do some sanity checking... if sys.platform != 'win32': if not self.CCC: self.CCC = os.popen('$(WXCONFIG) --cxx', 'r').read()[:-1] if not self.CCC: print "Warning: C++ compiler not specified (CCC). Assuming c++" self.CCC = 'c++' if not self.CC: self.CCC = os.popen('$(WXCONFIG) --cc', 'r').read()[:-1] if not self.CC: print "Warning: C compiler not specified (CC). Assuming cc" self.CC = 'cc'
352f281a242bba9357d00180aa9f4141f40cf5f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/352f281a242bba9357d00180aa9f4141f40cf5f4/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 8585, 18294, 12, 2890, 4672, 468, 1220, 353, 2566, 1839, 326, 642, 1390, 1240, 2118, 12697, 468, 1427, 732, 848, 741, 2690, 16267, 6728, 2777, 309, 2589, 18, 9898, 480, 296, 8082, 1578, 4278, 309, 486, 365, 18, 6743, 39, 30, 365, 18, 6743, 39, 273, 1140, 18, 84, 3190, 2668, 17105, 59, 60, 7203, 13, 87, 1493, 71, 5279, 11, 738, 365, 16186, 1576, 972, 16, 296, 86, 16063, 896, 1435, 10531, 17, 21, 65, 309, 486, 365, 18, 6743, 39, 30, 1172, 315, 6210, 30, 385, 9904, 5274, 486, 1269, 261, 6743, 39, 2934, 4725, 21249, 276, 15, 9078, 365, 18, 6743, 39, 273, 296, 71, 15, 6797, 309, 486, 365, 18, 6743, 30, 365, 18, 6743, 39, 273, 1140, 18, 84, 3190, 2668, 8, 12, 59, 60, 7203, 13, 1493, 952, 2187, 296, 86, 16063, 896, 1435, 10531, 17, 21, 65, 309, 486, 365, 18, 6743, 30, 1172, 315, 6210, 30, 385, 5274, 486, 1269, 261, 6743, 2934, 4725, 21249, 4946, 6, 365, 18, 6743, 273, 296, 952, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8585, 18294, 12, 2890, 4672, 468, 1220, 353, 2566, 1839, 326, 642, 1390, 1240, 2118, 12697, 468, 1427, 732, 848, 741, 2690, 16267, 6728, 2777, 309, 2589, 18, 9898, 480, 296, 8082, 1578, 4278, 309, 486, 365, 18, 6743, 39, 30, 365, 18, 6743, 39, 273, 1140, 18, 84, 3190, 2668, 17105, 59, 60, 7203, 13, 87, 1493, 71, 5279, 11, 738, 365, 16186, 1576, 972, 16, 296, 86, 16063, 896, 1435, 10531, 17, 21, 65, 309, 486, 365, 18, 6743, 39, 30, 1172, 315, 6210, 30, 385, 9904, 5274, 486, 1269, 261, 6743, 39, 2934, 4725, 21249, 276, 15, 9078, 365, 18, 6743, 39, 273, 296, 71, 15, 6797, 309, 486, 365, 18, 6743, 30, 365, 2 ]
total_sales = 0 all_variations = ProductVariation.objects.filter(parent=product) for variation in all_variations: total_sales += variation.product.total_sold variation_items.append(variation.product)
variation_items, total_sales = _get_all_variations(product)
def add_toolbar_context(sender, context={}, **kwargs): user = threadlocals.get_current_user() if user and user.is_staff: request_path = context['request'].META['PATH_INFO'] slug = request_path.split('/')[-2] total_sales = 0 show_sales = False variation_items = [] try: product = Product.objects.get(slug=slug) show_sales = True subtypes = product.get_subtypes() if 'ConfigurableProduct' in subtypes: total_sales = 0 all_variations = ProductVariation.objects.filter(parent=product) for variation in all_variations: total_sales += variation.product.total_sold variation_items.append(variation.product) else: total_sales = product.total_sold except: pass st = {} st['st_satchmo_version'] = get_version() newq = Order.objects.filter(status__exact = 'New') st['st_new_order_ct'] = newq.count() amounts = newq.values_list('total', flat=True) if amounts: newtotal = reduce(operator.add, amounts) else: newtotal = 0 st['st_new_order_total'] = newtotal st['st_total_sold'] = total_sales st['st_show_sales'] = show_sales st['st_variations'] = variation_items week = datetime.datetime.today()-datetime.timedelta(days=7) day = datetime.datetime.today()-datetime.timedelta(days=1) hours = datetime.datetime.today()-datetime.timedelta(hours=1) cartweekq = Cart.objects.filter(date_time_created__gte=week) cartdayq = Cart.objects.filter(date_time_created__gte=day) carthourq = Cart.objects.filter(date_time_created__gte=hours) st['st_cart_7d_ct'] = cartweekq.count() st['st_cart_1d_ct'] = cartdayq.count() st['st_cart_1h_ct'] = carthourq.count() st['st_contacts_ct'] = Contact.objects.all().count() st['st_contacts_7d_ct'] = Contact.objects.filter(create_date__gte=week).count() # edits = [] # st['st_edits'] = edits context.update(st)
80bb68c88e458b018c82b6900b903fd969ccc16a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13656/80bb68c88e458b018c82b6900b903fd969ccc16a/listeners.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 18849, 67, 2472, 12, 15330, 16, 819, 28793, 2826, 4333, 4672, 729, 273, 2650, 17977, 18, 588, 67, 2972, 67, 1355, 1435, 309, 729, 471, 729, 18, 291, 67, 31096, 30, 590, 67, 803, 273, 819, 3292, 2293, 29489, 19294, 3292, 4211, 67, 5923, 3546, 4959, 273, 590, 67, 803, 18, 4939, 2668, 2473, 13, 18919, 22, 65, 2078, 67, 87, 5408, 273, 374, 2405, 67, 87, 5408, 273, 1083, 14761, 67, 3319, 273, 5378, 775, 30, 3017, 273, 8094, 18, 6911, 18, 588, 12, 6436, 33, 6436, 13, 2405, 67, 87, 5408, 273, 1053, 720, 2352, 273, 3017, 18, 588, 67, 1717, 2352, 1435, 309, 296, 31660, 4133, 11, 316, 720, 2352, 30, 14761, 67, 3319, 16, 2078, 67, 87, 5408, 273, 389, 588, 67, 454, 67, 4093, 1012, 12, 5896, 13, 469, 30, 2078, 67, 87, 5408, 273, 3017, 18, 4963, 67, 87, 1673, 225, 1335, 30, 1342, 225, 384, 273, 2618, 384, 3292, 334, 67, 87, 505, 8683, 67, 1589, 3546, 273, 336, 67, 1589, 1435, 394, 85, 273, 4347, 18, 6911, 18, 2188, 12, 2327, 972, 17165, 273, 296, 1908, 6134, 384, 3292, 334, 67, 2704, 67, 1019, 67, 299, 3546, 273, 394, 85, 18, 1883, 1435, 30980, 273, 394, 85, 18, 2372, 67, 1098, 2668, 4963, 2187, 3569, 33, 5510, 13, 309, 30980, 30, 394, 4963, 273, 5459, 12, 9497, 18, 1289, 16, 30980, 13, 469, 30, 394, 4963, 273, 374, 384, 3292, 334, 67, 2704, 67, 1019, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18849, 67, 2472, 12, 15330, 16, 819, 28793, 2826, 4333, 4672, 729, 273, 2650, 17977, 18, 588, 67, 2972, 67, 1355, 1435, 309, 729, 471, 729, 18, 291, 67, 31096, 30, 590, 67, 803, 273, 819, 3292, 2293, 29489, 19294, 3292, 4211, 67, 5923, 3546, 4959, 273, 590, 67, 803, 18, 4939, 2668, 2473, 13, 18919, 22, 65, 2078, 67, 87, 5408, 273, 374, 2405, 67, 87, 5408, 273, 1083, 14761, 67, 3319, 273, 5378, 775, 30, 3017, 273, 8094, 18, 6911, 18, 588, 12, 6436, 33, 6436, 13, 2405, 67, 87, 5408, 273, 1053, 720, 2352, 273, 3017, 18, 588, 67, 1717, 2352, 1435, 309, 296, 31660, 4133, 11, 316, 720, 2352, 30, 14761, 67, 2 ]
- ``i`` - round (0 <= i <= n)
- ``i`` - round (`0 \leq i \leq n`)
def key_schedule_polynomials(self, i): """ Return polynomials for the `i`-th round of the key schedule.
e9de4dc45b78ee371d827176c047af2a011b3044 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e9de4dc45b78ee371d827176c047af2a011b3044/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 10676,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 498, 67, 10676, 67, 3915, 13602, 87, 12, 2890, 16, 277, 4672, 3536, 2000, 16991, 87, 364, 326, 1375, 77, 68, 17, 451, 3643, 434, 326, 498, 4788, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sortedKeys = self.__sortedLODNames index = sortedKeys.index(str(lodName)) self.__LODNode.node().setSwitch(index, inDist, outDist)
self.__LODNode.node().setSwitch(self.getLODIndex(lodName), inDist, outDist) def getLODIndex(self, lodName): """getLODIndex(self) safe method (but expensive) for retrieving the child index """ return list(self.__LODNode.getChildren()).index(self.getLOD(lodName))
def setLOD(self, lodName, inDist=0, outDist=0): """setLOD(self, string) Set the switch distance for given LOD """ # save the switch distance info self.switches[lodName] = [inDist, outDist] # add the switch distance info
1b72f25020241a796ba63f0262db132574458b5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/1b72f25020241a796ba63f0262db132574458b5a/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 48, 1212, 12, 2890, 16, 328, 369, 461, 16, 316, 5133, 33, 20, 16, 596, 5133, 33, 20, 4672, 3536, 542, 48, 1212, 12, 2890, 16, 533, 13, 1000, 326, 1620, 3888, 364, 864, 511, 1212, 3536, 468, 1923, 326, 1620, 3888, 1123, 365, 18, 9610, 281, 63, 80, 369, 461, 65, 273, 306, 267, 5133, 16, 596, 5133, 65, 468, 527, 326, 1620, 3888, 1123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 48, 1212, 12, 2890, 16, 328, 369, 461, 16, 316, 5133, 33, 20, 16, 596, 5133, 33, 20, 4672, 3536, 542, 48, 1212, 12, 2890, 16, 533, 13, 1000, 326, 1620, 3888, 364, 864, 511, 1212, 3536, 468, 1923, 326, 1620, 3888, 1123, 365, 18, 9610, 281, 63, 80, 369, 461, 65, 273, 306, 267, 5133, 16, 596, 5133, 65, 468, 527, 326, 1620, 3888, 1123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cr.execute('SELECT id, number_next, prefix, suffix, padding FROM ir_sequence WHERE '+test+' AND active=%s FOR UPDATE', (sequence_id, True))
assert test in ('code','id') cr.execute('SELECT id, number_next, prefix, suffix, padding FROM ir_sequence WHERE '+test+'=%s AND active=%s FOR UPDATE', (sequence_id, True))
def get_id(self, cr, uid, sequence_id, test='id=%s', context=None): try: cr.execute('SELECT id, number_next, prefix, suffix, padding FROM ir_sequence WHERE '+test+' AND active=%s FOR UPDATE', (sequence_id, True)) res = cr.dictfetchone() if res: cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True)) if res['number_next']: return self._process(res['prefix']) + '%%0%sd' % res['padding'] % res['number_next'] + self._process(res['suffix']) else: return self._process(res['prefix']) + self._process(res['suffix']) finally: cr.commit() return False
712389da82ed665ca558685a819b37cc0a3b1e80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/712389da82ed665ca558685a819b37cc0a3b1e80/ir_sequence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3102, 67, 350, 16, 1842, 2218, 350, 5095, 87, 2187, 819, 33, 7036, 4672, 775, 30, 1815, 1842, 316, 7707, 710, 17023, 350, 6134, 4422, 18, 8837, 2668, 4803, 612, 16, 1300, 67, 4285, 16, 1633, 16, 3758, 16, 4992, 4571, 9482, 67, 6178, 4852, 15126, 3813, 6797, 5095, 87, 4116, 2695, 5095, 87, 12108, 11028, 2187, 261, 6178, 67, 350, 16, 1053, 3719, 400, 273, 4422, 18, 1576, 5754, 476, 1435, 309, 400, 30, 4422, 18, 8837, 2668, 8217, 9482, 67, 6178, 7855, 1300, 67, 4285, 33, 2696, 67, 4285, 15, 2696, 67, 15016, 4852, 612, 5095, 87, 4116, 2695, 5095, 87, 2187, 261, 455, 3292, 350, 17337, 1053, 3719, 309, 400, 3292, 2696, 67, 4285, 3546, 30, 327, 365, 6315, 2567, 12, 455, 3292, 3239, 19486, 397, 1995, 9, 20, 9, 6427, 11, 738, 400, 3292, 9598, 3546, 738, 400, 3292, 2696, 67, 4285, 3546, 397, 365, 6315, 2567, 12, 455, 3292, 8477, 19486, 469, 30, 327, 365, 6315, 2567, 12, 455, 3292, 3239, 19486, 397, 365, 6315, 2567, 12, 455, 3292, 8477, 19486, 3095, 30, 4422, 18, 7371, 1435, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3102, 67, 350, 16, 1842, 2218, 350, 5095, 87, 2187, 819, 33, 7036, 4672, 775, 30, 1815, 1842, 316, 7707, 710, 17023, 350, 6134, 4422, 18, 8837, 2668, 4803, 612, 16, 1300, 67, 4285, 16, 1633, 16, 3758, 16, 4992, 4571, 9482, 67, 6178, 4852, 15126, 3813, 6797, 5095, 87, 4116, 2695, 5095, 87, 12108, 11028, 2187, 261, 6178, 67, 350, 16, 1053, 3719, 400, 273, 4422, 18, 1576, 5754, 476, 1435, 309, 400, 30, 4422, 18, 8837, 2668, 8217, 9482, 67, 6178, 7855, 1300, 67, 4285, 33, 2696, 67, 4285, 15, 2696, 67, 15016, 4852, 612, 5095, 87, 4116, 2695, 5095, 87, 2187, 261, 455, 3292, 350, 2 ]
if isinstance(entry, unicode): entry = entry.encode('iso-8859-15', 'replace')
def processItem(self, channel, item):
7e8c46334cc4019c9bcf6237e64fd6e87ec8b82b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12996/7e8c46334cc4019c9bcf6237e64fd6e87ec8b82b/Entries.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1180, 12, 2890, 16, 1904, 16, 761, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1180, 12, 2890, 16, 1904, 16, 761, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
db = site._p_jar._db t = threading.Thread(target=send_emails, args=(db, site_path, group, userids, roles, loc, location)) t.start()
add_job(db_callback, site_path, group, userids, roles, loc, location)
def start_sending_emails(site, group, userids, roles, loc, location): """ start the thread to send the emails the thread gets the db, the path to the current site and all the other arguments required to send each email """ site_path = ofs_path(site) db = site._p_jar._db t = threading.Thread(target=send_emails, args=(db, site_path, group, userids, roles, loc, location)) t.start()
618091655fb1c32bed603863c28ef85acc7675b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/618091655fb1c32bed603863c28ef85acc7675b2/send_group_emails_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 87, 2846, 67, 22762, 12, 4256, 16, 1041, 16, 31892, 16, 4900, 16, 1515, 16, 2117, 4672, 3536, 787, 326, 2650, 358, 1366, 326, 14255, 326, 2650, 5571, 326, 1319, 16, 326, 589, 358, 326, 783, 2834, 471, 777, 326, 1308, 1775, 1931, 358, 1366, 1517, 2699, 3536, 2834, 67, 803, 273, 26927, 67, 803, 12, 4256, 13, 527, 67, 4688, 12, 1966, 67, 3394, 16, 2834, 67, 803, 16, 1041, 16, 31892, 16, 4900, 16, 1515, 16, 2117, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 67, 87, 2846, 67, 22762, 12, 4256, 16, 1041, 16, 31892, 16, 4900, 16, 1515, 16, 2117, 4672, 3536, 787, 326, 2650, 358, 1366, 326, 14255, 326, 2650, 5571, 326, 1319, 16, 326, 589, 358, 326, 783, 2834, 471, 777, 326, 1308, 1775, 1931, 358, 1366, 1517, 2699, 3536, 2834, 67, 803, 273, 26927, 67, 803, 12, 4256, 13, 527, 67, 4688, 12, 1966, 67, 3394, 16, 2834, 67, 803, 16, 1041, 16, 31892, 16, 4900, 16, 1515, 16, 2117, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def exitShell( params ): """Leave the BitBake Shell""" sys.exit(0)
try: global history_file readline.read_history_file( history_file ) except IOError: pass def cleanup(): if debug: print "(writing command history)" try: global history_file readline.write_history_file( history_file ) except: print "BBSHELL: Unable to save command history"
def exitShell( params ): """Leave the BitBake Shell""" sys.exit(0)
8422609cbe7d5543b3d08e4f1478861097544b53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/8422609cbe7d5543b3d08e4f1478861097544b53/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 775, 30, 2552, 4927, 67, 768, 12023, 18, 896, 67, 8189, 67, 768, 12, 4927, 67, 768, 262, 1335, 8340, 30, 1342, 225, 1652, 6686, 13332, 309, 1198, 30, 1172, 7751, 14345, 1296, 4927, 2225, 775, 30, 2552, 4927, 67, 768, 12023, 18, 2626, 67, 8189, 67, 768, 12, 4927, 67, 768, 262, 1335, 30, 1172, 315, 9676, 2664, 21943, 30, 18640, 358, 1923, 1296, 4927, 6, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 768, 12, 4927, 67, 768, 262, 1335, 30, 1172, 315, 9676, 2664, 21943, 30, 18640, 358, 1923, 1296, 4927, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.data_file = None
def __init__(self, handle): activity.Activity.__init__(self, handle) self.data_file = None self.max_participants = 1
8b3134e082eb3e50149ea7f88b746b58649abe1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6697/8b3134e082eb3e50149ea7f88b746b58649abe1c/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 5728, 18, 6193, 16186, 2738, 972, 12, 2890, 16, 1640, 13, 225, 365, 18, 1896, 67, 2680, 27620, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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18, 1896, 67, 2680, 27620, 273, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise Socks4Error((ord(resp[1]),_socks4errors[ord(resp[1])-90]))
raise Socks4Error((ord(resp[1]), _socks4errors[ord(resp[1])-90]))
def __negotiatesocks4(self,destaddr,destport): """__negotiatesocks4(self,destaddr,destport) Negotiates a connection through a SOCKS4 server. """ # Check if the destination address provided is an IP address rmtrslv = False try: ipaddr = socket.inet_aton(destaddr) except socket.error: # It's a DNS name. Check where it should be resolved. if self.__proxy[3]==True: ipaddr = "\x00\x00\x00\x01" rmtrslv = True else: ipaddr = socket.inet_aton(socket.gethostbyname(destaddr)) # Construct the request packet req = "\x04\x01" + self.__decode(struct.pack(">H",destport)) + ipaddr # The username parameter is considered userid for SOCKS4 if self.__proxy[4] != None: req = req + self.__proxy[4] req = req + "\x00" # DNS name if remote resolving is required # NOTE: This is actually an extension to the SOCKS4 protocol # called SOCKS4A and may not be supported in all cases. if rmtrslv==True: req = req + destaddr + "\x00" self.sendall(req) # Get the response from the server resp = self.__recvall(8) if resp[0] != "\x00": # Bad data self.close() raise GeneralProxyError((1,_generalerrors[1])) if resp[1] != "\x5A": # Server returned an error self.close() if ord(resp[1]) in (91,92,93): self.close() raise Socks4Error((ord(resp[1]),_socks4errors[ord(resp[1])-90])) else: raise Socks4Error((94,_socks4errors[4])) # Get the bound address/port self.__proxysockname = (socket.inet_ntoa(resp[4:]),struct.unpack(">H",bytes(resp[2:4],'utf8'))[0]) if rmtrslv != None: self.__proxypeername = (socket.inet_ntoa(ipaddr),destport) else: self.__proxypeername = (destaddr,destport)
6a596ed40071091ac51048087179560e15823043 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12748/6a596ed40071091ac51048087179560e15823043/socks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14518, 352, 16020, 20641, 24, 12, 2890, 16, 10488, 4793, 16, 10488, 655, 4672, 3536, 972, 14518, 352, 16020, 20641, 24, 12, 2890, 16, 10488, 4793, 16, 10488, 655, 13, 423, 27445, 16020, 279, 1459, 3059, 279, 20834, 55, 24, 1438, 18, 3536, 468, 2073, 309, 326, 2929, 1758, 2112, 353, 392, 2971, 1758, 6692, 313, 2069, 90, 273, 1083, 775, 30, 2359, 4793, 273, 2987, 18, 23864, 67, 16799, 12, 10488, 4793, 13, 1335, 2987, 18, 1636, 30, 468, 2597, 1807, 279, 8858, 508, 18, 2073, 1625, 518, 1410, 506, 4640, 18, 309, 365, 16186, 5656, 63, 23, 65, 631, 5510, 30, 2359, 4793, 273, 1548, 92, 713, 64, 92, 713, 64, 92, 713, 64, 92, 1611, 6, 6692, 313, 2069, 90, 273, 1053, 469, 30, 2359, 4793, 273, 2987, 18, 23864, 67, 16799, 12, 7814, 18, 75, 546, 669, 1637, 529, 12, 10488, 4793, 3719, 468, 14291, 326, 590, 4414, 1111, 273, 1548, 92, 3028, 64, 92, 1611, 6, 397, 365, 16186, 3922, 12, 1697, 18, 2920, 2932, 34, 44, 3113, 10488, 655, 3719, 397, 2359, 4793, 468, 1021, 2718, 1569, 353, 7399, 6709, 364, 20834, 55, 24, 309, 365, 16186, 5656, 63, 24, 65, 480, 599, 30, 1111, 273, 1111, 397, 365, 16186, 5656, 63, 24, 65, 1111, 273, 1111, 397, 1548, 92, 713, 6, 468, 8858, 508, 309, 2632, 17188, 353, 1931, 468, 5219, 30, 1220, 353, 6013, 392, 2710, 358, 326, 20834, 55, 24, 1771, 468, 2566, 20834, 55, 24, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14518, 352, 16020, 20641, 24, 12, 2890, 16, 10488, 4793, 16, 10488, 655, 4672, 3536, 972, 14518, 352, 16020, 20641, 24, 12, 2890, 16, 10488, 4793, 16, 10488, 655, 13, 423, 27445, 16020, 279, 1459, 3059, 279, 20834, 55, 24, 1438, 18, 3536, 468, 2073, 309, 326, 2929, 1758, 2112, 353, 392, 2971, 1758, 6692, 313, 2069, 90, 273, 1083, 775, 30, 2359, 4793, 273, 2987, 18, 23864, 67, 16799, 12, 10488, 4793, 13, 1335, 2987, 18, 1636, 30, 468, 2597, 1807, 279, 8858, 508, 18, 2073, 1625, 518, 1410, 506, 4640, 18, 309, 365, 16186, 5656, 63, 23, 65, 631, 5510, 30, 2359, 4793, 273, 1548, 92, 713, 64, 92, 713, 64, 92, 713, 64, 92, 2 ]
return "%s = %s" %(key, quote(str(value)))
if value is None: return '%s = NULL' % key elif type(value) in [int, long]: return '%s = %d' % (key, value) elif type(value) is float: return '%s = %f' % (key, value) else: return "%s = %s" %(key, quote(str(value)))
def _set_eq_(key, value): return "%s = %s" %(key, quote(str(value)))
839b8e878ac6eabaa4ef26f03ea9120ae835f30a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2501/839b8e878ac6eabaa4ef26f03ea9120ae835f30a/write.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 11253, 67, 12, 856, 16, 460, 4672, 309, 460, 353, 599, 30, 327, 1995, 87, 273, 3206, 11, 738, 498, 1327, 618, 12, 1132, 13, 316, 306, 474, 16, 1525, 14542, 327, 1995, 87, 273, 738, 72, 11, 738, 261, 856, 16, 460, 13, 1327, 618, 12, 1132, 13, 353, 1431, 30, 327, 1995, 87, 273, 738, 74, 11, 738, 261, 856, 16, 460, 13, 469, 30, 327, 2213, 87, 273, 738, 87, 6, 8975, 856, 16, 3862, 12, 701, 12, 1132, 20349, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 16, 460, 4672, 309, 460, 353, 599, 30, 327, 1995, 87, 273, 3206, 11, 738, 498, 1327, 618, 12, 1132, 13, 316, 306, 474, 16, 1525, 14542, 327, 1995, 87, 273, 738, 72, 11, 738, 261, 856, 16, 460, 13, 1327, 618, 12, 1132, 13, 353, 1431, 30, 327, 1995, 87, 273, 738, 74, 11, 738, 261, 856, 16, 460, 13, 469, 30, 327, 2213, 87, 273, 738, 87, 6, 8975, 856, 16, 3862, 12, 701, 12, 1132, 20349, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for argument,value in argsDict.items(): if type(value) == types.StringType: execString = "%s, %s='%s'" % (execString,argument,value)
for argument, value in argsDict.items(): if type( value ) == types.StringType: execString = "%s, %s='%s'" % ( execString, argument, value )
def _executeStorageElementFunction(self,storageElementName,pfn,method,argsDict={}): """ A simple wrapper around the storage element functionality """ # First check the supplied pfn(s) are the correct format. if type(pfn) in types.StringTypes: pfns = {pfn:False} elif type(pfn) == types.ListType: pfns = {} for url in pfn: pfns[url] = False elif type(pfn) == types.DictType: pfns = pfn.copy() else: errStr = "ReplicaManager._executeStorageElementFunction: Supplied pfns must be string or list of strings or a dictionary." gLogger.error(errStr) return S_ERROR(errStr) # Check we have some pfns if not pfns: errMessage = "ReplicaManager._executeStorageElementFunction: No pfns supplied." gLogger.error(errMessage) return S_ERROR(errMessage) gLogger.debug("ReplicaManager._executeStorageElementFunction: Attempting to perform '%s' operation with %s pfns." % (method,len(pfns))) # Check we can instantiate the storage element correctly storageElement = StorageElement(storageElementName) res = storageElement.isValid(method) if not res['OK']: errStr = "ReplicaManager._executeStorageElementFunction: Failed to instantiate Storage Element" gLogger.error(errStr, "for performing %s at %s." % (method,storageElementName)) return res # Generate the execution string if argsDict: execString = "res = storageElement.%s(pfns" % method for argument,value in argsDict.items(): if type(value) == types.StringType: execString = "%s, %s='%s'" % (execString,argument,value) else: execString = "%s, %s=%s" % (execString,argument,value) execString = "%s)" % execString else: execString = "res = storageElement.%s(pfns)" % method # Execute the execute string try: exec(execString) except AttributeError,errMessage: exceptStr = "ReplicaManager._executeStorageElementFunction: Exception while perfoming %s." % method gLogger.exception(exceptStr,str(errMessage)) return S_ERROR(exceptStr) # Return the output if not res['OK']: errStr = "ReplicaManager._executeStorageElementFunction: Completely failed to perform %s." % method gLogger.error(errStr,'%s : %s' % (storageElementName,res['Message'])) return res
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 3245, 1046, 2083, 12, 2890, 16, 5697, 30584, 16, 84, 4293, 16, 2039, 16, 1968, 5014, 12938, 4672, 3536, 432, 4143, 4053, 6740, 326, 2502, 930, 14176, 3536, 468, 5783, 866, 326, 4580, 293, 4293, 12, 87, 13, 854, 326, 3434, 740, 18, 309, 618, 12, 84, 4293, 13, 316, 1953, 18, 780, 2016, 30, 10811, 2387, 273, 288, 84, 4293, 30, 8381, 97, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 19366, 30, 10811, 2387, 273, 2618, 364, 880, 316, 293, 4293, 30, 10811, 2387, 63, 718, 65, 273, 1083, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 5014, 559, 30, 10811, 2387, 273, 293, 4293, 18, 3530, 1435, 469, 30, 393, 1585, 273, 315, 14222, 1318, 6315, 8837, 3245, 1046, 2083, 30, 3425, 3110, 10811, 2387, 1297, 506, 533, 578, 666, 434, 2064, 578, 279, 3880, 1199, 314, 3328, 18, 1636, 12, 370, 1585, 13, 327, 348, 67, 3589, 12, 370, 1585, 13, 468, 2073, 732, 1240, 2690, 10811, 2387, 309, 486, 10811, 2387, 30, 393, 1079, 273, 315, 14222, 1318, 6315, 8837, 3245, 1046, 2083, 30, 2631, 10811, 2387, 4580, 1199, 314, 3328, 18, 1636, 12, 370, 1079, 13, 327, 348, 67, 3589, 12, 370, 1079, 13, 314, 3328, 18, 4148, 2932, 14222, 1318, 6315, 8837, 3245, 1046, 2083, 30, 12864, 310, 358, 3073, 1995, 87, 11, 1674, 598, 738, 87, 10811, 2387, 1199, 738, 261, 2039, 16, 1897, 12, 14241, 2387, 20349, 468, 2073, 732, 848, 10275, 326, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 3245, 1046, 2083, 12, 2890, 16, 5697, 30584, 16, 84, 4293, 16, 2039, 16, 1968, 5014, 12938, 4672, 3536, 432, 4143, 4053, 6740, 326, 2502, 930, 14176, 3536, 468, 5783, 866, 326, 4580, 293, 4293, 12, 87, 13, 854, 326, 3434, 740, 18, 309, 618, 12, 84, 4293, 13, 316, 1953, 18, 780, 2016, 30, 10811, 2387, 273, 288, 84, 4293, 30, 8381, 97, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 19366, 30, 10811, 2387, 273, 2618, 364, 880, 316, 293, 4293, 30, 10811, 2387, 63, 718, 65, 273, 1083, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 5014, 559, 30, 10811, 2387, 273, 293, 4293, 18, 3530, 1435, 469, 30, 393, 1585, 2 ]
self._seq = None
def __init__(self,verbose=0): # the sequencing stuff presumes access to a sequencer. # this may be set with setSequencer(); if a <seq> tag # is encountered and it has not been set, a default # sequencer will be provided. self._seq = None if _xmllib_newStyle: xmllib.XMLParser.__init__(self,verbose=verbose) else: xmllib.XMLParser.__init__(self) # set up handlers for various tags self.elements = { 'b': (self.start_b, self.end_b), 'u': (self.start_u, self.end_u), 'i': (self.start_i, self.end_i), 'super': (self.start_super, self.end_super), 'sub': (self.start_sub, self.end_sub), 'font': (self.start_font, self.end_font), 'greek': (self.start_greek, self.end_greek), 'para': (self.start_para, self.end_para) }
1b9abe8d391589993f643e550b62e8d7886861cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/1b9abe8d391589993f643e550b62e8d7886861cc/paraparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11369, 33, 20, 4672, 468, 326, 26401, 15495, 10769, 4075, 6411, 2006, 358, 279, 26401, 23568, 18, 468, 333, 2026, 506, 444, 598, 444, 1761, 372, 23568, 5621, 309, 279, 411, 5436, 34, 1047, 468, 353, 9919, 471, 518, 711, 486, 2118, 444, 16, 279, 805, 468, 26401, 23568, 903, 506, 2112, 18, 365, 6315, 5436, 273, 599, 225, 309, 389, 2902, 2941, 67, 2704, 2885, 30, 2025, 2941, 18, 4201, 2678, 16186, 2738, 972, 12, 2890, 16, 11369, 33, 11369, 13, 469, 30, 2025, 2941, 18, 4201, 2678, 16186, 2738, 972, 12, 2890, 13, 468, 444, 731, 4919, 364, 11191, 2342, 365, 18, 6274, 273, 288, 202, 11, 70, 4278, 261, 2890, 18, 1937, 67, 70, 16, 365, 18, 409, 67, 70, 3631, 296, 89, 4278, 261, 2890, 18, 1937, 67, 89, 16, 365, 18, 409, 67, 89, 3631, 296, 77, 4278, 261, 2890, 18, 1937, 67, 77, 16, 365, 18, 409, 67, 77, 3631, 296, 9565, 4278, 261, 2890, 18, 1937, 67, 9565, 16, 365, 18, 409, 67, 9565, 3631, 296, 1717, 4278, 261, 2890, 18, 1937, 67, 1717, 16, 365, 18, 409, 67, 1717, 3631, 296, 5776, 4278, 261, 2890, 18, 1937, 67, 5776, 16, 365, 18, 409, 67, 5776, 3631, 296, 75, 992, 79, 4278, 261, 2890, 18, 1937, 67, 75, 992, 79, 16, 365, 18, 409, 67, 75, 992, 79, 3631, 296, 25072, 4278, 261, 2890, 18, 1937, 67, 25072, 16, 365, 18, 409, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11369, 33, 20, 4672, 468, 326, 26401, 15495, 10769, 4075, 6411, 2006, 358, 279, 26401, 23568, 18, 468, 333, 2026, 506, 444, 598, 444, 1761, 372, 23568, 5621, 309, 279, 411, 5436, 34, 1047, 468, 353, 9919, 471, 518, 711, 486, 2118, 444, 16, 279, 805, 468, 26401, 23568, 903, 506, 2112, 18, 365, 6315, 5436, 273, 599, 225, 309, 389, 2902, 2941, 67, 2704, 2885, 30, 2025, 2941, 18, 4201, 2678, 16186, 2738, 972, 12, 2890, 16, 11369, 33, 11369, 13, 469, 30, 2025, 2941, 18, 4201, 2678, 16186, 2738, 972, 12, 2890, 13, 468, 444, 731, 4919, 364, 11191, 2342, 365, 18, 6274, 273, 288, 202, 11, 70, 4278, 261, 2 ]
'mail.identity.id1.htmlSigFormat' : False, 'mail.identity.id1.htmlSigText' : "Tinderbox is soo 90ies",
def rmtree_onerror(func, path, exc_info): """ Error handler for ``shutil.rmtree``. If the error is due to an access error (read only file) it attempts to add write permission and then retries. If the error is for another reason it re-raises the error. Usage : ``shutil.rmtree(path, onerror=rmtree_onerror)`` """ import stat if not os.access(path, os.W_OK): # Is the error an access error ? os.chmod(path, stat.S_IWUSR) func(path) else: raise
4fffb0beffde8d57e81cf4db0832788cc5aa4bf8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/4fffb0beffde8d57e81cf4db0832788cc5aa4bf8/runtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17941, 67, 265, 1636, 12, 644, 16, 589, 16, 3533, 67, 1376, 4672, 3536, 1068, 1838, 364, 12176, 674, 1367, 18, 86, 17371, 68, 8338, 225, 971, 326, 555, 353, 6541, 358, 392, 2006, 555, 261, 896, 1338, 585, 13, 518, 7531, 358, 527, 1045, 4132, 471, 1508, 9453, 18, 225, 971, 326, 555, 353, 364, 4042, 3971, 518, 283, 17, 354, 6141, 326, 555, 18, 225, 10858, 294, 12176, 674, 1367, 18, 86, 17371, 12, 803, 16, 20991, 33, 86, 17371, 67, 265, 1636, 13, 10335, 3536, 1930, 610, 309, 486, 1140, 18, 3860, 12, 803, 16, 1140, 18, 59, 67, 3141, 4672, 468, 2585, 326, 555, 392, 2006, 555, 692, 1140, 18, 343, 1711, 12, 803, 16, 610, 18, 55, 67, 45, 59, 27984, 13, 1326, 12, 803, 13, 469, 30, 1002, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17941, 67, 265, 1636, 12, 644, 16, 589, 16, 3533, 67, 1376, 4672, 3536, 1068, 1838, 364, 12176, 674, 1367, 18, 86, 17371, 68, 8338, 225, 971, 326, 555, 353, 6541, 358, 392, 2006, 555, 261, 896, 1338, 585, 13, 518, 7531, 358, 527, 1045, 4132, 471, 1508, 9453, 18, 225, 971, 326, 555, 353, 364, 4042, 3971, 518, 283, 17, 354, 6141, 326, 555, 18, 225, 10858, 294, 12176, 674, 1367, 18, 86, 17371, 12, 803, 16, 20991, 33, 86, 17371, 67, 265, 1636, 13, 10335, 3536, 1930, 610, 309, 486, 1140, 18, 3860, 12, 803, 16, 1140, 18, 59, 67, 3141, 4672, 468, 2585, 326, 555, 392, 2006, 555, 692, 1140, 18, 343, 1711, 12, 803, 2 ]
"help","package-info","compiler=","directx-sdk=","thirdparty=",
"help","package-info","prefix=","compiler=","directx-sdk=","thirdparty=",
def parseopts(args): global COMPILER,OPTIMIZE,OMIT,THIRDPARTY,INSTALLER,COPYEXTRAS,VERSION1,VERSION2,VERSION3,COMPRESSOR global DirectXSDK,VERBOSE longopts = [ "help","package-info","compiler=","directx-sdk=","thirdparty=", "optimize=","everything","nothing","installer","quiet","verbose", "complete","default","v1=","v2=","v3=","lzma"] anything = 0 for pkg in PACKAGES: longopts.append("no-"+pkg.lower()) for pkg in PACKAGES: longopts.append("use-"+pkg.lower()) try: opts, extras = getopt.getopt(args, "", longopts) for option,value in opts: if (option=="--help"): raise "usage" if (option=="--package-info"): raise "package-info" if (option=="--compiler"): COMPILER=value if (option=="--directx-sdk"): DirectXSDK=value if (option=="--thirdparty"): THIRDPARTY=value if (option=="--optimize"): OPTIMIZE=value if (option=="--quiet"): VERBOSE-=1 if (option=="--verbose"): VERBOSE+=1 if (option=="--installer"): INSTALLER=1 if (option=="--complete"): COMPLETE=1 if (option=="--everything"): OMIT=[] if (option=="--nothing"): OMIT=PACKAGES[:] if (option=="--v1"): VERSION1=int(value) if (option=="--v2"): VERSION2=int(value) if (option=="--v3"): VERSION3=int(value) if (option=="--lzma"): COMPRESSOR="lzma" for pkg in PACKAGES: if (option=="--use-"+pkg.lower()): if (OMIT.count(pkg)): OMIT.delete(pkg) for pkg in PACKAGES: if (option=="--no-"+pkg.lower()): if (OMIT.count(pkg)==0): OMIT.append(pkg) anything = 1 except "package-info": packageInfo() except: usage(0) if (anything==0): usage(0) if (OPTIMIZE=="1"): OPTIMIZE=1 elif (OPTIMIZE=="2"): OPTIMIZE=2 elif (OPTIMIZE=="3"): OPTIMIZE=3 elif (OPTIMIZE=="4"): OPTIMIZE=4 else: usage("Invalid setting for OPTIMIZE"); if (COMPILERS.count(COMPILER)==0): usage("Invalid setting for COMPILER: "+COMPILER);
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 5423, 1102, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 2455, 7937, 40, 2778, 5538, 16, 28865, 654, 16, 24875, 22639, 55, 16, 5757, 21, 16, 5757, 22, 16, 5757, 23, 16, 4208, 22526, 916, 2552, 9908, 60, 22625, 16, 21900, 1525, 4952, 273, 306, 315, 5201, 15937, 5610, 17, 1376, 15937, 3239, 1546, 10837, 9576, 1546, 10837, 7205, 92, 17, 20907, 1546, 10837, 451, 6909, 21214, 1546, 16, 315, 29155, 1546, 10837, 20434, 4274, 15937, 30874, 15937, 20163, 15937, 20380, 15937, 11369, 3113, 315, 6226, 15937, 1886, 15937, 90, 21, 1546, 10837, 90, 22, 1546, 10837, 90, 23, 1546, 10837, 80, 94, 2540, 11929, 6967, 273, 374, 364, 3475, 316, 23599, 55, 30, 1525, 4952, 18, 6923, 2932, 2135, 10951, 15, 10657, 18, 8167, 10756, 364, 3475, 316, 23599, 55, 30, 1525, 4952, 18, 6923, 2932, 1202, 10951, 15, 10657, 18, 8167, 10756, 775, 30, 1500, 16, 11875, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 23453, 1525, 4952, 13, 364, 1456, 16, 1132, 316, 1500, 30, 309, 261, 3482, 31713, 413, 5201, 6, 4672, 1002, 315, 9167, 6, 309, 261, 3482, 31713, 413, 5610, 17, 1376, 6, 4672, 1002, 315, 5610, 17, 1376, 6, 309, 261, 3482, 31713, 413, 9576, 6, 4672, 5423, 1102, 14668, 33, 1132, 309, 261, 3482, 31713, 413, 7205, 92, 17, 20907, 6, 4672, 9908, 60, 22625, 33, 1132, 309, 261, 3482, 31713, 413, 451, 6909, 21214, 6, 4672, 7662, 7937, 40, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4952, 12, 1968, 4672, 2552, 5423, 1102, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 2455, 7937, 40, 2778, 5538, 16, 28865, 654, 16, 24875, 22639, 55, 16, 5757, 21, 16, 5757, 22, 16, 5757, 23, 16, 4208, 22526, 916, 2552, 9908, 60, 22625, 16, 21900, 1525, 4952, 273, 306, 315, 5201, 15937, 5610, 17, 1376, 15937, 3239, 1546, 10837, 9576, 1546, 10837, 7205, 92, 17, 20907, 1546, 10837, 451, 6909, 21214, 1546, 16, 315, 29155, 1546, 10837, 20434, 4274, 15937, 30874, 15937, 20163, 15937, 20380, 15937, 11369, 3113, 315, 6226, 15937, 1886, 15937, 90, 21, 1546, 10837, 90, 22, 1546, 10837, 90, 23, 1546, 10837, 80, 94, 2540, 11929, 6967, 273, 374, 364, 3475, 316, 2 ]
print "Save(\"gregorio-%d.sfd\");" % current_font_number print "Quit(0);"
fout.write("Save(\"gregorio-%d.sfd\");\n" % current_font_number) fout.write("Quit(0);\n")
def footers(): print "Save(\"gregorio-%d.sfd\");" % current_font_number print "Quit(0);"
da8d78f38ceb134d9ac1ea0c840479a1eadd3f2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7096/da8d78f38ceb134d9ac1ea0c840479a1eadd3f2b/sqarize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14200, 414, 13332, 17382, 18, 2626, 2932, 4755, 23031, 2810, 280, 1594, 6456, 72, 18, 87, 8313, 2412, 20472, 82, 6, 738, 783, 67, 5776, 67, 2696, 13, 17382, 18, 2626, 2932, 25365, 12, 20, 20472, 82, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 14200, 414, 13332, 17382, 18, 2626, 2932, 4755, 23031, 2810, 280, 1594, 6456, 72, 18, 87, 8313, 2412, 20472, 82, 6, 738, 783, 67, 5776, 67, 2696, 13, 17382, 18, 2626, 2932, 25365, 12, 20, 20472, 82, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.provider.close()
def test_getPosters_When_next_provider_returns_posters_Then_cache_and_return_first_poster_and_add_remaining_to_work_queue(self): httpUrls = [ 'http://www.gstatic.com/hostedimg/1f4337d461f1431c_large', 'http://www.gstatic.com/hostedimg/50edad09a73fa0ed_large', 'http://www.gstatic.com/hostedimg/d915322b880dcaf2_large', 'http://www.gstatic.com/hostedimg/998ad397414e3727_large', 'http://www.gstatic.com/hostedimg/ba55ddda30df5f96_large', 'http://www.gstatic.com/hostedimg/7f0a19596a92fad1_large', 'http://www.gstatic.com/hostedimg/8edb2dfe5ba34685_large', 'http://www.gstatic.com/hostedimg/ffdb442e9f46a3c3_large'] when(self.nextProvider).getPosters(any(Program)).thenReturn(httpUrls) # Test posters = self.provider.getPosters(self.program) # Verify log.debug('Posters= %s' % posters) self.assertEquals(1, len(posters)) while len(posters) < len(httpUrls): time.sleep(1) log.debug('Images downloaded: %d' % len(posters)) self.provider.close()
4d6bf491ed6074306cd1beb4079a1902ae44a491 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12279/4d6bf491ed6074306cd1beb4079a1902ae44a491/test_fanart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 3349, 414, 67, 9434, 67, 4285, 67, 6778, 67, 6154, 67, 2767, 414, 67, 20112, 67, 2493, 67, 464, 67, 2463, 67, 3645, 67, 2767, 264, 67, 464, 67, 1289, 67, 17956, 67, 869, 67, 1252, 67, 4000, 12, 2890, 4672, 1062, 10509, 273, 306, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 21, 74, 24, 3707, 27, 72, 8749, 21, 74, 3461, 6938, 71, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 3361, 329, 361, 5908, 69, 9036, 507, 20, 329, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 72, 29, 3600, 1578, 22, 70, 28, 3672, 7201, 1727, 22, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 2733, 28, 361, 5520, 5608, 3461, 73, 6418, 5324, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 12124, 2539, 449, 2414, 5082, 2180, 25, 74, 10525, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 27, 74, 20, 69, 3657, 6162, 26, 69, 9975, 74, 361, 21, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 28, 329, 70, 22, 2180, 73, 25, 12124, 5026, 26, 7140, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3349, 414, 67, 9434, 67, 4285, 67, 6778, 67, 6154, 67, 2767, 414, 67, 20112, 67, 2493, 67, 464, 67, 2463, 67, 3645, 67, 2767, 264, 67, 464, 67, 1289, 67, 17956, 67, 869, 67, 1252, 67, 4000, 12, 2890, 4672, 1062, 10509, 273, 306, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 21, 74, 24, 3707, 27, 72, 8749, 21, 74, 3461, 6938, 71, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 3361, 329, 361, 5908, 69, 9036, 507, 20, 329, 67, 14095, 2187, 296, 2505, 2207, 5591, 18, 75, 3845, 18, 832, 19, 2564, 329, 6081, 19, 72, 2 ]
Multivariate polynomials also coerce:
sage: Q, q = FiniteField_ext_pari(5^7, 'q').objgen() sage: L = GF(5) sage: LL.<xx> = L[] sage: Q(xx^2 + 2*xx + 4) q^2 + 2*q + 4 Multivariate polynomials only coerce if constant:
def __call__(self, x): r""" Coerce x into the finite field. INPUT: x -- object
5c9f17a7ae7db46040eafbff2d7aa9efa9bfb829 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5c9f17a7ae7db46040eafbff2d7aa9efa9bfb829/finite_field_ext_pari.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 436, 8395, 7695, 2765, 619, 1368, 326, 25922, 652, 18, 225, 12943, 30, 619, 1493, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
c = Client("version", []) self._ConnectList(c, node_list) return c.GetResults()
return self._MultiNodeCall(node_list, "version", [])
def call_version(self, node_list): """Query node version.
9a525d83b2a75f44cc1171e7d715b5bee7a76756 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/9a525d83b2a75f44cc1171e7d715b5bee7a76756/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1589, 12, 2890, 16, 756, 67, 1098, 4672, 3536, 1138, 756, 1177, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 4672, 3536, 1138, 756, 1177, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s.tk.call( s.f.plf._w, CMD, 'plvsta' )
s.cmd( 'plvsta' )
def plvsta(s):
5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 90, 334, 69, 12, 87, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 90, 334, 69, 12, 87, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
parts = node['parts']
def latex_visit_inheritance_diagram(self, node): """ Output the graph for LaTeX. This will insert a PDF. """ graph = node['graph'] parts = node['parts'] graph_hash = get_graph_hash(node) name = 'inheritance%s' % graph_hash dotcode = graph.generate_dot(name, parts, env=self.builder.env, graph_attrs={'size': '"6.0,6.0"'}) render_dot_latex(self, node, dotcode, [], 'inheritance') raise nodes.SkipNode
b90ca05941e1fd53e0d69ced376e466dab659f67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/b90ca05941e1fd53e0d69ced376e466dab659f67/inheritance_diagram.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25079, 67, 11658, 67, 6018, 1359, 67, 12264, 1940, 12, 2890, 16, 756, 4672, 3536, 3633, 326, 2667, 364, 21072, 21575, 60, 18, 225, 1220, 903, 2243, 279, 12667, 18, 3536, 2667, 273, 756, 3292, 4660, 3546, 225, 2667, 67, 2816, 273, 336, 67, 4660, 67, 2816, 12, 2159, 13, 508, 273, 296, 6018, 1359, 9, 87, 11, 738, 2667, 67, 2816, 225, 3928, 710, 273, 2667, 18, 7163, 67, 9811, 12, 529, 16, 2140, 16, 1550, 33, 2890, 18, 9574, 18, 3074, 16, 2667, 67, 7039, 5899, 11, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 25079, 67, 11658, 67, 6018, 1359, 67, 12264, 1940, 12, 2890, 16, 756, 4672, 3536, 3633, 326, 2667, 364, 21072, 21575, 60, 18, 225, 1220, 903, 2243, 279, 12667, 18, 3536, 2667, 273, 756, 3292, 4660, 3546, 225, 2667, 67, 2816, 273, 336, 67, 4660, 67, 2816, 12, 2159, 13, 508, 273, 296, 6018, 1359, 9, 87, 11, 738, 2667, 67, 2816, 225, 3928, 710, 273, 2667, 18, 7163, 67, 9811, 12, 529, 16, 2140, 16, 1550, 33, 2890, 18, 9574, 18, 3074, 16, 2667, 67, 7039, 5899, 11, 1467, 4278, 2119, 26, 18, 20, 16, 26, 18, 20, 5187, 6792, 1743, 67, 9811, 67, 26264, 12, 2890, 16, 756, 16, 3928, 710, 16, 5378, 16, 296, 6018, 2 ]
t += '\n<blockquote type="cite">\n'
t += '\n<blockquote type="cite">\n\n'
def renderCitationsIn(self, page, t): inblock = 0 blocklines = [] blockend=0 lines = string.split(t, '\n') t = "" for i in range(len(lines)): m = re.match(r'^\s*>\s?(.*)$', lines[i]) if(m): if(not inblock): t += string.join(lines[blockend:i],'\n') t += '\n<blockquote type="cite">\n' inblock = 1 blocklines.append(m.group(1)) elif(inblock): inblock = 0 blockend=i t += self.renderCitationsIn(page,string.join(blocklines, '\n')) t += '\n\n</blockquote>\n' blocklines = [] t += string.join(lines[blockend:], '\n') return t
5d7a2b6826c32b60881c01b8918fbe6c3951a618 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/5d7a2b6826c32b60881c01b8918fbe6c3951a618/PageTypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 39, 18282, 382, 12, 2890, 16, 1363, 16, 268, 4672, 316, 2629, 273, 374, 1203, 3548, 273, 5378, 1203, 409, 33, 20, 2362, 273, 533, 18, 4939, 12, 88, 16, 2337, 82, 6134, 268, 273, 1408, 364, 277, 316, 1048, 12, 1897, 12, 3548, 3719, 30, 312, 273, 283, 18, 1916, 12, 86, 11, 17134, 87, 14, 5333, 87, 35, 14361, 8, 2187, 2362, 63, 77, 5717, 309, 12, 81, 4672, 309, 12, 902, 316, 2629, 4672, 268, 1011, 533, 18, 5701, 12, 3548, 63, 2629, 409, 30, 77, 6487, 8314, 82, 6134, 268, 1011, 2337, 82, 32, 2629, 6889, 618, 1546, 71, 1137, 6, 5333, 82, 64, 82, 11, 316, 2629, 273, 404, 1203, 3548, 18, 6923, 12, 81, 18, 1655, 12, 21, 3719, 1327, 12, 267, 2629, 4672, 316, 2629, 273, 374, 1203, 409, 33, 77, 268, 1011, 365, 18, 5902, 39, 18282, 382, 12, 2433, 16, 1080, 18, 5701, 12, 2629, 3548, 16, 2337, 82, 26112, 268, 1011, 2337, 82, 64, 82, 1757, 2629, 6889, 5333, 82, 11, 1203, 3548, 273, 5378, 268, 1011, 533, 18, 5701, 12, 3548, 63, 2629, 409, 30, 6487, 2337, 82, 6134, 327, 268, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 39, 18282, 382, 12, 2890, 16, 1363, 16, 268, 4672, 316, 2629, 273, 374, 1203, 3548, 273, 5378, 1203, 409, 33, 20, 2362, 273, 533, 18, 4939, 12, 88, 16, 2337, 82, 6134, 268, 273, 1408, 364, 277, 316, 1048, 12, 1897, 12, 3548, 3719, 30, 312, 273, 283, 18, 1916, 12, 86, 11, 17134, 87, 14, 5333, 87, 35, 14361, 8, 2187, 2362, 63, 77, 5717, 309, 12, 81, 4672, 309, 12, 902, 316, 2629, 4672, 268, 1011, 533, 18, 5701, 12, 3548, 63, 2629, 409, 30, 77, 6487, 8314, 82, 6134, 268, 1011, 2337, 82, 32, 2629, 6889, 618, 1546, 71, 1137, 6, 5333, 82, 64, 82, 11, 316, 2629, 273, 404, 1203, 3548, 18, 2 ]
for i in range(0,l-1):
for i in range(0, l - 1):
def xcorrEvents(starttime, endtime, network_id='*', station_id='*', location_id='', channel_id='EHE', phase='P', time_window=(-10, 40), winlen=10.0): """ """ # get all events betwenn start and end time event_list = client.event.getList(datetime = (starttime, endtime)) for event in event_list: print "EVENT:", event['datetime'] # request event resource res = client.event.getXMLResource(event['resource_name']) # fetch all picks with given phase pick_list = res.xpath("/event/pick[phaseHint='%s']" % phase) # cycle through picks streams = [] for pick in pick_list: temp = {} # XXX: ignoring location code for now dt = UTCDateTime(str(pick.time.value)) sid = pick.waveform.attrib['stationCode'] nid = pick.waveform.attrib['networkCode'] or 'BW' print ' Pick:', nid, sid, dt # get station PAZ paz = getStationPAZ(nid, sid, dt) if not paz: print "!!! Missing PAZ for %s.%s for %s" % (nid, sid, dt) continue # get waveforms try: stream = client.waveform.getWaveform(nid, sid, location_id, channel_id, dt+time_window[0], dt+time_window[1]) except: msg = "!!! Error fetching waveform for %s.%s.%s.%s for %s" print msg % (nid, sid, location_id, channel_id, dt) continue # trim to time window stream.trim(dt+time_window[0], dt+time_window[1]) for trace in stream: # calculate zero mean trace.data = trace.data - trace.data.mean() # instrument correction trace.data = seisSim(trace.data, trace.stats.sampling_rate, paz, inst_sim=None, water_level=50.0) print ' Trace:', trace # append streams.append(stream) # cross correlation over all prepared streams l = len(streams) if l<2: print "Need at least 2 stations" continue print "XCORR:" for i in range(0,l-1): tr1 = streams[i][0] for j in range(i+1,l): tr2 = streams[j][0] print ' ', tr1.getId(), ' x ', tr2.getId(), ' = ', # check samling rate for both traces if tr1.stats.sampling_rate != tr2.stats.sampling_rate: print print "!!! Sampling rate are not equal!" continue if tr1.stats.npts != tr2.stats.npts: print print "!!! Number of samples in time window are not equal!" continue # devide by 2.0 as in eventcluster line 604: param = windowlen/2 winlen = int(winlen / float(tr1.stats.sampling_rate) / 2.0) shift, coe = xcorr(tr1.data.astype('float32'), tr2.data.astype('float32'), winlen) print "%.4lf" % coe print print
eaae164587ff3e53e5bb057afc519a3a6dac28e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/eaae164587ff3e53e5bb057afc519a3a6dac28e5/eventcluster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 17515, 3783, 12, 1937, 957, 16, 31361, 16, 2483, 67, 350, 2218, 14, 2187, 13282, 67, 350, 2218, 14, 2187, 2117, 67, 350, 2218, 2187, 1904, 67, 350, 2218, 41, 3900, 2187, 6855, 2218, 52, 2187, 813, 67, 5668, 33, 19236, 2163, 16, 8063, 3631, 5657, 1897, 33, 2163, 18, 20, 4672, 3536, 3536, 468, 336, 777, 2641, 2701, 91, 25713, 787, 471, 679, 813, 871, 67, 1098, 273, 1004, 18, 2575, 18, 588, 682, 12, 6585, 273, 261, 1937, 957, 16, 31361, 3719, 364, 871, 316, 871, 67, 1098, 30, 1172, 315, 10454, 2773, 16, 871, 3292, 6585, 3546, 468, 590, 871, 1058, 400, 273, 1004, 18, 2575, 18, 588, 4201, 1420, 12, 2575, 3292, 3146, 67, 529, 19486, 468, 2158, 777, 6002, 87, 598, 864, 6855, 6002, 67, 1098, 273, 400, 18, 18644, 2932, 19, 2575, 19, 11503, 63, 13961, 7002, 28713, 87, 31867, 738, 6855, 13, 468, 8589, 3059, 6002, 87, 8205, 273, 5378, 364, 6002, 316, 6002, 67, 1098, 30, 1906, 273, 2618, 468, 11329, 30, 14398, 2117, 981, 364, 2037, 3681, 273, 9951, 5096, 12, 701, 12, 11503, 18, 957, 18, 1132, 3719, 7348, 273, 6002, 18, 17838, 687, 18, 14588, 3292, 17894, 1085, 3546, 19416, 273, 6002, 18, 17838, 687, 18, 14588, 3292, 5185, 1085, 3546, 578, 296, 38, 59, 11, 1172, 296, 282, 23038, 30, 2187, 19416, 16, 7348, 16, 3681, 468, 336, 13282, 15662, 62, 293, 1561, 273, 336, 16672, 4066, 62, 12, 31030, 16, 7348, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 17515, 3783, 12, 1937, 957, 16, 31361, 16, 2483, 67, 350, 2218, 14, 2187, 13282, 67, 350, 2218, 14, 2187, 2117, 67, 350, 2218, 2187, 1904, 67, 350, 2218, 41, 3900, 2187, 6855, 2218, 52, 2187, 813, 67, 5668, 33, 19236, 2163, 16, 8063, 3631, 5657, 1897, 33, 2163, 18, 20, 4672, 3536, 3536, 468, 336, 777, 2641, 2701, 91, 25713, 787, 471, 679, 813, 871, 67, 1098, 273, 1004, 18, 2575, 18, 588, 682, 12, 6585, 273, 261, 1937, 957, 16, 31361, 3719, 364, 871, 316, 871, 67, 1098, 30, 1172, 315, 10454, 2773, 16, 871, 3292, 6585, 3546, 468, 590, 871, 1058, 400, 273, 1004, 18, 2575, 18, 588, 4201, 1420, 12, 2575, 3292, 3146, 2 ]
if cache.has_key(path): return cache[path] cache[path] = ret = os.stat(path)
ret = cache.get(path, None) if ret is None: cache[path] = ret = _os.stat(path)
def stat(path): """Stat a file, possibly out of the cache.""" if cache.has_key(path): return cache[path] cache[path] = ret = os.stat(path) return ret
0149e84af280523f74bc2bccb6505eb12cf5bf9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0149e84af280523f74bc2bccb6505eb12cf5bf9c/statcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 610, 12, 803, 4672, 3536, 5000, 279, 585, 16, 10016, 596, 434, 326, 1247, 12123, 325, 273, 1247, 18, 588, 12, 803, 16, 599, 13, 309, 325, 353, 599, 30, 1247, 63, 803, 65, 273, 325, 273, 389, 538, 18, 5642, 12, 803, 13, 327, 325, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 803, 4672, 3536, 5000, 279, 585, 16, 10016, 596, 434, 326, 1247, 12123, 325, 273, 1247, 18, 588, 12, 803, 16, 599, 13, 309, 325, 353, 599, 30, 1247, 63, 803, 65, 273, 325, 273, 389, 538, 18, 5642, 12, 803, 13, 327, 325, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logging.error("Cannot set memory lock: %s" %
logging.error("Cannot set memory lock: %s",
def Mlockall(): """Lock current process' virtual address space into RAM. This is equivalent to the C call mlockall(MCL_CURRENT|MCL_FUTURE), see mlock(2) for more details. This function requires ctypes module. """ if ctypes is None: logging.warning("Cannot set memory lock, ctypes module not found") return libc = ctypes.cdll.LoadLibrary("libc.so.6") if libc is None: logging.error("Cannot set memory lock, ctypes cannot load libc") return # Some older version of the ctypes module don't have built-in functionality # to access the errno global variable, where function error codes are stored. # By declaring this variable as a pointer to an integer we can then access # its value correctly, should the mlockall call fail, in order to see what # the actual error code was. libc.__errno_location.restype = ctypes.POINTER(ctypes.c_int) if libc.mlockall(_MCL_CURRENT | _MCL_FUTURE): logging.error("Cannot set memory lock: %s" % os.strerror(libc.__errno_location().contents.value)) return logging.debug("Memory lock set")
6ed0bbce33b8a134d0e22dd72fd111e07fc9bef9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/6ed0bbce33b8a134d0e22dd72fd111e07fc9bef9/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 739, 454, 13332, 3536, 2531, 783, 1207, 11, 5024, 1758, 3476, 1368, 30327, 18, 225, 1220, 353, 7680, 358, 326, 385, 745, 312, 739, 454, 12, 49, 5017, 67, 15487, 96, 49, 5017, 67, 42, 1693, 4830, 3631, 2621, 312, 739, 12, 22, 13, 364, 1898, 3189, 18, 1220, 445, 4991, 6983, 1605, 18, 225, 3536, 309, 6983, 353, 599, 30, 2907, 18, 8551, 2932, 4515, 444, 3778, 2176, 16, 6983, 1605, 486, 1392, 7923, 327, 225, 2561, 71, 273, 6983, 18, 4315, 2906, 18, 2563, 9313, 2932, 2941, 71, 18, 2048, 18, 26, 7923, 309, 2561, 71, 353, 599, 30, 2907, 18, 1636, 2932, 4515, 444, 3778, 2176, 16, 6983, 2780, 1262, 2561, 71, 7923, 327, 225, 468, 10548, 12156, 1177, 434, 326, 6983, 1605, 2727, 1404, 1240, 6650, 17, 267, 14176, 468, 358, 2006, 326, 8402, 2552, 2190, 16, 1625, 445, 555, 6198, 854, 4041, 18, 468, 2525, 20845, 333, 2190, 487, 279, 4407, 358, 392, 3571, 732, 848, 1508, 2006, 468, 2097, 460, 8783, 16, 1410, 326, 312, 739, 454, 745, 2321, 16, 316, 1353, 358, 2621, 4121, 468, 326, 3214, 555, 981, 1703, 18, 2561, 71, 16186, 19088, 67, 3562, 18, 8792, 388, 273, 6983, 18, 2419, 9125, 12, 299, 989, 18, 71, 67, 474, 13, 225, 309, 2561, 71, 18, 81, 739, 454, 24899, 49, 5017, 67, 15487, 571, 389, 49, 5017, 67, 42, 1693, 4830, 4672, 2907, 18, 1636, 2932, 4515, 444, 3778, 2176, 30, 738, 87, 3113, 1140, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 739, 454, 13332, 3536, 2531, 783, 1207, 11, 5024, 1758, 3476, 1368, 30327, 18, 225, 1220, 353, 7680, 358, 326, 385, 745, 312, 739, 454, 12, 49, 5017, 67, 15487, 96, 49, 5017, 67, 42, 1693, 4830, 3631, 2621, 312, 739, 12, 22, 13, 364, 1898, 3189, 18, 1220, 445, 4991, 6983, 1605, 18, 225, 3536, 309, 6983, 353, 599, 30, 2907, 18, 8551, 2932, 4515, 444, 3778, 2176, 16, 6983, 1605, 486, 1392, 7923, 327, 225, 2561, 71, 273, 6983, 18, 4315, 2906, 18, 2563, 9313, 2932, 2941, 71, 18, 2048, 18, 26, 7923, 309, 2561, 71, 353, 599, 30, 2907, 18, 1636, 2932, 4515, 444, 3778, 2176, 16, 6983, 2780, 1262, 2561, 71, 7923, 327, 2 ]
print >> out, "}"
if (prefix_scope != "") : print >> out, "}"
def run (args, out=sys.stdout, log=sys.stderr) : pdb_files = [] sources = [] force_new_annotation = False master_phil = libtbx.phil.parse(""" show_all_params = False .type = bool show_histograms = False .type = bool format = *phenix phenix_bonds pymol refmac .type = choice quiet = False .type = bool
9558adbefa8067b6d42f27f0bcb5bd99ad6b8ebe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/9558adbefa8067b6d42f27f0bcb5bd99ad6b8ebe/secondary_structure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 1968, 16, 596, 33, 9499, 18, 10283, 16, 613, 33, 9499, 18, 11241, 13, 294, 10892, 67, 2354, 273, 5378, 5550, 273, 5378, 2944, 67, 2704, 67, 11495, 273, 1083, 4171, 67, 844, 330, 273, 2561, 18587, 92, 18, 844, 330, 18, 2670, 2932, 3660, 2405, 67, 454, 67, 2010, 273, 1083, 263, 723, 273, 1426, 2405, 67, 22702, 87, 273, 1083, 263, 723, 273, 1426, 740, 273, 380, 13819, 697, 21484, 697, 67, 70, 4096, 2395, 21260, 1278, 5821, 263, 723, 273, 6023, 10902, 273, 1083, 263, 723, 273, 1426, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 261, 1968, 16, 596, 33, 9499, 18, 10283, 16, 613, 33, 9499, 18, 11241, 13, 294, 10892, 67, 2354, 273, 5378, 5550, 273, 5378, 2944, 67, 2704, 67, 11495, 273, 1083, 4171, 67, 844, 330, 273, 2561, 18587, 92, 18, 844, 330, 18, 2670, 2932, 3660, 2405, 67, 454, 67, 2010, 273, 1083, 263, 723, 273, 1426, 2405, 67, 22702, 87, 273, 1083, 263, 723, 273, 1426, 740, 273, 380, 13819, 697, 21484, 697, 67, 70, 4096, 2395, 21260, 1278, 5821, 263, 723, 273, 6023, 10902, 273, 1083, 263, 723, 273, 1426, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "umask: ", oct(self.options.umask)
umask = self.options.umask if not umask: umask = os.umask(0777) os.umask(umask) print "umask: ", oct(umask)
def show_options(self): print "zdctl/zdrun options:" print "schemafile: ", repr(self.options.schemafile) print "configfile: ", repr(self.options.configfile) print "interactive: ", repr(self.options.interactive) print "default_to_interactive:", print repr(self.options.default_to_interactive) print "zdrun: ", repr(self.options.zdrun) print "python: ", repr(self.options.python) print "program: ", repr(self.options.program) print "backofflimit:", repr(self.options.backofflimit) print "daemon: ", repr(self.options.daemon) print "forever: ", repr(self.options.forever) print "sockname: ", repr(self.options.sockname) print "exitcodes: ", repr(self.options.exitcodes) print "user: ", repr(self.options.user) print "umask: ", oct(self.options.umask) print "directory: ", repr(self.options.directory) print "logfile: ", repr(self.options.logfile) print "hang_around: ", repr(self.options.hang_around)
2cea6fb27fc85082865b8560d5696495eacd7567 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9782/2cea6fb27fc85082865b8560d5696495eacd7567/zdctl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 2116, 12, 2890, 4672, 1172, 315, 94, 72, 12930, 19, 94, 72, 2681, 702, 2773, 1172, 315, 4821, 768, 30, 225, 3104, 8480, 12, 2890, 18, 2116, 18, 4821, 768, 13, 1172, 315, 1425, 768, 30, 225, 3104, 8480, 12, 2890, 18, 2116, 18, 1425, 768, 13, 1172, 315, 24761, 30, 3104, 8480, 12, 2890, 18, 2116, 18, 24761, 13, 1172, 315, 1886, 67, 869, 67, 24761, 2773, 16, 1172, 5375, 8480, 12, 2890, 18, 2116, 18, 1886, 67, 869, 67, 24761, 13, 1172, 315, 94, 72, 2681, 30, 4202, 3104, 8480, 12, 2890, 18, 2116, 18, 94, 72, 2681, 13, 1172, 315, 8103, 30, 1377, 3104, 8480, 12, 2890, 18, 2116, 18, 8103, 13, 1172, 315, 12890, 30, 377, 3104, 8480, 12, 2890, 18, 2116, 18, 12890, 13, 1172, 315, 823, 792, 2242, 1038, 2773, 16, 8480, 12, 2890, 18, 2116, 18, 823, 792, 2242, 1038, 13, 1172, 315, 21511, 30, 1377, 3104, 8480, 12, 2890, 18, 2116, 18, 21511, 13, 1172, 315, 1405, 502, 30, 377, 3104, 8480, 12, 2890, 18, 2116, 18, 1405, 502, 13, 1172, 315, 15031, 529, 30, 565, 3104, 8480, 12, 2890, 18, 2116, 18, 15031, 529, 13, 1172, 315, 8593, 7000, 30, 282, 3104, 8480, 12, 2890, 18, 2116, 18, 8593, 7000, 13, 1172, 315, 1355, 30, 3639, 3104, 8480, 12, 2890, 18, 2116, 18, 1355, 13, 22691, 273, 365, 18, 2116, 18, 379, 835, 309, 486, 22691, 30, 22691, 273, 1140, 18, 379, 835, 12, 20, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 2116, 12, 2890, 4672, 1172, 315, 94, 72, 12930, 19, 94, 72, 2681, 702, 2773, 1172, 315, 4821, 768, 30, 225, 3104, 8480, 12, 2890, 18, 2116, 18, 4821, 768, 13, 1172, 315, 1425, 768, 30, 225, 3104, 8480, 12, 2890, 18, 2116, 18, 1425, 768, 13, 1172, 315, 24761, 30, 3104, 8480, 12, 2890, 18, 2116, 18, 24761, 13, 1172, 315, 1886, 67, 869, 67, 24761, 2773, 16, 1172, 5375, 8480, 12, 2890, 18, 2116, 18, 1886, 67, 869, 67, 24761, 13, 1172, 315, 94, 72, 2681, 30, 4202, 3104, 8480, 12, 2890, 18, 2116, 18, 94, 72, 2681, 13, 1172, 315, 8103, 30, 1377, 3104, 8480, 12, 2890, 18, 2116, 18, 8103, 13, 1172, 2 ]
if pkgname in self.deps[arch]: continue
def parse_primary(self, data, arch): if arch not in self.packages: self.packages[arch] = set() if arch not in self.deps: self.deps[arch] = dict() if arch not in self.provides: self.provides[arch] = dict() for pkg in data.getchildren(): if not pkg.tag.endswith('package'): continue pkgname = pkg.find(self.xp + 'name').text self.packages[arch].add(pkgname)
0b088cc9ad16c4b7f5e63117fa380318a37ee697 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/0b088cc9ad16c4b7f5e63117fa380318a37ee697/Packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8258, 12, 2890, 16, 501, 16, 6637, 4672, 309, 6637, 486, 316, 365, 18, 10308, 30, 365, 18, 10308, 63, 991, 65, 273, 444, 1435, 309, 6637, 486, 316, 365, 18, 14877, 30, 365, 18, 14877, 63, 991, 65, 273, 2065, 1435, 309, 6637, 486, 316, 365, 18, 685, 13427, 30, 365, 18, 685, 13427, 63, 991, 65, 273, 2065, 1435, 364, 3475, 316, 501, 18, 588, 5906, 13332, 309, 486, 3475, 18, 2692, 18, 5839, 1918, 2668, 5610, 11, 4672, 1324, 29348, 273, 3475, 18, 4720, 12, 2890, 18, 23829, 397, 296, 529, 16063, 955, 365, 18, 10308, 63, 991, 8009, 1289, 12, 10657, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8258, 12, 2890, 16, 501, 16, 6637, 4672, 309, 6637, 486, 316, 365, 18, 10308, 30, 365, 18, 10308, 63, 991, 65, 273, 444, 1435, 309, 6637, 486, 316, 365, 18, 14877, 30, 365, 18, 14877, 63, 991, 65, 273, 2065, 1435, 309, 6637, 486, 316, 365, 18, 685, 13427, 30, 365, 18, 685, 13427, 63, 991, 65, 273, 2065, 1435, 364, 3475, 316, 501, 18, 588, 5906, 13332, 309, 486, 3475, 18, 2692, 18, 5839, 1918, 2668, 5610, 11, 4672, 1324, 29348, 273, 3475, 18, 4720, 12, 2890, 18, 23829, 397, 296, 529, 16063, 955, 365, 18, 10308, 63, 991, 8009, 1289, 12, 10657, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def findnode(self, expr, node):
def findnode(self, expr, node, **kwargs):
def findnode(self, expr, node): return xpath.findnode(expr, node, context=self, **kwargs)
f67309126dd67672334bc0d10cb7eb33efb2f8d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12365/f67309126dd67672334bc0d10cb7eb33efb2f8d5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2159, 12, 2890, 16, 3065, 16, 756, 16, 2826, 4333, 4672, 327, 6748, 18, 4720, 2159, 12, 8638, 16, 756, 16, 819, 33, 2890, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1104, 2159, 12, 2890, 16, 3065, 16, 756, 16, 2826, 4333, 4672, 327, 6748, 18, 4720, 2159, 12, 8638, 16, 756, 16, 819, 33, 2890, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
writeExpedLists(enwiktsite, expedListPeople)
updateUserTexts(enwiktsite)
def main(): global expedListPeople
cae84285ccba76e48bebaac64e326424071706fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12839/cae84285ccba76e48bebaac64e326424071706fd/aperfectbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 1329, 18073, 11227, 11763, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2774, 13332, 2552, 1329, 18073, 11227, 11763, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
msvcr71_path = lib_path + '/msvcr71' environ['DBMSVCR71'] = msvcr71_path
msvcr71_mp = lib_mp + '/msvcr71' environ['DBMSVCR71'] = msvcr71_mp
def set_environment_variables(msys, options): """Set the environment variables used by the scripts""" environ = msys.environ msys_root = msys.msys_root prefix = options.prefix if not prefix: prefix = environ.get('PREFIX', '') if prefix: prefix = msys.windows_to_msys(prefix) else: prefix = default_msys_prefix environ['PREFIX'] = prefix path = environ['PATH'] environ['PATH'] = "%s:%s/bin" % (path, prefix) environ['BDCONF'] = as_flag(options.configure and not options.clean_only) environ['BDCOMP'] = as_flag(options.compile and not options.clean_only) environ['BDINST'] = as_flag(options.install and options.compile and not options.clean_only) environ['BDSTRIP'] = as_flag(options.compile and options.install and options.strip and not options.clean_only) environ['BDCLEAN'] = as_flag(options.clean or options.clean_only) environ.pop('INCLUDE', None) # INCLUDE causes problems with MIXER. lib_path = prefix + '/lib' msvcr71_path = '' if options.msvcr71: # Hide the msvcrt.dll import libraries with those for msvcr71.dll. # Their subdirectory is in the same directory as the SDL library. msvcr71_path = lib_path + '/msvcr71' environ['DBMSVCR71'] = msvcr71_path environ['LDFLAGS'] = merge_strings(environ.get('LDFLAGS', ''), as_linker_lib_path(lib_path), as_linker_lib_path(msvcr71_path), sep=' ') # For dependency headers. include_path = prefix + '/include' environ['CPATH'] = merge_strings(include_path, environ.get('CPATH', ''), sep=';')
6cc175b4d62b091cb925208acc4e34512909ee4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/6cc175b4d62b091cb925208acc4e34512909ee4f/msys_build_deps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10274, 67, 7528, 12, 959, 1900, 16, 702, 4672, 3536, 694, 326, 3330, 3152, 1399, 635, 326, 8873, 8395, 225, 5473, 273, 4086, 1900, 18, 28684, 4086, 1900, 67, 3085, 273, 4086, 1900, 18, 959, 1900, 67, 3085, 1633, 273, 702, 18, 3239, 309, 486, 1633, 30, 1633, 273, 5473, 18, 588, 2668, 6307, 2187, 28707, 309, 1633, 30, 1633, 273, 4086, 1900, 18, 13226, 67, 869, 67, 959, 1900, 12, 3239, 13, 469, 30, 1633, 273, 805, 67, 959, 1900, 67, 3239, 5473, 3292, 6307, 3546, 273, 1633, 589, 273, 5473, 3292, 4211, 3546, 5473, 3292, 4211, 3546, 273, 2213, 87, 5319, 87, 19, 4757, 6, 738, 261, 803, 16, 1633, 13, 5473, 3292, 18096, 14497, 3546, 273, 487, 67, 6420, 12, 2116, 18, 14895, 471, 486, 702, 18, 6200, 67, 3700, 13, 5473, 3292, 18096, 10057, 3546, 273, 487, 67, 6420, 12, 2116, 18, 11100, 471, 486, 702, 18, 6200, 67, 3700, 13, 5473, 3292, 18096, 19784, 3546, 273, 487, 67, 6420, 12, 2116, 18, 5425, 471, 702, 18, 11100, 471, 486, 702, 18, 6200, 67, 3700, 13, 5473, 3292, 18096, 15765, 52, 3546, 273, 487, 67, 6420, 12, 2116, 18, 11100, 471, 702, 18, 5425, 471, 702, 18, 6406, 471, 486, 702, 18, 6200, 67, 3700, 13, 5473, 3292, 38, 5528, 10439, 3546, 273, 487, 67, 6420, 12, 2116, 18, 6200, 578, 702, 18, 6200, 67, 3700, 13, 5473, 18, 5120, 2668, 26003, 2187, 599, 13, 225, 468, 28062, 14119, 9688, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10274, 67, 7528, 12, 959, 1900, 16, 702, 4672, 3536, 694, 326, 3330, 3152, 1399, 635, 326, 8873, 8395, 225, 5473, 273, 4086, 1900, 18, 28684, 4086, 1900, 67, 3085, 273, 4086, 1900, 18, 959, 1900, 67, 3085, 1633, 273, 702, 18, 3239, 309, 486, 1633, 30, 1633, 273, 5473, 18, 588, 2668, 6307, 2187, 28707, 309, 1633, 30, 1633, 273, 4086, 1900, 18, 13226, 67, 869, 67, 959, 1900, 12, 3239, 13, 469, 30, 1633, 273, 805, 67, 959, 1900, 67, 3239, 5473, 3292, 6307, 3546, 273, 1633, 589, 273, 5473, 3292, 4211, 3546, 5473, 3292, 4211, 3546, 273, 2213, 87, 5319, 87, 19, 4757, 6, 738, 261, 803, 16, 1633, 13, 5473, 3292, 18096, 2 ]
logging.error("Can't open cache file %s [%s]" % (filename, str(err))
logging.error("Can't open cache file %s [%s]" % (filename, str(err)))
def open(self, filename=None, mode='r', bufsize=-1): """ open the cache for reading/writing
5472d81b544d91bb8ed18749dbc35faa8b726c7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/5472d81b544d91bb8ed18749dbc35faa8b726c7b/caching.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 1544, 33, 7036, 16, 1965, 2218, 86, 2187, 1681, 1467, 29711, 21, 4672, 3536, 1696, 326, 1247, 364, 6453, 19, 14345, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1696, 12, 2890, 16, 1544, 33, 7036, 16, 1965, 2218, 86, 2187, 1681, 1467, 29711, 21, 4672, 3536, 1696, 326, 1247, 364, 6453, 19, 14345, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._children[1].dev_path)
self._children[1].dev_path, self.size)
def _FastAssemble(self): """Assemble the drbd device from zero.
f069addf353513ae981a6139ad9f223cbba71542 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/f069addf353513ae981a6139ad9f223cbba71542/bdev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12305, 1463, 10045, 12, 2890, 4672, 3536, 1463, 10045, 326, 5081, 16410, 2346, 628, 3634, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12305, 1463, 10045, 12, 2890, 4672, 3536, 1463, 10045, 326, 5081, 16410, 2346, 628, 3634, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if _arguments.has_key('errn'):
if _arguments.get('errn', 0):
def quit(self, _no_object=None, _attributes={}, **_arguments): """quit: Quit the Terminal application Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'core' _subcode = 'quit'
d883fe0f8edb19c1db13af7f62ca177c49791de6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d883fe0f8edb19c1db13af7f62ca177c49791de6/Terminal_Suite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 12, 2890, 16, 389, 2135, 67, 1612, 33, 7036, 16, 389, 4350, 28793, 2826, 67, 7099, 4672, 3536, 27176, 30, 4783, 305, 326, 18778, 2521, 18317, 1237, 389, 4350, 30, 1716, 1802, 1133, 1566, 3880, 3536, 389, 710, 273, 296, 3644, 11, 389, 1717, 710, 273, 296, 27176, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1716, 1802, 1133, 1566, 3880, 3536, 389, 710, 273, 296, 3644, 11, 389, 1717, 710, 273, 296, 27176, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ns.update({'linkThrough': self.user.checkPermission( 'r', item.permissions) and field_type.linkThrough})
ns.update( {'linkThrough': self.user.checkPermission( 'r', item.permissions) and field_type.linkThrough, 'field_suffix': '%s:%s' % \ (item.fields['id'].convertToString(item.id), name)} )
def showFieldInIndex(self, item, name, allow_edit=1): '''Return representation of field in stream''' stream = item.stream field_type = stream.indexFields[name] stream_perms = self.user.getPermissions(stream.permissions) perms = self.user.getPermissions(field_type.indexPermissions) if allow_edit and 'w' in stream_perms and 'w' in perms: template_type = 'edit' elif 'r' in perms: template_type = 'view' else: return '' template_type = 'index-' + template_type ns = self.fieldGlobalNamespace.copy() ns.update({'linkThrough': self.user.checkPermission( 'r', item.permissions) and field_type.linkThrough}) return field_type.show(item, name, template_type, self.edit.getFieldTemplate, ns) # XXX namespace
a6402ab4576e6afcfb61108f12f6f17aab8914a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/a6402ab4576e6afcfb61108f12f6f17aab8914a5/qEdit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 974, 382, 1016, 12, 2890, 16, 761, 16, 508, 16, 1699, 67, 4619, 33, 21, 4672, 9163, 990, 4335, 434, 652, 316, 1407, 26418, 1407, 273, 761, 18, 3256, 652, 67, 723, 273, 1407, 18, 1615, 2314, 63, 529, 65, 1407, 67, 15969, 273, 365, 18, 1355, 18, 588, 6521, 12, 3256, 18, 9612, 13, 13793, 273, 365, 18, 1355, 18, 588, 6521, 12, 1518, 67, 723, 18, 1615, 6521, 13, 309, 1699, 67, 4619, 471, 296, 91, 11, 316, 1407, 67, 15969, 471, 296, 91, 11, 316, 13793, 30, 1542, 67, 723, 273, 296, 4619, 11, 1327, 296, 86, 11, 316, 13793, 30, 1542, 67, 723, 273, 296, 1945, 11, 469, 30, 327, 875, 1542, 67, 723, 273, 296, 1615, 6627, 397, 1542, 67, 723, 3153, 273, 365, 18, 1518, 5160, 3402, 18, 3530, 1435, 3153, 18, 2725, 12, 13666, 1232, 14287, 4278, 365, 18, 1355, 18, 1893, 5041, 12, 296, 86, 2187, 761, 18, 9612, 13, 471, 652, 67, 723, 18, 1232, 14287, 16, 296, 1518, 67, 8477, 4278, 1995, 87, 5319, 87, 11, 738, 521, 261, 1726, 18, 2821, 3292, 350, 29489, 6283, 5808, 12, 1726, 18, 350, 3631, 508, 16869, 262, 327, 652, 67, 723, 18, 4500, 12, 1726, 16, 508, 16, 1542, 67, 723, 16, 365, 18, 4619, 18, 588, 974, 2283, 16, 3153, 13, 468, 11329, 1981, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 974, 382, 1016, 12, 2890, 16, 761, 16, 508, 16, 1699, 67, 4619, 33, 21, 4672, 9163, 990, 4335, 434, 652, 316, 1407, 26418, 1407, 273, 761, 18, 3256, 652, 67, 723, 273, 1407, 18, 1615, 2314, 63, 529, 65, 1407, 67, 15969, 273, 365, 18, 1355, 18, 588, 6521, 12, 3256, 18, 9612, 13, 13793, 273, 365, 18, 1355, 18, 588, 6521, 12, 1518, 67, 723, 18, 1615, 6521, 13, 309, 1699, 67, 4619, 471, 296, 91, 11, 316, 1407, 67, 15969, 471, 296, 91, 11, 316, 13793, 30, 1542, 67, 723, 273, 296, 4619, 11, 1327, 296, 86, 11, 316, 13793, 30, 1542, 67, 723, 273, 296, 1945, 11, 469, 30, 327, 875, 1542, 67, 2 ]
self.longTypes = set(('ACTI','ALCH','AMMO','FURN','MISC','MSTT','PROJ','WEAP','CONT','DOOR','LIGH','STAT', 'DEBR','EXPL','MGEF','SCPT','SPEL','SOUN','NPC_','WATR','TXST','ENCH','FLST','IPDS','STAT','NOTE','QUST'))
self.longTypes = set(('ACTI','ALCH','AMMO','ARMO','BOOK','CONT','CREA','DEBR','DIAL', 'DOOR','ENCH','EXPL','FACT','FLOR','FLST','FURN','INFO','INGR', 'IPDS','KEYM','LIGH','MGEF','MISC','MSTT','NOTE','NPC_','PROJ', 'QUST','SCPT','SOUN','SPEL','STAT','TERM','TXST','WATR','WEAP'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self.getConfigChecked() self.isActive = len(self.sourceMods) != 0 #--Type Fields recAttrs_class = self.recAttrs_class = {} for recClass in (MreActi,MreAlch,MreAmmo,MreFurn,MreMisc,MreMstt,MreProj,MreWeap): recAttrs_class[recClass] = ('destructable',) for recClass in (MreCont,MreDoor,MreTerm): recAttrs_class[recClass] = ('destructable','script',) for recClass in (MreLigh,): recAttrs_class[recClass] = ('script',) for recClass in (MreStat,): recAttrs_class[recClass] = ('model',) self.longTypes = set(('ACTI','ALCH','AMMO','FURN','MISC','MSTT','PROJ','WEAP','CONT','DOOR','LIGH','STAT', 'DEBR','EXPL','MGEF','SCPT','SPEL','SOUN','NPC_','WATR','TXST','ENCH','FLST','IPDS','STAT','NOTE','QUST'))
6073e968e057113196b5f851cf9eca178ed7ea76 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6073e968e057113196b5f851cf9eca178ed7ea76/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7332, 812, 12, 2890, 16, 2272, 812, 16, 945, 1739, 87, 4672, 3536, 7543, 358, 1640, 1269, 4729, 681, 18, 4826, 4186, 854, 2566, 1839, 333, 12123, 12042, 264, 18, 2738, 7332, 812, 12, 2890, 16, 2272, 812, 16, 945, 1739, 87, 13, 365, 18, 350, 67, 892, 273, 2618, 468, 413, 1557, 17408, 635, 1525, 13444, 18, 365, 18, 4816, 4818, 273, 444, 1435, 468, 413, 2115, 3318, 6013, 2112, 635, 1705, 15546, 19, 2354, 18, 365, 18, 3168, 1739, 87, 273, 365, 18, 588, 809, 11454, 1435, 365, 18, 291, 3896, 273, 562, 12, 2890, 18, 3168, 1739, 87, 13, 480, 374, 468, 413, 559, 7190, 1950, 8262, 67, 1106, 273, 365, 18, 3927, 8262, 67, 1106, 273, 2618, 364, 1950, 797, 316, 261, 49, 266, 2459, 77, 16, 49, 266, 1067, 343, 16, 49, 266, 37, 7020, 83, 16, 49, 266, 42, 321, 16, 49, 266, 11729, 71, 16, 49, 266, 49, 334, 88, 16, 49, 266, 626, 78, 16, 49, 266, 3218, 438, 4672, 1950, 8262, 67, 1106, 63, 3927, 797, 65, 273, 7707, 5489, 8813, 429, 2187, 13, 364, 1950, 797, 316, 261, 49, 266, 660, 16, 49, 266, 3244, 280, 16, 49, 266, 4065, 4672, 1950, 8262, 67, 1106, 63, 3927, 797, 65, 273, 7707, 5489, 8813, 429, 17023, 4263, 2187, 13, 364, 1950, 797, 316, 261, 49, 266, 48, 2031, 16, 4672, 1950, 8262, 67, 1106, 63, 3927, 797, 65, 273, 7707, 4263, 2187, 13, 364, 1950, 797, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7332, 812, 12, 2890, 16, 2272, 812, 16, 945, 1739, 87, 4672, 3536, 7543, 358, 1640, 1269, 4729, 681, 18, 4826, 4186, 854, 2566, 1839, 333, 12123, 12042, 264, 18, 2738, 7332, 812, 12, 2890, 16, 2272, 812, 16, 945, 1739, 87, 13, 365, 18, 350, 67, 892, 273, 2618, 468, 413, 1557, 17408, 635, 1525, 13444, 18, 365, 18, 4816, 4818, 273, 444, 1435, 468, 413, 2115, 3318, 6013, 2112, 635, 1705, 15546, 19, 2354, 18, 365, 18, 3168, 1739, 87, 273, 365, 18, 588, 809, 11454, 1435, 365, 18, 291, 3896, 273, 562, 12, 2890, 18, 3168, 1739, 87, 13, 480, 374, 468, 413, 559, 7190, 1950, 8262, 67, 1106, 273, 365, 18, 3927, 8262, 2 ]
ALGORITHM: These are simple functions of the b invariants.
ALGORITHM: These are simple functions of the b-invariants.
def c_invariants(self): """ The c-invariants of this elliptic curve.
09e345b25236d5bd15eecd86cc093a836e7ba6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/09e345b25236d5bd15eecd86cc093a836e7ba6db/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 267, 15886, 12, 2890, 4672, 3536, 1021, 276, 17, 267, 15886, 434, 333, 415, 549, 21507, 8882, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 276, 67, 267, 15886, 12, 2890, 4672, 3536, 1021, 276, 17, 267, 15886, 434, 333, 415, 549, 21507, 8882, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not self or not keys:
if not keys:
def intersection(self, keys): """ Return the intersection of the segmentlists associated with the keys in keys. """ if not self or not keys: return segmentlist() it = iter(keys) seglist = self[it.next()] for value in map(self.__getitem__, it): seglist &= value return seglist
81ea853af8e4fbb043ac0514c34e9c62ff7369b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/81ea853af8e4fbb043ac0514c34e9c62ff7369b9/segments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7619, 12, 2890, 16, 1311, 4672, 3536, 2000, 326, 7619, 434, 326, 3267, 9772, 3627, 598, 326, 1311, 316, 1311, 18, 3536, 309, 486, 1311, 30, 327, 3267, 1098, 1435, 518, 273, 1400, 12, 2452, 13, 2291, 1098, 273, 365, 63, 305, 18, 4285, 1435, 65, 364, 460, 316, 852, 12, 2890, 16186, 31571, 972, 16, 518, 4672, 2291, 1098, 12058, 460, 327, 2291, 1098, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7619, 12, 2890, 16, 1311, 4672, 3536, 2000, 326, 7619, 434, 326, 3267, 9772, 3627, 598, 326, 1311, 316, 1311, 18, 3536, 309, 486, 1311, 30, 327, 3267, 1098, 1435, 518, 273, 1400, 12, 2452, 13, 2291, 1098, 273, 365, 63, 305, 18, 4285, 1435, 65, 364, 460, 316, 852, 12, 2890, 16186, 31571, 972, 16, 518, 4672, 2291, 1098, 12058, 460, 327, 2291, 1098, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else:
else:
def on_add_new_tag(self, widget=None, tid=None, tryagain = False): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid]
af74a98ec19f37511107740256b5e851bc105fab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/af74a98ec19f37511107740256b5e851bc105fab/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1289, 67, 2704, 67, 2692, 12, 2890, 16, 3604, 33, 7036, 16, 11594, 33, 7036, 16, 775, 23095, 273, 1083, 4672, 309, 486, 11594, 30, 365, 18, 88, 2232, 67, 869, 67, 1289, 2692, 273, 365, 18, 588, 67, 8109, 67, 9416, 1435, 469, 30, 365, 18, 88, 2232, 67, 869, 67, 1289, 2692, 273, 306, 18081, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 603, 67, 1289, 67, 2704, 67, 2692, 12, 2890, 16, 3604, 33, 7036, 16, 11594, 33, 7036, 16, 775, 23095, 273, 1083, 4672, 309, 486, 11594, 30, 365, 18, 88, 2232, 67, 869, 67, 1289, 2692, 273, 365, 18, 588, 67, 8109, 67, 9416, 1435, 469, 30, 365, 18, 88, 2232, 67, 869, 67, 1289, 2692, 273, 306, 18081, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Draw.Text("This dataref can't be used for animation")
Draw.Text("This is not a valid dataref")
def drawdataref(datarefs, indices, eventbase, boneno, x, y): dataref=datarefs[boneno] valid=True mbutton=Draw.Menu('sim/%t|'+'/...|'.join(firstlevel)+'/...', DONTCARE+eventbase, x+4, y, CONTROLSIZE, CONTROLSIZE, -1, 'Pick the dataref from a list', datarefmenucallback) bbutton=Draw.String('', DATAREF_B+eventbase, x+4+CONTROLSIZE, y, PANELWIDTH-2*PANELINDENT-CONTROLSIZE, CONTROLSIZE, dataref, 100, 'Full name of the dataref used to animate this object') ibutton=None tbutton=None ref=dataref.split('/') if len(ref)<=1 or ref[0]=='sim': try: thing=hierarchy for i in range(len(ref)): thing=thing[ref[i]] n=thing+0 # check is a leaf - ie numeric if not n: BGL.glRasterPos2d(x+4, y-21) Draw.Text("This dataref can't be used for animation") valid=False elif n==1: indices[boneno]=None else: if indices[boneno]==None or indices[boneno]>=n: indices[boneno]=0 Draw.Label("Part number:", x, y-26, 120, CONTROLSIZE) ibutton=Draw.Number('', INDICES_B+eventbase, x+108, y-26, 50, CONTROLSIZE, indices[boneno], 0, n-1, 'The part number / array index') except: BGL.glRasterPos2d(x+4, y-21) Draw.Text("This is not a valid dataref") valid=False else: if indices[boneno]!=None: val=1 else: val=0 tbutton=Draw.Toggle('Part number', INDICES_T+eventbase, x+4, y-26, 104, CONTROLSIZE, val, 'Whether this is an array dataref') if val: ibutton=Draw.Number('', INDICES_B+eventbase, x+108, y-26, 50, CONTROLSIZE, indices[boneno], 0, 729, 'The part number / array index') return (valid, mbutton,bbutton,ibutton,tbutton)
41ec1c2655a325b4ea4136d5c1ee7cf29022441f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10896/41ec1c2655a325b4ea4136d5c1ee7cf29022441f/XPlaneAnimObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 892, 1734, 12, 892, 9316, 16, 4295, 16, 871, 1969, 16, 324, 265, 5764, 16, 619, 16, 677, 4672, 225, 501, 1734, 33, 892, 9316, 63, 18688, 5764, 65, 923, 33, 5510, 225, 4903, 2644, 33, 6493, 18, 4599, 2668, 9812, 5258, 88, 16637, 6797, 19, 2777, 96, 10332, 5701, 12, 3645, 2815, 13, 6797, 19, 7821, 16, 463, 10079, 3587, 862, 15, 2575, 1969, 16, 619, 15, 24, 16, 677, 16, 8020, 13429, 4574, 16, 8020, 13429, 4574, 16, 300, 21, 16, 296, 17968, 326, 501, 1734, 628, 279, 666, 2187, 501, 1734, 5414, 3394, 13, 324, 5391, 33, 6493, 18, 780, 2668, 2187, 8730, 10771, 67, 38, 15, 2575, 1969, 16, 619, 15, 24, 15, 18248, 4574, 16, 677, 16, 453, 1258, 2247, 10023, 17, 22, 14, 30819, 2247, 2356, 2222, 17, 18248, 4574, 16, 8020, 13429, 4574, 16, 501, 1734, 16, 2130, 16, 296, 5080, 508, 434, 326, 501, 1734, 1399, 358, 14671, 333, 733, 6134, 225, 277, 5391, 33, 7036, 268, 5391, 33, 7036, 1278, 33, 892, 1734, 18, 4939, 2668, 2473, 13, 309, 562, 12, 1734, 13, 32, 33, 21, 578, 1278, 63, 20, 65, 18920, 9812, 4278, 775, 30, 7757, 33, 17937, 364, 277, 316, 1048, 12, 1897, 12, 1734, 3719, 30, 7757, 33, 4274, 63, 1734, 63, 77, 13563, 290, 33, 4274, 15, 20, 202, 7, 866, 353, 279, 7839, 300, 9228, 6389, 309, 486, 290, 30, 605, 11261, 18, 7043, 18637, 1616, 22, 72, 12, 92, 15, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 892, 1734, 12, 892, 9316, 16, 4295, 16, 871, 1969, 16, 324, 265, 5764, 16, 619, 16, 677, 4672, 225, 501, 1734, 33, 892, 9316, 63, 18688, 5764, 65, 923, 33, 5510, 225, 4903, 2644, 33, 6493, 18, 4599, 2668, 9812, 5258, 88, 16637, 6797, 19, 2777, 96, 10332, 5701, 12, 3645, 2815, 13, 6797, 19, 7821, 16, 463, 10079, 3587, 862, 15, 2575, 1969, 16, 619, 15, 24, 16, 677, 16, 8020, 13429, 4574, 16, 8020, 13429, 4574, 16, 300, 21, 16, 296, 17968, 326, 501, 1734, 628, 279, 666, 2187, 501, 1734, 5414, 3394, 13, 324, 5391, 33, 6493, 18, 780, 2668, 2187, 8730, 10771, 67, 38, 15, 2575, 1969, 16, 619, 15, 24, 15, 2 ]
"""Generator a text representation of a message.
"""Generates a text representation of a message.
def _handle_message(self, msg): s = StringIO() g = self.clone(s) # The payload of a message/rfc822 part should be a multipart sequence # of length 1. The zeroth element of the list should be the Message # object for the subpart. Extract that object, stringify it, and # write it out. # Except, it turns out, when it's a string instead, which happens when # and only when HeaderParser is used on a message of mime type # message/rfc822. Such messages are generated by, for example, # Groupwise when forwarding unadorned messages. (Issue 7970.) So # in that case we just emit the string body. payload = msg.get_payload() if isinstance(payload, list): g.flatten(msg.get_payload(0), unixfrom=False) payload = s.getvalue() self._fp.write(payload)
74ed5a6c8e84164baa77c94afbdf7b2ff748edf4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/74ed5a6c8e84164baa77c94afbdf7b2ff748edf4/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2150, 12, 2890, 16, 1234, 4672, 272, 273, 15777, 1435, 314, 273, 365, 18, 14056, 12, 87, 13, 468, 1021, 2385, 434, 279, 883, 19, 16784, 24532, 1087, 1410, 506, 279, 10263, 3102, 468, 434, 769, 404, 18, 225, 1021, 24910, 10370, 930, 434, 326, 666, 1410, 506, 326, 2350, 468, 733, 364, 326, 720, 2680, 18, 225, 8152, 716, 733, 16, 7077, 518, 16, 471, 468, 1045, 518, 596, 18, 468, 25209, 16, 518, 20748, 596, 16, 1347, 518, 1807, 279, 533, 3560, 16, 1492, 10555, 1347, 468, 471, 1338, 1347, 4304, 2678, 353, 1399, 603, 279, 883, 434, 4892, 618, 468, 883, 19, 16784, 24532, 18, 225, 8002, 2743, 854, 4374, 635, 16, 364, 3454, 16, 468, 3756, 2460, 1347, 20635, 640, 23671, 11748, 2743, 18, 225, 261, 12956, 26517, 7301, 12998, 225, 6155, 468, 316, 716, 648, 732, 2537, 3626, 326, 533, 1417, 18, 2385, 273, 1234, 18, 588, 67, 7648, 1435, 309, 1549, 12, 7648, 16, 666, 4672, 314, 18, 16940, 12, 3576, 18, 588, 67, 7648, 12, 20, 3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30, 1652, 389, 4110, 67, 2150, 12, 2890, 16, 1234, 4672, 272, 273, 15777, 1435, 314, 273, 365, 18, 14056, 12, 87, 13, 468, 1021, 2385, 434, 279, 883, 19, 16784, 24532, 1087, 1410, 506, 279, 10263, 3102, 468, 434, 769, 404, 18, 225, 1021, 24910, 10370, 930, 434, 326, 666, 1410, 506, 326, 2350, 468, 733, 364, 326, 720, 2680, 18, 225, 8152, 716, 733, 16, 7077, 518, 16, 471, 468, 1045, 518, 596, 18, 468, 25209, 16, 518, 20748, 596, 16, 1347, 518, 1807, 279, 533, 3560, 16, 1492, 10555, 1347, 468, 471, 1338, 1347, 4304, 2678, 353, 1399, 603, 279, 883, 434, 4892, 618, 468, 883, 19, 16784, 24532, 18, 225, 8002, 2743, 854, 4374, 635, 16, 2 ]
name = object.__name__
realname = object.__name__ name = name or realname
def docclass(self, object, funcs={}, classes={}): """Produce HTML documentation for a class object.""" name = object.__name__ bases = object.__bases__ contents = ''
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1106, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 12938, 4672, 3536, 25884, 3982, 7323, 364, 279, 667, 733, 12123, 2863, 529, 273, 733, 16186, 529, 972, 508, 273, 508, 578, 2863, 529, 8337, 273, 733, 16186, 18602, 972, 2939, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 997, 1106, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 12938, 4672, 3536, 25884, 3982, 7323, 364, 279, 667, 733, 12123, 2863, 529, 273, 733, 16186, 529, 972, 508, 273, 508, 578, 2863, 529, 8337, 273, 733, 16186, 18602, 972, 2939, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
standards = [('README', 'README.txt'), 'setup.py']
standards = [('README', 'README.txt'), self.distribution.script_name]
def add_defaults (self): """Add all the default files to self.filelist: - README or README.txt - setup.py - test/test*.py - all pure Python modules mentioned in setup script - all C sources listed as part of extensions or C libraries in the setup script (doesn't catch C headers!) Warns if (README or README.txt) or setup.py are missing; everything else is optional. """
d3b76a8fbfc2af2d01ce48c323c9f76c0947af49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d3b76a8fbfc2af2d01ce48c323c9f76c0947af49/sdist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7606, 261, 2890, 4672, 3536, 986, 777, 326, 805, 1390, 358, 365, 18, 7540, 5449, 30, 300, 10746, 958, 578, 10746, 958, 18, 5830, 300, 3875, 18, 2074, 300, 1842, 19, 3813, 11146, 2074, 300, 777, 16618, 6600, 4381, 27635, 316, 3875, 2728, 300, 777, 385, 5550, 12889, 487, 1087, 434, 4418, 578, 385, 14732, 316,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 67, 7606, 261, 2890, 4672, 3536, 986, 777, 326, 805, 1390, 358, 365, 18, 7540, 5449, 30, 300, 10746, 958, 578, 10746, 958, 18, 5830, 300, 3875, 18, 2074, 300, 1842, 19, 3813, 11146, 2074, 300, 777, 16618, 6600, 4381, 27635, 316, 3875, 2728, 300, 777, 385, 5550, 12889, 487, 1087, 434, 4418, 578, 385, 14732, 316, 326, 3875, 2728, 261, 20657, 82, 1404, 1044, 385, 1607, 24949, 6040, 87, 309, 261, 6949, 958, 578, 10746, 958, 18, 5830, 13, 578, 3875, 18, 2074, 854, 3315, 31, 7756, 469, 353, 3129, 18, 3536, 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 ]
'fi' : lambda v: dh_yearBC( v, u'%d eaa' ),
'fi' : lambda v: dh_yearBC( v, u'%d eaa.' ),
def MakeParameter( decoder, param ): newValue = decoder[1](param) if len(decoder) == 4 and len(newValue) < decoder[3]: # force parameter length by taking the first digit in the list and repeating it required number of times # This converts "205" into "0205" for "%4d" newValue = decoder[0][0] * (decoder[3]-len(newValue)) + newValue return newValue
9c89f2d41aa715a883a13e3d4522c33979f1a94a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/9c89f2d41aa715a883a13e3d4522c33979f1a94a/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 1662, 12, 8320, 16, 579, 262, 30, 6129, 273, 8320, 63, 21, 29955, 891, 13, 309, 562, 12, 21070, 13, 422, 1059, 471, 562, 12, 2704, 620, 13, 411, 8320, 63, 23, 14542, 468, 2944, 1569, 769, 635, 13763, 326, 1122, 8035, 316, 326, 666, 471, 30571, 518, 1931, 1300, 434, 4124, 468, 1220, 7759, 315, 31777, 6, 1368, 315, 3103, 6260, 6, 364, 2213, 24, 72, 6, 6129, 273, 8320, 63, 20, 6362, 20, 65, 380, 261, 21070, 63, 23, 65, 17, 1897, 12, 2704, 620, 3719, 397, 6129, 327, 6129, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4344, 1662, 12, 8320, 16, 579, 262, 30, 6129, 273, 8320, 63, 21, 29955, 891, 13, 309, 562, 12, 21070, 13, 422, 1059, 471, 562, 12, 2704, 620, 13, 411, 8320, 63, 23, 14542, 468, 2944, 1569, 769, 635, 13763, 326, 1122, 8035, 316, 326, 666, 471, 30571, 518, 1931, 1300, 434, 4124, 468, 1220, 7759, 315, 31777, 6, 1368, 315, 3103, 6260, 6, 364, 2213, 24, 72, 6, 6129, 273, 8320, 63, 20, 6362, 20, 65, 380, 261, 21070, 63, 23, 65, 17, 1897, 12, 2704, 620, 3719, 397, 6129, 327, 6129, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bridgeDll.releaseJavaObject(source)
bridgeDll.releaseJavaObject(vmID,event)
def internal_event_stateChange(vmID,event,source,oldState,newState): queueHandler.queueFunction(queueHandler.eventQueue,event_stateChange,vmID,source,oldState,newState) bridgeDll.releaseJavaObject(source)
748d23167873589da4dc30858c6ec1b80dd9043d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/748d23167873589da4dc30858c6ec1b80dd9043d/JABHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2713, 67, 2575, 67, 2019, 3043, 12, 3489, 734, 16, 2575, 16, 3168, 16, 1673, 1119, 16, 2704, 1119, 4672, 2389, 1503, 18, 4000, 2083, 12, 4000, 1503, 18, 2575, 3183, 16, 2575, 67, 2019, 3043, 16, 3489, 734, 16, 3168, 16, 1673, 1119, 16, 2704, 1119, 13, 10105, 40, 2906, 18, 9340, 5852, 921, 12, 3489, 734, 16, 2575, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2713, 67, 2575, 67, 2019, 3043, 12, 3489, 734, 16, 2575, 16, 3168, 16, 1673, 1119, 16, 2704, 1119, 4672, 2389, 1503, 18, 4000, 2083, 12, 4000, 1503, 18, 2575, 3183, 16, 2575, 67, 2019, 3043, 16, 3489, 734, 16, 3168, 16, 1673, 1119, 16, 2704, 1119, 13, 10105, 40, 2906, 18, 9340, 5852, 921, 12, 3489, 734, 16, 2575, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self([R.random_element(bound) for _ in xrange(degree+1)])
return self([R.random_element(*args, **kwds) for _ in xrange(degree+1)])
def random_element(self, degree, bound=0): """ Return a random polynomial. INPUT: degree -- an integer bound -- an integer (default: 0, which tries to spread choice across ring, if implemented)
ced0954b16d84a882d8d9cf307561cead174d11c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ced0954b16d84a882d8d9cf307561cead174d11c/polynomial_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 67, 2956, 12, 2890, 16, 10782, 16, 2489, 33, 20, 4672, 3536, 2000, 279, 2744, 16991, 18, 225, 12943, 30, 10782, 1493, 392, 3571, 2489, 1493, 392, 3571, 261, 1886, 30, 374, 16, 1492, 9327, 358, 15103, 6023, 10279, 9221, 16, 309, 8249, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 2489, 33, 20, 4672, 3536, 2000, 279, 2744, 16991, 18, 225, 12943, 30, 10782, 1493, 392, 3571, 2489, 1493, 392, 3571, 261, 1886, 30, 374, 16, 1492, 9327, 358, 15103, 6023, 10279, 9221, 16, 309, 8249, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "barrier: new client tag=%s, name=%s" % \ (tag, name)
self.report("new client tag=%s, name=%s" % (tag, name))
def master_welcome(self, connection): (client, addr) = connection name = None
bb655f3af134dd0fb185950c28aa4391201eb99d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/bb655f3af134dd0fb185950c28aa4391201eb99d/barrier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4171, 67, 91, 16312, 12, 2890, 16, 1459, 4672, 261, 2625, 16, 3091, 13, 273, 1459, 508, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4171, 67, 91, 16312, 12, 2890, 16, 1459, 4672, 261, 2625, 16, 3091, 13, 273, 1459, 508, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
img = Image(imgname, width=printWidth*0.95, height=printHeight*0.95)
img = Image(imgname, width=printWidth*0.90, height=printHeight*0.90)
def renderTable(self, table): """ method that checks if a table can be rendered by reportlab. this is done, b/c large tables cause problems. if a large table is detected, it is rendered on a doublesize canvas and - on success - embedded as an scaled down image. """
442c211dd1dd7d424d7dbd07df420a4df660573f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12390/442c211dd1dd7d424d7dbd07df420a4df660573f/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 1388, 12, 2890, 16, 1014, 4672, 3536, 707, 716, 4271, 309, 279, 1014, 848, 506, 7935, 635, 2605, 7411, 18, 333, 353, 2731, 16, 324, 19, 71, 7876, 4606, 4620, 9688, 18, 309, 279, 7876, 1014, 353, 8316, 16, 518, 353, 7935, 603, 279, 31446, 554, 5953, 471, 300, 603, 2216, 300, 7488, 487, 392, 12304, 2588, 1316, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 1388, 12, 2890, 16, 1014, 4672, 3536, 707, 716, 4271, 309, 279, 1014, 848, 506, 7935, 635, 2605, 7411, 18, 333, 353, 2731, 16, 324, 19, 71, 7876, 4606, 4620, 9688, 18, 309, 279, 7876, 1014, 353, 8316, 16, 518, 353, 7935, 603, 279, 31446, 554, 5953, 471, 300, 603, 2216, 300, 7488, 487, 392, 12304, 2588, 1316, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
jump(i0, i1) """ self.optimize_loop(ops, expected)
jump(i0, i1, i22) """ expected = """ [i0, i1, i22] i3 = int_mul(i22, i1) i4 = int_lt(i3, 10) guard_true(i4) [] i5 = int_gt(i3, 2) guard_true(i5) [] jump(i0, i1, i22) """ self.optimize_loop(ops, expected, preamble)
def test_mul_ovf_before(self): ops = """ [i0, i1] i2 = int_and(i0, 255) i22 = int_add(i2, 1) i3 = int_mul_ovf(i22, i1) guard_no_overflow() [] i4 = int_lt(i3, 10) guard_true(i4) [] i5 = int_gt(i3, 2) guard_true(i5) [] i6 = int_lt(i1, 0) guard_false(i6) [] jump(i0, i1) """ expected = """ [i0, i1] i2 = int_and(i0, 255) i22 = int_add(i2, 1) i3 = int_mul_ovf(i22, i1) guard_no_overflow() [] i4 = int_lt(i3, 10) guard_true(i4) [] i5 = int_gt(i3, 2) guard_true(i5) [] jump(i0, i1) """ self.optimize_loop(ops, expected)
addc2b77177b49468137a20034ac27db7b4ba464 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/addc2b77177b49468137a20034ac27db7b4ba464/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16411, 67, 1527, 74, 67, 5771, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 464, 12, 77, 20, 16, 4561, 13, 277, 3787, 273, 509, 67, 1289, 12, 77, 22, 16, 404, 13, 277, 23, 273, 509, 67, 16411, 67, 1527, 74, 12, 77, 3787, 16, 277, 21, 13, 11026, 67, 2135, 67, 11512, 1435, 5378, 277, 24, 273, 509, 67, 5618, 12, 77, 23, 16, 1728, 13, 11026, 67, 3767, 12, 77, 24, 13, 5378, 277, 25, 273, 509, 67, 4521, 12, 77, 23, 16, 576, 13, 11026, 67, 3767, 12, 77, 25, 13, 5378, 277, 26, 273, 509, 67, 5618, 12, 77, 21, 16, 374, 13, 11026, 67, 5743, 12, 77, 26, 13, 5378, 11833, 12, 77, 20, 16, 277, 21, 13, 3536, 2665, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 464, 12, 77, 20, 16, 4561, 13, 277, 3787, 273, 509, 67, 1289, 12, 77, 22, 16, 404, 13, 277, 23, 273, 509, 67, 16411, 67, 1527, 74, 12, 77, 3787, 16, 277, 21, 13, 11026, 67, 2135, 67, 11512, 1435, 5378, 277, 24, 273, 509, 67, 5618, 12, 77, 23, 16, 1728, 13, 11026, 67, 3767, 12, 77, 24, 13, 5378, 277, 25, 273, 509, 67, 4521, 12, 77, 23, 16, 576, 13, 11026, 67, 3767, 12, 77, 25, 13, 5378, 11833, 12, 77, 20, 16, 277, 21, 13, 3536, 365, 18, 29155, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16411, 67, 1527, 74, 67, 5771, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 464, 12, 77, 20, 16, 4561, 13, 277, 3787, 273, 509, 67, 1289, 12, 77, 22, 16, 404, 13, 277, 23, 273, 509, 67, 16411, 67, 1527, 74, 12, 77, 3787, 16, 277, 21, 13, 11026, 67, 2135, 67, 11512, 1435, 5378, 277, 24, 273, 509, 67, 5618, 12, 77, 23, 16, 1728, 13, 11026, 67, 3767, 12, 77, 24, 13, 5378, 277, 25, 273, 509, 67, 4521, 12, 77, 23, 16, 576, 13, 11026, 67, 3767, 12, 77, 25, 13, 5378, 277, 26, 273, 509, 67, 5618, 12, 77, 21, 16, 2 ]
output(sys.exc_info()[1])
err = sys.exc_info()[1] output(str(err))
def parse(file): scanner = ASDLScanner() parser = ASDLParser() buf = open(file).read() tokens = scanner.tokenize(buf) try: return parser.parse(tokens) except ASDLSyntaxError: output(sys.exc_info()[1]) lines = buf.split("\n") output(lines[err.lineno - 1]) # lines starts at 0, files at 1
b0dae87f1237dc0a4098d9cdd8f8d6ac77f7b6e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/b0dae87f1237dc0a4098d9cdd8f8d6ac77f7b6e3/asdl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 768, 4672, 7683, 273, 5355, 8914, 11338, 1435, 2082, 273, 5355, 8914, 2678, 1435, 225, 1681, 273, 1696, 12, 768, 2934, 896, 1435, 2430, 273, 7683, 18, 2316, 554, 12, 4385, 13, 775, 30, 327, 2082, 18, 2670, 12, 7860, 13, 1335, 5355, 40, 3045, 5392, 668, 30, 393, 273, 2589, 18, 10075, 67, 1376, 1435, 63, 21, 65, 876, 12, 701, 12, 370, 3719, 2362, 273, 1681, 18, 4939, 31458, 82, 7923, 876, 12, 3548, 63, 370, 18, 17782, 300, 404, 5717, 468, 2362, 2542, 622, 374, 16, 1390, 622, 404, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 30, 1652, 1109, 12, 768, 4672, 7683, 273, 5355, 8914, 11338, 1435, 2082, 273, 5355, 8914, 2678, 1435, 225, 1681, 273, 1696, 12, 768, 2934, 896, 1435, 2430, 273, 7683, 18, 2316, 554, 12, 4385, 13, 775, 30, 327, 2082, 18, 2670, 12, 7860, 13, 1335, 5355, 40, 3045, 5392, 668, 30, 393, 273, 2589, 18, 10075, 67, 1376, 1435, 63, 21, 65, 876, 12, 701, 12, 370, 3719, 2362, 273, 1681, 18, 4939, 31458, 82, 7923, 876, 12, 3548, 63, 370, 18, 17782, 300, 404, 5717, 468, 2362, 2542, 622, 374, 16, 1390, 622, 404, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
('L,Characteristics', 'L,TimeDateStamp', 'H,MajorVersion', 'H,MinorVersion',
('I,Characteristics', 'I,TimeDateStamp', 'H,MajorVersion', 'H,MinorVersion',
def __init__(self, **args): for key, value in args.items(): setattr(self, key, value)
b1bfd27bf7c329d36f68dc5f4ed5adda7c025501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4177/b1bfd27bf7c329d36f68dc5f4ed5adda7c025501/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if "location" in headers: newurl = headers["location"] elif "uri" in headers: newurl = headers["uri"] else: return newurl = urlparse.urljoin(req.get_full_url(), newurl)
def redirect_request(self, req, fp, code, msg, headers): """Return a Request or None in response to a redirect.
0389295dcdc72df81a037d2712afea600aad9445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0389295dcdc72df81a037d2712afea600aad9445/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 2293, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 3536, 990, 279, 1567, 578, 599, 316, 766, 358, 279, 3136, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3136, 67, 2293, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 3536, 990, 279, 1567, 578, 599, 316, 766, 358, 279, 3136, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else:
elif not urlparse(tag['href'])[0]:
def parse_tag(self, tag, parent_css): try: tagname = tag.name.lower() except AttributeError: if not isinstance(tag, HTMLConverter.IGNORED_TAGS): self.add_text(tag, parent_css, {}) return tag_css, tag_pseudo_css = self.tag_css(tag, parent_css=parent_css) try: # Skip element if its display attribute is set to none if tag_css['display'].lower() == 'none' or \ tag_css['visibility'].lower() == 'hidden': return except KeyError: pass end_page = self.process_page_breaks(tag, tagname, tag_css) if tagname in ["title", "script", "meta", 'del', 'frameset']: pass elif tagname == 'a' and self.link_levels >= 0: if tag.has_key('href') and not self.link_exclude.match(tag['href']): path = munge_paths(self.target_prefix, tag['href'])[0] ext = os.path.splitext(path)[1] if ext: ext = ext[1:].lower() if os.access(path, os.R_OK): if ext in ['png', 'jpg', 'bmp', 'jpeg']: self.process_image(path, tag_css) else: text = self.get_text(tag, limit=1000) if not text.strip(): text = "Link" self.add_text(text, tag_css, {}, force_span_use=True) self.links.append(self.create_link(self.current_para.contents, tag)) if tag.has_key('id') or tag.has_key('name'): key = 'name' if tag.has_key('name') else 'id' self.targets[self.target_prefix+tag[key]] = self.current_block else: self.logger.warn('Could not follow link to '+tag['href']) elif tag.has_key('name') or tag.has_key('id'): self.process_anchor(tag, tag_css, tag_pseudo_css) elif tagname == 'img': if tag.has_key('src'): path = munge_paths(self.target_prefix, tag['src'])[0] if os.access(path, os.R_OK): width, height = None, None try: width = int(tag['width']) height = int(tag['height']) except: pass dropcaps = tag.has_key('class') and tag['class'] == 'libprs500_dropcaps' self.process_image(path, tag_css, width, height, dropcaps=dropcaps) else: self.logger.warn('Could not find image: '+tag['src']) else: self.logger.debug("Failed to process: %s", str(tag)) elif tagname in ['style', 'link']: ncss, npcss = {}, {} if tagname == 'style': for c in tag.contents: if isinstance(c, NavigableString): css, pcss = self.parse_css(str(c)) ncss.update(css) npcss.update(pcss) elif tag.has_key('type') and tag['type'] == "text/css" \ and tag.has_key('href'): path = munge_paths(self.target_prefix, tag['href'])[0] try: f = open(path, 'rb') src = f.read() f.close() match = self.PAGE_BREAK_PAT.search(src) if match and not re.match('avoid', match.group(1), re.IGNORECASE): self.page_break_found = True ncss, npcss = self.parse_css(src) except IOError: self.logger.warn('Could not read stylesheet: '+tag['href']) if ncss: update_css(ncss, self.css) self.css.update(self.override_css) if npcss: update_css(npcss, self.pseudo_css) self.pseudo_css.update(self.override_pcss) elif tagname == 'pre': self.end_current_para() self.end_current_block() self.current_block = self.book.create_text_block() ts = self.current_block.textStyle.copy() self.current_block.textStyle = ts self.current_block.textStyle.attrs['parindent'] = '0' if tag.contents: c = tag.contents[0] if isinstance(c, NavigableString): c = unicode(c).replace('\r\n', '\n').replace('\r', '\n') if c.startswith('\n'): c = c[1:] tag.contents[0] = NavigableString(c) tag.contents[0].setup(tag) self.process_children(tag, tag_css, tag_pseudo_css) self.end_current_block() elif tagname in ['ul', 'ol', 'dl']: self.list_level += 1 if tagname == 'ol': old_counter = self.list_counter self.list_counter = 1 prev_bs = self.current_block.blockStyle self.end_current_block() attrs = self.current_block.blockStyle.attrs attrs = attrs.copy() attrs['sidemargin'] = self.list_indent*self.list_level bs = self.book.create_block_style(**attrs) self.current_block = self.book.create_text_block( blockStyle=bs, textStyle=self.unindented_style) self.process_children(tag, tag_css, tag_pseudo_css) self.end_current_block() self.current_block.blockStyle = prev_bs self.list_level -= 1 if tagname == 'ol': self.list_counter = old_counter elif tagname in ['li', 'dt', 'dd']: margin = self.list_indent*self.list_level if tagname == 'dd': margin += 80 if int(self.current_block.blockStyle.attrs['sidemargin']) != margin: self.end_current_block() attrs = self.current_block.blockStyle.attrs attrs = attrs.copy() attrs['sidemargin'] = margin attrs['blockwidth'] = int(attrs['blockwidth']) + margin bs = self.book.create_block_style(**attrs) self.current_block = self.book.create_text_block( blockStyle=bs, textStyle=self.unindented_style)
2e52d6dfe34d581cf37a65a4b03909a18d938c95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/2e52d6dfe34d581cf37a65a4b03909a18d938c95/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2692, 12, 2890, 16, 1047, 16, 982, 67, 5212, 4672, 775, 30, 25586, 273, 1047, 18, 529, 18, 8167, 1435, 1335, 6394, 30, 309, 486, 1549, 12, 2692, 16, 3982, 5072, 18, 3047, 3417, 5879, 67, 29915, 4672, 365, 18, 1289, 67, 955, 12, 2692, 16, 982, 67, 5212, 16, 2618, 13, 327, 1047, 67, 5212, 16, 1047, 67, 26023, 67, 5212, 273, 365, 18, 2692, 67, 5212, 12, 2692, 16, 982, 67, 5212, 33, 2938, 67, 5212, 13, 775, 30, 468, 6611, 930, 309, 2097, 2562, 1566, 353, 444, 358, 6555, 309, 1047, 67, 5212, 3292, 5417, 29489, 8167, 1435, 422, 296, 6102, 11, 578, 521, 1047, 67, 5212, 3292, 14422, 29489, 8167, 1435, 422, 296, 6345, 4278, 327, 1335, 4999, 30, 1342, 679, 67, 2433, 273, 365, 18, 2567, 67, 2433, 67, 29292, 12, 2692, 16, 25586, 16, 1047, 67, 5212, 13, 225, 309, 25586, 316, 8247, 2649, 3113, 315, 4263, 3113, 315, 3901, 3113, 296, 3771, 2187, 296, 10278, 278, 3546, 30, 1342, 1327, 25586, 422, 296, 69, 11, 471, 365, 18, 1232, 67, 12095, 1545, 374, 30, 309, 1047, 18, 5332, 67, 856, 2668, 7547, 6134, 471, 486, 365, 18, 1232, 67, 10157, 18, 1916, 12, 2692, 3292, 7547, 3546, 4672, 589, 273, 312, 25561, 67, 4481, 12, 2890, 18, 3299, 67, 3239, 16, 1047, 3292, 7547, 19486, 63, 20, 65, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 803, 25146, 21, 65, 309, 1110, 30, 1110, 273, 1110, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2692, 12, 2890, 16, 1047, 16, 982, 67, 5212, 4672, 775, 30, 25586, 273, 1047, 18, 529, 18, 8167, 1435, 1335, 6394, 30, 309, 486, 1549, 12, 2692, 16, 3982, 5072, 18, 3047, 3417, 5879, 67, 29915, 4672, 365, 18, 1289, 67, 955, 12, 2692, 16, 982, 67, 5212, 16, 2618, 13, 327, 1047, 67, 5212, 16, 1047, 67, 26023, 67, 5212, 273, 365, 18, 2692, 67, 5212, 12, 2692, 16, 982, 67, 5212, 33, 2938, 67, 5212, 13, 775, 30, 468, 6611, 930, 309, 2097, 2562, 1566, 353, 444, 358, 6555, 309, 1047, 67, 5212, 3292, 5417, 29489, 8167, 1435, 422, 296, 6102, 11, 578, 521, 1047, 67, 5212, 3292, 14422, 29489, 8167, 1435, 422, 2 ]
self.failUnless(within_tol(y1, y2, eps))
self.failUnless(within_tol(pdist_y, right_y, eps))
def test_pdist_canberra_ticket_711(self): "Tests pdist(X, 'canberra') to see if Canberra gives the right result as reported in Scipy bug report 711." eps = 1e-10 pdist_y = pdist(([3.3], [3.4]), "canberra") right_y = array([ 0.01492537]) print np.abs(pdist_y-right_y).max() self.failUnless(within_tol(y1, y2, eps))
42524e25d90cfdb0f6e35b82865271d230022b9b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/42524e25d90cfdb0f6e35b82865271d230022b9b/test_distance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 84, 4413, 67, 4169, 744, 354, 67, 16282, 67, 27, 2499, 12, 2890, 4672, 315, 14650, 293, 4413, 12, 60, 16, 296, 4169, 744, 354, 6134, 358, 2621, 309, 4480, 744, 354, 14758, 326, 2145, 563, 487, 14010, 316, 2850, 9126, 7934, 2605, 2371, 2499, 1199, 7785, 273, 404, 73, 17, 2163, 293, 4413, 67, 93, 273, 293, 4413, 12, 3816, 23, 18, 23, 6487, 306, 23, 18, 24, 65, 3631, 315, 4169, 744, 354, 7923, 2145, 67, 93, 273, 526, 3816, 374, 18, 1611, 7616, 2947, 6418, 5717, 1172, 1130, 18, 5113, 12, 84, 4413, 67, 93, 17, 4083, 67, 93, 2934, 1896, 1435, 365, 18, 6870, 984, 2656, 12, 25850, 67, 3490, 12, 93, 21, 16, 677, 22, 16, 7785, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 84, 4413, 67, 4169, 744, 354, 67, 16282, 67, 27, 2499, 12, 2890, 4672, 315, 14650, 293, 4413, 12, 60, 16, 296, 4169, 744, 354, 6134, 358, 2621, 309, 4480, 744, 354, 14758, 326, 2145, 563, 487, 14010, 316, 2850, 9126, 7934, 2605, 2371, 2499, 1199, 7785, 273, 404, 73, 17, 2163, 293, 4413, 67, 93, 273, 293, 4413, 12, 3816, 23, 18, 23, 6487, 306, 23, 18, 24, 65, 3631, 315, 4169, 744, 354, 7923, 2145, 67, 93, 273, 526, 3816, 374, 18, 1611, 7616, 2947, 6418, 5717, 1172, 1130, 18, 5113, 12, 84, 4413, 67, 93, 17, 4083, 67, 93, 2934, 1896, 1435, 365, 18, 6870, 984, 2656, 12, 25850, 67, 3490, 12, 93, 2 ]
"--revision", revision]
"--revision", revision=='HEAD' and 'COMMITTED' or revision]
def _checkoutUpstreamRevision(self, revision): """ Concretely do the checkout of the upstream revision. """
9272b4c59f9eef30eff20e7991a58d76f39b245d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/9272b4c59f9eef30eff20e7991a58d76f39b245d/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17300, 1211, 3256, 7939, 12, 2890, 16, 6350, 4672, 3536, 735, 71, 1349, 2357, 741, 326, 13926, 434, 326, 13505, 6350, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17300, 1211, 3256, 7939, 12, 2890, 16, 6350, 4672, 3536, 735, 71, 1349, 2357, 741, 326, 13926, 434, 326, 13505, 6350, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
THUMB_WIDTH = 75 THUMB_HEIGHT = 100
def numberTranslate(self): hundredsNumber = 0 thousandsNumber = 0 hundredsString = "" thousandsString = "" resultString = "" self.suffix = ''
a2251a4a5989848b289a600eef15a83f23c98365 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a2251a4a5989848b289a600eef15a83f23c98365/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 12818, 12, 2890, 4672, 366, 1074, 15422, 1854, 273, 374, 286, 24810, 1854, 273, 374, 366, 1074, 15422, 780, 273, 1408, 286, 24810, 780, 273, 1408, 563, 780, 273, 1408, 365, 18, 8477, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1300, 12818, 12, 2890, 4672, 366, 1074, 15422, 1854, 273, 374, 286, 24810, 1854, 273, 374, 366, 1074, 15422, 780, 273, 1408, 286, 24810, 780, 273, 1408, 563, 780, 273, 1408, 365, 18, 8477, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert all(array(conjugate(transpose(B)), mB.H))
assert all(array(conjugate(transpose(B)) == mB.H))
def test_basic(self): from scipy import linalg A = array([[1., 2.], [3., 4.]]) mA = matrix(A) assert allclose(linalg.inv(A), mA.I) assert all(array(transpose(A) == mA.T)) assert all(array(transpose(A) == mA.H)) assert all(A == mA.A) B = A + 2j*A mB = matrix(B) assert allclose(linalg.inv(B), mB.I) assert all(array(transpose(B) == mB.T)) assert all(array(conjugate(transpose(B)), mB.H))
1add63fa4c2e4b1af420d79aadee9525b074c688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/1add63fa4c2e4b1af420d79aadee9525b074c688/test_matrix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 12, 2890, 4672, 628, 10966, 1930, 11818, 225, 432, 273, 526, 3816, 63, 21, 12990, 576, 18, 6487, 306, 23, 12990, 1059, 18, 65, 5717, 312, 37, 273, 3148, 12, 37, 13, 1815, 777, 4412, 12, 80, 11521, 18, 5768, 12, 37, 3631, 312, 37, 18, 45, 13, 1815, 777, 12, 1126, 12, 2338, 4150, 12, 37, 13, 422, 312, 37, 18, 56, 3719, 1815, 777, 12, 1126, 12, 2338, 4150, 12, 37, 13, 422, 312, 37, 18, 44, 3719, 1815, 777, 12, 37, 422, 312, 37, 18, 37, 13, 225, 605, 273, 432, 397, 576, 78, 14, 37, 312, 38, 273, 3148, 12, 38, 13, 1815, 777, 4412, 12, 80, 11521, 18, 5768, 12, 38, 3631, 312, 38, 18, 45, 13, 1815, 777, 12, 1126, 12, 2338, 4150, 12, 38, 13, 422, 312, 38, 18, 56, 3719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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 12, 2890, 4672, 628, 10966, 1930, 11818, 225, 432, 273, 526, 3816, 63, 21, 12990, 576, 18, 6487, 306, 23, 12990, 1059, 18, 65, 5717, 312, 37, 273, 3148, 12, 37, 13, 1815, 777, 4412, 12, 80, 11521, 18, 5768, 12, 37, 3631, 312, 37, 18, 45, 13, 1815, 777, 12, 1126, 12, 2338, 4150, 12, 37, 13, 422, 312, 37, 18, 56, 3719, 1815, 777, 12, 1126, 12, 2338, 4150, 12, 37, 13, 422, 312, 37, 18, 44, 3719, 1815, 777, 12, 37, 422, 312, 37, 18, 37, 13, 225, 605, 273, 432, 397, 576, 78, 14, 37, 312, 38, 273, 3148, 12, 38, 13, 1815, 777, 4412, 12, 80, 11521, 18, 5768, 12, 2 ]
if datatype is not None: x = datatype.encode(x) line.append('%s=%s' % (key, quote_plus(x)))
if x is None: line.append(key) else: if datatype: x = datatype.encode(x) line.append('%s=%s' % (key, quote_plus(x)))
def encode_query(query, schema=None): """This method encodes a query as defined by the "application/x-www-form-urlencoded" content type (see http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1 for details) The value expected is a dictonary like {'a': 1, 'b': 2}. The value returned is a byte string like "a=1&b=2". """ if schema is None: schema = {} line = [] for key in query: value = query[key] key = quote_plus(key) # XXX As of the application/x-www-form-urlencoded content type, # it has not sense to have a parameter without a value, so # "?a&b=1" should be the same as "?b=1" (check the spec). # But for the tests defined by RFC2396 to pass, we must preserve # these empty parameters. if value is None: line.append(key) continue # A list datatype = schema.get(key) if isinstance(value, list): for x in value: if datatype is not None: x = datatype.encode(x) line.append('%s=%s' % (key, quote_plus(x))) continue # A singleton if datatype is not None: value = datatype.encode(value) line.append('%s=%s' % (key, quote_plus(value))) return '&'.join(line)
26f419a19ced0bc7df994eee451427f2120595db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/26f419a19ced0bc7df994eee451427f2120595db/generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 2271, 12, 2271, 16, 1963, 33, 7036, 4672, 3536, 2503, 707, 16834, 279, 843, 487, 2553, 635, 326, 315, 3685, 19, 92, 17, 5591, 17, 687, 17, 19690, 6, 913, 618, 261, 5946, 1062, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 862, 39, 17, 2620, 7132, 19, 2761, 621, 19, 9741, 18, 2620, 7, 76, 17, 4033, 18, 3437, 18, 24, 18, 21, 364, 3189, 13, 225, 1021, 460, 2665, 353, 279, 2065, 265, 814, 3007, 13666, 69, 4278, 404, 16, 296, 70, 4278, 576, 5496, 1021, 460, 2106, 353, 279, 1160, 533, 3007, 315, 69, 33, 21, 10, 70, 33, 22, 9654, 3536, 309, 1963, 353, 599, 30, 1963, 273, 2618, 225, 980, 273, 5378, 364, 498, 316, 843, 30, 460, 273, 843, 63, 856, 65, 498, 273, 3862, 67, 10103, 12, 856, 13, 225, 468, 11329, 2970, 434, 326, 2521, 19, 92, 17, 5591, 17, 687, 17, 19690, 913, 618, 16, 468, 518, 711, 486, 12764, 358, 1240, 279, 1569, 2887, 279, 460, 16, 1427, 468, 18101, 69, 10, 70, 33, 21, 6, 1410, 506, 326, 1967, 487, 18101, 70, 33, 21, 6, 261, 1893, 326, 857, 2934, 468, 12484, 364, 326, 7434, 2553, 635, 8372, 4366, 10525, 358, 1342, 16, 732, 1297, 9420, 468, 4259, 1008, 1472, 18, 309, 460, 353, 599, 30, 980, 18, 6923, 12, 856, 13, 1324, 225, 468, 432, 666, 11172, 273, 1963, 18, 588, 12, 856, 13, 309, 1549, 12, 1132, 16, 666, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 2271, 12, 2271, 16, 1963, 33, 7036, 4672, 3536, 2503, 707, 16834, 279, 843, 487, 2553, 635, 326, 315, 3685, 19, 92, 17, 5591, 17, 687, 17, 19690, 6, 913, 618, 261, 5946, 1062, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 862, 39, 17, 2620, 7132, 19, 2761, 621, 19, 9741, 18, 2620, 7, 76, 17, 4033, 18, 3437, 18, 24, 18, 21, 364, 3189, 13, 225, 1021, 460, 2665, 353, 279, 2065, 265, 814, 3007, 13666, 69, 4278, 404, 16, 296, 70, 4278, 576, 5496, 1021, 460, 2106, 353, 279, 1160, 533, 3007, 315, 69, 33, 21, 10, 70, 33, 22, 9654, 3536, 309, 1963, 353, 599, 30, 1963, 273, 2618, 225, 2 ]
atts['height'] = im.size[1]
atts['height'] = str(im.size[1])
def visit_image(self, node): atts = {} atts['src'] = node['uri'] if node.has_key('width'): atts['width'] = node['width'] if node.has_key('height'): atts['height'] = node['height'] if node.has_key('scale'): if Image and not (node.has_key('width') and node.has_key('height')): try: im = Image.open(str(atts['src'])) except (IOError, # Source image can't be found or opened UnicodeError): # PIL doesn't like Unicode paths. pass else: if not atts.has_key('width'): atts['width'] = im.size[0] if not atts.has_key('height'): atts['height'] = im.size[1] del im if atts.has_key('width'): atts['width'] = int(round(node['width'] * (float(node['scale']) / 100))) if atts.has_key('height'): atts['height'] = int(round(node['height'] * (float(node['scale']) / 100))) style = [] for att_name in 'width', 'height': if atts.has_key(att_name): if re.match(r'^[0-9.]+$', atts[att_name]): # Interpret unitless values as pixels. atts[att_name] += 'px' style.append('%s: %s;' % (att_name, atts[att_name])) del atts[att_name] if style: atts['style'] = ' '.join(style) atts['alt'] = node.get('alt', atts['src']) if node.has_key('align'): atts['align'] = self.attval(node['align']) atts['class'] = 'align-%s' % atts['align'] if (isinstance(node.parent, nodes.TextElement) or (isinstance(node.parent, nodes.reference) and not isinstance(node.parent.parent, nodes.TextElement))): # Inline context or surrounded by <a>...</a>. suffix = '' else: suffix = '\n' self.body.append(self.emptytag(node, 'img', suffix, **atts))
74187d35705e75fdc5a551ca0f4977e1ec495b3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/74187d35705e75fdc5a551ca0f4977e1ec495b3a/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 15687, 273, 2618, 15687, 3292, 4816, 3546, 273, 756, 3292, 1650, 3546, 309, 756, 18, 5332, 67, 856, 2668, 2819, 11, 4672, 15687, 3292, 2819, 3546, 273, 756, 3292, 2819, 3546, 309, 756, 18, 5332, 67, 856, 2668, 4210, 11, 4672, 15687, 3292, 4210, 3546, 273, 756, 3292, 4210, 3546, 309, 756, 18, 5332, 67, 856, 2668, 5864, 11, 4672, 309, 3421, 471, 486, 261, 2159, 18, 5332, 67, 856, 2668, 2819, 6134, 471, 756, 18, 5332, 67, 856, 2668, 4210, 26112, 30, 775, 30, 709, 273, 3421, 18, 3190, 12, 701, 12, 270, 3428, 3292, 4816, 3546, 3719, 1335, 261, 4294, 668, 16, 468, 4998, 1316, 848, 1404, 506, 1392, 578, 10191, 9633, 668, 4672, 225, 468, 29407, 3302, 1404, 3007, 9633, 2953, 18, 1342, 469, 30, 309, 486, 15687, 18, 5332, 67, 856, 2668, 2819, 11, 4672, 15687, 3292, 2819, 3546, 273, 709, 18, 1467, 63, 20, 65, 309, 486, 15687, 18, 5332, 67, 856, 2668, 4210, 11, 4672, 15687, 3292, 4210, 3546, 273, 609, 12, 381, 18, 1467, 63, 21, 5717, 1464, 709, 309, 15687, 18, 5332, 67, 856, 2668, 2819, 11, 4672, 15687, 3292, 2819, 3546, 273, 509, 12, 2260, 12, 2159, 3292, 2819, 3546, 380, 261, 5659, 12, 2159, 3292, 5864, 19486, 342, 2130, 20349, 309, 15687, 18, 5332, 67, 856, 2668, 4210, 11, 4672, 15687, 3292, 4210, 3546, 273, 509, 12, 2260, 12, 2159, 3292, 4210, 3546, 380, 261, 5659, 12, 2159, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 15687, 273, 2618, 15687, 3292, 4816, 3546, 273, 756, 3292, 1650, 3546, 309, 756, 18, 5332, 67, 856, 2668, 2819, 11, 4672, 15687, 3292, 2819, 3546, 273, 756, 3292, 2819, 3546, 309, 756, 18, 5332, 67, 856, 2668, 4210, 11, 4672, 15687, 3292, 4210, 3546, 273, 756, 3292, 4210, 3546, 309, 756, 18, 5332, 67, 856, 2668, 5864, 11, 4672, 309, 3421, 471, 486, 261, 2159, 18, 5332, 67, 856, 2668, 2819, 6134, 471, 756, 18, 5332, 67, 856, 2668, 4210, 26112, 30, 775, 30, 709, 273, 3421, 18, 3190, 12, 701, 12, 270, 3428, 3292, 4816, 3546, 3719, 1335, 261, 4294, 668, 16, 468, 4998, 1316, 848, 1404, 506, 2 ]
node = self.curNode self.lastEvent[1] = [(END_ELEMENT, node), None] self.lastEvent = self.lastEvent[1] self.curNode = self.curNode.parentNode
self.lastEvent[1] = [(END_ELEMENT, self.pop()), None] self.lastEvent = self.lastEvent[1]
def endElementNS(self, name, tagName): node = self.curNode self.lastEvent[1] = [(END_ELEMENT, node), None] self.lastEvent = self.lastEvent[1] #self.events.append((END_ELEMENT, node)) self.curNode = self.curNode.parentNode
37ce29a4b515f0f3d5c14c4ccb2c320ae150df99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/37ce29a4b515f0f3d5c14c4ccb2c320ae150df99/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 3156, 12, 2890, 16, 508, 16, 7196, 4672, 756, 273, 365, 18, 1397, 907, 365, 18, 2722, 1133, 63, 21, 65, 273, 306, 12, 4415, 67, 10976, 16, 756, 3631, 599, 65, 365, 18, 2722, 1133, 273, 365, 18, 2722, 1133, 63, 21, 65, 468, 2890, 18, 5989, 18, 6923, 12443, 4415, 67, 10976, 16, 756, 3719, 365, 18, 1397, 907, 273, 365, 18, 1397, 907, 18, 2938, 907, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14840, 3156, 12, 2890, 16, 508, 16, 7196, 4672, 756, 273, 365, 18, 1397, 907, 365, 18, 2722, 1133, 63, 21, 65, 273, 306, 12, 4415, 67, 10976, 16, 756, 3631, 599, 65, 365, 18, 2722, 1133, 273, 365, 18, 2722, 1133, 63, 21, 65, 468, 2890, 18, 5989, 18, 6923, 12443, 4415, 67, 10976, 16, 756, 3719, 365, 18, 1397, 907, 273, 365, 18, 1397, 907, 18, 2938, 907, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
format = self.getformat()
def __neg__(self): format = self.getformat() csc = self.tocsc() res = -csc return eval('%s_matrix'%format)(res)
b14552c4a5780327bf9ca40b82d78bbf0d40722e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/b14552c4a5780327bf9ca40b82d78bbf0d40722e/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14518, 972, 12, 2890, 4672, 276, 1017, 273, 365, 18, 1391, 1017, 1435, 400, 273, 300, 71, 1017, 327, 5302, 29909, 87, 67, 5667, 11, 9, 2139, 21433, 455, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
autogenargs='-- --disable-print')
autogenargs='--disable-print')
def sfcvsroot(project): return ':pserver:anonymous@cvs.%s.sourceforge.net:/cvsroot/%s' % \ (project, project)
2743f663caa8782db959f2cfc81c527f05e2ac39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/2743f663caa8782db959f2cfc81c527f05e2ac39/moduleinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 7142, 6904, 3085, 12, 4406, 4672, 327, 4290, 84, 3567, 30, 19070, 36, 71, 6904, 7866, 87, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 5258, 87, 11, 738, 521, 261, 4406, 16, 1984, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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085, 12, 4406, 4672, 327, 4290, 84, 3567, 30, 19070, 36, 71, 6904, 7866, 87, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 5258, 87, 11, 738, 521, 261, 4406, 16, 1984, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.hiddentemplates = self.loadHiddenTemplates() self.licenses_found = self.image.getTemplates()
def smartDetection(self): """ The bot instead of checking if there's a simple template in the image's description, checks also if that template is a license or something else. In this sense this type of check is smart. """ self.seems_ok = False self.license_found = None self.hiddentemplates = self.loadHiddenTemplates() self.licenses_found = self.image.getTemplates() self.whiteTemplatesFound = False regex_find_licenses = re.compile(r'(?<!\{)\{\{(?:[Tt]emplate:|)([^{]+?)[|\n<}]', re.DOTALL) templatesInTheImageRaw = regex_find_licenses.findall(self.imageCheckText) if self.licenses_found == [] and templatesInTheImageRaw != []: raise wikipedia.Error("APIs seems down. No templates found with them but actually there are templates used in the image's page!") self.allLicenses = list() if self.list_licenses == []: raise wikipedia.Error(u'No licenses allowed provided, add that option to the code to make the script working correctly') # Found the templates ONLY in the image's description for template_selected in templatesInTheImageRaw: for templateReal in self.licenses_found: if self.convert_to_url(template_selected).lower().replace('template%3a', '') == \ self.convert_to_url(templateReal.title()).lower().replace('template%3a', ''): if templateReal not in self.allLicenses: # don't put the same template, twice. self.allLicenses.append(templateReal) if self.licenses_found != []: self.templateInList() if self.license_found == None and self.allLicenses != list(): # If only iterlist = self.AllLicenses if I remove something # from iterlist it will be remove from self.AllLicenses too iterlist = list(self.allLicenses) for template in iterlist: try: template.pageAPInfo() except wikipedia.IsRedirectPage: template = template.getRedirectTarget() except wikipedia.NoPage: self.allLicenses.remove(template) if self.allLicenses != list(): self.license_found = self.allLicenses[0].title() self.some_problem = False # If it has "some_problem" it must check # the additional settings. # if self.settingsData, use addictional settings if self.settingsData != None: self.findAdditionalProblems()
19613395653f4262c95f1f3bd01b519e31607ee1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/19613395653f4262c95f1f3bd01b519e31607ee1/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13706, 10214, 12, 2890, 4672, 3536, 1021, 2512, 3560, 434, 6728, 309, 1915, 1807, 279, 4143, 1542, 316, 326, 1316, 1807, 2477, 16, 4271, 2546, 309, 716, 1542, 353, 279, 8630, 578, 5943, 469, 18, 657, 333, 12764, 333, 618, 434, 866, 353, 13706, 18, 3536, 365, 18, 307, 7424, 67, 601, 273, 1083, 365, 18, 12687, 67, 7015, 273, 599, 365, 18, 14739, 8218, 2043, 273, 1083, 3936, 67, 4720, 67, 80, 16548, 273, 283, 18, 11100, 12, 86, 11, 24261, 64, 95, 5153, 23241, 95, 23203, 56, 88, 65, 29761, 30, 96, 13, 8178, 95, 3737, 8535, 63, 8960, 82, 32, 11839, 2187, 283, 18, 17591, 4685, 13, 5539, 382, 1986, 2040, 4809, 273, 3936, 67, 4720, 67, 80, 16548, 18, 4720, 454, 12, 2890, 18, 2730, 1564, 1528, 13, 309, 365, 18, 80, 16548, 67, 7015, 422, 5378, 471, 5539, 382, 1986, 2040, 4809, 480, 5378, 30, 1002, 21137, 18, 668, 2932, 2557, 87, 12001, 2588, 18, 2631, 5539, 1392, 598, 2182, 1496, 6013, 1915, 854, 5539, 1399, 316, 326, 1316, 1807, 1363, 4442, 13, 365, 18, 454, 48, 16548, 273, 666, 1435, 309, 365, 18, 1098, 67, 80, 16548, 422, 5378, 30, 1002, 21137, 18, 668, 12, 89, 11, 2279, 26457, 2935, 2112, 16, 527, 716, 1456, 358, 326, 981, 358, 1221, 326, 2728, 5960, 8783, 6134, 468, 10750, 326, 5539, 20747, 316, 326, 1316, 1807, 2477, 364, 1542, 67, 8109, 316, 5539, 382, 1986, 2040, 4809, 30, 364, 1542, 6955, 316, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13706, 10214, 12, 2890, 4672, 3536, 1021, 2512, 3560, 434, 6728, 309, 1915, 1807, 279, 4143, 1542, 316, 326, 1316, 1807, 2477, 16, 4271, 2546, 309, 716, 1542, 353, 279, 8630, 578, 5943, 469, 18, 657, 333, 12764, 333, 618, 434, 866, 353, 13706, 18, 3536, 365, 18, 307, 7424, 67, 601, 273, 1083, 365, 18, 12687, 67, 7015, 273, 599, 365, 18, 14739, 8218, 2043, 273, 1083, 3936, 67, 4720, 67, 80, 16548, 273, 283, 18, 11100, 12, 86, 11, 24261, 64, 95, 5153, 23241, 95, 23203, 56, 88, 65, 29761, 30, 96, 13, 8178, 95, 3737, 8535, 63, 8960, 82, 32, 11839, 2187, 283, 18, 17591, 4685, 13, 5539, 382, 1986, 2040, 4809, 273, 3936, 67, 2 ]
import os, fcntl
import os try: import fcntl except ImportError: fcntl = None
def export_add(self, x, y): return x + y
d003c43ab6402143b0c9b884504e62d599849740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d003c43ab6402143b0c9b884504e62d599849740/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 12, 2890, 16, 619, 16, 677, 4672, 327, 619, 397, 677, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 12, 2890, 16, 619, 16, 677, 4672, 327, 619, 397, 677, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ar = ARMA(data.endog, constant=False, order=(9,0)) ar.fit()
ar = ARMA(data.endog) ar.fit(trend='nc', order=(9,0))
def Q(x): cholQ = np.array([[x[1],0],[0,x[2]]]) return np.dot(cholQ,cholQ.T)
3f0ccb720bd60c3732850d8827f15d2f4f538f23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/3f0ccb720bd60c3732850d8827f15d2f4f538f23/kalmanf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2238, 12, 92, 4672, 462, 355, 53, 273, 1130, 18, 1126, 3816, 63, 92, 63, 21, 6487, 20, 6487, 63, 20, 16, 92, 63, 22, 13563, 5717, 327, 1130, 18, 9811, 12, 343, 355, 53, 16, 343, 355, 53, 18, 56, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 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, 2238, 12, 92, 4672, 462, 355, 53, 273, 1130, 18, 1126, 3816, 63, 92, 63, 21, 6487, 20, 6487, 63, 20, 16, 92, 63, 22, 13563, 5717, 327, 1130, 18, 9811, 12, 343, 355, 53, 16, 343, 355, 53, 18, 56, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
itemimg.props.x = centered_x
itemimg.translate(centered_x, y1);
def init(self, index, select_area, callback): height = 90 x = select_area[0] + (select_area[2] - select_area[0]) / 2 y1 = select_area[1] + height * index + 2 y2 = select_area[1] + height * (index + 1) + 1
9897a893ff1748d099c36f5671c7802639bc3311 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11306/9897a893ff1748d099c36f5671c7802639bc3311/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 770, 16, 2027, 67, 5036, 16, 1348, 4672, 2072, 273, 8566, 619, 282, 273, 2027, 67, 5036, 63, 20, 65, 397, 261, 4025, 67, 5036, 63, 22, 65, 300, 2027, 67, 5036, 63, 20, 5717, 342, 576, 677, 21, 225, 273, 2027, 67, 5036, 63, 21, 65, 397, 2072, 380, 770, 397, 576, 677, 22, 225, 273, 2027, 67, 5036, 63, 21, 65, 397, 2072, 380, 261, 1615, 397, 404, 13, 397, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 770, 16, 2027, 67, 5036, 16, 1348, 4672, 2072, 273, 8566, 619, 282, 273, 2027, 67, 5036, 63, 20, 65, 397, 261, 4025, 67, 5036, 63, 22, 65, 300, 2027, 67, 5036, 63, 20, 5717, 342, 576, 677, 21, 225, 273, 2027, 67, 5036, 63, 21, 65, 397, 2072, 380, 770, 397, 576, 677, 22, 225, 273, 2027, 67, 5036, 63, 21, 65, 397, 2072, 380, 261, 1615, 397, 404, 13, 397, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
errorOut = temp.getvalue() if not successRe.search(errorOut): self.fail("unexpected stderr output: %r" % errorOut)
errorOut = temp.getvalue() if not successRe.search(errorOut): self.fail("unexpected stderr output: %r" % errorOut)
def verifyStderr(self, method, successRe): """ Call method() while capturing sys.stderr output internally and call self.fail() if successRe.search() does not match the stderr output. This is used to test for uncatchable exceptions. """ stdErr = sys.stderr sys.stderr = StringIO() try: method() finally: temp = sys.stderr sys.stderr = stdErr errorOut = temp.getvalue() if not successRe.search(errorOut): self.fail("unexpected stderr output: %r" % errorOut)
0060e41a3ce7bcb66b7a9a39fd4f3dd2f5a6f82a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0060e41a3ce7bcb66b7a9a39fd4f3dd2f5a6f82a/test_compare.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 31781, 12, 2890, 16, 707, 16, 2216, 426, 4672, 3536, 3049, 707, 1435, 1323, 28789, 2589, 18, 11241, 876, 12963, 471, 745, 365, 18, 6870, 1435, 309, 2216, 426, 18, 3072, 1435, 1552, 486, 845, 326, 4514, 876, 18, 225, 1220, 353, 1399, 358, 1842, 364, 6301, 505, 429, 4798, 18, 3536, 2044, 2524, 273, 2589, 18, 11241, 2589, 18, 11241, 273, 15777, 1435, 775, 30, 707, 1435, 3095, 30, 1906, 273, 2589, 18, 11241, 2589, 18, 11241, 273, 2044, 2524, 555, 1182, 273, 1906, 18, 588, 1132, 1435, 309, 486, 2216, 426, 18, 3072, 12, 1636, 1182, 4672, 365, 18, 6870, 2932, 21248, 4514, 876, 30, 738, 86, 6, 738, 555, 1182, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3929, 31781, 12, 2890, 16, 707, 16, 2216, 426, 4672, 3536, 3049, 707, 1435, 1323, 28789, 2589, 18, 11241, 876, 12963, 471, 745, 365, 18, 6870, 1435, 309, 2216, 426, 18, 3072, 1435, 1552, 486, 845, 326, 4514, 876, 18, 225, 1220, 353, 1399, 358, 1842, 364, 6301, 505, 429, 4798, 18, 3536, 2044, 2524, 273, 2589, 18, 11241, 2589, 18, 11241, 273, 15777, 1435, 775, 30, 707, 1435, 3095, 30, 1906, 273, 2589, 18, 11241, 2589, 18, 11241, 273, 2044, 2524, 555, 1182, 273, 1906, 18, 588, 1132, 1435, 309, 486, 2216, 426, 18, 3072, 12, 1636, 1182, 4672, 365, 18, 6870, 2932, 21248, 4514, 876, 30, 738, 86, 6, 738, 555, 1182, 13, 2, -100, -100, -100 ]
sage: show(plot(sin,-4,4), axes=False)
sage.: show(plot(sin,-4,4), axes=False)
def show(self, xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, filename=None, dpi=DEFAULT_DPI, axes=True, axes_label=None,frame=False, **args): """ Show this graphics image with the default image viewer. EXAMPLES: sage: c = circle((1,1), 1, rgbcolor=(1,0,0)) sage.: c.show(xmin=-1, xmax=3, ymin=-1, ymax=3)
761365abc27393b9133c187a8ff5330d7dcae6b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/761365abc27393b9133c187a8ff5330d7dcae6b9/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 6515, 33, 5510, 16, 6515, 67, 1925, 33, 7036, 16, 3789, 33, 8381, 16, 2826, 1968, 4672, 3536, 9674, 333, 17313, 1316, 598, 326, 805, 1316, 14157, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 276, 273, 12470, 12443, 21, 16, 21, 3631, 404, 16, 6917, 3266, 28657, 21, 16, 20, 16, 20, 3719, 272, 410, 29710, 276, 18, 4500, 12, 92, 1154, 29711, 21, 16, 14016, 33, 23, 16, 15763, 29711, 21, 16, 15275, 33, 23, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 6515, 33, 5510, 16, 6515, 67, 1925, 33, 7036, 16, 3789, 33, 8381, 16, 2826, 1968, 4672, 3536, 9674, 333, 17313, 1316, 598, 326, 805, 1316, 14157, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 276, 273, 12470, 12443, 21, 16, 21, 3631, 404, 16, 6917, 3266, 28657, 21, 16, 20, 16, 20, 3719, 272, 410, 29710, 276, 18, 4500, 12, 92, 1154, 29711, 21, 16, 14016, 33, 23, 16, 15763, 29711, 21, 16, 15275, 33, 23, 13, 2, -100 ]
logger.info("adding %d files for package %s" % (len(repopkg.files), dbpkg.pkgname))
logger.info("adding %d files for package %s" % (len(repopkg.files), dbpkg.pkgname))
def populate_files(dbpkg, repopkg, force=False): if not force: if not dbpkg.files_last_update or not dbpkg.last_update: pass elif dbpkg.files_last_update > dbpkg.last_update: return # only delete files if we are reading a DB that contains them if 'files' in repopkg.__dict__: dbpkg.packagefile_set.all().delete() logger.info("adding %d files for package %s" % (len(repopkg.files), dbpkg.pkgname)) for x in repopkg.files: dbpkg.packagefile_set.create(path=x) dbpkg.files_last_update = datetime.now() dbpkg.save()
fcc6d98bc438ea917c757ee1a565a5dba625f333 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/fcc6d98bc438ea917c757ee1a565a5dba625f333/reporead.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 2354, 12, 1966, 10657, 16, 2071, 556, 14931, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 30, 309, 486, 1319, 10657, 18, 2354, 67, 2722, 67, 2725, 578, 486, 1319, 10657, 18, 2722, 67, 2725, 30, 1342, 1327, 1319, 10657, 18, 2354, 67, 2722, 67, 2725, 405, 1319, 10657, 18, 2722, 67, 2725, 30, 327, 468, 1338, 1430, 1390, 309, 732, 854, 6453, 279, 2383, 716, 1914, 2182, 309, 296, 2354, 11, 316, 2071, 556, 14931, 16186, 1576, 972, 30, 1319, 10657, 18, 5610, 768, 67, 542, 18, 454, 7675, 3733, 1435, 1194, 18, 1376, 2932, 3439, 738, 72, 1390, 364, 2181, 738, 87, 6, 738, 261, 1897, 12, 266, 5120, 14931, 18, 2354, 3631, 1319, 10657, 18, 10657, 529, 3719, 364, 619, 316, 2071, 556, 14931, 18, 2354, 30, 1319, 10657, 18, 5610, 768, 67, 542, 18, 2640, 12, 803, 33, 92, 13, 1319, 10657, 18, 2354, 67, 2722, 67, 2725, 273, 3314, 18, 3338, 1435, 1319, 10657, 18, 5688, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6490, 67, 2354, 12, 1966, 10657, 16, 2071, 556, 14931, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 30, 309, 486, 1319, 10657, 18, 2354, 67, 2722, 67, 2725, 578, 486, 1319, 10657, 18, 2722, 67, 2725, 30, 1342, 1327, 1319, 10657, 18, 2354, 67, 2722, 67, 2725, 405, 1319, 10657, 18, 2722, 67, 2725, 30, 327, 468, 1338, 1430, 1390, 309, 732, 854, 6453, 279, 2383, 716, 1914, 2182, 309, 296, 2354, 11, 316, 2071, 556, 14931, 16186, 1576, 972, 30, 1319, 10657, 18, 5610, 768, 67, 542, 18, 454, 7675, 3733, 1435, 1194, 18, 1376, 2932, 3439, 738, 72, 1390, 364, 2181, 738, 87, 6, 738, 261, 1897, 12, 266, 5120, 14931, 18, 2354, 3631, 1319, 2 ]
key_up
key_up:
def kbPatch(exe): """Patch the Robot Odyssey engine's keyboard decoder.""" # Robot Odyssey has a bug that makes it rather difficult to play # on an AT keyboard, particularly one without a numeric keypad: # While the AT-style ("gray") arrow keys do work for basic # movement, the game can't detect shift-arrow combinations. So, # you can't take single-pixel steps. This makes Robot Odyssey # totally unplayable on a laptop unless you have some kind of # keyboard remapper running externally. # # To understand the problem, we can take a closer look at the # game's keyboard handler. To poll the keyboard, the basic steps # are: # # 1. The game first uses BIOS interrupt 16h to first check # for a key in the keyboard buffer (AH=1), then to retrieve # a key if one exists (AH=0). It also pokes at the BIOS data # area (segment 40h) directly, in order to turn off numlock, # turn on caps lock, and drain the keyboard buffer. # # 2. This function returns with the value of AX from Int 16h # preserved. This means we have a scan code in AH, and a # character code in AL. Now we're in the game's keyboard # mapping function, which we'll be patching here. # # 3. This function stores a translated key in a global variable. # If there are no keys down, it stores zero. For most keys, # it stores an ASCII value. But there are several special # cases: Arrow keys, Shift-Arrow keys, and Insert/Delete. # # This arrow key remapping is of the form: # # if (input_scancode == LEFT) { # if (al == 0) { # output_scancode = TRANSLATED_SHIFT_LEFT; # } else { # output_scancode = TRANSLATED_LEFT; # } # } else { # ... # } # # So, they're relying on the fact that an un-shifted arrow has # no ASCII equivalent, while a shift-arrow on the numpad turns # into a number key when the BIOS translates it. # # This is a clever hack, but it won't do for gray arrow keys. # Instead, we'd rather look at the actual status of the shift # keys. We can get this from the BIOS data area, but that won't # work in a Windows DOS box. Instead, we call a BIOS interrupt. # # This will increase the code size a bit, but we can make room by # removing support for very old legacy scancodes. # XXX: This patcher works on Robot Odyssey, but it does not # work on Gertrude's Secrets, since that game uses different # internal keycode values. # This is the original keyboard handler snippet that we'll be # replacing, starting right after the BIOS polling function # returns, and ending at a point where the translated key is # expected to be in AL. This section has been carefully chosen # to avoid any non-relative addresses. origMapperLen = 137 origMapperPrefix = unhex(""" 75 03 E9 81 00 80 FC 88 74 34 80 FC 4D 74 2B 80 FC 86 74 3A 80 FC 50 74 31 80 FC 87 74 40 80 FC 4B 74 37 80 FC 85 74 46 80 FC 48 74 3D 80 FC 52 74 48 80 FC 53 74 49 EB 54 90 3C 00 74 06 """) kbMapper = exe.find(origMapperPrefix) if not kbMapper: raise CodeMismatchError() print "Found keyboard mapper. Patching..." patch = asm(""" ; On entry: ; ; AH = BIOS Scancode ; AL = ASCII Key ; Z=0 if a key is waiting, ; Z=1 if there is no key. jz no_key cmp ah, 0x48 jz key_up cmp ah, 0x50 jz key_down cmp ah, 0x4B jz key_left cmp ah, 0x4D jz key_right cmp ah, 0x52 ; NB: I don't think these are used by Robot Odyssey, jz key_insert ; but they're used by the shape editor in cmp ah, 0x53 ; Gertrude's Secrets. jz key_delete ; Other key: Leave it in ASCII. Normally we'd be done now... ; However, while we're here, we'll apply another bug fix. ; The game is expecting all keyboard input to be in uppercase. ; It does this by forcing Caps Lock to be on, using the BIOS ; data area. However, this isn't supported by the Windows XP ; DOS box. We can work around this by doing a toupper() on all ; characters here. cmp al, 'a' jb done cmp al, 'z' ja done xor al, 0x20 jmp done
759308781d42ac356f2dd3c5f6dc2d3cd3ef278d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6757/759308781d42ac356f2dd3c5f6dc2d3cd3ef278d/robot_odyssey_patcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9182, 7332, 12, 14880, 4672, 3536, 7332, 326, 19686, 352, 531, 72, 1900, 307, 93, 4073, 1807, 16263, 8320, 12123, 225, 468, 19686, 352, 531, 72, 1900, 307, 93, 711, 279, 7934, 716, 7297, 518, 9178, 3122, 17551, 358, 6599, 468, 603, 392, 14464, 16263, 16, 6826, 715, 1245, 2887, 279, 6389, 498, 6982, 30, 468, 21572, 326, 14464, 17, 4060, 7566, 22440, 7923, 12274, 1311, 741, 1440, 364, 5337, 468, 26017, 16, 326, 7920, 848, 1404, 5966, 4654, 17, 7815, 17265, 18, 6155, 16, 468, 1846, 848, 1404, 4862, 2202, 17, 11743, 6075, 18, 1220, 7297, 19686, 352, 531, 72, 1900, 307, 93, 468, 9997, 1230, 640, 1601, 429, 603, 279, 328, 1657, 556, 3308, 1846, 1240, 2690, 3846, 434, 468, 16263, 21674, 457, 3549, 18885, 1230, 18, 468, 468, 2974, 22413, 326, 6199, 16, 732, 848, 4862, 279, 13306, 2324, 622, 326, 468, 7920, 1807, 16263, 1838, 18, 2974, 7672, 326, 16263, 16, 326, 5337, 6075, 468, 854, 30, 468, 468, 225, 404, 18, 1021, 7920, 1122, 4692, 605, 30520, 13123, 2872, 76, 358, 1122, 866, 468, 377, 364, 279, 498, 316, 326, 16263, 1613, 261, 37, 44, 33, 21, 3631, 1508, 358, 4614, 468, 377, 279, 498, 309, 1245, 1704, 261, 37, 44, 33, 20, 2934, 2597, 2546, 293, 601, 281, 622, 326, 605, 30520, 501, 468, 377, 5091, 261, 9273, 8063, 76, 13, 5122, 16, 316, 1353, 358, 7005, 3397, 818, 739, 16, 468, 377, 7005, 603, 15788, 2176, 16, 471, 15427, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9182, 7332, 12, 14880, 4672, 3536, 7332, 326, 19686, 352, 531, 72, 1900, 307, 93, 4073, 1807, 16263, 8320, 12123, 225, 468, 19686, 352, 531, 72, 1900, 307, 93, 711, 279, 7934, 716, 7297, 518, 9178, 3122, 17551, 358, 6599, 468, 603, 392, 14464, 16263, 16, 6826, 715, 1245, 2887, 279, 6389, 498, 6982, 30, 468, 21572, 326, 14464, 17, 4060, 7566, 22440, 7923, 12274, 1311, 741, 1440, 364, 5337, 468, 26017, 16, 326, 7920, 848, 1404, 5966, 4654, 17, 7815, 17265, 18, 6155, 16, 468, 1846, 848, 1404, 4862, 2202, 17, 11743, 6075, 18, 1220, 7297, 19686, 352, 531, 72, 1900, 307, 93, 468, 9997, 1230, 640, 1601, 429, 603, 279, 328, 1657, 556, 3308, 1846, 1240, 2 ]
if end <= 3: locale_index.write(line[:end] + empty_value) elif line.find("_") <= 3: if line.find("_") > 0: locale_index.write(line[:end] + empty_value) locale_index.write(footer) brkitr_index.write(footer) coll_index.write(footer) rbnf_index.write(footer) locale_index.close() brkitr_index.close() coll_index.close() rbnf_index.close()
if end <= 3 or (line.find("_") <= 3 and line.find("_") > 0): locales.add(line[:end]) ShowMissing(brkitrs, locales, "brkitr", dat_list_file_path) ShowMissing(colls, locales, "coll", dat_list_file_path) ShowMissing(rbnfs, locales, "rbnf", dat_list_file_path) WriteIndex(os.path.join(TMP_DAT_PATH, res_index), locales, CLDR_VERSION) WriteIndex(os.path.join(TMP_DAT_PATH, "brkitr", res_index), brkitrs) WriteIndex(os.path.join(TMP_DAT_PATH, "coll", res_index), colls) WriteIndex(os.path.join(TMP_DAT_PATH, "rbnf", res_index), rbnfs)
def GenResIndex(dat_list_file_path): res_index = "res_index.txt" header_locale = "res_index:table(nofallback) {\n CLDRVersion { " header_locale += CLDR_VERSION + " }\n InstalledLocales {\n" header = "res_index:table(nofallback) {\nInstalledLocales {\n" footer = " }\n}" empty_value = " {\"\"}\n" # key-value pair for all locale entries locale_index = open(os.path.join(TMP_DAT_PATH, res_index), "w") locale_index.write(header_locale) brkitr_index = open(os.path.join(TMP_DAT_PATH, "brkitr", res_index), "w") brkitr_index.write(header) coll_index = open(os.path.join(TMP_DAT_PATH, "coll", res_index), "w") coll_index.write(header) rbnf_index = open(os.path.join(TMP_DAT_PATH, "rbnf", res_index), "w") rbnf_index.write(header) for line in open(dat_list_file_path, "r"): if line.find("root.") >= 0: continue if line.find("res_index") >= 0: continue if line.find("_.res") >= 0: continue; start = line.find("brkitr/") if start >= 0: end = line.find(".res") if end > 0: brkitr_index.write(line[line.find("/")+1:end] + empty_value) elif line.find("coll/") >= 0: start = line.find("coll/") end = line.find(".res") if end > 0: coll_index.write(line[line.find("/")+1:end] + empty_value) elif line.find("rbnf/") >= 0: start = line.find("rbnf/") end = line.find(".res") if end > 0: rbnf_index.write(line[line.find("/")+1:end] + empty_value) elif line.find(".res") >= 0: # We need to determine the resource is locale resource or misc resource. # To determine the locale resource, we assume max script length is 3. end = line.find(".res") if end <= 3: locale_index.write(line[:end] + empty_value) elif line.find("_") <= 3: if line.find("_") > 0: locale_index.write(line[:end] + empty_value) locale_index.write(footer) brkitr_index.write(footer) coll_index.write(footer) rbnf_index.write(footer) locale_index.close() brkitr_index.close() coll_index.close() rbnf_index.close() # Call genrb to generate new res_index.res. InvokeIcuTool("genrb", TMP_DAT_PATH, [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "brkitr"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "coll"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "rbnf"), [res_index])
e8aab5e9f14e1c3a670fbea64057a2a5f5c35245 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10672/e8aab5e9f14e1c3a670fbea64057a2a5f5c35245/icu_dat_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 607, 1016, 12, 3404, 67, 1098, 67, 768, 67, 803, 4672, 400, 67, 1615, 273, 315, 455, 67, 1615, 18, 5830, 6, 1446, 67, 6339, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 14934, 6331, 1444, 288, 315, 1446, 67, 6339, 1011, 14934, 6331, 67, 5757, 397, 315, 289, 64, 82, 13448, 4502, 13310, 18890, 82, 6, 1446, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 16747, 13310, 18890, 82, 6, 9860, 273, 315, 565, 289, 64, 82, 1532, 1008, 67, 1132, 273, 315, 288, 2412, 2412, 6280, 82, 6, 225, 468, 498, 17, 1132, 3082, 364, 777, 2573, 3222, 225, 2573, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 16, 400, 67, 1615, 3631, 315, 91, 7923, 2573, 67, 1615, 18, 2626, 12, 3374, 67, 6339, 13, 5186, 8691, 86, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 16, 315, 2848, 8691, 86, 3113, 400, 67, 1615, 3631, 315, 91, 7923, 5186, 8691, 86, 67, 1615, 18, 2626, 12, 3374, 13, 4508, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 16, 315, 12910, 3113, 400, 67, 1615, 3631, 315, 91, 7923, 4508, 67, 1615, 18, 2626, 12, 3374, 13, 7138, 82, 74, 67, 1615, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 28259, 67, 11102, 67, 4211, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 607, 1016, 12, 3404, 67, 1098, 67, 768, 67, 803, 4672, 400, 67, 1615, 273, 315, 455, 67, 1615, 18, 5830, 6, 1446, 67, 6339, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 14934, 6331, 1444, 288, 315, 1446, 67, 6339, 1011, 14934, 6331, 67, 5757, 397, 315, 289, 64, 82, 13448, 4502, 13310, 18890, 82, 6, 1446, 273, 315, 455, 67, 1615, 30, 2121, 12, 82, 792, 7986, 13, 18890, 82, 16747, 13310, 18890, 82, 6, 9860, 273, 315, 565, 289, 64, 82, 1532, 1008, 67, 1132, 273, 315, 288, 2412, 2412, 6280, 82, 6, 225, 468, 498, 17, 1132, 3082, 364, 777, 2573, 3222, 225, 2573, 67, 1615, 273, 2 ]
for k in p: heapq.heappush(self._eventHeap,(p[k],)+k) for count in range(self._focusEventQueue.qsize()): item=self._focusEventQueue.get_nowait() heapq.heappush(self._eventHeap,item)
for k,v in p.iteritems(): heapq.heappush(self._eventHeap,(v,)+k) f=self._focusEventCache self._focusEventCache={} for k,v in sorted(f.iteritems())[-4:]: heapq.heappush(self._eventHeap,(v,)+k)
def flushEvents(self): """Returns a list of winEvents (tuples of eventID,window,objectID,childID) that have been added, though due to limiting, it will not necessarily be all the winEvents that were originally added. They are definitely garenteed to be in the correct order though. """ p=self._propertyChangeEventCache self._propertyChangeEventCache={} for k in p: heapq.heappush(self._eventHeap,(p[k],)+k) for count in range(self._focusEventQueue.qsize()): item=self._focusEventQueue.get_nowait() heapq.heappush(self._eventHeap,item) e=self._eventHeap self._eventHeap=[] r=[] for count in range(len(e)): r.append(heapq.heappop(e)[1:]) return r
ba2fe53680524e1bab37462f0299c0b086dd30b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/ba2fe53680524e1bab37462f0299c0b086dd30b8/IAccessibleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 3783, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 5657, 3783, 261, 17705, 434, 871, 734, 16, 5668, 16, 1612, 734, 16, 3624, 734, 13, 716, 1240, 2118, 3096, 16, 11376, 6541, 358, 1800, 310, 16, 518, 903, 486, 23848, 506, 777, 326, 5657, 3783, 716, 4591, 24000, 3096, 18, 16448, 854, 2217, 25818, 314, 817, 73, 329, 358, 506, 316, 326, 3434, 1353, 11376, 18, 3536, 293, 33, 2890, 6315, 4468, 20930, 1649, 365, 6315, 4468, 20930, 1649, 12938, 364, 417, 16, 90, 316, 293, 18, 2165, 3319, 13332, 10500, 85, 18, 580, 2910, 1218, 12, 2890, 6315, 2575, 15648, 16, 12, 90, 16, 27921, 79, 13, 284, 33, 2890, 6315, 13923, 1133, 1649, 365, 6315, 13923, 1133, 1649, 12938, 364, 417, 16, 90, 316, 3115, 12, 74, 18, 2165, 3319, 10756, 18919, 24, 30, 14542, 10500, 85, 18, 580, 2910, 1218, 12, 2890, 6315, 2575, 15648, 16, 12, 90, 16, 27921, 79, 13, 425, 33, 2890, 6315, 2575, 15648, 365, 6315, 2575, 15648, 33, 8526, 436, 33, 8526, 364, 1056, 316, 1048, 12, 1897, 12, 73, 3719, 30, 436, 18, 6923, 12, 25506, 85, 18, 580, 2910, 556, 12, 73, 25146, 21, 30, 5717, 327, 436, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 3783, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 5657, 3783, 261, 17705, 434, 871, 734, 16, 5668, 16, 1612, 734, 16, 3624, 734, 13, 716, 1240, 2118, 3096, 16, 11376, 6541, 358, 1800, 310, 16, 518, 903, 486, 23848, 506, 777, 326, 5657, 3783, 716, 4591, 24000, 3096, 18, 16448, 854, 2217, 25818, 314, 817, 73, 329, 358, 506, 316, 326, 3434, 1353, 11376, 18, 3536, 293, 33, 2890, 6315, 4468, 20930, 1649, 365, 6315, 4468, 20930, 1649, 12938, 364, 417, 16, 90, 316, 293, 18, 2165, 3319, 13332, 10500, 85, 18, 580, 2910, 1218, 12, 2890, 6315, 2575, 15648, 16, 12, 90, 16, 27921, 79, 13, 284, 33, 2890, 6315, 13923, 1133, 1649, 365, 6315, 2 ]
m[:] = 'c'*mapsize self.assertEqual(m[:], 'c'*mapsize,
m[:] = b'c'*mapsize self.assertEqual(m[:], b'c'*mapsize,
def test_access_parameter(self): # Test for "access" keyword parameter mapsize = 10 open(TESTFN, "wb").write("a"*mapsize) f = open(TESTFN, "rb") m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) self.assertEqual(m[:], 'a'*mapsize, "Readonly memory map data incorrect.")
d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3860, 67, 6775, 12, 2890, 4672, 468, 7766, 364, 315, 3860, 6, 4932, 1569, 852, 1467, 273, 1728, 1696, 12, 16961, 19793, 16, 315, 9464, 20387, 2626, 2932, 69, 6, 14, 1458, 1467, 13, 284, 273, 1696, 12, 16961, 19793, 16, 315, 6731, 7923, 312, 273, 30749, 18, 81, 1458, 12, 74, 18, 7540, 5764, 9334, 852, 1467, 16, 2006, 33, 81, 1458, 18, 13204, 67, 6949, 13, 365, 18, 11231, 5812, 12, 81, 10531, 6487, 296, 69, 11, 14, 1458, 1467, 16, 315, 1994, 3700, 3778, 852, 501, 11332, 1199, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3860, 67, 6775, 12, 2890, 4672, 468, 7766, 364, 315, 3860, 6, 4932, 1569, 852, 1467, 273, 1728, 1696, 12, 16961, 19793, 16, 315, 9464, 20387, 2626, 2932, 69, 6, 14, 1458, 1467, 13, 284, 273, 1696, 12, 16961, 19793, 16, 315, 6731, 7923, 312, 273, 30749, 18, 81, 1458, 12, 74, 18, 7540, 5764, 9334, 852, 1467, 16, 2006, 33, 81, 1458, 18, 13204, 67, 6949, 13, 365, 18, 11231, 5812, 12, 81, 10531, 6487, 296, 69, 11, 14, 1458, 1467, 16, 315, 1994, 3700, 3778, 852, 501, 11332, 1199, 13, 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 ]