rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
'/usr/lib', '/lib', | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 1891ff6c3ac896bd9130663fe071326ae30f4fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1891ff6c3ac896bd9130663fe071326ae30f4fb7/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | |
def diff(): | def diff(**map): | def diff(): yield self.diff(p1, n, file) | 268bedddddaed84793c541e8d24cbb2a515ccc87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/268bedddddaed84793c541e8d24cbb2a515ccc87/hgweb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3122,
12,
636,
1458,
4672,
2824,
365,
18,
5413,
12,
84,
21,
16,
290,
16,
585,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3122,
12,
636,
1458,
4672,
2824,
365,
18,
5413,
12,
84,
21,
16,
290,
16,
585,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
newrow[c.key] = row[c] | newrow[c.name] = row[c] | def translate_row(self, tomapper, row): """attempts to take a row and translate its values to a row that can be understood by another mapper. breaks the column references down to their bare keynames to accomplish this. So far this works for the various polymorphic examples.""" newrow = util.DictDecorator(row) for c i... | 632dc1b7031bc0e54a88e3ed2d246e5a1bf262f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/632dc1b7031bc0e54a88e3ed2d246e5a1bf262f2/mapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
67,
492,
12,
2890,
16,
358,
13919,
16,
1027,
4672,
3536,
14359,
358,
4862,
279,
1027,
471,
4204,
2097,
924,
358,
279,
1027,
716,
848,
506,
31727,
4773,
635,
4042,
5815,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
67,
492,
12,
2890,
16,
358,
13919,
16,
1027,
4672,
3536,
14359,
358,
4862,
279,
1027,
471,
4204,
2097,
924,
358,
279,
1027,
716,
848,
506,
31727,
4773,
635,
4042,
5815,
18,
225,
... |
Helper function for L{_module_tree} and L{_module_list}. @rtype: C{string} """ if uid is None: return doc = self._docmap.get(uid, None) name = uid.shortname() str = ' '*depth + '<li> <b>' str += self._uid_to_href(uid, name)+'</b>' | Write HTML for a list item describing a package/module and all of its submodules. This is used by both L{_write_module_tree} and L{write_module_list} to write package hierarchies. @param public: The output stream for the public version of the page. @param private: The output stream for the private version of the page.... | def _write_module_tree_item(self, public, private, uid, depth=0): """ Helper function for L{_module_tree} and L{_module_list}. @rtype: C{string} """ if uid is None: return | 21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
3598,
33,
20,
4672,
3536,
9705,
445,
364,
511,
95,
67,
2978,
67,
3413,
97,
471,
511,
95,
67,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
3598,
33,
20,
4672,
3536,
9705,
445,
364,
511,
95,
67,
2978,
67,
3413,
97,
471,
511,
95,
67,
29... |
self.items.append(item(interval, script, args or [] and args.split(','))) | self.items.append(item(interval, script, args and args.split(',') or [])) | def update_active_checks(self): logging.info('updating item list for host {0}'.format(self.name)) self.items = [] self.last_update = time.time() for raw_key, interval in self.trapper.get_active_checks(): key, args = self.item_re.match(raw_key).group(1, 3) for script in self.scripts: if script.key == key: self.items.app... | 95502bfbaba68ebc209a9104185cfcd5b8c2292c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12922/95502bfbaba68ebc209a9104185cfcd5b8c2292c/zabbix_agent_ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3535,
67,
12366,
12,
2890,
4672,
2907,
18,
1376,
2668,
5533,
1776,
761,
666,
364,
1479,
288,
20,
1713,
18,
2139,
12,
2890,
18,
529,
3719,
365,
18,
3319,
273,
5378,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3535,
67,
12366,
12,
2890,
4672,
2907,
18,
1376,
2668,
5533,
1776,
761,
666,
364,
1479,
288,
20,
1713,
18,
2139,
12,
2890,
18,
529,
3719,
365,
18,
3319,
273,
5378,
365,
18,
... |
"""Handle received packets. | r"""Handle received packets. | def handle_packet(self, data, addr): """Handle received packets. | ae0ad9988d8c372fb99dc0c25c3fb8756f68e072 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/ae0ad9988d8c372fb99dc0c25c3fb8756f68e072/sumiget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11482,
12,
2890,
16,
501,
16,
3091,
4672,
3536,
3259,
5079,
12640,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
11482,
12,
2890,
16,
501,
16,
3091,
4672,
3536,
3259,
5079,
12640,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage: print t3.to_cycles() | sage: t3.to_cycles() | def tau3(T1, T2, cells_map): """ The definition of tau1 is: tau1 : T1 -> T1 tau1 = beta\^(-1)_3 beta_1 (composing left to right) where beta_i : T2 -> T1 changes just the i-th coordinate of a triple. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,... | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
23,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
3536,
1021,
2379,
434,
12284,
21,
353,
30,
225,
12284,
21,
294,
399,
21,
317,
399,
21,
12284,
21,
273,
6796,
64,
66,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
23,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
3536,
1021,
2379,
434,
12284,
21,
353,
30,
225,
12284,
21,
294,
399,
21,
317,
399,
21,
12284,
21,
273,
6796,
64,
66,
1... |
if self.DEBUG: print 'New probabilities:' for w, r in self.wordinfo.iteritems(): print "P(%r) = %g" % (w, r.spamprob) | def update_probabilities(self): """Update the word probabilities in the spam database. | 2c426ea6372a3122ac1b7e4fb2584d944ec1e395 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/2c426ea6372a3122ac1b7e4fb2584d944ec1e395/classifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7748,
5756,
12,
2890,
4672,
3536,
1891,
326,
2076,
17958,
316,
326,
24824,
2063,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7748,
5756,
12,
2890,
4672,
3536,
1891,
326,
2076,
17958,
316,
326,
24824,
2063,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
(?P<refname>%s) (?P<refend>__?) | (?P<refname>%(simplename)s) (?P<refend>__?) | def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages. | a5c0eb6861885d1f50c31667ba475c9c99a4acf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/a5c0eb6861885d1f50c31667ba475c9c99a4acf6/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
18,
2,
-100,
-100,
-100,
-100,
-100,... |
dict.structs.keys() + dict.enums.keys() | dict.structs.keys() + dict.enums.keys()) | def serialize_xrefs_files(self, output): headers = self.headers.keys() headers.sort() for file in headers: module = self.modulename_file(file) output.write(" <file name='%s'>\n" % (module)) dict = self.headers[file] ids = dict.functions.keys() + dict.variables.keys() + \ | a2e844a3b3503367a4418187e77ccc977f186909 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/a2e844a3b3503367a4418187e77ccc977f186909/apibuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
67,
92,
9316,
67,
2354,
12,
2890,
16,
876,
4672,
1607,
273,
365,
18,
2485,
18,
2452,
1435,
1607,
18,
3804,
1435,
364,
585,
316,
1607,
30,
1605,
273,
365,
18,
1711,
332,
1069,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
67,
92,
9316,
67,
2354,
12,
2890,
16,
876,
4672,
1607,
273,
365,
18,
2485,
18,
2452,
1435,
1607,
18,
3804,
1435,
364,
585,
316,
1607,
30,
1605,
273,
365,
18,
1711,
332,
1069,
6... |
author_email="zope3-dev@zope.org", | author_email="zope-dev@zope.org", | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 221cc2da12cffc249d77d8b9106b0906f707daea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9782/221cc2da12cffc249d77d8b9106b0906f707daea/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,... |
allCollection = schema.ns("osaf.app", self.view).allCollection | allCollection = schema.ns("osaf.app", view).allCollection | def importProcess(self, text, extension=None, item=None, changes=None, previousView=None, updateCallback=None): # the item parameter is so that a share item can be passed in for us # to populate. | 719e430f68912c1fd2369b446abf2cd60ab5f6eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/719e430f68912c1fd2369b446abf2cd60ab5f6eb/ICalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
2227,
12,
2890,
16,
977,
16,
2710,
33,
7036,
16,
761,
33,
7036,
16,
3478,
33,
7036,
16,
2416,
1767,
33,
7036,
16,
1089,
2428,
33,
7036,
4672,
468,
326,
761,
1569,
353,
1427,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
2227,
12,
2890,
16,
977,
16,
2710,
33,
7036,
16,
761,
33,
7036,
16,
3478,
33,
7036,
16,
2416,
1767,
33,
7036,
16,
1089,
2428,
33,
7036,
4672,
468,
326,
761,
1569,
353,
1427,
71... |
inMine = item in mine.sources or UserCollection (item).outOfTheBoxCollection item = item.copy (parent = self.getDefaultParent (self.itsView), cloudAlias="copying") | inMine = item in mine.sources item = item.copy(parent=self.getDefaultParent(self.itsView), cloudAlias="copying") | def onDuplicateEvent(self, event): mine = schema.ns('osaf.pim', self.itsView).mine | 503a06c290398b314753dc231a3106a419e97106 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/503a06c290398b314753dc231a3106a419e97106/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
11826,
1133,
12,
2890,
16,
871,
4672,
312,
558,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
84,
381,
2187,
365,
18,
1282,
1767,
2934,
3081,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
11826,
1133,
12,
2890,
16,
871,
4672,
312,
558,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
84,
381,
2187,
365,
18,
1282,
1767,
2934,
3081,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
This function uses the algorithm of [Edmonds74] to calculate the | This function uses the algorithm of [Edmonds74]_ to calculate the | def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number ... | 88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... |
'metadata': self.get_metadata(row['name']), | 'metadata': self.get_metadata(row['name']) or {}, | def oai_query(self, offset=0, batch_size=20, sets=[], not_sets=[], filter_sets=[], from_date=None, until_date=None, identifier=None): | 0a9cea3ddff594490ea963d07ebc467da396ab64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14691/0a9cea3ddff594490ea963d07ebc467da396ab64/sqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
10658,
67,
2271,
12,
2890,
16,
1384,
33,
20,
16,
2581,
67,
1467,
33,
3462,
16,
1678,
22850,
6487,
486,
67,
4424,
22850,
6487,
1034,
67,
4424,
22850,
6487,
628,
67,
712,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
10658,
67,
2271,
12,
2890,
16,
1384,
33,
20,
16,
2581,
67,
1467,
33,
3462,
16,
1678,
22850,
6487,
486,
67,
4424,
22850,
6487,
1034,
67,
4424,
22850,
6487,
628,
67,
712,
33,
7036,
... |
def checkbox_helper(item, value): | def checkbox_to_helper(item, value): | def checkbox_helper(item, value): return u"""<input type="checkbox" name="to_list:list" value="%s"/>""" % item['value'] | 0768d387ef0347723a0ec6797ae2fafe588d4330 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11890/0768d387ef0347723a0ec6797ae2fafe588d4330/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11832,
67,
869,
67,
4759,
12,
1726,
16,
460,
4672,
327,
582,
8395,
32,
2630,
618,
1546,
12017,
6,
508,
1546,
869,
67,
1098,
30,
1098,
6,
460,
11613,
87,
6,
26293,
3660,
738,
761,
329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11832,
67,
869,
67,
4759,
12,
1726,
16,
460,
4672,
327,
582,
8395,
32,
2630,
618,
1546,
12017,
6,
508,
1546,
869,
67,
1098,
30,
1098,
6,
460,
11613,
87,
6,
26293,
3660,
738,
761,
329... |
self.formats[name] = default_format[column_type] | self.formats[name] = default_format[self.types[name]] | def add_column(self, name, data, unit='', null='', description='', \ format=None, dtype=None): ''' Add a column to the table | ec9812e845e511845abc3d920a956f3ffd9b7b27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13233/ec9812e845e511845abc3d920a956f3ffd9b7b27/basetable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2827,
12,
2890,
16,
508,
16,
501,
16,
2836,
2218,
2187,
446,
2218,
2187,
2477,
2218,
2187,
521,
740,
33,
7036,
16,
3182,
33,
7036,
4672,
9163,
1436,
279,
1057,
358,
326,
1014,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2827,
12,
2890,
16,
508,
16,
501,
16,
2836,
2218,
2187,
446,
2218,
2187,
2477,
2218,
2187,
521,
740,
33,
7036,
16,
3182,
33,
7036,
4672,
9163,
1436,
279,
1057,
358,
326,
1014,... |
result += ' 62\n%s\n' % colors[l] | result += ' 62\n%s\n' % (int(colors[l]) + 1) | def process(self): '''Process the input data and return a string as output. | 666a646ca02a5f74d5faddc3adc83f7c43937a6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3067/666a646ca02a5f74d5faddc3adc83f7c43937a6d/tops_dxf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
9163,
2227,
326,
810,
501,
471,
327,
279,
533,
487,
876,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
9163,
2227,
326,
810,
501,
471,
327,
279,
533,
487,
876,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
inspiral.InspiralNode.__init__(self, inspJob) | pipeline.CondorDAGNode.__init__(self,inspJob) | def __init__(self, inspJob, procParams, ifo, trig, cp,opts,dag, datafindCache, d_node, datafindCommand, type='plot', sngl_table = None): | 0c2f39c35fa9ddaff1f494c1b5df8a63d289359f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/0c2f39c35fa9ddaff1f494c1b5df8a63d289359f/fu_Condor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
1752,
2278,
16,
5418,
1370,
16,
21479,
16,
23142,
16,
3283,
16,
4952,
16,
30204,
16,
501,
4720,
1649,
16,
302,
67,
2159,
16,
501,
4720,
2189,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
1752,
2278,
16,
5418,
1370,
16,
21479,
16,
23142,
16,
3283,
16,
4952,
16,
30204,
16,
501,
4720,
1649,
16,
302,
67,
2159,
16,
501,
4720,
2189,
16,
... |
params = urlparse.urlparse(url.query) args = [params.query] | args = [cgi.parse_qs(url.query)] | def response(code, output, json=True): self.send_response(code) mime_type = "application/json" if json else "text/plain" self.send_header("content-type", mime_type) self.end_headers() | 409e0d0d932a7d6989d1daf7e57b151060316dc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/409e0d0d932a7d6989d1daf7e57b151060316dc0/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
710,
16,
876,
16,
1163,
33,
5510,
4672,
365,
18,
4661,
67,
2740,
12,
710,
13,
4892,
67,
723,
273,
315,
3685,
19,
1977,
6,
309,
1163,
469,
315,
955,
19,
7446,
6,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
710,
16,
876,
16,
1163,
33,
5510,
4672,
365,
18,
4661,
67,
2740,
12,
710,
13,
4892,
67,
723,
273,
315,
3685,
19,
1977,
6,
309,
1163,
469,
315,
955,
19,
7446,
6,
365,
18,
... |
raise ValueError, 'new property "%s": %s not a %s'%( | raise IndexError, 'new property "%s": %s not a %s'%( | def set(self, nodeid, **propvalues): """Modify a property on an existing node of this class. 'nodeid' must be the id of an existing node of this class or an IndexError is raised. | f585d0fd8b97406c94bbd0235dd528198f965caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f585d0fd8b97406c94bbd0235dd528198f965caf/hyperdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
756,
350,
16,
2826,
5986,
2372,
4672,
3536,
11047,
279,
1272,
603,
392,
2062,
756,
434,
333,
667,
18,
225,
296,
2159,
350,
11,
1297,
506,
326,
612,
434,
392,
2062,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
756,
350,
16,
2826,
5986,
2372,
4672,
3536,
11047,
279,
1272,
603,
392,
2062,
756,
434,
333,
667,
18,
225,
296,
2159,
350,
11,
1297,
506,
326,
612,
434,
392,
2062,
... |
return Inf | return _Inf | def logb(self, context=None): """ Returns the exponent of the magnitude of self's MSD. | ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
70,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
2860,
326,
9100,
434,
326,
13463,
434,
365,
1807,
9238,
40,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
70,
12,
2890,
16,
819,
33,
7036,
4672,
3536,
2860,
326,
9100,
434,
326,
13463,
434,
365,
1807,
9238,
40,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self.browserselectedpath[self.browser.wd]: self.browser_selection.select_path(self.browserselectedpath[self.browser.wd]) | if self.browserselectedpath[item]: self.browser_selection.select_path(self.browserselectedpath[item]) | def browser_set_view(self, select_items=True): # select_items should be false if the same directory has merely # been refreshed (updated) try: if self.browser.wd in self.browserposition: self.browser.scroll_to_point(0, self.browserposition[self.browser.wd]) else: self.browser.scroll_to_point(0, 0) except: self.browser.... | ef335bb5758783289bea4a5b77282ae0c87d687a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/ef335bb5758783289bea4a5b77282ae0c87d687a/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4748,
67,
542,
67,
1945,
12,
2890,
16,
2027,
67,
3319,
33,
5510,
4672,
468,
2027,
67,
3319,
1410,
506,
629,
309,
326,
1967,
1867,
711,
4045,
2357,
468,
2118,
27880,
261,
7007,
13,
775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4748,
67,
542,
67,
1945,
12,
2890,
16,
2027,
67,
3319,
33,
5510,
4672,
468,
2027,
67,
3319,
1410,
506,
629,
309,
326,
1967,
1867,
711,
4045,
2357,
468,
2118,
27880,
261,
7007,
13,
775,... |
if not img: print 'Not', | if not Image: print 'Not', | def _test(): import EasyDialogs try: import img except ImportError: img = None import MacOS Qt.EnterMovies() path = EasyDialogs.AskFileForOpen(message='Video to convert') if not path: sys.exit(0) rdr = reader(path) if not rdr: sys.exit(1) dstdir = EasyDialogs.AskFileForSave(message='Name for output folder') if not dstd... | 63b74feb518820f18279b4bfc680bfb9887735c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/63b74feb518820f18279b4bfc680bfb9887735c7/videoreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
29442,
11885,
14072,
775,
30,
1930,
3774,
1335,
11308,
30,
3774,
273,
599,
1930,
13217,
4618,
7354,
18,
10237,
16727,
29028,
1435,
589,
273,
29442,
11885,
14072,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
29442,
11885,
14072,
775,
30,
1930,
3774,
1335,
11308,
30,
3774,
273,
599,
1930,
13217,
4618,
7354,
18,
10237,
16727,
29028,
1435,
589,
273,
29442,
11885,
14072,
18,
... |
print >> sys.stderr, "Warning:", msg | print >> sys.stderr, "Warning:", msg.encode('utf-8') | def warning(self, msg): print >> sys.stderr, "Warning:", msg | 77b755075f6e88f15f500aab96ac5487c327a1b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5223/77b755075f6e88f15f500aab96ac5487c327a1b1/vmodellparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
1234,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
6210,
2773,
16,
1234,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
1234,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
6210,
2773,
16,
1234,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if 'UPDATE' not in self.request: return if not self.canUpdate(): self.errors.append(_('You are not allowed to modify' 'attendance information.')) return | def update(self): """Process the form.""" self.statuses = [] self.errors = [] self.tardy_error = None | d030359ebbe80b2aa0e8eae9632c5f22946ec80f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/d030359ebbe80b2aa0e8eae9632c5f22946ec80f/attendance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
2227,
326,
646,
12123,
365,
18,
21655,
273,
5378,
365,
18,
4324,
273,
5378,
365,
18,
88,
1060,
93,
67,
1636,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
2227,
326,
646,
12123,
365,
18,
21655,
273,
5378,
365,
18,
4324,
273,
5378,
365,
18,
88,
1060,
93,
67,
1636,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100... | |
def fl_show_form(form, place, border, name): """ fl_show_form(form, place, border, name) -> window reference """ retval = _fl_show_form(form, place, border, name) | def fl_show_form(pForm, place, border, name): """ fl_show_form(pForm, place, border, name) -> window reference """ retval = _fl_show_form(pForm, place, border, name) | def fl_show_form(form, place, border, name): """ fl_show_form(form, place, border, name) -> window reference """ retval = _fl_show_form(form, place, border, name) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
4500,
67,
687,
12,
84,
1204,
16,
3166,
16,
5795,
16,
508,
4672,
3536,
1183,
67,
4500,
67,
687,
12,
84,
1204,
16,
3166,
16,
5795,
16,
508,
13,
317,
2742,
2114,
3536,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
4500,
67,
687,
12,
84,
1204,
16,
3166,
16,
5795,
16,
508,
4672,
3536,
1183,
67,
4500,
67,
687,
12,
84,
1204,
16,
3166,
16,
5795,
16,
508,
13,
317,
2742,
2114,
3536,
225,
... |
elif self.state == '0': if (nextchar in self.numchars or nextchar in '.'): self.token += nextchar | elif state == '0': if nextchar in numchars: token += nextchar elif nextchar == '.': token += nextchar state = '0.' | def get_token(self): if self.tokenstack: return self.tokenstack.pop(0) while not self.eof: if self.charstack: nextchar = self.charstack.pop(0) else: nextchar = self.instream.read(1) if not nextchar: self.eof = True break elif not self.state: self.token = nextchar if nextchar in self.wordchars: self.state = 'a' elif nex... | df40ec34463f41133b27dcd652cf51345c00a32d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/df40ec34463f41133b27dcd652cf51345c00a32d/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2316,
12,
2890,
4672,
309,
365,
18,
2316,
3772,
30,
327,
365,
18,
2316,
3772,
18,
5120,
12,
20,
13,
1323,
486,
365,
18,
9339,
30,
309,
365,
18,
3001,
3772,
30,
1024,
3001,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2316,
12,
2890,
4672,
309,
365,
18,
2316,
3772,
30,
327,
365,
18,
2316,
3772,
18,
5120,
12,
20,
13,
1323,
486,
365,
18,
9339,
30,
309,
365,
18,
3001,
3772,
30,
1024,
3001,
... |
if len(self._data) > 0: s += '\nsplot "%s"\n' % (self._data[0]['data'].get_filename()) | for datadict in self._data: s += '\nsplot "%s"\n' % (datadict['data'].get_filename()) | def save_gp(self): '''Save file that can be opened with gnuplot.''' | 59ae9101322c2a270feb5bdece33ef7acf673d7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/59ae9101322c2a270feb5bdece33ef7acf673d7e/qtgnuplot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6403,
12,
2890,
4672,
9163,
4755,
585,
716,
848,
506,
10191,
598,
314,
13053,
4032,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6403,
12,
2890,
4672,
9163,
4755,
585,
716,
848,
506,
10191,
598,
314,
13053,
4032,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._groups = None | def __init__(self, uid, verbosity=0): mod = uid.value() self._tmp_var = {} self._tmp_type = {} self._tmp_groups = {} self._tmp_group_order = [] ObjDoc.__init__(self, uid, verbosity) | ab822894d6e2a7d6720010ae6c6d714b5b5fea7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ab822894d6e2a7d6720010ae6c6d714b5b5fea7f/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4555,
16,
11561,
33,
20,
4672,
681,
273,
4555,
18,
1132,
1435,
365,
6315,
5645,
67,
1401,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
365,
6315,
5645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4555,
16,
11561,
33,
20,
4672,
681,
273,
4555,
18,
1132,
1435,
365,
6315,
5645,
67,
1401,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
365,
6315,
5645... | |
arglist.extend(arg) | arglist.extend(args_to_list(arg)) | def args_to_list(args): """ Return a flat list of the given arguments for shell(). """ arglist = [] for arg in args: if hasattr(arg, '__iter__'): arglist.extend(arg) else: arglist.append(arg) return arglist | 5ee4f744e8caa1b28ad73ffce5b408253da3ae6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7381/5ee4f744e8caa1b28ad73ffce5b408253da3ae6f/fabricate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
833,
67,
869,
67,
1098,
12,
1968,
4672,
3536,
2000,
279,
3569,
666,
434,
326,
864,
1775,
364,
5972,
7675,
3536,
31805,
273,
5378,
364,
1501,
316,
833,
30,
309,
3859,
12,
3175,
16,
4940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
833,
67,
869,
67,
1098,
12,
1968,
4672,
3536,
2000,
279,
3569,
666,
434,
326,
864,
1775,
364,
5972,
7675,
3536,
31805,
273,
5378,
364,
1501,
316,
833,
30,
309,
3859,
12,
3175,
16,
4940... |
if len(args) < 1: | if len( args ) < 1: | def usage(): print 'Usage: %s <JobID> [<JobID>]' %(Script.scriptName) DIRAC.exit(2) | 404df09aa32c50bdf1f9adaccf966afd0a8ce67d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/404df09aa32c50bdf1f9adaccf966afd0a8ce67d/dirac-admin-get-job-pilots.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
2278,
734,
34,
306,
32,
2278,
734,
34,
3864,
8975,
3651,
18,
4263,
461,
13,
18544,
2226,
18,
8593,
12,
22,
13,
225,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
2278,
734,
34,
306,
32,
2278,
734,
34,
3864,
8975,
3651,
18,
4263,
461,
13,
18544,
2226,
18,
8593,
12,
22,
13,
225,
2,
-100,
-100,
-10... |
if not split: | if not split: | def iterative_dataflow_analysis(): print '[iterative type analysis..]' backup = backup_network() while True: getgx().iterations += 1 if getgx().iterations > 30: print '\n*WARNING* reached maximum number of iterations' break # --- propagate using cartesian product algorithm getgx().new_alloc_info = {} #print 'table' #... | 901e244929002554dcaf07170080d5a0a796c8c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/901e244929002554dcaf07170080d5a0a796c8c5/infer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
1535,
67,
892,
2426,
67,
12746,
13332,
1172,
5271,
2165,
1535,
618,
6285,
838,
3864,
5114,
273,
5114,
67,
5185,
1435,
225,
1323,
1053,
30,
336,
75,
92,
7675,
19330,
1011,
404,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
1535,
67,
892,
2426,
67,
12746,
13332,
1172,
5271,
2165,
1535,
618,
6285,
838,
3864,
5114,
273,
5114,
67,
5185,
1435,
225,
1323,
1053,
30,
336,
75,
92,
7675,
19330,
1011,
404,
309,... |
self.wmsClient = WMSClient() | self.submissionClient = WMSClient() self.jobMonitoringClient = JobMonitoringClient() | def __init__(self): TaskBase.__init__(self) self.wmsClient = WMSClient() | 83b9db9976066289db9fe646975e00b42ef78b0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/83b9db9976066289db9fe646975e00b42ef78b0a/TaskManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3837,
2171,
16186,
2738,
972,
12,
2890,
13,
365,
18,
91,
959,
1227,
273,
678,
3537,
1227,
1435,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3837,
2171,
16186,
2738,
972,
12,
2890,
13,
365,
18,
91,
959,
1227,
273,
678,
3537,
1227,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ntuple_comparefunc = lambda events, offset_vector: False, | ntuple_comparefunc = default_ntuple_comparefunc, | def ligolw_thinca( xmldoc, process_id, EventListType, CoincTables, coinc_definer_row, event_comparefunc, thresholds, ntuple_comparefunc = lambda events, offset_vector: False, effective_snr_factor = 250.0, veto_segments = None, trigger_program = u"inspiral", verbose = False | 54f03c10dbd79739ae03f63f4afa9924421581c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/54f03c10dbd79739ae03f63f4afa9924421581c7/ligolw_thinca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
451,
267,
5353,
12,
2025,
2434,
16,
1207,
67,
350,
16,
2587,
19366,
16,
28932,
71,
6905,
16,
13170,
71,
67,
5649,
264,
67,
492,
16,
871,
67,
9877,
644,
16,
19983,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
451,
267,
5353,
12,
2025,
2434,
16,
1207,
67,
350,
16,
2587,
19366,
16,
28932,
71,
6905,
16,
13170,
71,
67,
5649,
264,
67,
492,
16,
871,
67,
9877,
644,
16,
19983,... |
if (isinstance(api_doc, ValueDoc) and api_doc != module and (api_doc.pyval in __builtin__.__dict__.values() or (module not in (None, UNKNOWN) and module.pyval in (__builtin__, exceptions)))): return | if isinstance(api_doc, ValueDoc) and api_doc != module: if module not in (None, UNKNOWN) and module.pyval is exceptions: return for builtin_val in __builtin__.__dict__.values(): if builtin_val is api_doc.pyval: return | def report_errors(api_doc, docindex, parse_errors, field_warnings): """A helper function for L{parse_docstring()} that reports any markup warnings and field warnings that we encountered while processing C{api_doc}'s docstring.""" if not parse_errors and not field_warnings: return # Get the name of the item containing ... | 02bff338087ec62990d59a317249465022fbbfce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/02bff338087ec62990d59a317249465022fbbfce/docstringparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2425,
67,
2434,
16,
997,
1615,
16,
1109,
67,
4324,
16,
652,
67,
12103,
4672,
3536,
37,
4222,
445,
364,
511,
95,
2670,
67,
24675,
17767,
716,
10557,
1281,
9813,
5599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2425,
67,
2434,
16,
997,
1615,
16,
1109,
67,
4324,
16,
652,
67,
12103,
4672,
3536,
37,
4222,
445,
364,
511,
95,
2670,
67,
24675,
17767,
716,
10557,
1281,
9813,
5599... |
def _module_tree(self, sort_order=None): | def _module_tree(self, sortorder=None): | def _module_tree(self, sort_order=None): """ @return: The HTML code for the module hierarchy tree. This is used by L{_tree_to_html} to construct the hiearchy page. @rtype: C{string} """ str = '<ul>\n' docs = self._docmap.items() docs.sort(lambda a,b: cmp(a[0], b[0])) # Find all top-level packages. (what about top-leve... | 62ff4e473663c51d0a945a451e36120f11d9450a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/62ff4e473663c51d0a945a451e36120f11d9450a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
12,
2890,
16,
1524,
1019,
33,
7036,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
1605,
9360,
2151,
18,
225,
1220,
353,
1399,
635,
511,
95,
67,
3413,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
12,
2890,
16,
1524,
1019,
33,
7036,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
1605,
9360,
2151,
18,
225,
1220,
353,
1399,
635,
511,
95,
67,
3413,
67,
... |
pkt.set_field('ip.dst', self.dip) pkt.set_field('tcp.dport', self.dport) pkt.set_field('tcp.flags', TH_SYN) | def __thread_main(self): try: log.debug('Entered in __thread_main') | bf2fda7bf8e31675ee7d64613b7db24cea0347c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11468/bf2fda7bf8e31675ee7d64613b7db24cea0347c1/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5930,
67,
5254,
12,
2890,
4672,
775,
30,
613,
18,
4148,
2668,
10237,
329,
316,
1001,
5930,
67,
5254,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5930,
67,
5254,
12,
2890,
4672,
775,
30,
613,
18,
4148,
2668,
10237,
329,
316,
1001,
5930,
67,
5254,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
print S.recv(1) | S.recv(1) | def full1(S): """Connect regular Python socket to Google, and send.""" connect1(S) S.sendall('GET / HTTP/1.0\r\n\r\n') print S.recv(1) | 83c8953d1b1bcc2d128875c2935c01fdcfc2e18d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11109/83c8953d1b1bcc2d128875c2935c01fdcfc2e18d/test_select.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
21,
12,
55,
4672,
3536,
5215,
6736,
6600,
2987,
358,
6124,
16,
471,
1366,
12123,
3077,
21,
12,
55,
13,
348,
18,
4661,
454,
2668,
3264,
342,
2239,
19,
21,
18,
20,
64,
86,
64,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
21,
12,
55,
4672,
3536,
5215,
6736,
6600,
2987,
358,
6124,
16,
471,
1366,
12123,
3077,
21,
12,
55,
13,
348,
18,
4661,
454,
2668,
3264,
342,
2239,
19,
21,
18,
20,
64,
86,
64,
... |
news = DbContentType.find_by_name("News") | news = DbContentType.find_by_name("News", error_404 = False) | def index(self): """The home page of the website. | 848d30a16bed4c7317f2928aa29f84ef4c4af29b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/848d30a16bed4c7317f2928aa29f84ef4c4af29b/home.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
4672,
3536,
1986,
6382,
1363,
434,
326,
12504,
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,... | [
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,
770,
12,
2890,
4672,
3536,
1986,
6382,
1363,
434,
326,
12504,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
We return nonzero if there are regressions compared to the last run. | The number of unexpected results (0 == success) | def run(self, result_summary): """Run all our tests on all our test files. | 9ba715cbbe2db6c1784f8f23f93d63ed616e9784 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/9ba715cbbe2db6c1784f8f23f93d63ed616e9784/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
563,
67,
7687,
4672,
3536,
1997,
777,
3134,
7434,
603,
777,
3134,
1842,
1390,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
563,
67,
7687,
4672,
3536,
1997,
777,
3134,
7434,
603,
777,
3134,
1842,
1390,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.setFn(x, y, songs) | self.setFn(x, y, songs, drag_result) | def OnData(self, x, y, drag_result): # copy the data from the drag source to our data object songs = None if self.GetData(): songs = self.data.songs | 9ebc03dc54c47337c3ba2168f0dee12df16600f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/9ebc03dc54c47337c3ba2168f0dee12df16600f4/pykaraoke.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
751,
12,
2890,
16,
619,
16,
677,
16,
8823,
67,
2088,
4672,
468,
1610,
326,
501,
628,
326,
8823,
1084,
358,
3134,
501,
733,
272,
7260,
273,
599,
309,
365,
18,
967,
751,
13332,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
751,
12,
2890,
16,
619,
16,
677,
16,
8823,
67,
2088,
4672,
468,
1610,
326,
501,
628,
326,
8823,
1084,
358,
3134,
501,
733,
272,
7260,
273,
599,
309,
365,
18,
967,
751,
13332,
2... |
self.DEBUG(DBG_CLIENT,'Disconnect detected','stop') | self.DEBUG(self.DBG,'Disconnect detected','stop') | def disconnected(self): self.DEBUG(DBG_CLIENT,'Disconnect detected','stop') self.disconnect_handlers.reverse() for i in self.disconnect_handlers: i() self.disconnect_handlers.reverse() | 4a0dc64c62f94f1d1cd8b5cb92c2b58deabd4bfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/4a0dc64c62f94f1d1cd8b5cb92c2b58deabd4bfb/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17853,
12,
2890,
4672,
365,
18,
9394,
12,
2890,
18,
2290,
43,
11189,
18895,
8316,
17023,
5681,
6134,
365,
18,
20177,
67,
11046,
18,
9845,
1435,
364,
277,
316,
365,
18,
20177,
67,
11046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17853,
12,
2890,
4672,
365,
18,
9394,
12,
2890,
18,
2290,
43,
11189,
18895,
8316,
17023,
5681,
6134,
365,
18,
20177,
67,
11046,
18,
9845,
1435,
364,
277,
316,
365,
18,
20177,
67,
11046,
... |
def button_upgrade_cancel(self, cr, uid, ids, context={}): | def button_upgrade_cancel(self, cr, uid, ids, context=None): | def button_upgrade_cancel(self, cr, uid, ids, context={}): self.write(cr, uid, ids, {'state': 'installed'}) return True | d4c36de1e04f70d7a0ae8479f77b8a6d38aed4c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d4c36de1e04f70d7a0ae8479f77b8a6d38aed4c1/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
15097,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
4278,
296,
13435,
11,
6792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
15097,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
4278,
296,
13435,
11,
6792,
... |
"vlc", '--quiet', '--nostats', '--intf', 'dummy', | "vlc", '--quiet', '--nostats', '--intf', 'dummy', | def __init__(self): logging.info("Initializing VLC") plugin_dir = os.path.join(resources.appRoot(), 'vlc-plugins') self.exc = VLCException() | 2934e8b32a8c6a4773091ef2abaa54b3e4f5615d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/2934e8b32a8c6a4773091ef2abaa54b3e4f5615d/vlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2907,
18,
1376,
2932,
29782,
776,
13394,
7923,
1909,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
4683,
18,
2910,
2375,
9334,
296,
27362,
17,
8057,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
2907,
18,
1376,
2932,
29782,
776,
13394,
7923,
1909,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
4683,
18,
2910,
2375,
9334,
296,
27362,
17,
8057,
6134,
... |
obj = model.get_value(iter, OBJ_COL) retval = self.warningMessage(CONFIRM_RC_REMOVE % obj.getName()) if (retval == gtk.RESPONSE_NO): return rc_ptr = self.model_builder.getResourcesPtr() self.model_builder.removeReferences(obj) rc_ptr.removeChild(obj) | rc = model.get_value(iter, OBJ_COL) services = [] for service in self.model_builder.getServices(): if self.__on_rc_delete_recurse(rc, service): services.append(service) if len(services) == 0: retval = self.warningMessage(CONFIRM_RC_REMOVE % rc.getName()) if retval != gtk.RESPONSE_YES: return else: treemodel = self.... | def on_rc_delete(self, button): selection = self.treeview.get_selection() model,iter = selection.get_selected() obj = model.get_value(iter, OBJ_COL) retval = self.warningMessage(CONFIRM_RC_REMOVE % obj.getName()) if (retval == gtk.RESPONSE_NO): return rc_ptr = self.model_builder.getResourcesPtr() self.model_builder.rem... | b279737d99d53e3af22def5069ab42ffa5644260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/b279737d99d53e3af22def5069ab42ffa5644260/ConfigTabController.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1310,
67,
3733,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
938,
16,
2165,
273,
4421,
18,
588,
67,
8109,
1435,
4519,
273,
938,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1310,
67,
3733,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
938,
16,
2165,
273,
4421,
18,
588,
67,
8109,
1435,
4519,
273,
938,
18,
58... |
name = (cls.CARD_PATH_PREFIX+'/' if on_card else 'books/') + name | name = (cls.CARD_PATH_PREFIX+'/' if on_card else 'database/media/books/') + name | def add_books_to_metadata(cls, locations, metadata, booklists): metadata = iter(metadata) for location in locations: info = metadata.next() path = location[0] on_card = 1 if location[3] else 0 name = path.rpartition('/')[2] name = (cls.CARD_PATH_PREFIX+'/' if on_card else 'books/') + name booklists[on_card].add_book(in... | aebce8ac6f430255368ac3f0f14b4435b1910158 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/aebce8ac6f430255368ac3f0f14b4435b1910158/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12567,
67,
869,
67,
4165,
12,
6429,
16,
7838,
16,
1982,
16,
6978,
9772,
4672,
1982,
273,
1400,
12,
4165,
13,
364,
2117,
316,
7838,
30,
1123,
273,
1982,
18,
4285,
1435,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12567,
67,
869,
67,
4165,
12,
6429,
16,
7838,
16,
1982,
16,
6978,
9772,
4672,
1982,
273,
1400,
12,
4165,
13,
364,
2117,
316,
7838,
30,
1123,
273,
1982,
18,
4285,
1435,
589,
... |
None, [cty.POINTER(FL_IMAGE)], | None, [cty.POINTER(FL_IMAGE)], | def flimage_add_text_struct(pImage, p2): """ flimage_add_text_struct(pImage, p2) -> num. """ retval = _flimage_add_text_struct(pImage, p2) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
955,
67,
1697,
12,
84,
2040,
16,
293,
22,
4672,
3536,
1183,
2730,
67,
1289,
67,
955,
67,
1697,
12,
84,
2040,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
522... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
955,
67,
1697,
12,
84,
2040,
16,
293,
22,
4672,
3536,
1183,
2730,
67,
1289,
67,
955,
67,
1697,
12,
84,
2040,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
522... |
self.logger.info("tuple: Don't know how to handle %s" % item) | self.logger.debug("tuple: Don't know how to handle %s" % item) | def _convert_tuple(self, tuple_node, id, name): list = [] self.logger.info("tuple: tuple_node = %s, id = %s, name = %s" % (tuple_node, id, name)) for item in tuple_node: if isinstance(item, dict): if "ref" in item: list.append(self._convert_ref(item["ref"], name + ".tuple")) elif "object" in item: list.append(self._con... | f640b15368e4d3037d291c060bcc1380e557323f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/f640b15368e4d3037d291c060bcc1380e557323f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6283,
67,
8052,
12,
2890,
16,
3193,
67,
2159,
16,
612,
16,
508,
4672,
666,
273,
5378,
365,
18,
4901,
18,
1376,
2932,
8052,
30,
3193,
67,
2159,
273,
738,
87,
16,
612,
273,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6283,
67,
8052,
12,
2890,
16,
3193,
67,
2159,
16,
612,
16,
508,
4672,
666,
273,
5378,
365,
18,
4901,
18,
1376,
2932,
8052,
30,
3193,
67,
2159,
273,
738,
87,
16,
612,
273,
738,
... |
self.socket = None | self.handle_close() | def handle_write(self): if not self.writable(): return | 3ba78ab154465b2ff0620e0ded429951a6f040f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/3ba78ab154465b2ff0620e0ded429951a6f040f0/ipc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2626,
12,
2890,
4672,
309,
486,
365,
18,
15699,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2626,
12,
2890,
4672,
309,
486,
365,
18,
15699,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
request.lookup_path = os.path.join(request.lookup_path, path) | request.lookup_path += '/' + path | def getChild(self, path, request): if hasattr(request, "lookup_path"): request.lookup_path = os.path.join(request.lookup_path, path) else: request.lookup_path = path return self | 5fd86287615e82a063c044144187e11548078415 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12915/5fd86287615e82a063c044144187e11548078415/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8154,
12,
2890,
16,
589,
16,
590,
4672,
309,
3859,
12,
2293,
16,
315,
8664,
67,
803,
6,
4672,
590,
18,
8664,
67,
803,
1011,
2023,
397,
589,
469,
30,
590,
18,
8664,
67,
803,
273,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8154,
12,
2890,
16,
589,
16,
590,
4672,
309,
3859,
12,
2293,
16,
315,
8664,
67,
803,
6,
4672,
590,
18,
8664,
67,
803,
1011,
2023,
397,
589,
469,
30,
590,
18,
8664,
67,
803,
273,
58... |
return S_ERROR('Pilot version does not match the production version %s:%s' % \ (resourceDict['DIRACVersion'],self.pilotVersion) ) | return S_ERROR( 'Pilot version does not match the production version %s:%s' % \ ( resourceDict['DIRACVersion'], self.pilotVersion ) ) | def selectJob(self, resourceDescription): """ Main job selection function to find the highest priority job matching the resource capacity """ | 059c4744ef6766e0575a5cd4d6f09d892a66a7df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/059c4744ef6766e0575a5cd4d6f09d892a66a7df/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
3291,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
3291,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
target = '/youraccount/login' + \ | target = CFG_SITE_SECURE_URL + '/youraccount/login' + \ | def __call__(self, req, form): argd = wash_search_urlargd(form) argd['recid'] = self.recid | 156f1126baefb5a93c95634f9323c393ab54d495 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/156f1126baefb5a93c95634f9323c393ab54d495/websearch_webinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
1501,
72,
273,
341,
961,
67,
3072,
67,
718,
3175,
72,
12,
687,
13,
1501,
72,
3292,
3927,
350,
3546,
273,
365,
18,
3927,
350,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
1501,
72,
273,
341,
961,
67,
3072,
67,
718,
3175,
72,
12,
687,
13,
1501,
72,
3292,
3927,
350,
3546,
273,
365,
18,
3927,
350,
2,
... |
self.client.set_list(defs.PANEL, defs.APPLET_LIST, awn.CONFIG_LIST_STRING, applets_list) self.client.set_list(defs.PANEL, defs.UA_LIST, awn.CONFIG_LIST_STRING, ua_list) | self.client.set_list(defs.PANEL, defs.APPLET_LIST, applets_list) self.client.set_list(defs.PANEL, defs.UA_LIST, ua_list) | def applet_reorder(self, model, path, iterator, data=None): cur_index = model.get_path(iterator)[0] cur_uri = model.get_value (iterator, 1) cur_uid = model.get_value (iterator, 2) cur_s = "%s::%s" % (cur_uri, cur_uid) l = {} it = model.get_iter_first () while (it): path = model.get_value (it, 1) uid = model.get_value (... | 6e5ef9d2ff04626633394808ed3d5531bb4809af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/6e5ef9d2ff04626633394808ed3d5531bb4809af/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21853,
67,
266,
1019,
12,
2890,
16,
938,
16,
589,
16,
2775,
16,
501,
33,
7036,
4672,
662,
67,
1615,
273,
938,
18,
588,
67,
803,
12,
9838,
25146,
20,
65,
662,
67,
1650,
273,
938,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21853,
67,
266,
1019,
12,
2890,
16,
938,
16,
589,
16,
2775,
16,
501,
33,
7036,
4672,
662,
67,
1615,
273,
938,
18,
588,
67,
803,
12,
9838,
25146,
20,
65,
662,
67,
1650,
273,
938,
18... |
self.adjustContent(parent, True) | self.adjustContent(videoWindow, True) | def exitFullScreen(self, parent): if self.isVisible(): self.adjustContent(parent, True) self.fsButton.setImage_(NSImage.imageNamed_('fs-button-enterfullscreen')) self.fsButton.setAlternateImage_(NSImage.imageNamed_('fs-button-enterfullscreen-alt')) | 0c83227b10207b99cca235dd965b652346d54092 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/0c83227b10207b99cca235dd965b652346d54092/VideoDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
5080,
7956,
12,
2890,
16,
982,
4672,
309,
365,
18,
291,
6207,
13332,
365,
18,
13362,
1350,
12,
9115,
3829,
16,
1053,
13,
365,
18,
2556,
3616,
18,
542,
2040,
67,
12,
3156,
2040,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
5080,
7956,
12,
2890,
16,
982,
4672,
309,
365,
18,
291,
6207,
13332,
365,
18,
13362,
1350,
12,
9115,
3829,
16,
1053,
13,
365,
18,
2556,
3616,
18,
542,
2040,
67,
12,
3156,
2040,
... |
vals.update(self.default_get(cr, user, default, context)) | default_values = self.default_get(cr, user, default, context) for dv in default_values: if dv in self._columns and self._columns[dv]._type == 'many2many': if default_values[dv] and isinstance(default_values[dv][0], (int, long)): default_values[dv] = [(6, 0, default_values[dv])] vals.update(default_values) | def create(self, cr, user, vals, context=None): """ create(cr, user, vals, context) -> int cr = database cursor user = user id vals = dictionary of the form {'field_name':field_value, ...} """ if not context: context = {} self.pool.get('ir.model.access').check(cr, user, self._name, 'create') | 99d7959dff64dfbc75ff923b4d9acfdf11d3e95d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/99d7959dff64dfbc75ff923b4d9acfdf11d3e95d/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
729,
16,
5773,
16,
819,
33,
7036,
4672,
3536,
752,
12,
3353,
16,
729,
16,
5773,
16,
819,
13,
317,
509,
4422,
273,
2063,
3347,
729,
273,
729,
612,
5773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
729,
16,
5773,
16,
819,
33,
7036,
4672,
3536,
752,
12,
3353,
16,
729,
16,
5773,
16,
819,
13,
317,
509,
4422,
273,
2063,
3347,
729,
273,
729,
612,
5773,
... |
output = formatter(step, None, None, u'error in foo/bar.c') self.assertEqual(Markup, type(output)) self.assertEqual('error in foo/bar.c', output) | output = formatter(step, None, None, u'error in foo/bar.c: bad') self.assertEqual(Markup, type(output)) self.assertEqual('error in foo/bar.c: bad', output) | def _raise(): raise TracError('No such node') | f007fbc09fd17b77d9c1e19fa05050220a78136c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/f007fbc09fd17b77d9c1e19fa05050220a78136c/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11628,
13332,
1002,
2197,
71,
668,
2668,
2279,
4123,
756,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11628,
13332,
1002,
2197,
71,
668,
2668,
2279,
4123,
756,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
heb_maj_tenis_distance=fields.get('heb_maj_tenis_distance', 0),\ heb_maj_nautisme_distance=fields.get('heb_maj_nautisme_distance', 0),\ heb_maj_sky_distance=fields.get('heb_maj_sky_distance', 0),\ heb_maj_rando_distance=fields.get('heb_maj_rando_distance', 0),\ heb_maj_piscine_distance=fields.get('heb_maj_piscine_dista... | heb_maj_animal=fields.get('heb_maj_animal'),\ heb_maj_tenis_distance=fields.get('heb_maj_tenis_distance'),\ heb_maj_nautisme_distance=fields.get('heb_maj_nautisme_distance'),\ heb_maj_sky_distance=fields.get('heb_maj_sky_distance'),\ heb_maj_rando_distance=fields.get('heb_maj_rando_distance'),\ heb_maj_piscine_distance... | def insertHebergementMaj(self): """ ajoute les infos de mise à jour de l'hébergement par le proprio table habergement_maj met dans table hebergement le champ heb_maj_info_etat à 'En attente de confirmation' """ fields = self.context.REQUEST chargeFk=fields.get('heb_maj_charge_fk') hebPk=fields.get('heb_maj_hebpk') hebN... | 4f3bd5894eda77c0f8639d1e843523b6d6837e85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10188/4f3bd5894eda77c0f8639d1e843523b6d6837e85/hebergement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
5256,
31317,
820,
49,
4365,
12,
2890,
4672,
3536,
24787,
2571,
18022,
10626,
443,
312,
784,
225,
132,
259,
525,
477,
443,
328,
11,
76,
132,
107,
31317,
820,
779,
884,
2270,
566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
5256,
31317,
820,
49,
4365,
12,
2890,
4672,
3536,
24787,
2571,
18022,
10626,
443,
312,
784,
225,
132,
259,
525,
477,
443,
328,
11,
76,
132,
107,
31317,
820,
779,
884,
2270,
566,
... |
for child in node: | for child in list(node): | def combineToCommaExpression(node, level): if node == None or node.type != "block": return node for child in node: if child.type != "semicolon": return node comma = Node(node.tokenizer, "comma") for child in node: # Ignore empty semicolons if hasattr(child, "expression"): comma.append(child.expression) semicolon = ... | 61e9ba307e8bb4d59f0c98365fbdd8ae8f05a09e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/61e9ba307e8bb4d59f0c98365fbdd8ae8f05a09e/BlockReducer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
774,
15594,
2300,
12,
2159,
16,
1801,
4672,
309,
756,
422,
599,
578,
756,
18,
723,
480,
315,
2629,
6877,
327,
756,
225,
364,
1151,
316,
666,
12,
2159,
4672,
309,
1151,
18,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
774,
15594,
2300,
12,
2159,
16,
1801,
4672,
309,
756,
422,
599,
578,
756,
18,
723,
480,
315,
2629,
6877,
327,
756,
225,
364,
1151,
316,
666,
12,
2159,
4672,
309,
1151,
18,
723,
... |
self.set_guest_property("/UFO/Com/HostToGuest/Shares/Remove/" + str(usb['name']), str(usb['path'])) | self.set_guest_property("/UFO/Com/HostToGuest/Shares/Remove/" + str(usb['name']), str(usb['name'])) self.set_guest_property("/UFO/Com/HostToGuest/Shares/ReadyToMount/" + str(usb['name']), "") | def attach_usb(self, usb, attach=True): if attach: logging.debug("Attaching usb device: " + str(usb['path']) + ", " + str(usb['name'])) self.add_shared_folder(usb['name'], usb['path'], writable = True) self.set_guest_property("/UFO/Com/HostToGuest/Shares/ReadyToMount/" + str(usb['name']), str(usb['name'])) else: loggin... | 7b9c657353a31bb4e3af0dce6794a8eba300f156 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/7b9c657353a31bb4e3af0dce6794a8eba300f156/ufovboxapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3306,
67,
25525,
12,
2890,
16,
31261,
16,
3306,
33,
5510,
4672,
309,
3306,
30,
2907,
18,
4148,
2932,
4761,
310,
31261,
2346,
30,
315,
397,
609,
12,
25525,
3292,
803,
19486,
397,
3104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3306,
67,
25525,
12,
2890,
16,
31261,
16,
3306,
33,
5510,
4672,
309,
3306,
30,
2907,
18,
4148,
2932,
4761,
310,
31261,
2346,
30,
315,
397,
609,
12,
25525,
3292,
803,
19486,
397,
3104,
... |
assert_true(msg[1].startswith('%s timeout 1s active.' % type), msg[1]) | assert_true(msg[1].startswith('%s timeout 1 second active.' % type), msg[1]) | def _verify_debug_msg(self, msg, type='Test'): assert_equals(msg[0], 'DEBUG') assert_true(msg[1].startswith('%s timeout 1s active.' % type), msg[1]) assert_true(msg[1].endswith('seconds left.'), msg[1]) | 62023eb1a3ffca8bc1d94d7a732da33a5e9fc587 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/62023eb1a3ffca8bc1d94d7a732da33a5e9fc587/test_timeouts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
67,
4148,
67,
3576,
12,
2890,
16,
1234,
16,
618,
2218,
4709,
11,
4672,
1815,
67,
14963,
12,
3576,
63,
20,
6487,
296,
9394,
6134,
1815,
67,
3767,
12,
3576,
63,
21,
8009,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
67,
4148,
67,
3576,
12,
2890,
16,
1234,
16,
618,
2218,
4709,
11,
4672,
1815,
67,
14963,
12,
3576,
63,
20,
6487,
296,
9394,
6134,
1815,
67,
3767,
12,
3576,
63,
21,
8009,
17... |
return self.weboob.do(self.complete, self.options.count, self.selected_fields, function, *args, **kwargs) | return self.weboob.do(self._complete, self.options.count, self.selected_fields, function, *args, **kwargs) | def do(self, function, *args, **kwargs): """ Call Weboob.do(), after having filled the yielded object, if selected fields are given by user. """ | 65bcd201e0127f3fd08f7d38118da9f818e37724 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/65bcd201e0127f3fd08f7d38118da9f818e37724/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
445,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
3049,
1660,
1075,
947,
18,
2896,
9334,
1839,
7999,
6300,
326,
30097,
733,
16,
309,
3170,
1466,
854,
864,
635,
729,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
445,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
3049,
1660,
1075,
947,
18,
2896,
9334,
1839,
7999,
6300,
326,
30097,
733,
16,
309,
3170,
1466,
854,
864,
635,
729,
18... |
memo = set() | self.loops = set() | def compute(self, graphs): dotgen = DotGen('trace') memo = set() for graph in graphs: graph.generate(dotgen, memo) self.source = dotgen.generate(target=None) | 98b373418825c1c43a370641a9a1f9dc1099bc56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/98b373418825c1c43a370641a9a1f9dc1099bc56/otherviewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
19422,
4672,
3928,
4507,
273,
17502,
7642,
2668,
5129,
6134,
365,
18,
383,
4473,
273,
444,
1435,
364,
2667,
316,
19422,
30,
2667,
18,
7163,
12,
9811,
4507,
16,
11063,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
19422,
4672,
3928,
4507,
273,
17502,
7642,
2668,
5129,
6134,
365,
18,
383,
4473,
273,
444,
1435,
364,
2667,
316,
19422,
30,
2667,
18,
7163,
12,
9811,
4507,
16,
11063,... |
self.assertEqual(fdata.encode(), open(outfile, "rb").read()) | with open(outfile, "rb") as f: self.assertEqual(fdata.encode(), f.read()) | def test_extract_all(self): with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: for fpath, fdata in SMALL_TEST_DATA: zipfp.writestr(fpath, fdata) | df64e4ebf884a9041c9514c1c88905dd4793c799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/df64e4ebf884a9041c9514c1c88905dd4793c799/test_zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8004,
67,
454,
12,
2890,
4672,
598,
18823,
18,
29394,
12,
16961,
19793,
22,
16,
315,
91,
3113,
18823,
18,
13951,
67,
31487,
5879,
13,
487,
3144,
7944,
30,
364,
13543,
16,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8004,
67,
454,
12,
2890,
4672,
598,
18823,
18,
29394,
12,
16961,
19793,
22,
16,
315,
91,
3113,
18823,
18,
13951,
67,
31487,
5879,
13,
487,
3144,
7944,
30,
364,
13543,
16,
284... |
return THECOLORS[colorname] | return THECOLORS[name] | def Color(colorname): """pygame.color.Color(colorname) -> RGBA Get RGB values from common color names The color name can be the name of a common english color, or a "web" style color in the form of 0xFF00FF. The english color names are defined by the standard 'rgb' colors for X11. With the hex color formatting you may... | 8ede8c1b28d9a76fe057757cefd9e84fc46838ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/8ede8c1b28d9a76fe057757cefd9e84fc46838ab/color.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5563,
12,
3266,
529,
4672,
3536,
2074,
13957,
18,
3266,
18,
2957,
12,
3266,
529,
13,
317,
23308,
968,
11510,
924,
628,
2975,
2036,
1257,
225,
1021,
2036,
508,
848,
506,
326,
508,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5563,
12,
3266,
529,
4672,
3536,
2074,
13957,
18,
3266,
18,
2957,
12,
3266,
529,
13,
317,
23308,
968,
11510,
924,
628,
2975,
2036,
1257,
225,
1021,
2036,
508,
848,
506,
326,
508,
434,
... |
""" | """ | def flimage_enable_fits(): """ flimage_enable_fits() """ _flimage_enable_fits() | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
7589,
67,
18352,
13332,
3536,
1183,
2730,
67,
7589,
67,
18352,
1435,
3536,
225,
389,
2242,
2730,
67,
7589,
67,
18352,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1183,
2730,
67,
7589,
67,
18352,
13332,
3536,
1183,
2730,
67,
7589,
67,
18352,
1435,
3536,
225,
389,
2242,
2730,
67,
7589,
67,
18352,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not pagetitle: output(u"ERROR: %s - ignoring impossible link to %s:%s" % (pageLink, lang, pagetitle)) else: site = insite.getSite(code = lang) try: result[site] = Page(site, pagetitle, insite = insite) except Error: output( | site = insite.getSite(code = lang) try: result[site] = Page(site, pagetitle, insite = insite) except Error: output( | def getLanguageLinks(text, insite = None, pageLink = "[[]]"): """ Return a dict of interlanguage links found in text. Dict uses language codes as keys and Page objects as values. Do not call this routine directly, use Page.interwiki() method instead. """ if insite == None: insite = getSite() result = {} # Ignore inte... | 4b0fa50e7a25e6989b2a8ba5ac8b953b6b689b7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/4b0fa50e7a25e6989b2a8ba5ac8b953b6b689b7d/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12898,
7100,
12,
955,
16,
2763,
1137,
273,
599,
16,
1363,
2098,
273,
5158,
8526,
4279,
4672,
3536,
2000,
279,
2065,
434,
1554,
4923,
4716,
1392,
316,
977,
18,
225,
9696,
4692,
2653,
6198... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12898,
7100,
12,
955,
16,
2763,
1137,
273,
599,
16,
1363,
2098,
273,
5158,
8526,
4279,
4672,
3536,
2000,
279,
2065,
434,
1554,
4923,
4716,
1392,
316,
977,
18,
225,
9696,
4692,
2653,
6198... |
if type(abf) not in (TupleType,ListType): abf = abf, abf | def _setRange(self, dataSeries): """Set minimum and maximum axis values. | 1b7194c41890192c23f5a84857697a0866bc9c57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/1b7194c41890192c23f5a84857697a0866bc9c57/axes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
2655,
12,
2890,
16,
501,
6485,
4672,
3536,
694,
5224,
471,
4207,
2654,
924,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
2655,
12,
2890,
16,
501,
6485,
4672,
3536,
694,
5224,
471,
4207,
2654,
924,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
mail_recipients=options.mail_recipients, | mail_recipients=mail_recipients, | def main(): parser = OptionParser(usage="%prog [OPTIONS]") parser.add_option("-b", "--baseurl", help="baseurl of wiki") parser.add_option('-l', '--logfile', help='log output to LOGFILE') parser.add_option('-f', '--from-email', help='From: email address for error mails', ) parser.add_option('-r', '--mail-recipients', he... | 50160b48b641d72a4bf75095f60ef0adc3f1a38a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/50160b48b641d72a4bf75095f60ef0adc3f1a38a/mw-serve-stresser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
12,
9167,
11613,
14654,
306,
12422,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
70,
3113,
5238,
1969,
718,
3113,
2809,
1546,
1969,
718,
434,
9050,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
12,
9167,
11613,
14654,
306,
12422,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
70,
3113,
5238,
1969,
718,
3113,
2809,
1546,
1969,
718,
434,
9050,
7923,
... |
pos=wxPoint(8, 8), size=wxSize(88, 13), style=0) self.staticText9 = wxStaticText(id=wxID_STCSTYLEEDITDLGSTATICTEXT9, | pos=wx.Point(8, 8), size=wx.Size(88, 13), style=0) self.staticText9 = wx.StaticText(id=wxID_STCSTYLEEDITDLGSTATICTEXT9, | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
self.dataLength = newlength | def truncateLength(self, newlength): ''' Truncate any DataRegions and set our new dataLength. ''' | 1483a8e6433bff5873c87a428a6296964797ae44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10739/1483a8e6433bff5873c87a428a6296964797ae44/inodechange.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
1782,
12,
2890,
16,
394,
2469,
4672,
9163,
25869,
1281,
1910,
17344,
471,
444,
3134,
394,
27972,
18,
9163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10310,
1782,
12,
2890,
16,
394,
2469,
4672,
9163,
25869,
1281,
1910,
17344,
471,
444,
3134,
394,
27972,
18,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
s.sendto(data, (mygroup, MYPORT)) | s.sendto(data + '\0', (group_ip.ip_ext_full, MYPORT)) | def sender(flag): s = socket(AF_INET, SOCK_DGRAM) if flag == '-b': s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) mygroup = '<broadcast>' else: mygroup = MYGROUP ttl = struct.pack('b', 1) # Time-to-live s.setsockopt(IPPROTO_IP, IP_MULTICAST_TTL, ttl) while 1: data = repr(time.time()) | 6493d788f0e6b96cd7d2ed70e8e39f8b8b7ec8d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/6493d788f0e6b96cd7d2ed70e8e39f8b8b7ec8d8/mcast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5793,
12,
6420,
4672,
272,
273,
2987,
12,
6799,
67,
18819,
16,
20834,
67,
40,
15370,
13,
309,
2982,
422,
2400,
70,
4278,
272,
18,
4424,
27844,
12,
19815,
67,
25699,
16,
7460,
67,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5793,
12,
6420,
4672,
272,
273,
2987,
12,
6799,
67,
18819,
16,
20834,
67,
40,
15370,
13,
309,
2982,
422,
2400,
70,
4278,
272,
18,
4424,
27844,
12,
19815,
67,
25699,
16,
7460,
67,
38,
... |
if haveCcx or isInterfaceType(member.realtype): | if memberNeedsCallee(member): | def writeTraceableQuickStub(f, customMethodCalls, member, stubName): assert member.traceable traceInfo = { 'type': getTraceInfoReturnType(member.realtype) + "_FAIL", 'params': ["CONTEXT", "THIS"] } haveCcx = (member.kind == 'method') and anyParamRequiresCcx(member) customMethodCall = customMethodCalls.get(stubName, ... | 3268e104a5aa8f324e7a241e7bbb625d6fa6a338 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/3268e104a5aa8f324e7a241e7bbb625d6fa6a338/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3448,
429,
13663,
11974,
12,
74,
16,
1679,
1305,
10125,
16,
3140,
16,
7168,
461,
4672,
1815,
3140,
18,
5129,
429,
225,
2606,
966,
273,
288,
296,
723,
4278,
18698,
966,
9102,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3448,
429,
13663,
11974,
12,
74,
16,
1679,
1305,
10125,
16,
3140,
16,
7168,
461,
4672,
1815,
3140,
18,
5129,
429,
225,
2606,
966,
273,
288,
296,
723,
4278,
18698,
966,
9102,
12,
... |
account = account[choice - 1] | account = account[choice] | def get_or_create_account(name): try: # Look for an account we have cached account = username_mapping[name] except KeyError: # See if there's a previously imported account account = list(Account._query(Account.c.ob_account_name == name, data=True)) if len(account) == 1: account = account[0] elif len(account) > 1: print... | 62f6175b2f3b415d0092b3e54a589c151a6adc88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6723/62f6175b2f3b415d0092b3e54a589c151a6adc88/import_missing_comments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
280,
67,
2640,
67,
4631,
12,
529,
4672,
775,
30,
468,
10176,
364,
392,
2236,
732,
1240,
3472,
2236,
273,
2718,
67,
6770,
63,
529,
65,
1335,
4999,
30,
468,
2164,
309,
1915,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
280,
67,
2640,
67,
4631,
12,
529,
4672,
775,
30,
468,
10176,
364,
392,
2236,
732,
1240,
3472,
2236,
273,
2718,
67,
6770,
63,
529,
65,
1335,
4999,
30,
468,
2164,
309,
1915,
1... |
root = '.' | def makePackedApp(args): opts, args = getopt.getopt(args, 'r:m:h') root = '.' main = None for option, value in opts: if option == '-r': root = value elif option == '-m': main = value elif option == '-h': print __doc__ sys.exit(1) if not args: raise ArgumentError, "No destination app specified. Use:\npython MakeAppMF... | e777b5db5da3530edec2616362420998873b2f13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e777b5db5da3530edec2616362420998873b2f13/MakeAppMF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
4420,
329,
3371,
12,
1968,
4672,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
1968,
16,
296,
86,
30,
81,
30,
76,
6134,
225,
2774,
273,
599,
364,
1456,
16,
460,
316,
1500,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
4420,
329,
3371,
12,
1968,
4672,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
1968,
16,
296,
86,
30,
81,
30,
76,
6134,
225,
2774,
273,
599,
364,
1456,
16,
460,
316,
1500,
... | |
self.name_output_file = job.tag_base + "-" + str(time) + ".tgz" | self.name_output_file = job.tag_base + "-" + repr(time) + ".tgz" | def __init__(self, dag, job, cp, opts, time, ifo, p_nodes=[], type="ht", variety="fg"): | 619da594ba239d96b26f2677c6938af05d30c7d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/619da594ba239d96b26f2677c6938af05d30c7d5/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
813,
16,
21479,
16,
293,
67,
4690,
22850,
6487,
618,
1546,
647,
3113,
1394,
14369,
1546,
2137,
6,
4672,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
813,
16,
21479,
16,
293,
67,
4690,
22850,
6487,
618,
1546,
647,
3113,
1394,
14369,
1546,
2137,
6,
4672,
2,
-100,... |
self.prefixlen = prefixlen self.netmask = self._ip_int_from_prefix(self.prefixlen) | self._prefixlen = prefixlen self.netmask = self._ip_int_from_prefix(self._prefixlen) | def set_prefix(self, prefixlen): """Change the prefix length. | 40b07eb447109d6e300602cf20ea2a475f9a4962 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4528/40b07eb447109d6e300602cf20ea2a475f9a4962/ipaddr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3239,
12,
2890,
16,
1633,
1897,
4672,
3536,
3043,
326,
1633,
769,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3239,
12,
2890,
16,
1633,
1897,
4672,
3536,
3043,
326,
1633,
769,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.length = len(data) | def __init__(self, data=None): if data is None : data = {} self._data = data self.length = len(data) | c8ae5ffbca873780c4e78ef8f80593471370b673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/c8ae5ffbca873780c4e78ef8f80593471370b673/ZDOM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
33,
7036,
4672,
309,
501,
353,
599,
294,
501,
273,
2618,
365,
6315,
892,
273,
501,
365,
18,
2469,
273,
562,
12,
892,
13,
2,
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,
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,
501,
33,
7036,
4672,
309,
501,
353,
599,
294,
501,
273,
2618,
365,
6315,
892,
273,
501,
365,
18,
2469,
273,
562,
12,
892,
13,
2,
-100,
-100,
-100,
-100... | |
if len(v)>200: r+="<too big for debug>" | if len(v)>2000: r += (str(dict[name])[:2000] + "...") | def traceFunctionCall(frame): """ return a string that shows the call frame with calling arguments. e.g. foo(x=234, y=135) """ f = frame co = f.f_code dict = f.f_locals n = co.co_argcount if co.co_flags & 4: n = n+1 if co.co_flags & 8: n = n+1 r='' if dict.has_key('self'): r = '%s.'%(dict['self'].__class__.__name__, ) ... | 99db9e480eecd541b880b633d0378df121bc8553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/99db9e480eecd541b880b633d0378df121bc8553/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
2083,
1477,
12,
3789,
4672,
3536,
327,
279,
533,
716,
17975,
326,
745,
2623,
598,
4440,
1775,
18,
425,
18,
75,
18,
8431,
12,
92,
33,
17959,
16,
677,
33,
26612,
13,
3536,
284,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
2083,
1477,
12,
3789,
4672,
3536,
327,
279,
533,
716,
17975,
326,
745,
2623,
598,
4440,
1775,
18,
425,
18,
75,
18,
8431,
12,
92,
33,
17959,
16,
677,
33,
26612,
13,
3536,
284,
2... |
print >>stderr, path, self.base_path | def __call__(self, environ, start_response): from sys import stderr path = environ['SCRIPT_NAME'] + environ.get('PATH_INFO', '') environ['PATH_INFO'] = path[len(self.base_path):] environ['SCRIPT_NAME'] = self.base_path print >>stderr, path, self.base_path return self.application(environ, start_response) | b683d8c35d3aaef739d57bad1b6334fd3515d99b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/b683d8c35d3aaef739d57bad1b6334fd3515d99b/standalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
628,
2589,
1930,
4514,
589,
273,
5473,
3292,
10885,
67,
1985,
3546,
397,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
28707,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
628,
2589,
1930,
4514,
589,
273,
5473,
3292,
10885,
67,
1985,
3546,
397,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
28707,
... | |
classifier.learn(msg.asTokens(), isSpam) | classifier.learn(msg.tokenize(), isSpam) | def Train(self, classifier, isSpam): """Train folder as spam/ham.""" num_trained = 0 for msg in self: if msg.GetTrained() == (not isSpam): msg = msg.get_full_message() if msg.could_not_retrieve: # Something went wrong, and we couldn't even get # an invalid message, so just skip this one. # Annoyingly, we'll try to do i... | 2feb9c05e0e24d96e645e013a651266e1deac990 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/2feb9c05e0e24d96e645e013a651266e1deac990/sb_imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2197,
267,
12,
2890,
16,
14622,
16,
353,
3389,
301,
4672,
3536,
23419,
3009,
487,
24824,
19,
31698,
12123,
818,
67,
28008,
273,
374,
364,
1234,
316,
365,
30,
309,
1234,
18,
967,
1609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2197,
267,
12,
2890,
16,
14622,
16,
353,
3389,
301,
4672,
3536,
23419,
3009,
487,
24824,
19,
31698,
12123,
818,
67,
28008,
273,
374,
364,
1234,
316,
365,
30,
309,
1234,
18,
967,
1609,
... |
msg += self.table[tab]['query'] + '\n' + self.table[tab]['stream'] + '\n' | msg += str(self.table[tab]['query']) + '\n' msg += str(self.table[tab]['stream']) + '\n' | def insert(self): """Insert the object into the database""" if not self.curs: raise LIGOLwDBError, "Database connection not initalized" if len(self.table) == 0: raise LIGOLwDBError, 'attempt to insert empty table' for tab in self.table.keys(): # find and add any missing unique ids generate = [] missingcols = [k for k i... | 21484ce8c1ed58ba58e6d904d01b04c49f70bc59 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/21484ce8c1ed58ba58e6d904d01b04c49f70bc59/ldbd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
4672,
3536,
4600,
326,
733,
1368,
326,
2063,
8395,
309,
486,
365,
18,
2789,
30,
1002,
511,
3047,
1741,
91,
2290,
668,
16,
315,
4254,
1459,
486,
1208,
287,
1235,
6,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
4672,
3536,
4600,
326,
733,
1368,
326,
2063,
8395,
309,
486,
365,
18,
2789,
30,
1002,
511,
3047,
1741,
91,
2290,
668,
16,
315,
4254,
1459,
486,
1208,
287,
1235,
6,
309,... |
imm_ofs = self._check_imm_arg(ofs_length) | ofs_box = ConstInt(ofs_length) imm_ofs = self._check_imm_arg(ofs_box) | def emit_op_strlen(self, op, regalloc, fcond): l0, box = self._ensure_value_is_boxed(op.getarg(0), regalloc) boxes = [box] | 1757dc8da95cf01c3a66805a7c4c26b323094a8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/1757dc8da95cf01c3a66805a7c4c26b323094a8f/opassembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
67,
556,
67,
10835,
12,
2890,
16,
1061,
16,
960,
9853,
16,
284,
10013,
4672,
328,
20,
16,
3919,
273,
365,
6315,
15735,
67,
1132,
67,
291,
67,
2147,
329,
12,
556,
18,
588,
3175,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
67,
556,
67,
10835,
12,
2890,
16,
1061,
16,
960,
9853,
16,
284,
10013,
4672,
328,
20,
16,
3919,
273,
365,
6315,
15735,
67,
1132,
67,
291,
67,
2147,
329,
12,
556,
18,
588,
3175,... |
message = FGlobals.imageComparator.GetMessage( compareResults) | message = FGlobals.imageComparator.GetMessage(compareResults) | def __CompileResult(self, testProcedure, execution): if (execution == None): return # Prepare the result structure. result = FResult() history = self.__GetHistoryFilenames() try: currentIndex = history.index(execution.GetExecutionDir()) previousIndex = currentIndex + 1 if (previousIndex >= len(history)): previous = N... | 812120875bbb3b45be5fedb1694c62d50a11c572 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11176/812120875bbb3b45be5fedb1694c62d50a11c572/FTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9937,
1253,
12,
2890,
16,
1842,
17213,
16,
4588,
4672,
309,
261,
16414,
422,
599,
4672,
327,
225,
468,
7730,
326,
563,
3695,
18,
563,
273,
478,
1253,
1435,
225,
4927,
273,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9937,
1253,
12,
2890,
16,
1842,
17213,
16,
4588,
4672,
309,
261,
16414,
422,
599,
4672,
327,
225,
468,
7730,
326,
563,
3695,
18,
563,
273,
478,
1253,
1435,
225,
4927,
273,
365,
1... |
raise TestError('missing test type') | raise error.TestError('missing test type') | def run_once(self, test_type = None, duration = 300, threshold = None): if not test_type: raise TestError('missing test type') | f607067beab22848dc5150a3d6968a7f1a5b55e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/f607067beab22848dc5150a3d6968a7f1a5b55e7/monotonic_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
16,
1842,
67,
723,
273,
599,
16,
3734,
273,
11631,
16,
5573,
273,
599,
4672,
309,
486,
1842,
67,
723,
30,
1002,
7766,
668,
2668,
7337,
1842,
618,
6134,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
16,
1842,
67,
723,
273,
599,
16,
3734,
273,
11631,
16,
5573,
273,
599,
4672,
309,
486,
1842,
67,
723,
30,
1002,
7766,
668,
2668,
7337,
1842,
618,
6134,
2,
-... |
self.configpath = self.mapServ_inst.configpath | def __init__(self, MapServ_inst): self.tile_cache = lrucache.LRUCache(1000) self.mapServ_inst = MapServ_inst self.lock = Lock() self.configpath = self.mapServ_inst.configpath | e47ed51cf02f70923536b0b3bfe9e89d6c1e5fbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5373/e47ed51cf02f70923536b0b3bfe9e89d6c1e5fbf/tilesRepoFS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1635,
827,
90,
67,
8591,
4672,
365,
18,
15368,
67,
2493,
273,
23227,
2493,
18,
16018,
57,
1649,
12,
18088,
13,
365,
18,
1458,
827,
90,
67,
8591,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1635,
827,
90,
67,
8591,
4672,
365,
18,
15368,
67,
2493,
273,
23227,
2493,
18,
16018,
57,
1649,
12,
18088,
13,
365,
18,
1458,
827,
90,
67,
8591,
273,
1... | |
if source_text: | if source_text and self.de_widgets["Active person:Show sources"].get_active(): | def add_data_entry(self, obj): from QuestionDialog import ErrorDialog # First, get the data: if "," in self.de_widgets["NPName"].get_text(): surname, firstname = self.de_widgets["NPName"].get_text().split(",", 1) else: surname, firstname = self.de_widgets["NPName"].get_text(), "" surname = surname.strip() firstname = f... | 861e586e662758397fc67efe6d3dd2d7c6559c1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/861e586e662758397fc67efe6d3dd2d7c6559c1a/DataEntryGramplet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
67,
4099,
12,
2890,
16,
1081,
4672,
628,
18267,
6353,
1930,
1068,
6353,
468,
5783,
16,
336,
326,
501,
30,
309,
5753,
316,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
67,
4099,
12,
2890,
16,
1081,
4672,
628,
18267,
6353,
1930,
1068,
6353,
468,
5783,
16,
336,
326,
501,
30,
309,
5753,
316,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
... |
ti = xul.TreeItem(container="true", open="false", empty=empty) | ti = xul.TreeItem(container=u"true", open=u"false", empty=empty) | def loadNode(self, node): if not node.loaded: children = self.abstraction.getChildren(node.segments) if len(children): if node.alive: node.setAttr("open", "true") | 7da3fa6eca4f91d3ddc9934c29e68b5a407da7d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2333/7da3fa6eca4f91d3ddc9934c29e68b5a407da7d7/composite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
907,
12,
2890,
16,
756,
4672,
309,
486,
756,
18,
4230,
30,
2325,
273,
365,
18,
378,
701,
1128,
18,
588,
4212,
12,
2159,
18,
12838,
13,
309,
562,
12,
5906,
4672,
309,
756,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
907,
12,
2890,
16,
756,
4672,
309,
486,
756,
18,
4230,
30,
2325,
273,
365,
18,
378,
701,
1128,
18,
588,
4212,
12,
2159,
18,
12838,
13,
309,
562,
12,
5906,
4672,
309,
756,
18,
... |
"""Returns marks expired items as expired | """Expires items from the feed that are ready to expire. | def expire_items(self): """Returns marks expired items as expired """ for item in self.expiring_items(): item.expire() | 491f9046c8299b55fcdda89555b56d3ef598443a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/491f9046c8299b55fcdda89555b56d3ef598443a/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6930,
67,
3319,
12,
2890,
4672,
3536,
14449,
1516,
628,
326,
4746,
716,
854,
5695,
358,
6930,
18,
3536,
364,
761,
316,
365,
18,
2749,
11256,
67,
3319,
13332,
761,
18,
14070,
1435,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6930,
67,
3319,
12,
2890,
4672,
3536,
14449,
1516,
628,
326,
4746,
716,
854,
5695,
358,
6930,
18,
3536,
364,
761,
316,
365,
18,
2749,
11256,
67,
3319,
13332,
761,
18,
14070,
1435,
2,
-... |
newsock.setblocking(0) nss = SingleSocket(self, newsock, self.handler) self.single_sockets[newsock.fileno()] = nss self.poll.register(newsock, POLLIN) self.handler.external_connection_made(nss) | if len(self.single_sockets) < self.max_connects: newsock.setblocking(0) nss = SingleSocket(self, newsock, self.handler) self.single_sockets[newsock.fileno()] = nss self.poll.register(newsock, POLLIN) self.handler.external_connection_made(nss) else: print >> sys.stderr,"SocketHandler: too many connects" | def handle_events(self, events): for sock, event in events: #print >>sys.stderr,"SocketHandler: event on sock#",sock s = self.servers.get(sock) # socket.socket if s: if event & (POLLHUP | POLLERR) != 0: if DEBUG: print >> sys.stderr,"SocketHandler: Got event, close server socket" self.poll.unregister(s) if not is_ud... | b3c401239cbd71525dc17c8d0a89ce8da4cffd00 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/b3c401239cbd71525dc17c8d0a89ce8da4cffd00/SocketHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5989,
12,
2890,
16,
2641,
4672,
364,
7313,
16,
871,
316,
2641,
30,
468,
1188,
1671,
9499,
18,
11241,
10837,
4534,
1503,
30,
871,
603,
7313,
7,
3113,
15031,
272,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5989,
12,
2890,
16,
2641,
4672,
364,
7313,
16,
871,
316,
2641,
30,
468,
1188,
1671,
9499,
18,
11241,
10837,
4534,
1503,
30,
871,
603,
7313,
7,
3113,
15031,
272,
273,
365,
18,... |
headers = ["persistent/cPersistence.h", "zope/proxy/proxy.h"], scripts = [], | def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['build'] = MyBuilder self.cmdclass['build_ext'] = MyExtBuilder self.cmdclass['install_lib'] = MyLibInstaller | 0c3dd3abb8accd3ce6d20ebd50f9a4389b6332e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/0c3dd3abb8accd3ce6d20ebd50f9a4389b6332e5/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7039,
4672,
17547,
16186,
2738,
972,
12,
2890,
16,
380,
7039,
13,
365,
18,
4172,
1106,
3292,
3510,
3546,
273,
8005,
1263,
365,
18,
4172,
1106,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
7039,
4672,
17547,
16186,
2738,
972,
12,
2890,
16,
380,
7039,
13,
365,
18,
4172,
1106,
3292,
3510,
3546,
273,
8005,
1263,
365,
18,
4172,
1106,
3292,
... | |
flash(_(u'Unable to find system with id of %s' % id)) | flash(_(u'Unable to find system with id of %s' % system_id)) | def report_problem(self, system_id, recipe_id=None, problem_description=None): """ Allows users to report a problem with a system to the system's owner. """ try: system = System.by_id(system_id, identity.current.user) except InvalidRequestError: flash(_(u'Unable to find system with id of %s' % id)) redirect('/') try: r... | 81b8e91ca8881904bfeeab9ccb0f9ab905f13c6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/81b8e91ca8881904bfeeab9ccb0f9ab905f13c6f/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
18968,
12,
2890,
16,
2619,
67,
350,
16,
16100,
67,
350,
33,
7036,
16,
6199,
67,
3384,
33,
7036,
4672,
3536,
25619,
3677,
358,
2605,
279,
6199,
598,
279,
2619,
358,
326,
2619,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
18968,
12,
2890,
16,
2619,
67,
350,
16,
16100,
67,
350,
33,
7036,
16,
6199,
67,
3384,
33,
7036,
4672,
3536,
25619,
3677,
358,
2605,
279,
6199,
598,
279,
2619,
358,
326,
2619,... |
return self.delink_image(image, skipped_images, timestamp, admin, reason) | return self.delink_image(image, skipped_images, timestamp, admin, reason, replacement) | def delink_image(self, image, usage, timestamp, admin, reason, replacement = None): """ Performs the delink for image on usage. """ output(u'%s Usage of %s: %s' % (self, image, usage)) skipped_images = {} for domain, pages in usage.iteritems(): # Some code is needed to magically convert the domain # FIXME: Try some ot... | 6194fa5094e91c9492416d79f25db92534d0117d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/6194fa5094e91c9492416d79f25db92534d0117d/delinker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
754,
67,
2730,
12,
2890,
16,
1316,
16,
4084,
16,
2858,
16,
3981,
16,
3971,
16,
6060,
273,
599,
4672,
3536,
27391,
326,
1464,
754,
364,
1316,
603,
4084,
18,
3536,
876,
12,
89,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
754,
67,
2730,
12,
2890,
16,
1316,
16,
4084,
16,
2858,
16,
3981,
16,
3971,
16,
6060,
273,
599,
4672,
3536,
27391,
326,
1464,
754,
364,
1316,
603,
4084,
18,
3536,
876,
12,
89,
1... |
self.rep.delete() | if os.path.exists(self.rep.dbHome): self.rep.delete() else: self.rep.logger.warn("no repository at %s", self.rep.dbHome) | def tearDown(self): self.rep.close() self.rep.delete() | f758f244276d2447f6ceb4aff71e1c780d797278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f758f244276d2447f6ceb4aff71e1c780d797278/TestPerfWithRSS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
365,
18,
14462,
18,
4412,
1435,
365,
18,
14462,
18,
3733,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
365,
18,
14462,
18,
4412,
1435,
365,
18,
14462,
18,
3733,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
returns a standard tableau of length less than or equal to 2 with the size the same as the length of the list the standard tableau will be rectangular iff ``self`` is a complete Dyck word | Returns a standard tableau of length less than or equal to 2 with the size the same as the length of the list. The standard tableau will be rectangular iff ``self`` is a complete Dyck word. | def to_tableau(self): r""" returns a standard tableau of length less than or equal to 2 with the size the same as the length of the list the standard tableau will be rectangular iff ``self`` is a complete Dyck word | 7e1334f768dfbfef3881c254af52ae022484f92b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7e1334f768dfbfef3881c254af52ae022484f92b/dyck_word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
2121,
8377,
12,
2890,
4672,
436,
8395,
1135,
279,
4529,
1014,
8377,
434,
769,
5242,
2353,
578,
3959,
358,
576,
598,
326,
963,
326,
1967,
487,
326,
769,
434,
326,
666,
326,
452... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
2121,
8377,
12,
2890,
4672,
436,
8395,
1135,
279,
4529,
1014,
8377,
434,
769,
5242,
2353,
578,
3959,
358,
576,
598,
326,
963,
326,
1967,
487,
326,
769,
434,
326,
666,
326,
452... |
sage: c = c2 = 1 | sage: c == c2 calling __eq__ defined in Metaclass True | def metaclass(name, bases): """ Creates a new class in this metaclass INPUT:: - name: a string - bases: a tuple of classes EXAMPLES:: sage: from sage.misc.test_class_pickling import metaclass, bar sage: c = metaclass("foo2", (object, bar,)) constructing class sage: c <class 'sage.misc.test_class_pickling.foo2'> sage... | c91cf7cfa8df95b89a0ac34a7f63efd9ddc6cb69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c91cf7cfa8df95b89a0ac34a7f63efd9ddc6cb69/test_class_pickling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2191,
1106,
12,
529,
16,
8337,
4672,
3536,
10210,
279,
394,
667,
316,
333,
2191,
1106,
225,
12943,
2866,
300,
508,
30,
279,
533,
300,
8337,
30,
279,
3193,
434,
3318,
225,
5675,
8900,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2191,
1106,
12,
529,
16,
8337,
4672,
3536,
10210,
279,
394,
667,
316,
333,
2191,
1106,
225,
12943,
2866,
300,
508,
30,
279,
533,
300,
8337,
30,
279,
3193,
434,
3318,
225,
5675,
8900,
1... |
self._watching[inputSource][token] = (eventOn, eventOff) | self._watching[inputSource][token] = (name, eventOn, eventOff) | def watch(self, name, eventOn, eventOff, startState=False, inputSource=None): """ This returns a token; hold onto the token and call token.release() when you no longer want to watch for these events. | b8adfe5ae221cc5444ecfeefd4c5c35b187f102a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/b8adfe5ae221cc5444ecfeefd4c5c35b187f102a/InputState.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4267,
12,
2890,
16,
508,
16,
871,
1398,
16,
871,
7210,
16,
787,
1119,
33,
8381,
16,
810,
1830,
33,
7036,
4672,
3536,
1220,
1135,
279,
1147,
31,
6887,
10170,
326,
1147,
471,
745,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4267,
12,
2890,
16,
508,
16,
871,
1398,
16,
871,
7210,
16,
787,
1119,
33,
8381,
16,
810,
1830,
33,
7036,
4672,
3536,
1220,
1135,
279,
1147,
31,
6887,
10170,
326,
1147,
471,
745,
1147,
... |
title=_(u'Re&pository'), | title=_(u'&Repository'), | def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours | e2e5edc5328a2551e4a4bf44d29c2c6e9b2bec0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9228/e2e5edc5328a2551e4a4bf44d29c2c6e9b2bec0b/menus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
2,
-1... |
""+ _LegalCharsPatt +"+" | ""+ _LegalCharsPatt +"+?" | def OutputString(self, attrs=None): # Build up our result # result = [] RA = result.append | efbf99d99c92dbd0490f47c3313eb67ed7cc4ada /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/efbf99d99c92dbd0490f47c3313eb67ed7cc4ada/Cookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3633,
780,
12,
2890,
16,
3422,
33,
7036,
4672,
468,
3998,
731,
3134,
563,
468,
563,
273,
5378,
26880,
273,
563,
18,
6923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3633,
780,
12,
2890,
16,
3422,
33,
7036,
4672,
468,
3998,
731,
3134,
563,
468,
563,
273,
5378,
26880,
273,
563,
18,
6923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
propMeths = xtraProps[propName] try: catalogProperty(propName, propMeths[0], propMeths[1:], constrNames, propLst, constrLst) except: pass propLst.sort() constrLst.sort() | propMeths = xtraProps[propName] try: catalogProperty(propName, propMeths[0], propMeths[1:], constrNames, propLst, constrLst) except: pass propLst.sort() constrLst.sort() | def catalogProperty(name, methType, meths, constructors, propLst, constrLst): if constructors.has_key(name): constrLst.append(PropertyWrapper(name, methType, meths[0], meths[1])) else: propLst.append(PropertyWrapper(name, methType, meths[0], meths[1])) | 8b0da2d4ee646f83cba67daa03583602447efa8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8b0da2d4ee646f83cba67daa03583602447efa8e/RTTI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
1396,
12,
529,
16,
7917,
559,
16,
7917,
87,
16,
19874,
16,
2270,
28134,
16,
14472,
28134,
4672,
309,
19874,
18,
5332,
67,
856,
12,
529,
4672,
14472,
28134,
18,
6923,
12,
1396,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
1396,
12,
529,
16,
7917,
559,
16,
7917,
87,
16,
19874,
16,
2270,
28134,
16,
14472,
28134,
4672,
309,
19874,
18,
5332,
67,
856,
12,
529,
4672,
14472,
28134,
18,
6923,
12,
1396,
36... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.