rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
sage: Tab(rows = [[1,2],[3,4]]).list == [C(3),C(1),C(4),C(2)] True sage: Tab(columns = [[3,1],[4,2]]).list == [C(3),C(1),C(4),C(2)] | sage: Tab(rows = [[1,2],[3,4]])._list == [C(3),C(1),C(4),C(2)] True sage: Tab(columns = [[3,1],[4,2]])._list == [C(3),C(1),C(4),C(2)] | def positionsOfUnmatchedPlus(self, i): | 3cfa1b764cc6179c31a1090018aa7bfd52997657 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3cfa1b764cc6179c31a1090018aa7bfd52997657/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6865,
951,
984,
11073,
13207,
12,
2890,
16,
277,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6865,
951,
984,
11073,
13207,
12,
2890,
16,
277,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sage: V.M | sage: V.M | def get_magma_attribute(self, attrname): """ Return value of a given Magma attribute. This is like self`attrname in Magma. | 04917fdfb19c54d3ca3aa421b8fa4cc30257acef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/04917fdfb19c54d3ca3aa421b8fa4cc30257acef/magma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4527,
2540,
67,
4589,
12,
2890,
16,
1604,
529,
4672,
3536,
2000,
460,
434,
279,
864,
490,
9454,
1566,
18,
225,
1220,
353,
3007,
365,
68,
1747,
529,
316,
490,
9454,
18,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4527,
2540,
67,
4589,
12,
2890,
16,
1604,
529,
4672,
3536,
2000,
460,
434,
279,
864,
490,
9454,
1566,
18,
225,
1220,
353,
3007,
365,
68,
1747,
529,
316,
490,
9454,
18,
2,
-1... |
from ipdb import set_trace; set_trace() debug(title) | def main_upload(arguments): """Upload video to Youtube.""" usage = """Usage: %prog [OPTIONS] EMAIL PASSWORD FILE TITLE DESCRIPTION CATEGORY KEYWORDS Upload a video to youtube spliting it if necessary (uses ffmpeg).""" parser = optparse.OptionParser(usage, version=VERSION) parser.add_option('-c', '--get-categories', de... | 9a1ca1cfb5fe15c213d33feb4a0065af9208d38d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9246/9a1ca1cfb5fe15c213d33feb4a0065af9208d38d/youtube_upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
6327,
12,
7099,
4672,
3536,
4777,
6191,
358,
1624,
21105,
12123,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
12422,
65,
25229,
23446,
7527,
29406,
21736,
31524,
19281,
5311,
23287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
6327,
12,
7099,
4672,
3536,
4777,
6191,
358,
1624,
21105,
12123,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
12422,
65,
25229,
23446,
7527,
29406,
21736,
31524,
19281,
5311,
23287,... | |
self._schema = reader.readFromUrl(url) | self._schema = reader.loadFromURL(url) | def getSchema(self): """if schema is not defined, first look for a Schema class instance in parent Schema. Else if not defined resolve schemaLocation and create a new Schema class instance. """ if not self._schema: schema = self._parent()._parent() self._schema = schema.getIncludeSchemas(\ self.attributes['schemaLocat... | 1cd5c28cd8be85c8bc8e60e9d61f5b98f1008955 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/1cd5c28cd8be85c8bc8e60e9d61f5b98f1008955/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11088,
12,
2890,
4672,
3536,
430,
1963,
353,
486,
2553,
16,
1122,
2324,
364,
279,
4611,
667,
791,
316,
982,
4611,
18,
225,
16289,
309,
486,
2553,
2245,
1963,
2735,
471,
752,
279,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11088,
12,
2890,
4672,
3536,
430,
1963,
353,
486,
2553,
16,
1122,
2324,
364,
279,
4611,
667,
791,
316,
982,
4611,
18,
225,
16289,
309,
486,
2553,
2245,
1963,
2735,
471,
752,
279,
394,
... |
wikipedia.output(u"Request %s:%s" % (lang, path)) | wikipedia.output(u"Request %s:%s" % (site.lang, path)) | def GetData(params, site = None, verbose = False, useAPI = False, retryCount = 5, encodeTitle = True): """Get data from the query api, and convert it into a data object """ if site == None: site = wikipedia.getSite() for k,v in params.iteritems(): if not IsString(v): params[k] = unicode(v) params['format'] = 'json' ... | 3524e338086618d1dabcda0ee7578a46a28e59e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/3524e338086618d1dabcda0ee7578a46a28e59e3/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30837,
12,
2010,
16,
2834,
273,
599,
16,
3988,
273,
1083,
16,
999,
2557,
273,
1083,
16,
30084,
273,
1381,
16,
2017,
4247,
273,
1053,
4672,
3536,
967,
501,
628,
326,
843,
1536,
16,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30837,
12,
2010,
16,
2834,
273,
599,
16,
3988,
273,
1083,
16,
999,
2557,
273,
1083,
16,
30084,
273,
1381,
16,
2017,
4247,
273,
1053,
4672,
3536,
967,
501,
628,
326,
843,
1536,
16,
471,... |
''' Item properties and their values are edited with html FORM | """ Item properties and their values are edited with html FORM | def parsePropsFromForm(self, num_re=re.compile('^\d+$')): ''' Item properties and their values are edited with html FORM variables and their values. You can: | f11907437836b035b89a935141d5777def9d1278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f11907437836b035b89a935141d5777def9d1278/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
5047,
1265,
1204,
12,
2890,
16,
818,
67,
266,
33,
266,
18,
11100,
2668,
17134,
72,
15,
9227,
3719,
30,
3536,
4342,
1790,
471,
3675,
924,
854,
18532,
598,
1729,
8979,
3152,
471,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
5047,
1265,
1204,
12,
2890,
16,
818,
67,
266,
33,
266,
18,
11100,
2668,
17134,
72,
15,
9227,
3719,
30,
3536,
4342,
1790,
471,
3675,
924,
854,
18532,
598,
1729,
8979,
3152,
471,
3... |
self.add_link('first', self.env.href.changeset(1), 'Changeset 1') self.add_link('prev', self.env.href.changeset(self.rev - 1), | self.add_link(req, 'first', self.env.href.changeset(1), 'Changeset 1') self.add_link(req, 'prev', self.env.href.changeset(self.rev - 1), | def render(self, req): self.perm.assert_permission (perm.CHANGESET_VIEW) | 5304b982a6c96671fea398b5c0665537d7d0f9ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5304b982a6c96671fea398b5c0665537d7d0f9ec/Changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1111,
4672,
365,
18,
12160,
18,
11231,
67,
9827,
261,
12160,
18,
14473,
4043,
67,
12145,
13,
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,
1743,
12,
2890,
16,
1111,
4672,
365,
18,
12160,
18,
11231,
67,
9827,
261,
12160,
18,
14473,
4043,
67,
12145,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
"%s not in sys.path" % pth_file.imported) self.assertTrue(site.makepath(pth_file.good_dir_path)[0] in sys.path) self.assertTrue(not os.path.exists(pth_file.bad_dir_path)) | "%s not in sys.modules" % pth_file.imported) self.assertIn(site.makepath(pth_file.good_dir_path)[0], sys.path) self.assertFalse(os.path.exists(pth_file.bad_dir_path)) | def pth_file_tests(self, pth_file): """Contain common code for testing results of reading a .pth file""" self.assertTrue(pth_file.imported in sys.modules, "%s not in sys.path" % pth_file.imported) self.assertTrue(site.makepath(pth_file.good_dir_path)[0] in sys.path) self.assertTrue(not os.path.exists(pth_file.bad_dir_p... | 92775272378851dfe1e295db9a292073fcc21e33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/92775272378851dfe1e295db9a292073fcc21e33/test_site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18540,
67,
768,
67,
16341,
12,
2890,
16,
18540,
67,
768,
4672,
3536,
22928,
2975,
981,
364,
7769,
1686,
434,
6453,
279,
263,
2397,
585,
8395,
365,
18,
11231,
5510,
12,
2397,
67,
768,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18540,
67,
768,
67,
16341,
12,
2890,
16,
18540,
67,
768,
4672,
3536,
22928,
2975,
981,
364,
7769,
1686,
434,
6453,
279,
263,
2397,
585,
8395,
365,
18,
11231,
5510,
12,
2397,
67,
768,
1... |
assert isinstance(api_doc, APIDoc) if (isinstance(api_doc, VariableDoc) and api_doc.type_descr in (None, UNKNOWN)): if api_doc.value in (None, UNKNOWN): return '' api_doc = api_doc.value if api_doc.type_descr in (None, UNKNOWN): return '' return self.docstring_to_html(api_doc.type_descr, api_doc, indent) def rtype(sel... | return self._attr_to_html('type_descr', api_doc, indent) def return_type(self, api_doc, indent=0): return self._attr_to_html('return_type', api_doc, indent) | def type_descr(self, api_doc, indent=0): assert isinstance(api_doc, APIDoc) if (isinstance(api_doc, VariableDoc) and api_doc.type_descr in (None, UNKNOWN)): if api_doc.value in (None, UNKNOWN): return '' api_doc = api_doc.value if api_doc.type_descr in (None, UNKNOWN): return '' return self.docstring_to_html(api_doc.ty... | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
67,
28313,
12,
2890,
16,
1536,
67,
2434,
16,
3504,
33,
20,
4672,
1815,
1549,
12,
2425,
67,
2434,
16,
14410,
734,
504,
13,
309,
261,
291,
1336,
12,
2425,
67,
2434,
16,
7110,
1759... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
67,
28313,
12,
2890,
16,
1536,
67,
2434,
16,
3504,
33,
20,
4672,
1815,
1549,
12,
2425,
67,
2434,
16,
14410,
734,
504,
13,
309,
261,
291,
1336,
12,
2425,
67,
2434,
16,
7110,
1759... |
res = run_sql_cached("SELECT code,name FROM field ORDER BY name ASC") | res = run_sql_cached("SELECT code,name FROM field ORDER BY name ASC", affected_tables=['field',]) | def get_searchwithin_fields(ln='en', colID=None): """Retrieves the fields name used in the 'search within' selection box for the collection ID colID.""" res = None if colID: res = run_sql_cached("""SELECT f.code,f.name FROM field AS f, collection_field_fieldvalue AS cff WHERE cff.type='sew' AND cff.id_collection=%s AND... | ada6a289685f15e3d788079e52b7aa862a79a8e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/ada6a289685f15e3d788079e52b7aa862a79a8e1/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3072,
25850,
67,
2821,
12,
2370,
2218,
275,
2187,
645,
734,
33,
7036,
4672,
3536,
6960,
326,
1466,
508,
1399,
316,
326,
296,
3072,
3470,
11,
4421,
3919,
364,
326,
1849,
1599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3072,
25850,
67,
2821,
12,
2370,
2218,
275,
2187,
645,
734,
33,
7036,
4672,
3536,
6960,
326,
1466,
508,
1399,
316,
326,
296,
3072,
3470,
11,
4421,
3919,
364,
326,
1849,
1599,
... |
server = "%s:%s" % (account[server_key][0], account[port_key][0]) | def configure_outlook_express(unused): """Configure OE to use the SpamBayes POP3 and SMTP proxies, and configure SpamBayes to proxy the servers that OE was connecting to.""" # Requires win32all to be available (or for someone to write a # Mac version <wink>) if win32api is None: raise ImportError("win32 extensions requ... | 30f1d6854fee0d525078ec8c7c26a93e7cef1e3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/30f1d6854fee0d525078ec8c7c26a93e7cef1e3b/autoconfigure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
659,
7330,
67,
338,
1028,
12,
14375,
4672,
3536,
11207,
531,
41,
358,
999,
326,
5878,
301,
38,
528,
281,
26839,
23,
471,
18102,
13263,
16,
471,
5068,
5878,
301,
38,
528,
281,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
659,
7330,
67,
338,
1028,
12,
14375,
4672,
3536,
11207,
531,
41,
358,
999,
326,
5878,
301,
38,
528,
281,
26839,
23,
471,
18102,
13263,
16,
471,
5068,
5878,
301,
38,
528,
281,... | |
print `cf.get("Foo", "getname")` print `cf.get("Foo", "bar")` print `cf.get("Foo", "bar9")` print `cf.get("Foo", "bar10")` | verify(cf.get("Foo", "getname") == "Foo") verify(cf.get("Foo", "bar") == "something with interpolation (1 step)") verify(cf.get("Foo", "bar9") == "something with lots of interpolation (9 steps)") verify(cf.get("Foo", "bar10") == "something with lots of interpolation (10 steps)") | def interpolation(src): print print "Testing value interpolation..." cf = ConfigParser.ConfigParser({"getname": "%(__name__)s"}) sio = StringIO.StringIO(src) cf.readfp(sio) print `cf.get("Foo", "getname")` print `cf.get("Foo", "bar")` print `cf.get("Foo", "bar9")` print `cf.get("Foo", "bar10")` expect_get_error(cf, Con... | 3b4eacb6f09a74b34c9b912c4a532ce3c0bf8daa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3b4eacb6f09a74b34c9b912c4a532ce3c0bf8daa/test_cfgparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12851,
12,
4816,
4672,
1172,
1172,
315,
22218,
460,
12851,
7070,
6080,
273,
25076,
18,
809,
2678,
12590,
6,
588,
529,
6877,
22061,
972,
529,
972,
13,
87,
6,
6792,
272,
1594,
273,
15777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12851,
12,
4816,
4672,
1172,
1172,
315,
22218,
460,
12851,
7070,
6080,
273,
25076,
18,
809,
2678,
12590,
6,
588,
529,
6877,
22061,
972,
529,
972,
13,
87,
6,
6792,
272,
1594,
273,
15777,
... |
shutil.rmtree(self.tmp_swapdir) | shutil.rmtree(path.join(self.tmp_swapdir, conf.SWAPFILE)) | def run(self): if not path.isabs(conf.HOME): conf.HOME = path.join(conf.SCRIPT_DIR, conf.HOME) if not path.isabs(conf.BIN): conf.BIN = path.join(conf.SCRIPT_DIR, conf.BIN) | 072d1dc9ea49cb7544909f9532c60827dd9d1e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1208/072d1dc9ea49cb7544909f9532c60827dd9d1e0d/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
589,
18,
291,
5113,
12,
3923,
18,
14209,
4672,
2195,
18,
14209,
273,
589,
18,
5701,
12,
3923,
18,
10885,
67,
4537,
16,
2195,
18,
14209,
13,
225,
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,
1086,
12,
2890,
4672,
309,
486,
589,
18,
291,
5113,
12,
3923,
18,
14209,
4672,
2195,
18,
14209,
273,
589,
18,
5701,
12,
3923,
18,
10885,
67,
4537,
16,
2195,
18,
14209,
13,
225,
309,
... |
new = re.pcre_expand(m, repl) | new = self._expand(m, repl) | def replace_all(self, event=None): prog = self.engine.getprog() if not prog: return repl = self.replvar.get() text = self.text res = self.engine.search_text(text, prog) if not res: text.bell() return text.tag_remove("sel", "1.0", "end") text.tag_remove("hit", "1.0", "end") line = res[0] col = res[1].start() if self.eng... | f8d071332a485ede280675a55e3319e136826dd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f8d071332a485ede280675a55e3319e136826dd0/ReplaceDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
454,
12,
2890,
16,
871,
33,
7036,
4672,
11243,
273,
365,
18,
8944,
18,
588,
14654,
1435,
309,
486,
11243,
30,
327,
6831,
273,
365,
18,
26745,
1401,
18,
588,
1435,
977,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
454,
12,
2890,
16,
871,
33,
7036,
4672,
11243,
273,
365,
18,
8944,
18,
588,
14654,
1435,
309,
486,
11243,
30,
327,
6831,
273,
365,
18,
26745,
1401,
18,
588,
1435,
977,
273,
... |
def colorPickerCB(self, rr, gg, bb, aa): | def colorPickerExitCB(self, evt=None): self.lastColorPickerPos = self.colorPicker.GetPosition() self.colorPicker.Destroy() self.colorPicker = None def colorPickerUpdateCB(self, rr, gg, bb, aa): | def colorPickerCB(self, rr, gg, bb, aa): r = rr / 255.0 g = gg / 255.0 b = bb / 255.0 a = aa / 255.0 self.propCR.setValue(r) self.propCG.setValue(g) self.propCB.setValue(b) self.propCA.setValue(a) | b3be2000e903b2aacc1d0848361129170a021280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/b3be2000e903b2aacc1d0848361129170a021280/ObjectPropertyUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
13194,
6767,
8876,
12,
2890,
16,
6324,
33,
7036,
4672,
365,
18,
2722,
2957,
13194,
1616,
273,
365,
18,
3266,
13194,
18,
967,
2555,
1435,
365,
18,
3266,
13194,
18,
10740,
1435,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
13194,
6767,
8876,
12,
2890,
16,
6324,
33,
7036,
4672,
365,
18,
2722,
2957,
13194,
1616,
273,
365,
18,
3266,
13194,
18,
967,
2555,
1435,
365,
18,
3266,
13194,
18,
10740,
1435,
365,... |
def DoTreeRightDown(self, event): """Select the group under mouse cursor. Called when the right mouse buton is pressed on the group tree control. """ item, flags = self.groupTreeCtrl.HitTest(event.GetPosition()) if item.IsOk(): self.groupTreeCtrl.SelectItem(item) event.Skip() def DoPersonRightDown(self, event): """S... | def DoSelectGroup(self, event): """Update member and relationship lists for the selected group. | eb02f18240a2bb41de6b1ba2b0cb1fa07964bff8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/eb02f18240a2bb41de6b1ba2b0cb1fa07964bff8/wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
3391,
1114,
12,
2890,
16,
871,
4672,
3536,
1891,
3140,
471,
5232,
6035,
364,
326,
3170,
1041,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2256,
3391,
1114,
12,
2890,
16,
871,
4672,
3536,
1891,
3140,
471,
5232,
6035,
364,
326,
3170,
1041,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
res = self.__unlinkPath(lfn) if not res['OK']: gLogger.error("LcgFileCatalogClient.__addFile: Failed to remove file after failure to add checksum and size." % res['Message']) return S_ERROR("LcgFileCatalogClient.__addFile: Failed to set file size: %s" % errStr) | res = self.__unlinkPath( lfn ) if not res['OK']: gLogger.error( "LcgFileCatalogClient.__addFile: Failed to remove file after failure to add checksum and size." % res['Message'] ) return S_ERROR( "LcgFileCatalogClient.__addFile: Failed to set file size: %s" % errStr ) | def __addFile(self,lfn,pfn,size,se,guid,checksum): lfc.lfc_umask(0000) bdir = os.path.dirname(lfn) res = self.__executeOperation(bdir,'exists') # If we failed to find out whether the directory exists if not res['OK']: return S_ERROR(res['Message']) # If the directory doesn't exist if not res['Value']: #Make the directo... | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
812,
12,
2890,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
15149,
4672,
328,
7142,
18,
80,
7142,
67,
379,
835,
12,
2787,
13,
324,
1214,
273,
1140,
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,
1001,
1289,
812,
12,
2890,
16,
80,
4293,
16,
84,
4293,
16,
1467,
16,
307,
16,
14066,
16,
15149,
4672,
328,
7142,
18,
80,
7142,
67,
379,
835,
12,
2787,
13,
324,
1214,
273,
1140,
18,
... |
cl.connect(PROXY) | cl.connect(proxy=PROXY) | def messageCB(sess,mess): nick=mess.getFrom().getResource() text=mess.getBody() ts=mess.getTimestamp() if not ts: ts=mess.setTimestamp() ts=mess.getTimestamp() tp=time.mktime(time.strptime(ts,'%Y%m%dT%H:%M:%S %Z'))+3600*3 if time.localtime()[-1]: tp+=3600 tp=time.localtime(tp) fold=time.strftime("%Y.%m",tp) day=time.st... | c130a725281ff9caf028d1ba1fb1eb12d7d17a79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/c130a725281ff9caf028d1ba1fb1eb12d7d17a79/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
8876,
12,
23828,
16,
81,
403,
4672,
10909,
33,
81,
403,
18,
588,
1265,
7675,
588,
1420,
1435,
977,
33,
81,
403,
18,
588,
2250,
1435,
3742,
33,
81,
403,
18,
588,
4921,
1435,
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,
883,
8876,
12,
23828,
16,
81,
403,
4672,
10909,
33,
81,
403,
18,
588,
1265,
7675,
588,
1420,
1435,
977,
33,
81,
403,
18,
588,
2250,
1435,
3742,
33,
81,
403,
18,
588,
4921,
1435,
309,... |
self._requires = [] self._warnings = [] self._notes = [] | def __init__(self, obj, verbosity=0): """ Create the documentation for the given object. @param obj: The object to document. @type obj: any @param verbosity: The verbosity of output produced when creating documentation for the object. More positive numbers produce more verbose output; negative numbers supress warning... | 2ea766fa637b1324e25724545303f11e624a5247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/2ea766fa637b1324e25724545303f11e624a5247/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1081,
16,
11561,
33,
20,
4672,
3536,
1788,
326,
7323,
364,
326,
864,
733,
18,
225,
632,
891,
1081,
30,
1021,
733,
358,
1668,
18,
632,
723,
1081,
30,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1081,
16,
11561,
33,
20,
4672,
3536,
1788,
326,
7323,
364,
326,
864,
733,
18,
225,
632,
891,
1081,
30,
1021,
733,
358,
1668,
18,
632,
723,
1081,
30,
12... | |
msg['Subject'] = self.subject | msg['Subject'] = Header(self.subject, 'utf-8') | def send(self, rcpt, mime_headers={}): | 3f02f2ac732d18b63be45396663354e0178a2fb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3f02f2ac732d18b63be45396663354e0178a2fb6/Notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
4519,
337,
16,
4892,
67,
2485,
12938,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1366,
12,
2890,
16,
4519,
337,
16,
4892,
67,
2485,
12938,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return get_color(element, "stroke", "stroke-opacity"), False | color = get_color(element, "stroke", "stroke-opacity") if color: return color, False else: return color, True | def get_special_attribute(element, attribute): """ Try to get a special attribute from an element """ if attribute == "color": return get_color(element, "stop-color", "stop-opacity"), False elif attribute == "stops": return element.get_children("stop", Stop), False elif attribute == "xlink": return element.get_attribut... | 887863ca7f038dbe4ac239486c9c41d552f4d776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2399/887863ca7f038dbe4ac239486c9c41d552f4d776/svgfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9371,
67,
4589,
12,
2956,
16,
1566,
4672,
3536,
6161,
358,
336,
279,
4582,
1566,
628,
392,
930,
3536,
309,
1566,
422,
315,
3266,
6877,
327,
336,
67,
3266,
12,
2956,
16,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9371,
67,
4589,
12,
2956,
16,
1566,
4672,
3536,
6161,
358,
336,
279,
4582,
1566,
628,
392,
930,
3536,
309,
1566,
422,
315,
3266,
6877,
327,
336,
67,
3266,
12,
2956,
16,
315,
... |
if time.time() - self.lastping > (self.timeout * 2): self.pingSelf = 1 log.msg("Dropping due to pingout") self.shutdown() | if time.time() - self.lastping > (self.timeout * 2): self.pingSelf = 1 log.msg("Dropping due to pingout") self.shutdown() | def checkPing(self): | c8dc6496fcdea91de7fd32e1a604f8130e3c8357 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5901/c8dc6496fcdea91de7fd32e1a604f8130e3c8357/words.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
17223,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
17223,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'echo copy %s' % path | 'echo copy "%s"' % path | def on_compare(self, path, kind, result): from os.path import join | b45eed493c16cbe98b7f918a48ebaf8000111e9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/692/b45eed493c16cbe98b7f918a48ebaf8000111e9f/cmpdirs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
9877,
12,
2890,
16,
589,
16,
3846,
16,
563,
4672,
628,
1140,
18,
803,
1930,
1233,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
9877,
12,
2890,
16,
589,
16,
3846,
16,
563,
4672,
628,
1140,
18,
803,
1930,
1233,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.browser = None | def __init__(self, hits): global _resultscounter hits = map(lambda (path, hits): (sucktitle(path), path, hits), hits) hits.sort() self.hits = hits nicehits = map( lambda (title, path, hits): title + '\r' + string.join( map(lambda (c, p): "%s (%d)" % (p, c), hits), ', '), hits) nicehits.sort() self.w = W.Window((440, 30... | cee949f945eacf13b3d780624620f295c351886f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cee949f945eacf13b3d780624620f295c351886f/PyDocSearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11076,
4672,
2552,
389,
2088,
1017,
2096,
11076,
273,
852,
12,
14661,
261,
803,
16,
11076,
4672,
261,
87,
9031,
2649,
12,
803,
3631,
589,
16,
11076,
3631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11076,
4672,
2552,
389,
2088,
1017,
2096,
11076,
273,
852,
12,
14661,
261,
803,
16,
11076,
4672,
261,
87,
9031,
2649,
12,
803,
3631,
589,
16,
11076,
3631,
... | |
'iban': fields.char('Account number', size=64), | 'iban': fields.char('Account Number', size=64), | def gen_next_ref(self, cr, uid, ids): if len(ids) != 1: return True # compute the next number ref cr.execute("select ref from res_partner where ref is not null order by char_length(ref) desc, ref desc limit 1") res = cr.dictfetchall() ref = res and res[0]['ref'] or '0' try: nextref = int(ref)+1 except e: raise osv.exc... | 1bc0af85611d3b038312053316810e8a7343474e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/1bc0af85611d3b038312053316810e8a7343474e/partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
4285,
67,
1734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
309,
562,
12,
2232,
13,
480,
404,
30,
327,
1053,
225,
468,
3671,
326,
1024,
1300,
1278,
4422,
18,
8837,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
4285,
67,
1734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
309,
562,
12,
2232,
13,
480,
404,
30,
327,
1053,
225,
468,
3671,
326,
1024,
1300,
1278,
4422,
18,
8837,
2932,
... |
return string.join(res, "") | return "".join(res) | def unquote(s): """unquote('abc%20def') -> 'abc def'.""" mychr = chr myatoi = string.atoi list = string.split(s, '%') res = [list[0]] myappend = res.append del list[0] for item in list: if item[1:2]: try: myappend(mychr(myatoi(item[:2], 16)) + item[2:]) except: myappend('%' + item) else: myappend('%' + item) return str... | 2aa671823938e593ea9dedd33b3cc4194fde8a0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2aa671823938e593ea9dedd33b3cc4194fde8a0a/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25611,
12,
87,
4672,
3536,
318,
6889,
2668,
18947,
9,
3462,
536,
6134,
317,
296,
18947,
1652,
11,
12123,
3399,
15182,
273,
4513,
3399,
270,
11359,
273,
533,
18,
270,
11359,
666,
273,
533... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25611,
12,
87,
4672,
3536,
318,
6889,
2668,
18947,
9,
3462,
536,
6134,
317,
296,
18947,
1652,
11,
12123,
3399,
15182,
273,
4513,
3399,
270,
11359,
273,
533,
18,
270,
11359,
666,
273,
533... |
i.timeleft = self.getTime((i.size - i.currentbytes)/i.speed/1024) | if i.speed <= 0.0: i.timeleft = "∞" else: i.timeleft = self.getTime((i.size - i.currentbytes)/i.speed/1024) | def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is N... | b6fd2f0d2d36b4d487b0f7f515dd0fb6dfa84cde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/b6fd2f0d2d36b4d487b0f7f515dd0fb6dfa84cde/transfers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
7109,
12,
2890,
16,
1234,
4672,
3536,
432,
585,
4224,
353,
316,
4007,
8395,
1608,
2725,
273,
404,
642,
273,
365,
18,
2575,
8700,
18,
1425,
18,
11657,
364,
277,
316,
365,
18,
7813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
7109,
12,
2890,
16,
1234,
4672,
3536,
432,
585,
4224,
353,
316,
4007,
8395,
1608,
2725,
273,
404,
642,
273,
365,
18,
2575,
8700,
18,
1425,
18,
11657,
364,
277,
316,
365,
18,
7813... |
dcall_discard(self, 'requestBlocks_dcall') | def scheduleRequestBlocks(self): | 7c88a4eb1e925976a8217ff9c7b1d1eaba42f8f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/7c88a4eb1e925976a8217ff9c7b1d1eaba42f8f7/dtella_bridgeclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
691,
6450,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
691,
6450,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
tree = _postProcessHelper(tree, id, process, variants) | tree = _postProcessHelper(tree, id, process, variants) | def getCompiled(id, variants, process): global classes global verbose variantsId = generateVariantCombinationId(variants) processId = generateProcessCombinationId(process) cache = readCache(id, "compiled-" + variantsId + "-" + processId, classes[id]["path"]) if cache != None: return cache tokens = getTokens(id) tre... | e3364bd2416dfe75fd85aeea0ded427372ef3d08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/e3364bd2416dfe75fd85aeea0ded427372ef3d08/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20733,
12,
350,
16,
12935,
16,
1207,
4672,
2552,
3318,
2552,
3988,
225,
12935,
548,
273,
2103,
9356,
26062,
548,
12,
15886,
13,
1207,
548,
273,
2103,
2227,
26062,
548,
12,
2567,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20733,
12,
350,
16,
12935,
16,
1207,
4672,
2552,
3318,
2552,
3988,
225,
12935,
548,
273,
2103,
9356,
26062,
548,
12,
15886,
13,
1207,
548,
273,
2103,
2227,
26062,
548,
12,
2567,
13,... |
logging.debug( "log level:", self.pytrainer_main.log_level, "validate:", self.pytrainer_main.validate, "check:", self.pytrainer_main.check, "gm3:", self.pytrainer_main.gm3, "testimport:", self.pytrainer_main.testimport ) | def init_params_tab(self): logging.debug( "log level:", self.pytrainer_main.log_level, "validate:", self.pytrainer_main.validate, "check:", self.pytrainer_main.check, "gm3:", self.pytrainer_main.gm3, "testimport:", self.pytrainer_main.testimport ) #Show log level if self.pytrainer_main.log_level == logging.ERROR: self.... | 6cd582a33946efe205b9b39ec2041bc616acf1bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11865/6cd582a33946efe205b9b39ec2041bc616acf1bf/windowprofile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
2010,
67,
7032,
12,
2890,
4672,
468,
5706,
613,
1801,
309,
365,
18,
2074,
313,
1521,
67,
5254,
18,
1330,
67,
2815,
422,
2907,
18,
3589,
30,
365,
18,
9301,
27570,
21806,
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,
1208,
67,
2010,
67,
7032,
12,
2890,
4672,
468,
5706,
613,
1801,
309,
365,
18,
2074,
313,
1521,
67,
5254,
18,
1330,
67,
2815,
422,
2907,
18,
3589,
30,
365,
18,
9301,
27570,
21806,
18,
... | |
security.declareProtected(view_management_screens, 'list_all_roles') | def delRole(self, roles=[], REQUEST=None): """ delete role""" if not roles: raise Exception, 'You must specify a role name' roles = self.utConvertToList(roles) self._delRole(roles) if REQUEST is not None: return REQUEST.RESPONSE.redirect('manage_roles_html') | ed400876be7bc2f645c44299f0e3a93a75b63f00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/ed400876be7bc2f645c44299f0e3a93a75b63f00/Role.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
2996,
12,
2890,
16,
4900,
22850,
6487,
12492,
33,
7036,
4672,
3536,
1430,
2478,
8395,
309,
486,
4900,
30,
1002,
1185,
16,
296,
6225,
1297,
4800,
279,
2478,
508,
11,
4900,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
2996,
12,
2890,
16,
4900,
22850,
6487,
12492,
33,
7036,
4672,
3536,
1430,
2478,
8395,
309,
486,
4900,
30,
1002,
1185,
16,
296,
6225,
1297,
4800,
279,
2478,
508,
11,
4900,
273,
365,... | |
if debug: print "Opening oofem output file:", oofemoutfilename[:-1] infile = open(oofemoutfilename[:-1]) for i in range(len(userrec)): recVal[i]='--' for line in infile: while (line): line = match_primary_rec (line) | if debug: print "Opening oofem output file:", oofemoutfilename[:-1] infile = open(oofemoutfilename[:-1]) for i in range(len(userrec)): recVal[i]='--' for line in infile: while (line): line = match_primary_rec (line) | def main(): global userrec, recval, infile, infilename, mode, tolerance try: # options expecting value followed by ':', see also Unix getopt opts, args = getopt.getopt (sys.argv[1:],'cf:') except getopt.GetoptError, err: print str(err) usage() exit(1) # flag whether -f compulsory option provided infileflag = 0 #print ... | aa37b2bdfae39b7dbc77c6303652ba62381c3298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1573/aa37b2bdfae39b7dbc77c6303652ba62381c3298/extractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
729,
3927,
16,
1950,
1125,
16,
14568,
16,
316,
3459,
16,
1965,
16,
10673,
775,
30,
468,
702,
17012,
460,
10860,
635,
4290,
2187,
2621,
2546,
9480,
336,
3838,
1500,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
729,
3927,
16,
1950,
1125,
16,
14568,
16,
316,
3459,
16,
1965,
16,
10673,
775,
30,
468,
702,
17012,
460,
10860,
635,
4290,
2187,
2621,
2546,
9480,
336,
3838,
1500,
16,... |
from pypy.translator.cli.support import patch, unpatch, NT_OS | from pypy.translator.oosupport.support import patch_os, unpatch_os, NT_OS | def test_patch_os(self): import os from pypy.translator.cli.support import patch, unpatch, NT_OS original_O_CREAT = os.O_CREAT olddefs = patch() assert os.O_CREAT == NT_OS['O_CREAT'] unpatch(*olddefs) assert os.O_CREAT == original_O_CREAT | f7ae5e753b703f0e85397b17fcff4841364627d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/f7ae5e753b703f0e85397b17fcff4841364627d3/runtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2272,
67,
538,
12,
2890,
4672,
1930,
1140,
628,
18951,
93,
18,
17879,
18,
83,
538,
416,
655,
18,
13261,
1930,
4729,
67,
538,
16,
640,
2272,
67,
538,
16,
20064,
67,
4618,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2272,
67,
538,
12,
2890,
4672,
1930,
1140,
628,
18951,
93,
18,
17879,
18,
83,
538,
416,
655,
18,
13261,
1930,
4729,
67,
538,
16,
640,
2272,
67,
538,
16,
20064,
67,
4618,
22... |
'Color', 'Coord', | 'Color', 'Coord', 'ColorBand', | def register_fonts(path=fontscollectionpath): """Recursively register fonts using path argument as base directory""" for dirpath, _, filenames in os.walk(path): for filename in filenames: if os.path.splitext(filename)[1] == '.ttf': FontEngine.instance().register_font(os.path.join(dirpath, filename)) | f35b9bc7d08ee366b9fcfe5b737ce5c1f257200a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12100/f35b9bc7d08ee366b9fcfe5b737ce5c1f257200a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
22052,
12,
803,
33,
5776,
1017,
355,
942,
803,
4672,
3536,
12474,
1744,
16450,
1450,
589,
1237,
487,
1026,
1867,
8395,
364,
17803,
16,
389,
16,
9066,
316,
1140,
18,
11348,
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,
1744,
67,
22052,
12,
803,
33,
5776,
1017,
355,
942,
803,
4672,
3536,
12474,
1744,
16450,
1450,
589,
1237,
487,
1026,
1867,
8395,
364,
17803,
16,
389,
16,
9066,
316,
1140,
18,
11348,
12,
... |
userlang = mlist.GetPreferredLanguage(user) | cgidata = cgi.FieldStorage() userlang = cgidata.getvalue('language', mlist.GetPreferredLanguage(user)) | def main(): doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) parts = Utils.GetPathPieces() if not parts or len(parts) < 2: title = _('CGI script error') doc.SetTitle(title) doc.AddItem(Header(2, title)) add_error_message(doc, _('Invalid options to CGI script.')) doc.AddItem('<hr>') doc.AddItem(Mailman... | 11de8bd8bd26a09e2b9fd4a6960f2b48639a75e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/11de8bd8bd26a09e2b9fd4a6960f2b48639a75e1/options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
997,
273,
4319,
1435,
997,
18,
542,
67,
4923,
12,
7020,
67,
7066,
18,
5280,
67,
4370,
67,
15547,
13,
225,
2140,
273,
6091,
18,
967,
743,
16539,
8610,
1435,
309,
486,
2140,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
273,
4319,
1435,
997,
18,
542,
67,
4923,
12,
7020,
67,
7066,
18,
5280,
67,
4370,
67,
15547,
13,
225,
2140,
273,
6091,
18,
967,
743,
16539,
8610,
1435,
309,
486,
2140,... |
class dispatcher_with_send (dispatcher): def __init__ (self, sock=None): dispatcher.__init__ (self, sock) | class dispatcher_with_send(dispatcher): def __init__(self, sock=None): dispatcher.__init__(self, sock) | def handle_close (self): self.log_info ('unhandled close event', 'warning') self.close() | f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4412,
261,
2890,
4672,
365,
18,
1330,
67,
1376,
7707,
318,
14387,
1746,
871,
2187,
296,
8551,
6134,
365,
18,
4412,
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,
1640,
67,
4412,
261,
2890,
4672,
365,
18,
1330,
67,
1376,
7707,
318,
14387,
1746,
871,
2187,
296,
8551,
6134,
365,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def Play(self, mode, tuner_channel=None): | def Play(self, mode, tuner_channel=None, channel_change=0): | def Play(self, mode, tuner_channel=None): | 59fd9d0867101d01bf136193a2f1e0c1acff0de0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/59fd9d0867101d01bf136193a2f1e0c1acff0de0/mplayer_tv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19592,
12,
2890,
16,
1965,
16,
268,
29640,
67,
4327,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19592,
12,
2890,
16,
1965,
16,
268,
29640,
67,
4327,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
mx.DateTime.DateTimeDelta(1)) ks = reports.KeyStatistic(_('Avg'), sum(logs)/len(rp), _('logged')+'/'+_(unit)) | mx.DateTime.DateTimeDeltaFromSeconds(time_interval)) ks = reports.KeyStatistic(_('Avg Blocked'), sum(blocks)/len(rp), _('blocks')+'/'+_(unit)) | def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email: return None | ad66c393dd80008ea66d6cf497f95396c6a20579 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/ad66c393dd80008ea66d6cf497f95396c6a20579/untangle_node_firewall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
-100,
-100,
-100,
-100,
... |
&alpha, | &alpha, | def c_code(self, node, name, (img2d, filtersflipped), (z, ), sub): if node.inputs[0].type.dtype != node.inputs[1].type.dtype: raise NotImplementedError() assert node.inputs[0].type.dtype == node.inputs[1].type.dtype d=locals() d.update(sub) | aaea1d322c657ba643c240526cb3f00d5d2d997d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/aaea1d322c657ba643c240526cb3f00d5d2d997d/conv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
6081,
22,
72,
16,
3415,
12357,
1845,
3631,
261,
94,
16,
262,
16,
720,
4672,
309,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
6081,
22,
72,
16,
3415,
12357,
1845,
3631,
261,
94,
16,
262,
16,
720,
4672,
309,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
480... |
set_fieldset_required("nis", False) | set_fieldset_required("auth_nis", False) | def set_fieldset_required(fieldset_id, required): for fieldset in self.Meta.fieldsets: if 'id' in fieldset and fieldset['id'] == fieldset_id: for field in fieldset['fields']: self.fields[field].required = required | 43aea6f5ebf8440280aa818aafc0bc27b953bc2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/43aea6f5ebf8440280aa818aafc0bc27b953bc2c/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
23397,
67,
4718,
12,
23397,
67,
350,
16,
1931,
4672,
364,
16885,
316,
365,
18,
2781,
18,
1518,
4424,
30,
309,
296,
350,
11,
316,
16885,
471,
16885,
3292,
350,
3546,
422,
16885... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
23397,
67,
4718,
12,
23397,
67,
350,
16,
1931,
4672,
364,
16885,
316,
365,
18,
2781,
18,
1518,
4424,
30,
309,
296,
350,
11,
316,
16885,
471,
16885,
3292,
350,
3546,
422,
16885... |
mtr = getUtility(IMimetypesRegistryTool) | mtr = queryUtility(IMimetypesRegistryTool) | def guessMimetype(data, filename=None): """ guess the mime-type from the given file-like object, optionally using the filename as a hint; the current position in the file is tried to be preserved """ pos = data.tell() mtr = getUtility(IMimetypesRegistryTool) if mtr is not None: d, f, mimetype = mtr(data.read(1 << 14),... | 7a960c13c2352d0e730eb538e1f469da4857724f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12182/7a960c13c2352d0e730eb538e1f469da4857724f/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
49,
10076,
12,
892,
16,
1544,
33,
7036,
4672,
3536,
7274,
326,
4892,
17,
723,
628,
326,
864,
585,
17,
5625,
733,
16,
8771,
1450,
326,
1544,
487,
279,
7380,
31,
225,
326,
783,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
49,
10076,
12,
892,
16,
1544,
33,
7036,
4672,
3536,
7274,
326,
4892,
17,
723,
628,
326,
864,
585,
17,
5625,
733,
16,
8771,
1450,
326,
1544,
487,
279,
7380,
31,
225,
326,
783,
1... |
@param string name name of process to start | @param string name name of process group to add | def addProcessGroup(self, name): """ Update the config for a running process from config file. | 97a6e19ffc961bff4d26442b0dad8361e2b52578 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13620/97a6e19ffc961bff4d26442b0dad8361e2b52578/rpcinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2227,
1114,
12,
2890,
16,
508,
4672,
3536,
2315,
326,
642,
364,
279,
3549,
1207,
628,
642,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2227,
1114,
12,
2890,
16,
508,
4672,
3536,
2315,
326,
642,
364,
279,
3549,
1207,
628,
642,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ddc_discrepancy_filename() are tested. | dcc_discrepancy_filename() are tested. | def runtest(self): self.compile() glob_result = glob.glob(dep_glob) dotd_result.extend(glob_result) | 55e713ea42e80d4a6f1a15b113cf00c2e3105061 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/55e713ea42e80d4a6f1a15b113cf00c2e3105061/testdistcc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
2890,
4672,
365,
18,
11100,
1435,
4715,
67,
2088,
273,
4715,
18,
10581,
12,
15037,
67,
10581,
13,
3928,
72,
67,
2088,
18,
14313,
12,
10581,
67,
2088,
13,
225,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
12,
2890,
4672,
365,
18,
11100,
1435,
4715,
67,
2088,
273,
4715,
18,
10581,
12,
15037,
67,
10581,
13,
3928,
72,
67,
2088,
18,
14313,
12,
10581,
67,
2088,
13,
225,
2,
-100,
... |
elif score >= 4.5: | elif avg_score >= 4.5: | def tmpl_mini_review(self, recID, ln=cdslang, action='SUBMIT', avg_score=0, nb_comments_total=0): """Display the mini version of reviews (only the grading part)""" | 36a0e89bced3e423db4f731466fa7281d2e725fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/36a0e89bced3e423db4f731466fa7281d2e725fb/webcomment_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1154,
77,
67,
16041,
12,
2890,
16,
1950,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1301,
2218,
8362,
6068,
2187,
11152,
67,
6355,
33,
20,
16,
4264,
67,
9231,
67,
4963,
33,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1154,
77,
67,
16041,
12,
2890,
16,
1950,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1301,
2218,
8362,
6068,
2187,
11152,
67,
6355,
33,
20,
16,
4264,
67,
9231,
67,
4963,
33,
2... |
if alg=="scipy": | if algorithm=="scipy": | def spherical_bessel_Y(n,var, alg="maxima"): r""" Returns the spherical Bessel function of the second kind for integers n > -1. Reference: A&S 10.1.9 page 437 and A&S 10.1.15 page 439. EXAMPLES: sage: x = PolynomialRing(QQ, 'x').gen() sage: spherical_bessel_Y(2,x) -(3*sin(x)/x - (1 - 24/(8*x^2))*cos(x))/x """ if alg=... | 28583b63e951675be5d37abb781bb0ef0026cb95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/28583b63e951675be5d37abb781bb0ef0026cb95/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
21570,
67,
70,
403,
292,
67,
61,
12,
82,
16,
1401,
16,
11989,
1546,
1896,
13888,
6,
4672,
436,
8395,
2860,
326,
272,
21570,
605,
403,
292,
445,
434,
326,
2205,
3846,
364,
12321,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
21570,
67,
70,
403,
292,
67,
61,
12,
82,
16,
1401,
16,
11989,
1546,
1896,
13888,
6,
4672,
436,
8395,
2860,
326,
272,
21570,
605,
403,
292,
445,
434,
326,
2205,
3846,
364,
12321,
... |
cb_op = sgtbx.change_of_basis_op( params.reindex_utils.parameters.reindex.law ) | cb_op = sgtbx.change_of_basis_op( params.reindex_utils.parameters.reindex.user_supplied_law ) | def reindex_utils(args): if len(args)==0: print_help() elif ( "--help" in args ): print_help() elif ( "--h" in args ): print_help() elif ("-h" in args ): print_help() else: log = multi_out() if (not "--quiet" in args): log.register(label="stdout", file_object=sys.stdout) string_buffer = StringIO() string_buffer_plots =... | 7b7d1ba8fe61e667ec87a8eecc90e9b4a5269dfe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/7b7d1ba8fe61e667ec87a8eecc90e9b4a5269dfe/reindex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17492,
67,
5471,
12,
1968,
4672,
309,
562,
12,
1968,
13,
631,
20,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
5201,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
76,
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,
17492,
67,
5471,
12,
1968,
4672,
309,
562,
12,
1968,
13,
631,
20,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
5201,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
76,
6,... |
'cmdclass': {'install_data': smart_install_data}, | def do_setup(): kwargs = package_data.copy() extras = get_extras() if extras: kwargs['py_modules'] = extras if sys.hexversion >= 0x02030000: # Python 2.3 kwargs['classifiers'] = classifiers else: kwargs['cmdclass'] = {'build_py': dual_build_py} dist = setup(**kwargs) return dist | 13b4da77e84b6f68b05f278051193582d2f8b3e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/13b4da77e84b6f68b05f278051193582d2f8b3e0/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8401,
13332,
1205,
273,
2181,
67,
892,
18,
3530,
1435,
11875,
273,
336,
67,
23687,
1435,
309,
11875,
30,
1205,
3292,
2074,
67,
6400,
3546,
273,
11875,
309,
2589,
18,
7118,
1589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8401,
13332,
1205,
273,
2181,
67,
892,
18,
3530,
1435,
11875,
273,
336,
67,
23687,
1435,
309,
11875,
30,
1205,
3292,
2074,
67,
6400,
3546,
273,
11875,
309,
2589,
18,
7118,
1589,... | |
if cl.super: | if hasattr(cl, "super") and cl.super: | def listclasses(self): dir, file = os.path.split(self.file) name, ext = os.path.splitext(file) if os.path.normcase(ext) != ".py": return [] try: dict = pyclbr.readmodule_ex(name, [dir] + sys.path) except ImportError, msg: return [] items = [] self.classes = {} for key, cl in dict.items(): if cl.module == name: s = key ... | 18acea7c8ea44fe1e655d64fe4f04fc9710f9ea7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/18acea7c8ea44fe1e655d64fe4f04fc9710f9ea7/ClassBrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
4701,
12,
2890,
4672,
1577,
16,
585,
273,
1140,
18,
803,
18,
4939,
12,
2890,
18,
768,
13,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
768,
13,
309,
1140,
18,
803,
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,
666,
4701,
12,
2890,
4672,
1577,
16,
585,
273,
1140,
18,
803,
18,
4939,
12,
2890,
18,
768,
13,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
768,
13,
309,
1140,
18,
803,
18... |
url = "<br /><a href=" + rsrcpath + ">" + title + " </a>\r\n" | url = "<br /><a href=" + rsrcpath + ">" + title + " </a>\n" if isinstance(url, unicode): url = url.encode('utf-8') | def _create_html_root(self, hhcpath, log): hhcdata = self._read_file(hhcpath) hhcroot = html.fromstring(hhcdata) chapters = self._process_nodes(hhcroot) #print "=============================" #print "Printing hhcroot" #print etree.tostring(hhcroot, pretty_print=True) #print "=============================" log.debug('Fo... | f871846e18535f0f706d7f7df7c46dd232c98ffc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/f871846e18535f0f706d7f7df7c46dd232c98ffc/input.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2620,
67,
3085,
12,
2890,
16,
18629,
71,
803,
16,
613,
4672,
18629,
71,
892,
273,
365,
6315,
896,
67,
768,
12,
21622,
71,
803,
13,
18629,
71,
3085,
273,
1729,
18,
2080... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
67,
2620,
67,
3085,
12,
2890,
16,
18629,
71,
803,
16,
613,
4672,
18629,
71,
892,
273,
365,
6315,
896,
67,
768,
12,
21622,
71,
803,
13,
18629,
71,
3085,
273,
1729,
18,
2080... |
otherside = otherside._rescale(exp, context=context, watchexp=0) | otherside = otherside._rescale(exp, context=context, watchexp=0) | def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision. | 2987962c266a487e19674e69ca08f8ac738322b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2987962c266a487e19674e69ca08f8ac738322b8/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2892,
831,
12,
2890,
16,
1308,
16,
26105,
273,
374,
16,
819,
33,
7036,
4672,
3536,
990,
279,
342,
324,
16,
358,
819,
18,
4036,
6039,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2892,
831,
12,
2890,
16,
1308,
16,
26105,
273,
374,
16,
819,
33,
7036,
4672,
3536,
990,
279,
342,
324,
16,
358,
819,
18,
4036,
6039,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.header({'Set-Cookie': 'roundup_user="%s"; expires="%s"; Path="%s";' % ( | self.header({'Set-Cookie': 'roundup_user=%s; expires=%s; Path=%s;' % ( | def set_cookie(self, user, password): # construct the cookie user = binascii.b2a_base64('%s:%s'%(user, password)).strip() expire = Cookie._getdate(86400*365) path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'])) self.header({'Set-Cookie': 'roundup_user="%s"; expires="%s"; Path="%s";' % ( user, expire, p... | 840711450a17a487dedb2c002794e3833b9f747b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/840711450a17a487dedb2c002794e3833b9f747b/cgi_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
8417,
12,
2890,
16,
729,
16,
2201,
4672,
468,
4872,
326,
3878,
729,
273,
28222,
18,
70,
22,
69,
67,
1969,
1105,
29909,
87,
5319,
87,
11,
17105,
1355,
16,
2201,
13,
2934,
640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
8417,
12,
2890,
16,
729,
16,
2201,
4672,
468,
4872,
326,
3878,
729,
273,
28222,
18,
70,
22,
69,
67,
1969,
1105,
29909,
87,
5319,
87,
11,
17105,
1355,
16,
2201,
13,
2934,
640... |
print "handlerB invoked", args raise HandlerBCalled(*args) | print "handlerB invoked from signal %s at:\n%s" % ( signum, self.format_frame(frame, limit=1)) raise HandlerBCalled(signum, self.format_frame(frame)) | def handlerB(self, *args): self.b_called = True if test_support.verbose: print "handlerB invoked", args raise HandlerBCalled(*args) | ee76777846124bb5b7e08feb488d5bab949c76a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/ee76777846124bb5b7e08feb488d5bab949c76a5/test_signal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
38,
12,
2890,
16,
380,
1968,
4672,
365,
18,
70,
67,
11777,
273,
1053,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
315,
4176,
38,
8187,
3113,
833,
1002,
4663,
38,
8185,
30857,
1968... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1838,
38,
12,
2890,
16,
380,
1968,
4672,
365,
18,
70,
67,
11777,
273,
1053,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
315,
4176,
38,
8187,
3113,
833,
1002,
4663,
38,
8185,
30857,
1968... |
include_graphics_options.append('height=%s' % ( self.latex_image_length(attrs['height']), )) | h = self.latex_image_length(attrs['height']) include_graphics_options.append('height=%s' % h) | def visit_image(self, node): attrs = node.attributes pre = [] # in reverse order post = [] include_graphics_options = [] inline = isinstance(node.parent, nodes.TextElement) if attrs.has_key('scale'): # Could also be done with ``scale`` option to # ``\includegraphics``; doing it this way for consi... | 5ce1a0ff77da4c55cea55ddcfaa360ac43c66033 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/5ce1a0ff77da4c55cea55ddcfaa360ac43c66033/latexwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
3422,
273,
756,
18,
4350,
675,
273,
5378,
13491,
468,
316,
4219,
1353,
1603,
273,
5378,
2341,
67,
31586,
67,
2116,
273,
5378,
6370,
273,
1549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
3422,
273,
756,
18,
4350,
675,
273,
5378,
13491,
468,
316,
4219,
1353,
1603,
273,
5378,
2341,
67,
31586,
67,
2116,
273,
5378,
6370,
273,
1549,
... |
except TypeError: | except (AttributeError, TypeError): | def cantset(obj, name, value): verify(hasattr(obj, name)) # Otherwise it's probably a typo try: setattr(obj, name, value) except TypeError: pass else: raise TestFailed, "shouldn't be able to set %s to %r" % (name, value) try: delattr(obj, name) except TypeError: pass else: raise TestFailed, "shouldn't be able to del %s... | df8902c81e6eb4fcbf46b9a79be8e214b937e033 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/df8902c81e6eb4fcbf46b9a79be8e214b937e033/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
88,
542,
12,
2603,
16,
508,
16,
460,
4672,
3929,
12,
5332,
1747,
12,
2603,
16,
508,
3719,
468,
5272,
518,
1807,
8656,
279,
3815,
83,
775,
30,
9241,
12,
2603,
16,
508,
16,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
88,
542,
12,
2603,
16,
508,
16,
460,
4672,
3929,
12,
5332,
1747,
12,
2603,
16,
508,
3719,
468,
5272,
518,
1807,
8656,
279,
3815,
83,
775,
30,
9241,
12,
2603,
16,
508,
16,
460,
... |
im.paste(im2, None, im2) | paste_transparent(im, None, im2) | def profile_image(request, username): user = get_object_or_404(User, username=username) parts = [p.part for p in user.selectedfaceparts.all()] # Use part.image.path as full path to the file im = Image.open(os.path.join( settings.OUR_ROOT, 'static/img/blank-face.png' )) for part in parts: im2 = Image.open(part.image.pa... | 7eae89d7c5a10ff1785b932f0ef2b991c7aee2bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/7eae89d7c5a10ff1785b932f0ef2b991c7aee2bb/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3042,
67,
2730,
12,
2293,
16,
2718,
4672,
729,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
1299,
16,
2718,
33,
5053,
13,
2140,
273,
306,
84,
18,
2680,
364,
293,
316,
729,
18,
8109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3042,
67,
2730,
12,
2293,
16,
2718,
4672,
729,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
1299,
16,
2718,
33,
5053,
13,
2140,
273,
306,
84,
18,
2680,
364,
293,
316,
729,
18,
8109,
... |
handler = self.handler(sock, self) | try: handler = self.handler(sock, self) except socket.error, err: logerror(str(err)) return | def handle_accept(self): """Called when remote client initiates a connection.""" try: sock, addr = self.accept() except TypeError: # sometimes accept() might return None (see issue 91) return except socket.error, err: # ECONNABORTED might be thrown on *BSD (see issue 105) if err[0] != errno.ECONNABORTED: logerror(trace... | 39505a80171c8ad22ffaadab7243ef2a37abdc5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3782/39505a80171c8ad22ffaadab7243ef2a37abdc5b/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
3536,
8185,
1347,
2632,
1004,
1208,
16020,
279,
1459,
12123,
775,
30,
7313,
16,
3091,
273,
365,
18,
9436,
1435,
1335,
3580,
30,
468,
16594,
2791,
1435,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9436,
12,
2890,
4672,
3536,
8185,
1347,
2632,
1004,
1208,
16020,
279,
1459,
12123,
775,
30,
7313,
16,
3091,
273,
365,
18,
9436,
1435,
1335,
3580,
30,
468,
16594,
2791,
1435,
48... |
if proxy_auth: h.putheader('Proxy-Authorization: Basic %s' % proxy_auth) if auth: h.putheader('Authorization: Basic %s' % auth) | if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth) if auth: h.putheader('Authorization', 'Basic %s' % auth) | def open_https(self, url, data=None): """Use HTTPS protocol.""" import httplib user_passwd = None proxy_passwd = None if isinstance(url, str): host, selector = splithost(url) if host: user_passwd, host = splituser(host) host = unquote(host) realhost = host else: host, selector = url # here, we determine, whether the pr... | 522785732f09b0be6d4bc06a2782ecda66fc83af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/522785732f09b0be6d4bc06a2782ecda66fc83af/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4528,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
18904,
1771,
12123,
1930,
15851,
6673,
729,
67,
24002,
273,
599,
2889,
67,
24002,
273,
599,
309,
1549,
12,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4528,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
18904,
1771,
12123,
1930,
15851,
6673,
729,
67,
24002,
273,
599,
2889,
67,
24002,
273,
599,
309,
1549,
12,
718,
... |
errfunc(101010, "Max timeout retry count reached. Discontinuing download.\n", file) | errfunc(101010, "Max timeout retry count reached. Discontinuing download.\n", url) | def download_from_web(self, url, file, download_dir): '''url = url to fetch file = file to save to donwload_dir = download path''' try: block_size = 4096 i = 0 counter = 0 os.chdir(download_dir) temp = urllib2.urlopen(url) headers = temp.info() size = int(headers['Content-Length']) data = open(file,'wb') #INFO: Add t... | da63a417a8560a39ca821994468a1533f4c1445a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12499/da63a417a8560a39ca821994468a1533f4c1445a/AptOfflineCoreLib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2080,
67,
4875,
12,
2890,
16,
880,
16,
585,
16,
4224,
67,
1214,
4672,
9163,
718,
273,
880,
358,
2158,
585,
273,
585,
358,
1923,
358,
2727,
91,
945,
67,
1214,
273,
4224,
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,
4224,
67,
2080,
67,
4875,
12,
2890,
16,
880,
16,
585,
16,
4224,
67,
1214,
4672,
9163,
718,
273,
880,
358,
2158,
585,
273,
585,
358,
1923,
358,
2727,
91,
945,
67,
1214,
273,
4224,
589... |
....: def __init__(self): ....: 'docstring' ....: pass ....: | ... def __init__(self): ... 'docstring' ... pass ... | ....: def __init__(self): | ac30681adecb60ad7f54407901ac8523b90ec56c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ac30681adecb60ad7f54407901ac8523b90ec56c/sageinspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
29710,
377,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
29710,
377,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ret = [isinstance(x, tuple) and x[0] or x for x in self.choices] | ret = [not isinstance(x, tuple) and x or x[0] for x in self.choices] | def __list__(self): if self.type == choicesList.LIST_TYPE_LIST: ret = [isinstance(x, tuple) and x[0] or x for x in self.choices] else: ret = self.choices.keys() return ret or [""] | cfb43dc930adbbf59879abf8f3f0297caa94a050 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/cfb43dc930adbbf59879abf8f3f0297caa94a050/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1098,
972,
12,
2890,
4672,
309,
365,
18,
723,
422,
7246,
682,
18,
7085,
67,
2399,
67,
7085,
30,
325,
273,
306,
902,
1549,
12,
92,
16,
3193,
13,
471,
619,
578,
619,
63,
20,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1098,
972,
12,
2890,
4672,
309,
365,
18,
723,
422,
7246,
682,
18,
7085,
67,
2399,
67,
7085,
30,
325,
273,
306,
902,
1549,
12,
92,
16,
3193,
13,
471,
619,
578,
619,
63,
20,
65... |
self.args.setdefault("CloseBlockSize", None) | self.args.setdefault("CloseBlockSize", "None") | def __init__(self, **args): self.args = {} | 569d3fce643c2d70ef164e19a67e0b2d581a2fbd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/569d3fce643c2d70ef164e19a67e0b2d581a2fbd/DBSComponent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
365,
18,
1968,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
365,
18,
1968,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if prefix is None: | if not prefix or prefix == 'xmlns': | def attribute(self, name, value, namespace=None): """ add an attribute to an element | dc0c21626583332dd8580bfed28081989b0a28ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14078/dc0c21626583332dd8580bfed28081989b0a28ee/xmlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1566,
12,
2890,
16,
508,
16,
460,
16,
1981,
33,
7036,
4672,
3536,
527,
392,
1566,
358,
392,
930,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1566,
12,
2890,
16,
508,
16,
460,
16,
1981,
33,
7036,
4672,
3536,
527,
392,
1566,
358,
392,
930,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ids = bridgedb.Bridges.chopString(ids_str, bridgedb.Bridges.ID_LEN) logging.info("We've seen %r before. Sending the same %d bridges" " as last time", emailaddress, len(ids)) for ident in ids: | logging.info("We've seen %r before. Sending the same bridges" " as last time", emailaddress) for ident in bridgedb.Bridges.chopString(ids_str, bridgedb.Bridges.ID_LEN): | def getBridgesForEmail(self, emailaddress, epoch, N=1): """Return a list of bridges to give to a user. emailaddress -- the user's email address, as given in a from line. epoch -- the time period when we got this request. This can be any string, so long as it changes with every period. N -- the number of bridges to try... | 7ed74c90857eb65b7d2fa3bc8733531824332e58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5458/7ed74c90857eb65b7d2fa3bc8733531824332e58/Dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
1691,
2852,
1290,
4134,
12,
2890,
16,
2699,
2867,
16,
7632,
16,
423,
33,
21,
4672,
3536,
990,
279,
666,
434,
324,
1691,
2852,
358,
8492,
358,
279,
729,
18,
2699,
2867,
1493,
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,
2882,
1691,
2852,
1290,
4134,
12,
2890,
16,
2699,
2867,
16,
7632,
16,
423,
33,
21,
4672,
3536,
990,
279,
666,
434,
324,
1691,
2852,
358,
8492,
358,
279,
729,
18,
2699,
2867,
1493,
326,... |
need_blank_after_doc = 1 for attr, tag in [('fget', '<get>'), ('fset', '<set>'), ('fdel', '<delete>')]: func = getattr(value, attr) if func is not None: if need_blank_after_doc: push('') need_blank_after_doc = 0 base = self.document(func, tag, mod) push(self.indent(base)) return '\n'.join(results) | push('\n') return ''.join(results) | def _docproperty(self, name, value, mod): results = [] push = results.append | 41b8b8a0df4f3e404b0e2be71e8c5ba7ae6ac80c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/41b8b8a0df4f3e404b0e2be71e8c5ba7ae6ac80c/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2434,
4468,
12,
2890,
16,
508,
16,
460,
16,
681,
4672,
1686,
273,
5378,
1817,
273,
1686,
18,
6923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2434,
4468,
12,
2890,
16,
508,
16,
460,
16,
681,
4672,
1686,
273,
5378,
1817,
273,
1686,
18,
6923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'basic_before_leaves': fields.float('Basic Salary', readonly=True, digits=(16, 2)), 'leaves': fields.float('Leave Deductions', readonly=True, digits=(16, 2)), 'basic': fields.float('Net Basic', readonly=True, digits=(16, 2)), 'grows': fields.function(_calculate, method=True, store=True, multi='dc', string='Gross Sal... | 'basic_before_leaves': fields.float('Basic Salary', readonly=True, digits_compute=dp.get_precision('Account')), 'leaves': fields.float('Leave Deductions', readonly=True, digits_compute=dp.get_precision('Account')), 'basic': fields.float('Net Basic', readonly=True, digits_compute=dp.get_precision('Account')), 'grows'... | def _calculate(self, cr, uid, ids, field_names, arg, context=None): slip_line_obj = self.pool.get('hr.payslip.line') if context is None: context = {} res = {} for rs in self.browse(cr, uid, ids, context=context): allow = 0.0 deduct = 0.0 others = 0.0 obj = {'basic':rs.basic} if rs.igross > 0: obj['gross'] = rs.igross i... | e0bd6974e23888d11f0954c282c2f73add98d1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e0bd6974e23888d11f0954c282c2f73add98d1f2/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
16,
819,
33,
7036,
4672,
272,
3169,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
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,
11162,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
16,
819,
33,
7036,
4672,
272,
3169,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
... |
x = c_escape_char(x) | ex = c_escape_char(x) | def wrap_string(s, width): lines = [] l = '' for x in s: x = c_escape_char(x) # Require l to be nonempty to always add at least one character if l and len(l + x) + 2 >= width: lines.append('"' + l + '"') l = '' l += x if l: lines.append('"' + l + '"') return lines | 114cac45dadfc286cbe3ad8698ed8c5a368e46f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6176/114cac45dadfc286cbe3ad8698ed8c5a368e46f0/flatten.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
1080,
12,
87,
16,
1835,
4672,
2362,
273,
5378,
328,
273,
875,
364,
619,
316,
272,
30,
431,
273,
276,
67,
6939,
67,
3001,
12,
92,
13,
468,
12981,
328,
358,
506,
1661,
5531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
1080,
12,
87,
16,
1835,
4672,
2362,
273,
5378,
328,
273,
875,
364,
619,
316,
272,
30,
431,
273,
276,
67,
6939,
67,
3001,
12,
92,
13,
468,
12981,
328,
358,
506,
1661,
5531,
... |
try: socket.getpeername(self) except socket_error as e: if e.errno != errno.ENOTCONN: raise self._sslobj = None else: | self._closed = False self._sslobj = None if connected: | def __init__(self, sock=None, keyfile=None, certfile=None, server_side=False, cert_reqs=CERT_NONE, ssl_version=PROTOCOL_SSLv23, ca_certs=None, do_handshake_on_connect=True, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None, suppress_ragged_eofs=True, ciphers=None): | a1c7286025d111d72a7197fa62a3504d8e16a31c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/a1c7286025d111d72a7197fa62a3504d8e16a31c/ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
33,
7036,
16,
28632,
33,
7036,
16,
3320,
768,
33,
7036,
16,
1438,
67,
5564,
33,
8381,
16,
3320,
67,
25782,
33,
22367,
67,
9826,
16,
5832,
67,
158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7313,
33,
7036,
16,
28632,
33,
7036,
16,
3320,
768,
33,
7036,
16,
1438,
67,
5564,
33,
8381,
16,
3320,
67,
25782,
33,
22367,
67,
9826,
16,
5832,
67,
158... |
.tolist() | .to_list() | def difference(self): return Query(self.S1) \ .difference(Query(self.S2)) \ .tolist() | f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7114,
12,
2890,
4672,
327,
2770,
12,
2890,
18,
55,
21,
13,
521,
263,
23444,
12,
1138,
12,
2890,
18,
55,
22,
3719,
521,
263,
3490,
376,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7114,
12,
2890,
4672,
327,
2770,
12,
2890,
18,
55,
21,
13,
521,
263,
23444,
12,
1138,
12,
2890,
18,
55,
22,
3719,
521,
263,
3490,
376,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if lastchange < self.namespace_timestamp and dump==0: return isdict = re.compile(self.cfg.page_dict_regex, re.UNICODE).search isgroup = re.compile(self.cfg.page_group_regex, re.UNICODE).search if now - self.namespace_timestamp >= wikiutil.timestamp2version(60): dictpages = self.request.rootpage.getPageList(user... | if lastchange >= self.namespace_timestamp or dump: isdict = re.compile(self.cfg.page_dict_regex, re.UNICODE).search isgroup = re.compile(self.cfg.page_group_regex, re.UNICODE).search if now - self.namespace_timestamp >= wikiutil.timestamp2version(60): dictpages = request.rootpage.getPageList(user='', filter=isdict)... | def scandicts(self): """scan all pages matching the dict / group regex and init the dictdict""" dump = 0 | d95095226b8672f9e208610d28f8a5240edbbfb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/d95095226b8672f9e208610d28f8a5240edbbfb2/wikidicts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
464,
933,
87,
12,
2890,
4672,
3536,
9871,
777,
4689,
3607,
326,
2065,
342,
1041,
3936,
471,
1208,
326,
2065,
1576,
8395,
4657,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
888,
464,
933,
87,
12,
2890,
4672,
3536,
9871,
777,
4689,
3607,
326,
2065,
342,
1041,
3936,
471,
1208,
326,
2065,
1576,
8395,
4657,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
try: | self.NotifyBlockToSaveValue() self._swapControls(self.staticControl) event.Skip() def OnEditKeyUp(self, event): if event.m_keyCode == wx.WXK_RETURN: self.NotifyBlockToSaveValue() self.Navigate() event.Skip() def NotifyBlockToSaveValue(self): """ Tell the block associated with us to save our value now. I wish there we... | def OnEditLoseFocus(self, event): # when we lose focus, check if we have a block and tell it # to save the value. try: saveMethod = self.blockItem.saveValue except AttributeError: pass else: saveMethod() self._swapControls(self.staticControl) event.Skip() | df1217fc40403fcbb793cd794b03e3f56a7c2b57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/df1217fc40403fcbb793cd794b03e3f56a7c2b57/AttributeEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4666,
1504,
307,
9233,
12,
2890,
16,
871,
4672,
468,
1347,
732,
29612,
7155,
16,
866,
309,
732,
1240,
279,
1203,
471,
9276,
518,
468,
225,
358,
1923,
326,
460,
18,
365,
18,
9168,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4666,
1504,
307,
9233,
12,
2890,
16,
871,
4672,
468,
1347,
732,
29612,
7155,
16,
866,
309,
732,
1240,
279,
1203,
471,
9276,
518,
468,
225,
358,
1923,
326,
460,
18,
365,
18,
9168,... |
sensitivies[det]=1.0 | sensitivities[det]=1.0 | def detector_thresholds(min_threshold, ifos, RA, dec, gps_time, sensitivities=None): """ Return a dictionary of sensitivity thresholds for each detector, based on a minimum threshold of min_threshold in the least sensitive one, for a source at position (RA,dec) specified in radians at time gps_time. Specifying a dictio... | 53a79e706267554633da0f19dc24a8fc82ee14b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/53a79e706267554633da0f19dc24a8fc82ee14b9/grbsummary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13826,
67,
8699,
87,
12,
1154,
67,
8699,
16,
309,
538,
16,
26880,
16,
2109,
16,
20985,
67,
957,
16,
15390,
305,
427,
1961,
33,
7036,
4672,
3536,
2000,
279,
3880,
434,
15390,
20862,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13826,
67,
8699,
87,
12,
1154,
67,
8699,
16,
309,
538,
16,
26880,
16,
2109,
16,
20985,
67,
957,
16,
15390,
305,
427,
1961,
33,
7036,
4672,
3536,
2000,
279,
3880,
434,
15390,
20862,
199... |
write_segments_to_xml(doc, proc_id, result) | add_to_segment(doc, proc_id, new_seg_def_id, result) | def run_query_segments(doc, proc_id, engine, gps_start_time, gps_end_time, included_segments_string, excluded_segments_string = None, write_segments = True, start_pad = 0, end_pad = 0): """Runs a segment query. This was originally part of ligolw_query_segments, but now is also used by ligolw_segments_from_cats. The w... | 49a45a3a5ce71e6363dff6edb2856ae35cb56ca6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/49a45a3a5ce71e6363dff6edb2856ae35cb56ca6/segmentdb_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2271,
67,
12838,
12,
2434,
16,
5418,
67,
350,
16,
4073,
16,
20985,
67,
1937,
67,
957,
16,
20985,
67,
409,
67,
957,
16,
5849,
67,
12838,
67,
1080,
16,
8845,
67,
12838,
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,
1086,
67,
2271,
67,
12838,
12,
2434,
16,
5418,
67,
350,
16,
4073,
16,
20985,
67,
1937,
67,
957,
16,
20985,
67,
409,
67,
957,
16,
5849,
67,
12838,
67,
1080,
16,
8845,
67,
12838,
67,
... |
return d.addCallback(gotClient) | d2.addCallback(gotClient) return defer.gatherResults([d1, d2]) | def gotClient(client): self.client = client | 6dc2595124ed21d282576cfb553463fbb3d540f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/6dc2595124ed21d282576cfb553463fbb3d540f3/test_ftp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
1227,
12,
2625,
4672,
365,
18,
2625,
273,
1004,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
1227,
12,
2625,
4672,
365,
18,
2625,
273,
1004,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
original_id, chromosome, start, stop, size_affected = row[:5] if run_type==2: score = float(row[-1]) | if run_type ==1: cnv_qc_call = self.generateCNVQCCallObjType1(session, row, data_source_obj, cnv_type_obj, cnv_method_obj) elif run_type ==2: cnv_qc_call = self.generateCNVQCCallObjType2(session, row, data_source_obj, cnv_type_obj, cnv_method_obj) elif run_type==3: cnv_qc_call = self.generateCNVQCCallObjFromBobSchmitzD... | def putQCIntoDB(self, session, input_fname, no_of_lines_to_skip, data_source_obj, cnv_type_obj, cnv_method_obj=None, run_type=1): """ 2009-10-28 """ sys.stderr.write("Putting QC data into database ...") reader = csv.reader(open(input_fname), delimiter=figureOutDelimiter(input_fname)) for i in range(no_of_lines_to_skip)... | e6409a213b00133552c26c26724e615e15749a74 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/e6409a213b00133552c26c26724e615e15749a74/CNVQCConstruct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
53,
39,
5952,
2290,
12,
2890,
16,
1339,
16,
810,
67,
12749,
16,
1158,
67,
792,
67,
3548,
67,
869,
67,
7457,
16,
501,
67,
3168,
67,
2603,
16,
6227,
90,
67,
723,
67,
2603,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
53,
39,
5952,
2290,
12,
2890,
16,
1339,
16,
810,
67,
12749,
16,
1158,
67,
792,
67,
3548,
67,
869,
67,
7457,
16,
501,
67,
3168,
67,
2603,
16,
6227,
90,
67,
723,
67,
2603,
16,
... |
ATOMARY = measure_counter() | ATOMARY = unit_counter() | def __call__(self): self.counter += 1 return self.counter | d7e53d29fe719b1e45bc2352292905063a9da8bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/d7e53d29fe719b1e45bc2352292905063a9da8bc/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
365,
18,
7476,
1011,
404,
327,
365,
18,
7476,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
365,
18,
7476,
1011,
404,
327,
365,
18,
7476,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
user_pass = base64.encode_string(unquote(user_passw)).strip() req.addheader('Proxy-Authorization', user_pass) | user_pass = base64.encodestring(unquote(user_pass)).strip() req.add_header('Proxy-Authorization', 'Basic '+user_pass) | def proxy_open(self, req, proxy, type): orig_type = req.get_type() type, r_type = splittype(proxy) host, XXX = splithost(r_type) if '@' in host: user_pass, host = host.split('@', 1) user_pass = base64.encode_string(unquote(user_passw)).strip() req.addheader('Proxy-Authorization', user_pass) host = unquote(host) req.set... | a9622a9af8d20bbd03a15a63df4b8c3261cfa69f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a9622a9af8d20bbd03a15a63df4b8c3261cfa69f/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2889,
67,
3190,
12,
2890,
16,
1111,
16,
2889,
16,
618,
4672,
1647,
67,
723,
273,
1111,
18,
588,
67,
723,
1435,
618,
16,
436,
67,
723,
273,
1416,
723,
12,
5656,
13,
1479,
16,
11329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2889,
67,
3190,
12,
2890,
16,
1111,
16,
2889,
16,
618,
4672,
1647,
67,
723,
273,
1111,
18,
588,
67,
723,
1435,
618,
16,
436,
67,
723,
273,
1416,
723,
12,
5656,
13,
1479,
16,
11329,
... |
def startLiveVideo(self, force): if (self.ca.glive.window == self.liveVideoWindow and self.ca.props.active and not force): return self.liveVideoWindow.set_glive(self.ca.glive) | def startLiveVideo(self): | def startLiveVideo(self, force): #We need to know which window and which pipe here | 3fc5af5916d50b6e7a078f21a364a17429e82f23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6451/3fc5af5916d50b6e7a078f21a364a17429e82f23/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12328,
10083,
12,
2890,
16,
2944,
4672,
468,
3218,
1608,
358,
5055,
1492,
2742,
471,
1492,
6010,
2674,
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,
787,
12328,
10083,
12,
2890,
16,
2944,
4672,
468,
3218,
1608,
358,
5055,
1492,
2742,
471,
1492,
6010,
2674,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def translation(domain, localedir=None, languages=None, class_=None): | def translation(domain, localedir=None, languages=None, class_=None, fallback=0): | def translation(domain, localedir=None, languages=None, class_=None): if class_ is None: class_ = GNUTranslations mofile = find(domain, localedir, languages) if mofile is None: raise IOError(ENOENT, 'No translation file found for domain', domain) key = os.path.abspath(mofile) # TBD: do we need to worry about the file p... | 1c90bcccc8face48d4f18328c0c3cb8d8262f998 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1c90bcccc8face48d4f18328c0c3cb8d8262f998/gettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4794,
12,
4308,
16,
1191,
23210,
33,
7036,
16,
8191,
33,
7036,
16,
667,
67,
33,
7036,
16,
5922,
33,
20,
4672,
309,
667,
67,
353,
599,
30,
667,
67,
273,
611,
50,
57,
12297,
7344,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4794,
12,
4308,
16,
1191,
23210,
33,
7036,
16,
8191,
33,
7036,
16,
667,
67,
33,
7036,
16,
5922,
33,
20,
4672,
309,
667,
67,
353,
599,
30,
667,
67,
273,
611,
50,
57,
12297,
7344,
76... |
self.logger.info(packages) self.cmd.run("emerge --unmerge --quiet =%s" % " =".join(packages)) | self.logger.info(pkgnames) self.cmd.run("emerge --unmerge --quiet %s" % " ".join(pkgnames.split(' '))) | def RemovePackages(self, packages): '''Deal with extra configuration detected''' if len(packages) > 0: self.logger.info('Removing packages:') self.logger.info(packages) self.cmd.run("emerge --unmerge --quiet =%s" % " =".join(packages)) self.RefreshPackages() self.extra = self.FindExtraPackages() | 35bac7c7a1c023f0dbda7a43e647a0372f669a76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/35bac7c7a1c023f0dbda7a43e647a0372f669a76/Portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3581,
11425,
12,
2890,
16,
5907,
4672,
9163,
758,
287,
598,
2870,
1664,
8316,
26418,
309,
562,
12,
10308,
13,
405,
374,
30,
365,
18,
4901,
18,
1376,
2668,
18939,
5907,
2497,
13,
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,
3581,
11425,
12,
2890,
16,
5907,
4672,
9163,
758,
287,
598,
2870,
1664,
8316,
26418,
309,
562,
12,
10308,
13,
405,
374,
30,
365,
18,
4901,
18,
1376,
2668,
18939,
5907,
2497,
13,
365,
1... |
override = kwargs.pop('priority') or 2 | override_priority = kwargs.pop('priority') or 2 | def delay(self, *args, **kwargs): try: override = kwargs.pop('priority') or 2 except KeyError: override = priority | 3541697e3bd4727f67713283a769e023f8cff9b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14092/3541697e3bd4727f67713283a769e023f8cff9b6/tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4624,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
3849,
67,
8457,
273,
1205,
18,
5120,
2668,
8457,
6134,
578,
576,
1335,
4999,
30,
3849,
273,
4394,
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,
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,
4624,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
3849,
67,
8457,
273,
1205,
18,
5120,
2668,
8457,
6134,
578,
576,
1335,
4999,
30,
3849,
273,
4394,
2,
-100,
-100,
-100,
-10... |
self.exec_prefix = sys.exec_prefix | self.exec_prefix = os.path.normpath (sys.exec_prefix) | def set_final_options (self): | f0a18abab7ed197a1eae965cc7198ad45b4bc275 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f0a18abab7ed197a1eae965cc7198ad45b4bc275/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6385,
67,
2116,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6385,
67,
2116,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Returns the Cartan Type. | Returns the Cartan type. | def cartan_type(self): """ Returns the Cartan Type. | 67d654215599230a09c5cccc4e460acbf57b6338 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/67d654215599230a09c5cccc4e460acbf57b6338/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7035,
304,
67,
723,
12,
2890,
4672,
3536,
2860,
326,
17695,
304,
1412,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7035,
304,
67,
723,
12,
2890,
4672,
3536,
2860,
326,
17695,
304,
1412,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ascent >= 0 and descent >= 0: | if ascent >= 0 or descent >= 0: | def extract_metrics_info(dvipng_stdout, metrics_file): metrics = open(metrics_file, 'w') | eedb4c6821c23344b8d26be2cba36e10c38c3037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/eedb4c6821c23344b8d26be2cba36e10c38c3037/lyxpreview2bitmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
9597,
67,
1376,
12,
72,
522,
6446,
67,
10283,
16,
4309,
67,
768,
4672,
4309,
273,
1696,
12,
9597,
67,
768,
16,
296,
91,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2608,
67,
9597,
67,
1376,
12,
72,
522,
6446,
67,
10283,
16,
4309,
67,
768,
4672,
4309,
273,
1696,
12,
9597,
67,
768,
16,
296,
91,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
search_keywords = u' or '.join((folder.getLocalProperty('keywords', 'en')+' '+folder.getLocalProperty('title', 'en')).split()) expr = 'self.getCatalogedObjects(meta_type=\'%s\', approved=1, objectkeywords_%s=search_keywords)' % (METATYPE_NYSEMPROJECT, 'en') return eval(expr) | search_keywords = u' or '.join((folder.getLocalProperty('keywords', 'en')+' '+folder.getLocalProperty('title', 'en')).split()) expr = 'self.getCatalogedObjects(meta_type=\'%s\', approved=1, objectkeywords_%s=search_keywords)' % (METATYPE_NYSEMPROJECT, 'en') return eval(expr) | def getInitiativesProjects(self, folder=None): """returns a list with projects related with a folder inside the Initiatives folder""" try: search_keywords = u' or '.join((folder.getLocalProperty('keywords', 'en')+' '+folder.getLocalProperty('title', 'en')).split()) expr = 'self.getCatalogedObjects(meta_type=\'%s\', app... | 9bafd90013beef4170a14ef742a93e7bdabaa85c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/9bafd90013beef4170a14ef742a93e7bdabaa85c/SEMIDESite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26458,
77,
8785,
15298,
12,
2890,
16,
3009,
33,
7036,
4672,
3536,
6154,
279,
666,
598,
10137,
3746,
598,
279,
3009,
4832,
326,
4378,
77,
8785,
3009,
8395,
775,
30,
1623,
67,
11771,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26458,
77,
8785,
15298,
12,
2890,
16,
3009,
33,
7036,
4672,
3536,
6154,
279,
666,
598,
10137,
3746,
598,
279,
3009,
4832,
326,
4378,
77,
8785,
3009,
8395,
775,
30,
1623,
67,
11771,
273,
... |
A resource specificiation dict of the form {'rspec_type':type, 'number_of_nodes':num} | A resource specification dict of the form {'rspec_type':type, 'number_of_nodes':num} | def acquire_resources(auth, rspec): """ <Purpose> Acquires resources for users over XMLRPC. <Arguments> auth An authorization dict of the form {'username':username, 'password':password} rspec A resource specificiation dict of the form {'rspec_type':type, 'number_of_nodes':num} <Exceptions> Raises xmlrpclib Fault object... | e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10533,
67,
4683,
12,
1944,
16,
436,
2793,
4672,
3536,
411,
10262,
4150,
34,
12848,
4138,
2703,
364,
3677,
1879,
3167,
8087,
18,
411,
4628,
34,
1357,
1922,
6093,
2065,
434,
326,
646,
1366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10533,
67,
4683,
12,
1944,
16,
436,
2793,
4672,
3536,
411,
10262,
4150,
34,
12848,
4138,
2703,
364,
3677,
1879,
3167,
8087,
18,
411,
4628,
34,
1357,
1922,
6093,
2065,
434,
326,
646,
1366... |
object, this object mimics the mapped class using a | object, this object mimics the mapped class using a | def replace(self, elem): entity = elem._annotations.get('parentmapper', None) if not entity or entity.isa(self.mapper): return sql_util.ColumnAdapter.replace(self, elem) else: return None | 40b20c680a5fe8ef85b9b99b23769f4dc59f1504 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/40b20c680a5fe8ef85b9b99b23769f4dc59f1504/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
12,
2890,
16,
3659,
4672,
1522,
273,
3659,
6315,
14670,
18,
588,
2668,
2938,
13919,
2187,
599,
13,
309,
486,
1522,
578,
1522,
18,
291,
69,
12,
2890,
18,
13919,
4672,
327,
1847,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
12,
2890,
16,
3659,
4672,
1522,
273,
3659,
6315,
14670,
18,
588,
2668,
2938,
13919,
2187,
599,
13,
309,
486,
1522,
578,
1522,
18,
291,
69,
12,
2890,
18,
13919,
4672,
327,
1847,
6... |
logs = opslogfile.read() parts = split_logs_into_loops(logs) | log = logparser.parse_log_file(str(opslogfile)) parts = logparser.extract_category(log, 'jit-log-opt-') | def parse_loops(self, opslogfile): from pypy.jit.metainterp.test.oparser import parse, split_logs_into_loops assert opslogfile.check() logs = opslogfile.read() parts = split_logs_into_loops(logs) # skip entry bridges, they can contain random things self.loops = [parse(part, no_namespace=True) for part in parts if "entr... | 97ffdf6dc66366ed037330ba6471e27eef2e48bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/97ffdf6dc66366ed037330ba6471e27eef2e48bc/test_pypy_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
383,
4473,
12,
2890,
16,
6727,
28806,
4672,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
3813,
18,
556,
297,
550,
1930,
1109,
16,
1416,
67,
10011,
67,
18591,
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,
1109,
67,
383,
4473,
12,
2890,
16,
6727,
28806,
4672,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
3813,
18,
556,
297,
550,
1930,
1109,
16,
1416,
67,
10011,
67,
18591,
67,
... |
try: image_num = int(path[0]) filename = self.remotefilelist[image_num] dest_filename = os.path.expanduser("~/.covers/" + self.remote_artist + "-" + self.remote_album + ".jpg") if os.path.exists(filename): | image_num = int(path[0]) filename = self.remotefilelist[image_num] dest_filename = os.path.expanduser("~/.covers/" + self.remote_artist + "-" + self.remote_album + ".jpg") if os.path.exists(filename): try: | def replace_cover(self, iconview, path, dialog): self.stop_art_update = True try: image_num = int(path[0]) filename = self.remotefilelist[image_num] dest_filename = os.path.expanduser("~/.covers/" + self.remote_artist + "-" + self.remote_album + ".jpg") if os.path.exists(filename): # Move temp file to actual file: os.r... | befca61320fc2a23a6097565158d29e764e5b07c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/befca61320fc2a23a6097565158d29e764e5b07c/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
3165,
12,
2890,
16,
4126,
1945,
16,
589,
16,
6176,
4672,
365,
18,
5681,
67,
485,
67,
2725,
273,
1053,
775,
30,
1316,
67,
2107,
273,
509,
12,
803,
63,
20,
5717,
1544,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
3165,
12,
2890,
16,
4126,
1945,
16,
589,
16,
6176,
4672,
365,
18,
5681,
67,
485,
67,
2725,
273,
1053,
775,
30,
1316,
67,
2107,
273,
509,
12,
803,
63,
20,
5717,
1544,
273,
... |
<description>bla </description> | <description><![CDATA[bla ]]></description> | def testRdfDescription (self): self.filt("""<?xml version="1.0" encoding="ISO-8859-1"?> | ae882b652ae62ad0507759dc05158de20a7b6d5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ae882b652ae62ad0507759dc05158de20a7b6d5a/test_xmlrewriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
27616,
3291,
261,
2890,
4672,
365,
18,
30991,
2932,
3660,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
12609,
17,
17258,
17,
21,
6,
35,
34,
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,
1842,
27616,
3291,
261,
2890,
4672,
365,
18,
30991,
2932,
3660,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
12609,
17,
17258,
17,
21,
6,
35,
34,
2,
-100,
-100,
-100,
-100,
-100... |
if not self.start_time: self.start_time = time.time() | def update(self, value): "Updates the progress bar to a new value." assert 0 <= value <= self.maxval self.currval = value if not self._need_update() or self.finished: return if not self.start_time: self.start_time = time.time() self.seconds_elapsed = time.time() - self.start_time self.prev_percentage = self.percentage(... | c109edddd8f1b11193779fab960ac9b94b56e2c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11527/c109edddd8f1b11193779fab960ac9b94b56e2c9/progressbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
460,
4672,
315,
5121,
326,
4007,
4653,
358,
279,
394,
460,
1199,
1815,
374,
1648,
460,
1648,
365,
18,
1896,
1125,
365,
18,
17016,
1125,
273,
460,
309,
486,
365,
631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
460,
4672,
315,
5121,
326,
4007,
4653,
358,
279,
394,
460,
1199,
1815,
374,
1648,
460,
1648,
365,
18,
1896,
1125,
365,
18,
17016,
1125,
273,
460,
309,
486,
365,
631... | |
endput = endput+testname+"\nString 'Success' or 'killing' not in logdata\n\n" | endput = endput+testname+"\nString 'Success' or 'kill' not in logdata\n\n" | def do_actual_test(testtype, restrictionfn, testname, is_python_test): global endput global mobileNoSubprocess # match python if testtype == 's': if not mobileNoSubprocess: (pyout, pyerr) = exec_command('python '+testname) (testout, testerr) = exec_repy_script(testname, restrictionfn, {'simple':''}) else: # TODO: Read... | d8ac0874850202813e63a494191075408d02a897 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/d8ac0874850202813e63a494191075408d02a897/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
18672,
67,
3813,
12,
3813,
723,
16,
9318,
4293,
16,
1842,
529,
16,
353,
67,
8103,
67,
3813,
4672,
2552,
679,
458,
2552,
13411,
2279,
1676,
2567,
225,
468,
845,
5790,
309,
1842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
18672,
67,
3813,
12,
3813,
723,
16,
9318,
4293,
16,
1842,
529,
16,
353,
67,
8103,
67,
3813,
4672,
2552,
679,
458,
2552,
13411,
2279,
1676,
2567,
225,
468,
845,
5790,
309,
1842... |
if data.domain.classVar.varType == orange.VarTypes.Discrete: if self.kValueFormula == 0: self.kValue = int(sqrt(len(data))) elif self.kValueFormula == 1: self.kValue = int(len(data) / len(data.domain.classVar.values)) else: self.kValue = 10 | if self.kValueFormula == 0 or not data.domain.classVar or data.domain.classVar.varType == orange.VarTypes.Continuous: self.kValue = int(sqrt(len(data))) elif self.kValueFormula == 1: self.kValue = int(len(data) / len(data.domain.classVar.values)) | def setData(self, data): self.data = data | b5459e3f81932e8425c20f13ca454f5068080f1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/b5459e3f81932e8425c20f13ca454f5068080f1a/orngVizRank.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
501,
4672,
365,
18,
892,
273,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
501,
4672,
365,
18,
892,
273,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
elif SectionHeader[1] == '.data': | elif SectionHeader[0] in ['.data', '.sdata']: | def _RebaseModule (self, MapBuffer, BaseAddress, ModuleList, AddrIsOffset = True, ModeIsSmm = False): if ModeIsSmm: AddrIsOffset = False InfFileNameList = ModuleList.keys() #InfFileNameList.sort() for InfFile in InfFileNameList: sys.stdout.write (".") sys.stdout.flush() ModuleInfo = ModuleList[InfFile] ModuleName = Mod... | ef3747968bba5f59e31e3a867cfc32eb8a676f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/ef3747968bba5f59e31e3a867cfc32eb8a676f78/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
426,
1969,
3120,
261,
2890,
16,
1635,
1892,
16,
3360,
1887,
16,
5924,
682,
16,
10216,
2520,
2335,
273,
1053,
16,
8126,
2520,
55,
7020,
273,
1083,
4672,
309,
8126,
2520,
55,
7020,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
426,
1969,
3120,
261,
2890,
16,
1635,
1892,
16,
3360,
1887,
16,
5924,
682,
16,
10216,
2520,
2335,
273,
1053,
16,
8126,
2520,
55,
7020,
273,
1083,
4672,
309,
8126,
2520,
55,
7020,
... |
eval(args_left.pop(0)) | exec args_left.pop(0) | def AddToPath(path): # if it's a relative path and we know what directory the current # python script is in, make the path relative to that directory. if not os.path.isabs(path) and sys.path[0]: path = os.path.join(sys.path[0], path) path = os.path.realpath(path) # sys.path[0] should always refer to the current script'... | 295c7a908cfeecc7276f559ff53282a177f4eb66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6787/295c7a908cfeecc7276f559ff53282a177f4eb66/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
774,
743,
12,
803,
4672,
468,
309,
518,
1807,
279,
3632,
589,
471,
732,
5055,
4121,
1867,
326,
783,
468,
5790,
2728,
353,
316,
16,
1221,
326,
589,
3632,
358,
716,
1867,
18,
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,
1436,
774,
743,
12,
803,
4672,
468,
309,
518,
1807,
279,
3632,
589,
471,
732,
5055,
4121,
1867,
326,
783,
468,
5790,
2728,
353,
316,
16,
1221,
326,
589,
3632,
358,
716,
1867,
18,
309,
... |
pos.append({"position":"img", "window":self.liveVideoWindow}) pos.append({"position":"max", "window":self.maxWindow} ) pos.append({"position":"eye", "window":self.recordWindow} ) | if (not self.COUNTINGDOWN): pos.append({"position":"img", "window":self.liveVideoWindow} ) pos.append({"position":"max", "window":self.maxWindow} ) pos.append({"position":"eye", "window":self.recordWindow} ) else: pos.append({"position":"img", "window":self.liveVideoWindow} ) pos.append({"position":"max", "window":self... | def updateVideoComponents( self ): if ( (self.LAST_MODE == self.ca.m.MODE) and (self.LAST_FULLSCREEN == self.FULLSCREEN) and (self.LAST_LIVE == self.LIVEMODE) and (self.LAST_RECD_INFO == self.RECD_INFO_ON) and (self.LAST_TRANSCODING == self.TRANSCODING)): return | a2ca8daca04eab073f1d77b9c429e2a44ce76e17 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6451/a2ca8daca04eab073f1d77b9c429e2a44ce76e17/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
10083,
7171,
12,
365,
262,
30,
309,
261,
202,
12,
2890,
18,
14378,
67,
7038,
422,
365,
18,
5353,
18,
81,
18,
7038,
13,
471,
261,
2890,
18,
14378,
67,
18111,
27908,
422,
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,
10083,
7171,
12,
365,
262,
30,
309,
261,
202,
12,
2890,
18,
14378,
67,
7038,
422,
365,
18,
5353,
18,
81,
18,
7038,
13,
471,
261,
2890,
18,
14378,
67,
18111,
27908,
422,
365,
18... |
is_terminilogy_project = property(lambda self: self.project.code == "terminology") | is_terminology_project = property(lambda self: self.project.code == "terminology") stores = property(lambda self: Store.objects.filter(pootle_path__startswith=self.directory.pootle_path)) | def getsuggestions(self, pofile, item): """find all the suggestions submitted for the given (pofile or pofilename) and item""" if isinstance(pofile, (str, unicode)): pofilename = pofile pofile = self.getpofile(pofilename) suggestpos = pofile.getsuggestions(item) return suggestpos | 427d64bb9fd3de0451356553247e71a46cc68061 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/427d64bb9fd3de0451356553247e71a46cc68061/translation_project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5571,
12500,
12,
2890,
16,
8275,
768,
16,
761,
4672,
3536,
4720,
777,
326,
17969,
9638,
364,
326,
864,
261,
1631,
768,
578,
293,
792,
2550,
13,
471,
761,
8395,
309,
1549,
12,
1631,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5571,
12500,
12,
2890,
16,
8275,
768,
16,
761,
4672,
3536,
4720,
777,
326,
17969,
9638,
364,
326,
864,
261,
1631,
768,
578,
293,
792,
2550,
13,
471,
761,
8395,
309,
1549,
12,
1631,
768... |
'sys_prefix': sysconfig.PREFIX, 'sys_exec_prefix': sysconfig.EXEC_PREFIX, | 'sys_prefix': prefix, 'prefix': prefix, 'sys_exec_prefix': exec_prefix, 'exec_prefix': exec_prefix, | def finalize_options (self): | af4f11a32ca7b8c0e15c3cc8c33f5d588f9c9a33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/af4f11a32ca7b8c0e15c3cc8c33f5d588f9c9a33/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
('[[DateTime(2000-01-01T00:00:00Z)]]', '2000-01-01 00:00:00'), | ('[[DateTime(2000-01-01T00:00:00Z)]]', '2000-01-01 00:00:00'), | def testHeadingWithWhiteSpace(self): """ parser.wiki: TOC links to headings with white space | d47c7c86451ce60847ae5d54b86e7a3130bdd76a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/d47c7c86451ce60847ae5d54b86e7a3130bdd76a/test_text_moin_wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
21867,
1190,
23108,
12,
2890,
4672,
3536,
2082,
18,
13044,
30,
8493,
39,
4716,
358,
910,
899,
598,
9578,
3476,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
21867,
1190,
23108,
12,
2890,
4672,
3536,
2082,
18,
13044,
30,
8493,
39,
4716,
358,
910,
899,
598,
9578,
3476,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.file_type = "image/gcompris+draw image/svg+xml" | self.file_type = "image/gcompris+draw" if python_xml: self.file_type = self.file_type + " image/svg+xml" | def __init__(self, gcomprisBoard): | 0f71000645566dbe734440e44a39b9a57c6972bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/0f71000645566dbe734440e44a39b9a57c6972bd/anim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function' | 'defaults' is an n-tuple of the default values of the last n arguments. """ if ismethod(func): func = func.im_func if not isfunction(func): raise TypeError('arg is not a Python function') | def getargspec(func): """Get the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tupl... | 8cd1a0aaff3375b10b5ddbfb15182e95a3bb7202 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8cd1a0aaff3375b10b5ddbfb15182e95a3bb7202/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23172,
12,
644,
4672,
3536,
967,
326,
1257,
471,
805,
924,
434,
279,
445,
1807,
1775,
18,
225,
432,
3193,
434,
12792,
9198,
353,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23172,
12,
644,
4672,
3536,
967,
326,
1257,
471,
805,
924,
434,
279,
445,
1807,
1775,
18,
225,
432,
3193,
434,
12792,
9198,
353,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
16,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.