rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
""" if _debug: print "\t%s: Called setData() in Plot()" % rendererName | @type dataList: tuple """ if _debug: print "\t%s: Called Plot.setData()" % rendererName | def setData(self,*dataList): """ Set data to Plot | 705588e48e70a8dec0e8286968b0077d85e8602e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/705588e48e70a8dec0e8286968b0077d85e8602e/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
14,
892,
682,
4672,
3536,
1000,
501,
358,
15211,
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,
7929,
12,
2890,
16,
14,
892,
682,
4672,
3536,
1000,
501,
358,
15211,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for low-level securicy. | to be able to get data out of such a file. | def _decodeExtra(self): # Try to decode the extra field. extra = self.extra unpack = struct.unpack while extra: tp, ln = unpack('<hh', extra[:4]) if tp == 1: if ln >= 24: counts = unpack('<qqq', extra[4:28]) elif ln == 16: counts = unpack('<qq', extra[4:20]) elif ln == 8: counts = unpack('<q', extra[4:12]) elif ln == 0... | c02d4b68c80932883d20260d0431acf8bc7be791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/c02d4b68c80932883d20260d0431acf8bc7be791/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
7800,
12,
2890,
4672,
468,
6161,
358,
2495,
326,
2870,
652,
18,
2870,
273,
365,
18,
7763,
6167,
273,
1958,
18,
17309,
1323,
2870,
30,
8071,
16,
7211,
273,
6167,
2668,
32,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3922,
7800,
12,
2890,
4672,
468,
6161,
358,
2495,
326,
2870,
652,
18,
2870,
273,
365,
18,
7763,
6167,
273,
1958,
18,
17309,
1323,
2870,
30,
8071,
16,
7211,
273,
6167,
2668,
32,
21... |
break | break | def getProcessParamsFromCache(self, subCache, tag, time, getInsp = False, ifo_in_coinc=None): process = self.ifoDict() inspTable = self.ifoDict() for ifo in subCache: for f in subCache[ifo]: path = f.path() extension = path.split('.')[len(path.split('.'))-1] if extension == 'gz': gz = True else: gz = False doc = utils.... | f4579c67f99b15798056536d4fe83926eb293496 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/f4579c67f99b15798056536d4fe83926eb293496/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18758,
1370,
19800,
12,
2890,
16,
720,
1649,
16,
1047,
16,
813,
16,
7854,
1752,
273,
1083,
16,
21479,
67,
267,
67,
12645,
71,
33,
7036,
4672,
1207,
273,
365,
18,
20299,
5014,
1435,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18758,
1370,
19800,
12,
2890,
16,
720,
1649,
16,
1047,
16,
813,
16,
7854,
1752,
273,
1083,
16,
21479,
67,
267,
67,
12645,
71,
33,
7036,
4672,
1207,
273,
365,
18,
20299,
5014,
1435,
316... |
result = self.make_token(start, self.last_matched_index, source) | result = self.make_token(start, self.last_matched_state, source) | def find_next_token(self): while 1: self.state = 0 start = self.last_matched_index + 1 assert start >= 0 | ab2dd1d0d919309230ba14eaf8630e3f031f665b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/ab2dd1d0d919309230ba14eaf8630e3f031f665b/lexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4285,
67,
2316,
12,
2890,
4672,
1323,
404,
30,
365,
18,
2019,
273,
374,
787,
273,
365,
18,
2722,
67,
11073,
67,
1615,
397,
404,
1815,
787,
1545,
374,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4285,
67,
2316,
12,
2890,
4672,
1323,
404,
30,
365,
18,
2019,
273,
374,
787,
273,
365,
18,
2722,
67,
11073,
67,
1615,
397,
404,
1815,
787,
1545,
374,
2,
-100,
-100,
-100,
-... |
return self.manage_cacheGC(self,REQUEST) | if REQUEST is not None: response=REQUEST['RESPONSE'] response.redirect(REQUEST['URL1']+'/manage_cacheGC') | def manage_minimize(self,value,REQUEST): "Perform a full sweep through the cache" try: db=self._p_jar.db() except: # BoboPOS2 Globals.Bobobase._jar.cache.minimize(value) else: db.cacheMinimize(value) | 93134a644322e3d4768e743498faddead223d85a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/93134a644322e3d4768e743498faddead223d85a/CacheManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
1154,
10153,
12,
2890,
16,
1132,
16,
5519,
4672,
315,
4990,
279,
1983,
17462,
3059,
326,
1247,
6,
775,
30,
1319,
33,
2890,
6315,
84,
67,
11930,
18,
1966,
1435,
1335,
30,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
1154,
10153,
12,
2890,
16,
1132,
16,
5519,
4672,
315,
4990,
279,
1983,
17462,
3059,
326,
1247,
6,
775,
30,
1319,
33,
2890,
6315,
84,
67,
11930,
18,
1966,
1435,
1335,
30,
468... |
test_support.run_unittest(InstantiationTest, | test_support.run_unittest(AbstractOnSyspathTest, InstantiationTest, | def test_main(): test_support.run_unittest(InstantiationTest, BeanTest, MethodVisibilityTest, ExtendJavaTest, SysIntegrationTest) | d61d150da8ca90abaa8e172d86f0919155171b58 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/d61d150da8ca90abaa8e172d86f0919155171b58/test_java_integration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
7469,
1398,
12712,
803,
4709,
16,
18069,
4709,
16,
7704,
4709,
16,
2985,
10135,
4709,
16,
27686,
5852,
4709,
16,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
7469,
1398,
12712,
803,
4709,
16,
18069,
4709,
16,
7704,
4709,
16,
2985,
10135,
4709,
16,
27686,
5852,
4709,
16,
169... |
if self.current.type == 'eof': | if self.current.type is TOKEN_EOF: | def expect(self, expr): """Expect a given token type and return it. This accepts the same argument as :meth:`jinja2.lexer.Token.test`. """ if not self.current.test(expr): if ':' in expr: expr = expr.split(':')[1] if self.current.type == 'eof': raise TemplateSyntaxError('unexpected end of template, ' 'expected %r.' % e... | b3b5802349723ab864cc3531ac9b72a230cb841e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14446/b3b5802349723ab864cc3531ac9b72a230cb841e/lexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
3065,
4672,
3536,
11988,
279,
864,
1147,
618,
471,
327,
518,
18,
225,
1220,
8104,
326,
1967,
1237,
487,
294,
27305,
28288,
78,
17614,
22,
18,
31731,
18,
1345,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
3065,
4672,
3536,
11988,
279,
864,
1147,
618,
471,
327,
518,
18,
225,
1220,
8104,
326,
1967,
1237,
487,
294,
27305,
28288,
78,
17614,
22,
18,
31731,
18,
1345,
18,
3... |
if line[1]: line_amount = voucher_line_pool.browse(cr, uid, line[1]).untax_amount else: line_amount = line[2].get('amount') | line_amount = line[2].get('amount') | def onchange_price(self, cr, uid, ids, line_ids, tax_id, partner_id=False, context={}): tax_pool = self.pool.get('account.tax') partner_pool = self.pool.get('res.partner') position_pool = self.pool.get('account.fiscal.position') voucher_line_pool = self.pool.get('account.voucher.line') res = { 'tax_amount':False, 'amou... | 3db30f732752ade5c9c2e3f43b43414620071ca3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3db30f732752ade5c9c2e3f43b43414620071ca3/voucher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8694,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
980,
67,
2232,
16,
5320,
67,
350,
16,
19170,
67,
350,
33,
8381,
16,
819,
12938,
4672,
5320,
67,
6011,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8694,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
980,
67,
2232,
16,
5320,
67,
350,
16,
19170,
67,
350,
33,
8381,
16,
819,
12938,
4672,
5320,
67,
6011,
273,
365,
18,
... |
if len(filtered)==1 and os.path.isfile(filtered[0]): | if len(filtered) and os.path.isfile(filtered[0]): | def pygments_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): try: lexer = get_lexer_by_name(arguments[0]) except ValueError: # no lexer found - use the text one instead of an exception lexer = TextLexer() # take an arbitrary option if more than one is given format... | 5ed7d5a450ff740076a47305def5741f13997199 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/5ed7d5a450ff740076a47305def5741f13997199/ug2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
75,
1346,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
775,
30,
8512,
273,
336,
67,
31731... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
75,
1346,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
775,
30,
8512,
273,
336,
67,
31731... |
escape = {"<":"<", ">":">", " ":" "} | escape = {"<":"<", ">":">", " ":" ", "&":"&", "\"":"""} | def fPrint(self, scanner, text): escape = {"<":"<", ">":">", " ":" "} if text in escape: text = escape[text] if self.__tmpElem is None: self.__tmpElem = ('print', '') (a,b) = self.__tmpElem self.__tmpElem = (a, b+text) | 14612cf6705353a47b74a90b6f5c512f502c1b41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8874/14612cf6705353a47b74a90b6f5c512f502c1b41/CLexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
5108,
12,
2890,
16,
7683,
16,
977,
4672,
4114,
273,
12528,
32,
15563,
10,
5618,
31,
3113,
14675,
2773,
10,
4521,
31,
3113,
315,
6153,
10,
10600,
31,
3113,
7830,
15563,
10,
931,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
5108,
12,
2890,
16,
7683,
16,
977,
4672,
4114,
273,
12528,
32,
15563,
10,
5618,
31,
3113,
14675,
2773,
10,
4521,
31,
3113,
315,
6153,
10,
10600,
31,
3113,
7830,
15563,
10,
931,
31... |
cp.read("hm_post.ini") | try: cp.read("hm_post.ini") except: print "couldn't find hm_post.ini" sys.exit(1) | def grep_pieces_and_append(string, inname, outname, append_cache=None): expr = re.compile(string) new_list = filter(expr.search,open(inname).readlines()) new_list.sort() #print len(new_list) outnames = [] try: os.mkdir(outname) except: pass # To make sure that includes slides and zero lag for i in range(len(new_list)):... | 21dba4268dfcdf4fec27c6169c1cae944fae62d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/21dba4268dfcdf4fec27c6169c1cae944fae62d5/highmass_post_process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
67,
31016,
67,
464,
67,
6923,
12,
1080,
16,
316,
529,
16,
596,
529,
16,
714,
67,
2493,
33,
7036,
4672,
3065,
273,
283,
18,
11100,
12,
1080,
13,
394,
67,
1098,
273,
1034,
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,
23366,
67,
31016,
67,
464,
67,
6923,
12,
1080,
16,
316,
529,
16,
596,
529,
16,
714,
67,
2493,
33,
7036,
4672,
3065,
273,
283,
18,
11100,
12,
1080,
13,
394,
67,
1098,
273,
1034,
12,
... |
self.docname = m.group(2) + "()" | self.docname = m.group(2) | def __init__(self, content): """Constructor. Reads and parses autodoc string. | a1d0d7986068718006444bfbf0131bd00ed157ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4747/a1d0d7986068718006444bfbf0131bd00ed157ef/autodoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
913,
4672,
3536,
6293,
18,
29185,
471,
8940,
2059,
369,
504,
533,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
913,
4672,
3536,
6293,
18,
29185,
471,
8940,
2059,
369,
504,
533,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
""" fl_add_bitmap(type, x, y, w, h, label) -> object ref. | """ fl_add_bitmap(type, x, y, w, h, label) -> object | def fl_add_bitmap(type, x, y, w, h, label): """ fl_add_bitmap(type, x, y, w, h, label) -> object ref. """ retval = _fl_add_bitmap(type, x, y, w, h, label) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
1289,
67,
3682,
1458,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
1289,
67,
3682,
1458,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
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,
1183,
67,
1289,
67,
3682,
1458,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
1289,
67,
3682,
1458,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
... |
completer.ignore('completer') completer.update_functions() completer.update_parameters() completer.update_profiles() delims = readline.get_completer_delims() delims = delims.replace('(', '').replace('/', '').replace("'", '') delims = ' =)' readline.set_completer_delims(delims) readline.parse_and_bind("tab: comp... | def unload(keys = index): if isinstance(keys, str): keys = [keys] result = cicada.unload(keys)[0] else: result = cicada.unload(keys) completer.update_profiles() completer.update_parameters() return result | 35a0ff258e29d6076bc7583af03dc9a574fb0837 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/35a0ff258e29d6076bc7583af03dc9a574fb0837/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27060,
12,
2452,
273,
770,
4672,
309,
1549,
12,
2452,
16,
609,
4672,
1311,
273,
306,
2452,
65,
563,
273,
276,
335,
16524,
18,
318,
945,
12,
2452,
25146,
20,
65,
469,
30,
563,
273,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27060,
12,
2452,
273,
770,
4672,
309,
1549,
12,
2452,
16,
609,
4672,
1311,
273,
306,
2452,
65,
563,
273,
276,
335,
16524,
18,
318,
945,
12,
2452,
25146,
20,
65,
469,
30,
563,
273,
27... | |
return self.execute(cmd % \ { "in": self.finput, "out": self.foutput, "done": self.fdone }) | cmd = cmd % {"in": self.finput, "out": self.foutput, "done": self.fdone} return self.execute(cmd) | def run(self): """Converts media to flash video (flv) files""" if sys.platform == 'win32': # TODO: Improve (fix) conversion on Win Platform cmd = "ffmpeg -y -v 0 " \ "-benchmark " \ "-i %(in)s " \ "-ar 22050 -s 320x240 -b 500k -f flv " \ "%(out)s &> %(done)s.log " \ "&& del %(in)s " if _is_flvtool2_available: cmd += "&... | c796f9b06df586c88fab1934a8b69b8c1084ebb5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/c796f9b06df586c88fab1934a8b69b8c1084ebb5/MediaConverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
5692,
3539,
358,
9563,
6191,
261,
2242,
90,
13,
1390,
8395,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
468,
2660,
30,
2221,
685,
537,
261,
904,
13,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
5692,
3539,
358,
9563,
6191,
261,
2242,
90,
13,
1390,
8395,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
468,
2660,
30,
2221,
685,
537,
261,
904,
13,
41... |
elif self.routeType == 'IndexRoute' and self.compn and len(params): | elif self.routeType == 'IndexRoute' and self.ctrl and len(params): | def getValue(self, *params): | 8b0da2d4ee646f83cba67daa03583602447efa8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8b0da2d4ee646f83cba67daa03583602447efa8e/RTTI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2366,
12,
2890,
16,
380,
2010,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2366,
12,
2890,
16,
380,
2010,
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... |
evas.SmartObject.show(self) | self.frame.show() def hide(self): self.frame.hide() def move(self, x, y): self.frame.move(x, y) def resize(self, w, h): self.frame.resize(w, h) def clip_set(self, o): self.frame.clip_set(o) def clip_unset(self): self.frame.clip_unset() def color_set(self, r, g, b, a): self.frame.color_set(r, g, b, a) | def show(self): evas.SmartObject.show(self) | 60c9798f28bab672a1e0acd8b1c6f61400a16302 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12343/60c9798f28bab672a1e0acd8b1c6f61400a16302/emotion_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
2113,
345,
18,
23824,
921,
18,
4500,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2405,
12,
2890,
4672,
2113,
345,
18,
23824,
921,
18,
4500,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
class A082411(SloaneSequence): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 407389224418$, $a(1) = 76343678551$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co- prime, that R. L. Graham in 1964 stated did not contain any primes. INPUT: n -- non neg... | class A082411(RecurrenceSequence2): def __init__(self): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 407389224418$, $a(1) = 76343678551$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co- prime, that R. L. Graham in 1964 stated did not contain any pr... | def list(self, n): self._eval(n) # force computation return self._b[:n] | d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
remoteRoot = remoteDir + self.dirSlash + parts[1] remoteRoot = remoteRoot.replace('/', self.dirSlash) remoteRoot = remoteRoot.replace('\\\\', '\\') | remoteRoot = remoteDir + '/' + parts[1] remoteRoot = remoteRoot.replace('/', '/') | def validateDir(self, localDir, remoteDir): if (self.debug >= 2): print "validating directory: " + localDir + " to " + remoteDir for root, dirs, files in os.walk(localDir): parts = root.split(localDir) for file in files: remoteRoot = remoteDir + self.dirSlash + parts[1] remoteRoot = remoteRoot.replace('/', self.dirSlas... | fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6/devicemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
1621,
12,
2890,
16,
1191,
1621,
16,
2632,
1621,
4672,
309,
261,
2890,
18,
4148,
1545,
576,
4672,
1172,
315,
877,
1776,
1867,
30,
315,
397,
1191,
1621,
397,
315,
358,
315,
397,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
1621,
12,
2890,
16,
1191,
1621,
16,
2632,
1621,
4672,
309,
261,
2890,
18,
4148,
1545,
576,
4672,
1172,
315,
877,
1776,
1867,
30,
315,
397,
1191,
1621,
397,
315,
358,
315,
397,
26... |
self.assertRaises(Exception, test_view('country')) | test_view('country') | def test0005views(self): ''' Test views. ''' self.assertRaises(Exception, test_view('country')) | b1c9bcb20bb7ce4dc97edc7ebc00220db14642c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/535/b1c9bcb20bb7ce4dc97edc7ebc00220db14642c0/test_country.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3784,
25,
7061,
12,
2890,
4672,
9163,
7766,
7361,
18,
9163,
365,
18,
11231,
12649,
6141,
12,
503,
16,
1842,
67,
1945,
2668,
9082,
26112,
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,
1842,
3784,
25,
7061,
12,
2890,
4672,
9163,
7766,
7361,
18,
9163,
365,
18,
11231,
12649,
6141,
12,
503,
16,
1842,
67,
1945,
2668,
9082,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
@patch('os.path.exists', exists_mock) | def mockify(self, exists_mock=Mock(), move_mock=Mock()): @patch('shutil.move', move_mock) @patch('os.path.exists', exists_mock) def patching(): #?mode=addfolder&path=/&name=new_directory self.response = self.client.get('', {'mode': 'rename', 'old': 'oldfile.txt', 'new': 'newfile.txt'}) patching() | 9e4515155641162b4734bc23173fb8517537c1f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3536/9e4515155641162b4734bc23173fb8517537c1f1/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5416,
1164,
12,
2890,
16,
1704,
67,
22851,
33,
9865,
9334,
3635,
67,
22851,
33,
9865,
1435,
4672,
632,
2272,
2668,
674,
1367,
18,
8501,
2187,
3635,
67,
22851,
13,
1652,
4729,
310,
13332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5416,
1164,
12,
2890,
16,
1704,
67,
22851,
33,
9865,
9334,
3635,
67,
22851,
33,
9865,
1435,
4672,
632,
2272,
2668,
674,
1367,
18,
8501,
2187,
3635,
67,
22851,
13,
1652,
4729,
310,
13332,... | |
i = pygame.surfarray.pixels3d(self.im) | def alpha_gradient2(self, r1, r2, bg, x=0, y=0): """Linear gradient vignette Similar to alpha_gradient() method. But the mask is applied *directly to the image data* (under the assumption that the background is a solid fill pattern with color 'bg'). | a1e6d59f097b9200c0bae355c7dc36aa88a94458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/a1e6d59f097b9200c0bae355c7dc36aa88a94458/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4190,
67,
20219,
22,
12,
2890,
16,
436,
21,
16,
436,
22,
16,
7611,
16,
619,
33,
20,
16,
677,
33,
20,
4672,
3536,
15982,
10292,
331,
724,
7637,
225,
22967,
358,
4190,
67,
20219,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4190,
67,
20219,
22,
12,
2890,
16,
436,
21,
16,
436,
22,
16,
7611,
16,
619,
33,
20,
16,
677,
33,
20,
4672,
3536,
15982,
10292,
331,
724,
7637,
225,
22967,
358,
4190,
67,
20219,
1435,... | |
logkpr('User: ' + username + ' has NOT been late-kicked today') notify(username, pid, 'It is getting late', 'You are only allowed to login between ' + str(bfrom[index]) + ' and ' + str(bto[index]) + '. You will be logged out in ' + str(GRACEPERIOD) + ' seconds.') sleep(GRACEPERIOD/2) notify(username, pid, 'It is getti... | logkpr('User %s has NOT been late-kicked today' % username) nttl = 'It is getting late' nmsg = 'You are only allowed to login between %s and %s. You will be logged out in %s seconds.' notify(username, pid, nttl, nmsg % (str(bfrom[index]),str(bto[index]),str(GRACEPERIOD))) threadit(float(GRACEPERIOD/2), notify, username... | def fromtoday(fname): # Returns True if a file was last modified today fdate = strftime("%Y%m%d", localtime(getmtime(fname))) today = strftime("%Y%m%d", localtime()) return fdate == today | 74b3799025d3bd8dded6111ac337b8d5d8394b0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/74b3799025d3bd8dded6111ac337b8d5d8394b0f/timekpr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
30064,
12,
12749,
4672,
468,
2860,
1053,
309,
279,
585,
1703,
1142,
4358,
10074,
284,
712,
273,
10405,
27188,
61,
9,
81,
9,
72,
3113,
1191,
957,
12,
588,
10838,
12,
12749,
20349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
30064,
12,
12749,
4672,
468,
2860,
1053,
309,
279,
585,
1703,
1142,
4358,
10074,
284,
712,
273,
10405,
27188,
61,
9,
81,
9,
72,
3113,
1191,
957,
12,
588,
10838,
12,
12749,
20349,
... |
from boto.manage.volume import Volume | def main(self): try: ec2 = boto.connect_ec2() self.run("/usr/sbin/xfs_freeze -f ${mount_point}") snapshot = ec2.create_snapshot('${volume_id}') boto.log.info("Snapshot created: %s " % snapshot) except Exception, e: self.notify(subject="${instance_id} Backup Failed", body=traceback.format_exc()) boto.log.info("Snapshot... | 6fe6e401c3de31240a3accce6f7ee981e4559684 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/6fe6e401c3de31240a3accce6f7ee981e4559684/ebs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
775,
30,
6557,
22,
273,
17228,
18,
3612,
67,
557,
22,
1435,
365,
18,
2681,
2932,
19,
13640,
19,
87,
4757,
19,
92,
2556,
67,
29631,
300,
74,
3531,
4778,
67,
1153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
775,
30,
6557,
22,
273,
17228,
18,
3612,
67,
557,
22,
1435,
365,
18,
2681,
2932,
19,
13640,
19,
87,
4757,
19,
92,
2556,
67,
29631,
300,
74,
3531,
4778,
67,
1153... | |
cellvectors = np.array( [ (1.0,0.0,0.0),(0.0,1.0,0.0),(0.0,0.0,1.0) ] ) | cellvectors = np.array( [ map(float, self.i.a.split()),map(float, self.i.b.split()),map(float, self.i.c.split()) ] ) | def __init__(self, name='UnitCell',cellvectors=None, spaceGroup=None): Component.__init__(self, name, facility='facility') self.i=self.inventory if cellvectors is None: cellvectors = np.array( [ (1.0,0.0,0.0),(0.0,1.0,0.0),(0.0,0.0,1.0) ] ) | 18afadfc5c042bb83c91eacfd95ddf6ca293d8a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/578/18afadfc5c042bb83c91eacfd95ddf6ca293d8a7/UnitCell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
2218,
2802,
4020,
2187,
3855,
18535,
33,
7036,
16,
3476,
1114,
33,
7036,
4672,
5435,
16186,
2738,
972,
12,
2890,
16,
508,
16,
28164,
2218,
11639,
1889... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
2218,
2802,
4020,
2187,
3855,
18535,
33,
7036,
16,
3476,
1114,
33,
7036,
4672,
5435,
16186,
2738,
972,
12,
2890,
16,
508,
16,
28164,
2218,
11639,
1889... |
elif os.environ.get('comspec', '').find('command'): | elif 'command' in os.environ.get('comspec', ''): | def IsWin9x(): """ Returns true if run on Windows 95, 98 or ME. """ if hasattr(sys, 'getwindowsversion'): if sys.getwindowsversion()[3] == 1: return True elif os.environ.get('comspec', '').find('command'): return True return False | 75138d5791ee6817633390bfbd0c1d9c4a701a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/75138d5791ee6817633390bfbd0c1d9c4a701a2e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
18049,
29,
92,
13332,
3536,
2860,
638,
309,
1086,
603,
8202,
16848,
16,
24645,
578,
7733,
18,
3536,
309,
3859,
12,
9499,
16,
296,
588,
13226,
1589,
11,
4672,
309,
2589,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
18049,
29,
92,
13332,
3536,
2860,
638,
309,
1086,
603,
8202,
16848,
16,
24645,
578,
7733,
18,
3536,
309,
3859,
12,
9499,
16,
296,
588,
13226,
1589,
11,
4672,
309,
2589,
18,
588,
... |
mc = MonoCalibrator(size) | mc = MonoCalibrator(size, .108) | def test_nochecker(self): | 7b89a3d2175a0a4793f01e36562ed87fd04a9ab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10767/7b89a3d2175a0a4793f01e36562ed87fd04a9ab5/directed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2135,
19243,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2135,
19243,
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,
-1... |
sage: g=DiGraph([[1..4],lambda i,j: i<j]) sage: h=g.line_graph() | sage: g = DiGraph([[1..4],lambda i,j: i<j]) sage: h = g.line_graph() | def line_graph(self): """ Returns the line graph of the (di)graph. The line graph of an undirected graph G is an undirected graph H such that the vertices of H are the edges of G and two vertices e and f of H are adjacent if e and f share a common vertex in G. In other words, an edge in H represents a path of length ... | a91dc4550e1b102d7691b4a8b57719dcd056681b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a91dc4550e1b102d7691b4a8b57719dcd056681b/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
67,
4660,
12,
2890,
4672,
3536,
2860,
326,
980,
2667,
434,
326,
261,
3211,
13,
4660,
18,
225,
1021,
980,
2667,
434,
392,
640,
26830,
2667,
611,
353,
392,
640,
26830,
2667,
670,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
67,
4660,
12,
2890,
4672,
3536,
2860,
326,
980,
2667,
434,
326,
261,
3211,
13,
4660,
18,
225,
1021,
980,
2667,
434,
392,
640,
26830,
2667,
611,
353,
392,
640,
26830,
2667,
670,
41... |
description_xhtml = self.new_node('div',klass='description') | def x_article(self,node): description_xhtml = self.new_node('div',klass='description') brief_xhtml = self.new_node('span', self.x(self.get_child(self.get_child(node,tag='articleinfo'), tag='articlepurpose' )), klass='brief' ) body_item = self.get_child(node,tag='title').nextSibling download_item = None while body_item:... | 4415874f7fdad5e50be1da2502f114026629a2d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9849/4415874f7fdad5e50be1da2502f114026629a2d9/bbook2rss.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
67,
11480,
12,
2890,
16,
2159,
4672,
324,
17802,
67,
26341,
273,
365,
18,
2704,
67,
2159,
2668,
3969,
2187,
365,
18,
92,
12,
2890,
18,
588,
67,
3624,
12,
2890,
18,
588,
67,
3624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
67,
11480,
12,
2890,
16,
2159,
4672,
324,
17802,
67,
26341,
273,
365,
18,
2704,
67,
2159,
2668,
3969,
2187,
365,
18,
92,
12,
2890,
18,
588,
67,
3624,
12,
2890,
18,
588,
67,
3624... | |
self.assertTrue(re.match('<%s at remote 0x[0-9a-f]+>' % exp_type, gdb_repr), 'Unexpected gdb representation: %r\n%s' % \ (gdb_repr, gdb_output)) | if expvalue: if gdb_repr == repr(expvalue): return if exptype: pattern = '<' + exptype + ' at remote 0x[0-9a-f]+>' else: pattern = '<.* at remote 0x[0-9a-f]+>' m = re.match(pattern, gdb_repr) if not m: self.fail('Unexpected gdb representation: %r\n%s' % \ (gdb_repr, gdb_output)) | def assertSane(self, source, corruption, exp_type='unknown'): '''Run Python under gdb, corrupting variables in the inferior process immediately before taking a backtrace. | 901d9376eee2057b5764ff2fef7ac0df3f1e021d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/901d9376eee2057b5764ff2fef7ac0df3f1e021d/test_gdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
55,
8806,
12,
2890,
16,
1084,
16,
1858,
21421,
16,
1329,
67,
723,
2218,
8172,
11,
4672,
9163,
1997,
6600,
3613,
314,
1966,
16,
16899,
310,
3152,
316,
326,
12455,
9659,
1207,
7636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
55,
8806,
12,
2890,
16,
1084,
16,
1858,
21421,
16,
1329,
67,
723,
2218,
8172,
11,
4672,
9163,
1997,
6600,
3613,
314,
1966,
16,
16899,
310,
3152,
316,
326,
12455,
9659,
1207,
7636,
... |
O.write(x) | O.write(x.encode('utf-8')) | def eval(self, x, globals, strip=False, filename=None, debug=None, density=None, pdflatex=None, locals={}): """ INPUT: | 7b5ff59de6ab980161bc22e84f6a045b17bb141d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7b5ff59de6ab980161bc22e84f6a045b17bb141d/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
12,
2890,
16,
619,
16,
10941,
16,
2569,
33,
8381,
16,
1544,
33,
7036,
16,
1198,
33,
7036,
16,
12142,
33,
7036,
16,
8169,
26264,
33,
7036,
16,
8985,
12938,
4672,
3536,
12943,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5302,
12,
2890,
16,
619,
16,
10941,
16,
2569,
33,
8381,
16,
1544,
33,
7036,
16,
1198,
33,
7036,
16,
12142,
33,
7036,
16,
8169,
26264,
33,
7036,
16,
8985,
12938,
4672,
3536,
12943,
30,
... |
self.CursorUpDown(-1) | self.MoveCursor(-1) | def onFrameCharHook(self, event): keyCode = event.GetKeyCode() if keyCode == wx.WXK_RETURN or keyCode == wx.WXK_NUMPAD_ENTER: row = self.eventChoiceCtrl.GetSelection() self.SendEventSel(row) elif keyCode == wx.WXK_ESCAPE: self.Close() elif keyCode == wx.WXK_UP or keyCode == wx.WXK_NUMPAD_UP: self.CursorUpDown(-1) elif ... | 77c0859df3ec68b9dbca47a4fb4d9d3998be7f95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8076/77c0859df3ec68b9dbca47a4fb4d9d3998be7f95/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3219,
2156,
5394,
12,
2890,
16,
871,
4672,
16369,
273,
871,
18,
967,
653,
1085,
1435,
309,
16369,
422,
7075,
18,
59,
60,
47,
67,
14033,
578,
16369,
422,
7075,
18,
59,
60,
47,
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,
603,
3219,
2156,
5394,
12,
2890,
16,
871,
4672,
16369,
273,
871,
18,
967,
653,
1085,
1435,
309,
16369,
422,
7075,
18,
59,
60,
47,
67,
14033,
578,
16369,
422,
7075,
18,
59,
60,
47,
67... |
self.unnamed.setAccel(QString.null,self.unnamed.insertItem(self.viewDefviewAction.iconSet(),self.__tr("&Default Views"),self.popupMenu_32)) | self.unnamed.setAccel(QString.null,self.unnamed.insertItem(self.viewDefviewAction.iconSet(),self.__tr("Orientations"),self.popupMenu_32)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 85a9a33737cb03ea81f35e97e98d59f2314cc01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/85a9a33737cb03ea81f35e97e98d59f2314cc01d/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
pos = pos - 2 | pos -= 2 | def beginPage(self) : """Indicates the beginning of a new page, and extracts media information.""" self.pagecount += 1 # Default values mediatypelabel = "Plain" mediasourcelabel = "Main" mediasizelabel = "Default" orientationlabel = "Portrait" duplexmode = None # Now go upstream to decode media type, size, source, an... | 197d53f6b2cec7da0cadce09072491fb0d0bb60f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/486/197d53f6b2cec7da0cadce09072491fb0d0bb60f/pclxl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
1964,
12,
2890,
13,
294,
3536,
23741,
326,
8435,
434,
279,
394,
1363,
16,
471,
16469,
3539,
1779,
12123,
365,
18,
2433,
1883,
1011,
404,
225,
468,
2989,
924,
20623,
270,
879,
292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
1964,
12,
2890,
13,
294,
3536,
23741,
326,
8435,
434,
279,
394,
1363,
16,
471,
16469,
3539,
1779,
12123,
365,
18,
2433,
1883,
1011,
404,
225,
468,
2989,
924,
20623,
270,
879,
292,
... |
else: if not message.structure == None: if message.structure.get_name() == 'prepare-xwindow-id': sink = message.src sink.set_xwindow_id(self.widget.window.xid) sink.set_property("force-aspect-ratio", True) return True | return None | def onBusMessage(self, bus, message): "recieves message posted on the GstBus" if message.type == gst.MESSAGE_ERROR: err, debug = message.parse_error() print "onBusMessage: gstreamer error: %s" % err elif message.type == gst.MESSAGE_EOS: | 358b558a4750022f9c2e688c9e006d64b96357f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/358b558a4750022f9c2e688c9e006d64b96357f1/gstrenderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7086,
1079,
12,
2890,
16,
5766,
16,
883,
4672,
315,
3927,
1385,
3324,
883,
23082,
603,
326,
611,
334,
7086,
6,
309,
883,
18,
723,
422,
314,
334,
18,
8723,
67,
3589,
30,
393,
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,
603,
7086,
1079,
12,
2890,
16,
5766,
16,
883,
4672,
315,
3927,
1385,
3324,
883,
23082,
603,
326,
611,
334,
7086,
6,
309,
883,
18,
723,
422,
314,
334,
18,
8723,
67,
3589,
30,
393,
16,... |
TixSubWidget.__init__(self, master, name, destroy_physically) | TixSubWidget.__init__(self, master, name, destroy_physically) | def __init__(self, master, name, destroy_physically=1): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
21,
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,
... | [
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
21,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
keys = tokens.keys() | keys = list(tokens.keys()) | def main(): import re import sys args = sys.argv[1:] inFileName = args and args[0] or "Include/token.h" outFileName = "Lib/token.py" if len(args) > 1: outFileName = args[1] try: fp = open(inFileName) except IOError as err: sys.stdout.write("I/O error: %s\n" % str(err)) sys.exit(1) lines = fp.read().split("\n") fp.close... | 4fce17067e9607695e1631e50b8fa8d44be4c66f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/4fce17067e9607695e1631e50b8fa8d44be4c66f/token.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
283,
1930,
2589,
833,
273,
2589,
18,
19485,
63,
21,
26894,
316,
4771,
273,
833,
471,
833,
63,
20,
65,
578,
315,
8752,
19,
2316,
18,
76,
6,
596,
4771,
273,
315,
566... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
283,
1930,
2589,
833,
273,
2589,
18,
19485,
63,
21,
26894,
316,
4771,
273,
833,
471,
833,
63,
20,
65,
578,
315,
8752,
19,
2316,
18,
76,
6,
596,
4771,
273,
315,
566... |
self.get_writer(evt.task_id, 'task_log').write(message) | self.get_writer(evt.task_id, 'debug/task_log').write(message) | def proc_evt_log(self, evt): message = evt.arg('message', '') reason = evt.arg('reason', '') join = '' if reason: reason = 'reason=%s' % reason if message: message = "%s; %s" % (message, reason) else: message = reason message = "LOG:%s(%s): %s\n" % (evt.arg('log_handle', ''), self.log_type(evt.arg('log_level')), messag... | 1b06946fb33c7c0aab869fedc66521834aeb3ef4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/1b06946fb33c7c0aab869fedc66521834aeb3ef4/beakerlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
73,
11734,
67,
1330,
12,
2890,
16,
6324,
4672,
883,
273,
6324,
18,
3175,
2668,
2150,
2187,
28707,
3971,
273,
6324,
18,
3175,
2668,
10579,
2187,
28707,
1233,
273,
875,
309,
3971... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
73,
11734,
67,
1330,
12,
2890,
16,
6324,
4672,
883,
273,
6324,
18,
3175,
2668,
2150,
2187,
28707,
3971,
273,
6324,
18,
3175,
2668,
10579,
2187,
28707,
1233,
273,
875,
309,
3971... |
uom_id = line.product_id.uom_po_id.id | uom_id = line.product_id.uom_po_id and line.product_id.uom_po_id.id or False | def create_order(self, cr, uid, ids, context): """ To Create a purchase orders . @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: the ID or list of IDs @param context: A standard dictionary @return: {} """ record_ids = context and context.get('ac... | 57d63a488d8793dde3c0aca7ba6a86b381aa5980 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/57d63a488d8793dde3c0aca7ba6a86b381aa5980/purchase_requisition_partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
4672,
3536,
2974,
1788,
279,
23701,
11077,
263,
225,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
4672,
3536,
2974,
1788,
279,
23701,
11077,
263,
225,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
... |
""" Constructor for Rbf class. Parameters ---------- *args : arrays x, y, z, ..., d, where x, y, z, ... are the coordinates of the nodes and d is the array of values at the nodes function : str, optional The radial basis function, based on the radius, r, given by the norm (defult is Euclidean distance); the default is... | def __init__(self, *args, **kwargs): """ Constructor for Rbf class. | 6bb7bccf62cd9cdb2d966583c6ff23952ca98f12 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/6bb7bccf62cd9cdb2d966583c6ff23952ca98f12/rbf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11417,
364,
534,
17156,
667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11417,
364,
534,
17156,
667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
return self.cylindrical(b1,b2,1.) | return self.cylindrical(scale=[b1,b2,1.]) | def bp(self,b1,b2): return self.cylindrical(b1,b2,1.) | 3bbb135db1788935a14de64d8eea8f3289db47da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2499/3bbb135db1788935a14de64d8eea8f3289db47da/formex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9107,
12,
2890,
16,
70,
21,
16,
70,
22,
4672,
327,
365,
18,
2431,
80,
728,
1512,
287,
12,
70,
21,
16,
70,
22,
16,
21,
12998,
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,
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,
9107,
12,
2890,
16,
70,
21,
16,
70,
22,
4672,
327,
365,
18,
2431,
80,
728,
1512,
287,
12,
70,
21,
16,
70,
22,
16,
21,
12998,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
line = RewriteLine(line.strip(), sysroot) | line = RewriteLine(line.strip(), opts) | def main(argv): try: sysroot = argv[1] except IndexError: sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0]) return 1 for line in sys.stdin.readlines(): line = RewriteLine(line.strip(), sysroot) print line return 0 | e06c3beae331e70eb038a859b0ab6945fef041fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e06c3beae331e70eb038a859b0ab6945fef041fb/rewrite_dirs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
2589,
3085,
273,
5261,
63,
21,
65,
1335,
10195,
30,
2589,
18,
11241,
18,
2626,
2668,
9167,
30,
738,
87,
342,
803,
19,
869,
19,
9499,
3085,
64,
82,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
2589,
3085,
273,
5261,
63,
21,
65,
1335,
10195,
30,
2589,
18,
11241,
18,
2626,
2668,
9167,
30,
738,
87,
342,
803,
19,
869,
19,
9499,
3085,
64,
82,
11,... |
def installedcmp(mycatpkg): """Compares specific mycatpkg ("cat/pkg-1.2") against installed package version. Assumes that mycatpkg is already installed. Make sure it is before calling this. Returns 0 if mycatpkg is installed (exact version). Returns a positive number if an older version is installed, and returns a n... | def isinstalled(mycatpkg): mycatpkg=string.split(mycatpkg,"/") if not os.path.isdir(root+"var/db/pkg/"+mycatpkg[0]): return 0 mypkgs=os.listdir(root+"var/db/pkg/"+mycatpkg[0]) if isjustname(mycatpkg[1]): # only name specified for x in mypkgs: thispkgname=pkgsplit(x)[0] if mycatpkg[1]==thispkgname: return 1 else: # name... | 7fba891e9345142f3f79275004cc9a6e99cc73b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/7fba891e9345142f3f79275004cc9a6e99cc73b8/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
13435,
12,
4811,
2574,
10657,
4672,
3399,
2574,
10657,
33,
1080,
18,
4939,
12,
4811,
2574,
10657,
10837,
4898,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
13435,
12,
4811,
2574,
10657,
4672,
3399,
2574,
10657,
33,
1080,
18,
4939,
12,
4811,
2574,
10657,
10837,
4898,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
... | |
self.vboxlayout12.addWidget(self.radioButton) self.radioButton_2 = QtGui.QRadioButton(self.widget) | self.vboxlayout11.addWidget(self.radioButton) self.radioButton_2 = QtGui.QRadioButton(self.layoutWidget1) | def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,593).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon("../../../.designer/backup")) | 79b42f390e6f53f319f4cccbce3f6018d111c729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/79b42f390e6f53f319f4cccbce3f6018d111c729/main_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... |
raise ParseError() | raise ParseError('Multiple "as" tokens in import') | def process_import(line, parent_docs, prev_line_doc, lineno, comments, decorators): if not isinstance(parent_docs[-1], NamespaceDoc): return names = split_on(line[1:], (token.OP, ',')) for name in names: name_pieces = split_on(name, (token.NAME, 'as')) if len(name_pieces) == 1: src_name = parse_dotted_name(name_piece... | 76aa87c4f3f84f87b6c947e3387d535503259a2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/76aa87c4f3f84f87b6c947e3387d535503259a2a/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
5666,
12,
1369,
16,
982,
67,
8532,
16,
2807,
67,
1369,
67,
2434,
16,
7586,
16,
5678,
16,
19423,
4672,
309,
486,
1549,
12,
2938,
67,
8532,
18919,
21,
6487,
6005,
1759,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
5666,
12,
1369,
16,
982,
67,
8532,
16,
2807,
67,
1369,
67,
2434,
16,
7586,
16,
5678,
16,
19423,
4672,
309,
486,
1549,
12,
2938,
67,
8532,
18919,
21,
6487,
6005,
1759,
4672,
... |
(a['positions'] == b['positions']).any() and (a['numbers'] == b['numbers']).any() and (self.cell == other.cell).any() and (self.pbc == other.pbc).any()) | (a['positions'] == b['positions']).all() and (a['numbers'] == b['numbers']).all() and (self.cell == other.cell).all() and (self.pbc == other.pbc).all()) | def identical_to(self, other): """Check for identity of two atoms object. | dc1dbf07107e92682004c973c13dcbbdeca50ebb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/dc1dbf07107e92682004c973c13dcbbdeca50ebb/atoms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12529,
67,
869,
12,
2890,
16,
1308,
4672,
3536,
1564,
364,
4215,
434,
2795,
9006,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12529,
67,
869,
12,
2890,
16,
1308,
4672,
3536,
1564,
364,
4215,
434,
2795,
9006,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not checkScanTime( getSaved().failedDown[i]['threadName'], failed=1 ): continue | if not checkScanTime(getSaved().failedDown[i]['threadName'], failed=1): continue | def run(): u"""Provides main functionality -- scans threads.""" global saved, rss, downloader, _action getConfig(filename=configFile, reload=True) setLogging(True) if isinstance(getConfig()['global']['umask'], int): os.umask( getConfig()['global']['umask'] ) if getConfig()['global']['urllib']: downloader = urllib2Retr... | 633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
582,
8395,
17727,
2774,
14176,
1493,
19676,
7403,
12123,
2552,
5198,
16,
18817,
16,
28122,
16,
389,
1128,
4367,
12,
3459,
33,
1425,
812,
16,
7749,
33,
5510,
13,
444,
7735,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
582,
8395,
17727,
2774,
14176,
1493,
19676,
7403,
12123,
2552,
5198,
16,
18817,
16,
28122,
16,
389,
1128,
4367,
12,
3459,
33,
1425,
812,
16,
7749,
33,
5510,
13,
444,
7735,
1... |
sage: sr.add_round_key(D,K) == K + D | sage: sr.add_round_key(D, K) == K + D | def add_round_key(self, d, key): """ Perform the AddRoundKey operation on d using key. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2260,
67,
856,
12,
2890,
16,
302,
16,
498,
4672,
3536,
11217,
326,
1436,
11066,
653,
1674,
603,
302,
1450,
498,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
2260,
67,
856,
12,
2890,
16,
302,
16,
498,
4672,
3536,
11217,
326,
1436,
11066,
653,
1674,
603,
302,
1450,
498,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.parse_error(_["read_rules failed sanity check, unknown rule %s"] % self.buffer) self.buffer = "" | self.parse_error(_["read_rules failed sanity check, unknown rule"]) | def read_rules(self, rule_file): """Read rules from rule files (e.g., mlox_user.txt or mlox_base.txt), add order rules to graph, and print warnings.""" self.rule_file = rule_file self.pdbg("READING RULES FROM: \"%s\"" % self.rule_file) self.input_handle = myopen_file(self.rule_file, 'r') if self.input_handle == None: r... | 04e1c8d2fe1601583da11cfd534a62b3c470ebd2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2827/04e1c8d2fe1601583da11cfd534a62b3c470ebd2/mlox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7482,
12,
2890,
16,
1720,
67,
768,
4672,
3536,
1994,
2931,
628,
1720,
1390,
261,
73,
18,
75,
12990,
312,
383,
92,
67,
1355,
18,
5830,
578,
312,
383,
92,
67,
1969,
18,
5830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7482,
12,
2890,
16,
1720,
67,
768,
4672,
3536,
1994,
2931,
628,
1720,
1390,
261,
73,
18,
75,
12990,
312,
383,
92,
67,
1355,
18,
5830,
578,
312,
383,
92,
67,
1969,
18,
5830,
... |
lextab="ipdl_lextab", outputdir=_thisdir) | lextab="ipdl_lextab") | def parse(self, input, filename, includedirs, errout): assert os.path.isabs(filename) | 78d78bd890d05a268ba90b59c3ae4ccbab30f4c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/78d78bd890d05a268ba90b59c3ae4ccbab30f4c3/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
810,
16,
1544,
16,
5849,
10539,
16,
6445,
7028,
4672,
1815,
1140,
18,
803,
18,
291,
5113,
12,
3459,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
2890,
16,
810,
16,
1544,
16,
5849,
10539,
16,
6445,
7028,
4672,
1815,
1140,
18,
803,
18,
291,
5113,
12,
3459,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
f.readline() l = f.readline(); | l = f.readline() l += f.readline(); | def import_XML(filename, default_cat, reset_learning_data=False): global items # Determine if we import a Mnemosyne or a Memaid file. handler = None f = None try: f = file(filename) except: try: f = file(unicode(filename).encode("latin")) except: raise LoadError() f.readline() l = f.readline(); if "mnemosyne" in l:... | 66b47c30b8d344c5860cdacbb51c1c5b425deedd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1240/66b47c30b8d344c5860cdacbb51c1c5b425deedd/mnemosyne_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
4201,
12,
3459,
16,
805,
67,
2574,
16,
2715,
67,
21455,
67,
892,
33,
8381,
4672,
2552,
1516,
225,
468,
10229,
309,
732,
1930,
279,
23851,
351,
538,
878,
73,
578,
279,
5890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
4201,
12,
3459,
16,
805,
67,
2574,
16,
2715,
67,
21455,
67,
892,
33,
8381,
4672,
2552,
1516,
225,
468,
10229,
309,
732,
1930,
279,
23851,
351,
538,
878,
73,
578,
279,
5890,
... |
def __init__(self,*args): | def __init__(self,parser,progress=None, \ loglevel=logging.INFO,logname="Log"): | def __init__(self,*args): | 1cd209e411f742a480b2b696e61bc5ece7a6801d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/1cd209e411f742a480b2b696e61bc5ece7a6801d/population.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
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,... | [
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,
1652,
1001,
2738,
972,
12,
2890,
16,
14,
1968,
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,
... |
if -hw < yoff + xpos < hw: f3d.drawString("%g" % i, color=color, yoff=yoff) | if -hw < yoff + xpos < hw: f3d.drawString("%-.4g" % yoff, color=color, yoff=yoff) | def drawSiCGrid(color, line_type, w, h, up, right): '''Draw SiC grid. ''' from dimensions import Font3D from prefs_constants import NO_LINE, SOLID_LINE, DASHED_LINE, DOTTED_LINE if line_type == NO_LINE: return XLen = sic_uLen * 3.0 YLen = sic_yU * 2.0 hw = w/2.0; hh = h/2.0 i1 = int(floor(-hw/XLen)) i2 = int(ceil(hw/... | d2cfb15fb05fd532c7ad80c45be327fb8a226cd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d2cfb15fb05fd532c7ad80c45be327fb8a226cd3/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
55,
77,
39,
6313,
12,
3266,
16,
980,
67,
723,
16,
341,
16,
366,
16,
731,
16,
2145,
4672,
9163,
6493,
27834,
39,
3068,
18,
9163,
628,
5769,
1930,
10063,
23,
40,
628,
15503,
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,
3724,
55,
77,
39,
6313,
12,
3266,
16,
980,
67,
723,
16,
341,
16,
366,
16,
731,
16,
2145,
4672,
9163,
6493,
27834,
39,
3068,
18,
9163,
628,
5769,
1930,
10063,
23,
40,
628,
15503,
67,
... |
self.assertEqual(m.size(), 512) m.close() finally: try: f.close() except OSError: pass | self.assertEqual(m.size(), 512) m.close() | def test_basic(self): # Test mmap module on Unix systems and Windows | 75f91206de7651b5477f19cac285438689947d52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/75f91206de7651b5477f19cac285438689947d52/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
12,
2890,
4672,
468,
7766,
30749,
1605,
603,
9480,
14908,
471,
8202,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
12,
2890,
4672,
468,
7766,
30749,
1605,
603,
9480,
14908,
471,
8202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if code in ['kk','ky','tk']: return ['tr','ru'] if code in ['diq','ug','uz']: | if code in ['ky','tt','uz']: return ['kk','tr','ru'] if code in ['az','diq','tk','ug']: | def altlang(code): if code=='aa': return ['am'] if code in ['fa','so']: return ['ar'] if code=='ku': return ['ar','tr'] if code=='sk': return ['cs'] if code in ['bar','hsb','ksh']: return ['de'] if code in ['als','lb']: return ['de','fr'] if code=='io': return ['eo'] if code in ['an','ast','ay','ca','gn','nah','qu']: r... | 60eb237303d1212237339021bc64ce42e9788dc1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/60eb237303d1212237339021bc64ce42e9788dc1/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3770,
4936,
12,
710,
4672,
309,
981,
18920,
7598,
4278,
327,
10228,
301,
3546,
309,
981,
316,
10228,
507,
17023,
2048,
3546,
30,
327,
10228,
297,
3546,
309,
981,
18920,
31562,
4278,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3770,
4936,
12,
710,
4672,
309,
981,
18920,
7598,
4278,
327,
10228,
301,
3546,
309,
981,
316,
10228,
507,
17023,
2048,
3546,
30,
327,
10228,
297,
3546,
309,
981,
18920,
31562,
4278,
327,
... |
iter = 0 pos_counter_A = pos_counter_B = None for pos_counter in pos_generator: iter += 1 if iter == 1: pos_counter_A = pos_counter elif iter == 2: pos_counter_B = pos_counter break continue del pos_generator assert iter in (1, 2) railA, indexA, directionA, counter_junk = pos_counter_A assert (railA, indexA, directio... | if atomB is not None: atm = atomB strand_neighbors = atomB.strand_neighbors() for strand_atom in strand_neighbors: if strand_atom not in atomsScheduledForDeletion: atomsScheduledForDeletion.append(strand_atom) numberOfBasePairsToRemove = numberOfBasePairsToRemove - 1 | def _subtract_bases_from_duplex(self, group, ladderEndAxisAtom, numberOfBasePairsToSubtract): """ AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-26. Will be cleaned up. THIS IS BUGGY """ #TODO: See bug 2712 #Use of wholechain.yield_rail_index_direction_counter #needs to be worked out. Looks like it reaches #"#prin... | 6cd8c5aa68aea88b011fabfb012851fc655ef49c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6cd8c5aa68aea88b011fabfb012851fc655ef49c/DnaDuplex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
1575,
67,
18602,
67,
2080,
67,
72,
2268,
92,
12,
2890,
16,
1041,
16,
328,
361,
765,
1638,
6558,
3641,
16,
7922,
2171,
10409,
774,
27904,
4672,
3536,
15068,
20027,
5355,
432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1717,
1575,
67,
18602,
67,
2080,
67,
72,
2268,
92,
12,
2890,
16,
1041,
16,
328,
361,
765,
1638,
6558,
3641,
16,
7922,
2171,
10409,
774,
27904,
4672,
3536,
15068,
20027,
5355,
432,
... |
try: raise Exception except: frame = sys.exc_info()[2].tb_frame.f_back | frame = sys._getframe().f_back | def set_continue(self): # Don't stop except at breakpoints or when finished self.stopframe = self.botframe self.returnframe = None self.quitting = 0 if not self.breaks: # no breakpoints; run without debugger overhead sys.settrace(None) try: raise Exception except: frame = sys.exc_info()[2].tb_frame.f_back while frame a... | f204b7333427d7a82ac7a559945b5f344120d1bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f204b7333427d7a82ac7a559945b5f344120d1bc/bdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
17143,
12,
2890,
4672,
468,
7615,
1404,
2132,
1335,
622,
23416,
578,
1347,
6708,
365,
18,
5681,
3789,
273,
365,
18,
4819,
3789,
365,
18,
2463,
3789,
273,
599,
365,
18,
27176,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17143,
12,
2890,
4672,
468,
7615,
1404,
2132,
1335,
622,
23416,
578,
1347,
6708,
365,
18,
5681,
3789,
273,
365,
18,
4819,
3789,
365,
18,
2463,
3789,
273,
599,
365,
18,
27176,
... |
note.text = decompress(note.text) | filepath = os.path.join(path,md5.new(cFile.getvalue()).hexdigest()) nFile = file(filepath,"wb") nFile.write(cFile.getvalue()) nFile.close() cFile.close() note = self.loadNote(filepath) | def saveNote(self,note): if note not in self.noteList: self.noteList.append(note) | be5fd71a59f94863e7f54998815958259544afa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2701/be5fd71a59f94863e7f54998815958259544afa6/notes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
8067,
12,
2890,
16,
7652,
4672,
309,
4721,
486,
316,
365,
18,
7652,
682,
30,
365,
18,
7652,
682,
18,
6923,
12,
7652,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
8067,
12,
2890,
16,
7652,
4672,
309,
4721,
486,
316,
365,
18,
7652,
682,
30,
365,
18,
7652,
682,
18,
6923,
12,
7652,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if "sspi" in kw and kw["sspi"]: self.make_conn_str = lambda keys: \ ["Provider=SQLOLEDB;Data Source=%s;Initial Catalog=%s;Integrated Security=SSPI;Persist Security Info=False" % ( keys.host, keys.db)] | if kw.get("sspi"): conn_str += "Integrated Security=SSPI;Persist Security Info=False" self.make_conn_str = lambda keys: [conn_str % (keys.host, keys.db)] | def __init__(self, db, user, password='', host='localhost', autoCommit=0, **kw): global sqlmodule if not sqlmodule: try: import adodbapi as sqlmodule self.dbconnection = sqlmodule.connect # ADO uses unicode only (AFAIK) self.usingUnicodeStrings = True # MSDE does not allow SQL server login if "sspi" in kw and kw["sspi"... | cf92b48de71990e8fd20aa8c36c95f503f3e455f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/cf92b48de71990e8fd20aa8c36c95f503f3e455f/mssqlconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1319,
16,
729,
16,
2201,
2218,
2187,
1479,
2218,
13014,
2187,
3656,
5580,
33,
20,
16,
2826,
9987,
4672,
2552,
1847,
2978,
309,
486,
1847,
2978,
30,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1319,
16,
729,
16,
2201,
2218,
2187,
1479,
2218,
13014,
2187,
3656,
5580,
33,
20,
16,
2826,
9987,
4672,
2552,
1847,
2978,
309,
486,
1847,
2978,
30,
775,
... |
print "removing handle %d (%s)" % (handle,self.objects[handle].__class__.__name__.lstrip('_')) | def removeObject(self,handle): if handle<1 or handle>=len(self.objects): raise IndexError("Invalid handle") print "removing handle %d (%s)" % (handle,self.objects[handle].__class__.__name__.lstrip('_')) self.objects[handle]=None found=False | 5ec5c46b0b6b12f6dd38c8d54dc0815bac382b0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/5ec5c46b0b6b12f6dd38c8d54dc0815bac382b0e/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
921,
12,
2890,
16,
4110,
4672,
309,
1640,
32,
21,
578,
1640,
34,
33,
1897,
12,
2890,
18,
6911,
4672,
1002,
10195,
2932,
1941,
1640,
7923,
225,
365,
18,
6911,
63,
4110,
65,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
921,
12,
2890,
16,
4110,
4672,
309,
1640,
32,
21,
578,
1640,
34,
33,
1897,
12,
2890,
18,
6911,
4672,
1002,
10195,
2932,
1941,
1640,
7923,
225,
365,
18,
6911,
63,
4110,
65,
33,
... | |
self._paintLogo(g,fillColor=fillColor) g.skew(kx=10, ky=0) g.shift(0,35.5) | self._paintLogo(g,fillColor=fillColor,strokeColor=strokeColor) g.skew(kx=self.skewX, ky=self.skewY) g.shift(self._dx,self._dy) | def draw(self): fillColor = self.fillColor strokeColor = self.strokeColor g = Group() bg = self.background shadow = self.shadow if bg: shadow = Color(bg.red*shadow,bg.green*shadow,bg.blue*shadow) self._paintLogo(g,dy=-2.5, dx=2,fillColor=shadow) self._paintLogo(g,fillColor=fillColor) g.skew(kx=10, ky=0) g.shift(0,35.5)... | 73cd5ccc2ed9bda0f2ca36194a280952629de0d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/73cd5ccc2ed9bda0f2ca36194a280952629de0d3/corp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
3636,
2957,
273,
365,
18,
5935,
2957,
11040,
2957,
273,
365,
18,
16181,
2957,
314,
273,
3756,
1435,
7611,
273,
365,
18,
9342,
10510,
273,
365,
18,
19119,
309,
7611,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
3636,
2957,
273,
365,
18,
5935,
2957,
11040,
2957,
273,
365,
18,
16181,
2957,
314,
273,
3756,
1435,
7611,
273,
365,
18,
9342,
10510,
273,
365,
18,
19119,
309,
7611,... |
elif attribute.lower() == "due" or attribute.lower() == _("due"): | elif (attribute.lower() == "due" or attribute.lower() == _("due")): | def quickadd(self, widget): #pylint: disable-msg=W0613 text = self.quickadd_entry.get_text() due_date = None defer_date = None if text: tags, notagonly = self.get_selected_tags() #pylint: disable-msg=W0612 # Get tags in the title for match in re.findall(r'[\s](@[^@,\s]+)', text): tags.append(GTG.core.tagstore.Tag(match... | fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9549,
1289,
12,
2890,
16,
3604,
4672,
468,
2074,
5671,
30,
4056,
17,
3576,
33,
59,
7677,
3437,
977,
273,
365,
18,
19525,
1289,
67,
4099,
18,
588,
67,
955,
1435,
6541,
67,
712,
273,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9549,
1289,
12,
2890,
16,
3604,
4672,
468,
2074,
5671,
30,
4056,
17,
3576,
33,
59,
7677,
3437,
977,
273,
365,
18,
19525,
1289,
67,
4099,
18,
588,
67,
955,
1435,
6541,
67,
712,
273,
5... |
if plugin = 'Metadata': | if plugin == 'Metadata': | def initializeRepo(self, configfile, repo, server_uri, password, os_selection, opts): '''Setup a new repo''' keypath = os.path.dirname(os.path.abspath(configfile)) | d1a6306989d0b8cf33844ef63122fb6e8adec5d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/d1a6306989d0b8cf33844ef63122fb6e8adec5d7/Init.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
8791,
12,
2890,
16,
642,
768,
16,
3538,
16,
1438,
67,
1650,
16,
2201,
16,
1140,
67,
10705,
16,
1500,
4672,
9163,
7365,
279,
394,
3538,
26418,
498,
803,
273,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
8791,
12,
2890,
16,
642,
768,
16,
3538,
16,
1438,
67,
1650,
16,
2201,
16,
1140,
67,
10705,
16,
1500,
4672,
9163,
7365,
279,
394,
3538,
26418,
498,
803,
273,
1140,
18,
803,
18,
... |
ReturnType = GetReturnTypeFromModifier(Result[0]) | ReturnType = GetDataTypeFromModifier(Result[0]) | def CheckFuncLayoutReturnType(FullFileName): ErrorMsgList = [] FileID = GetTableID(FullFileName, ErrorMsgList) if FileID < 0: return ErrorMsgList Db = GetDB() FileTable = 'Identifier' + str(FileID) SqlStatement = """ select Modifier, ID from %s where Model = %d """ % (FileTable, DataClass.MODEL_IDENTIFIER_FUNCTION_DE... | 3e32d26bbfc425d9aad1032f86cefc3a7fdb0a64 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/3e32d26bbfc425d9aad1032f86cefc3a7fdb0a64/c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2622,
3744,
9102,
12,
5080,
4771,
4672,
1068,
3332,
682,
273,
5378,
225,
1387,
734,
273,
968,
1388,
734,
12,
5080,
4771,
16,
1068,
3332,
682,
13,
309,
1387,
734,
411,
374,
30,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2622,
3744,
9102,
12,
5080,
4771,
4672,
1068,
3332,
682,
273,
5378,
225,
1387,
734,
273,
968,
1388,
734,
12,
5080,
4771,
16,
1068,
3332,
682,
13,
309,
1387,
734,
411,
374,
30,
32... |
- ``legend_*`` - all the options valid for :meth:`set_legend_options` prefixed with 'legend_' | - ``legend_*`` - all the options valid for :meth:`set_legend_options` prefixed with ``legend_`` | def show(self, **kwds): """ Show this graphics image with the default image viewer. | a0df834220102bf467dbfeceb037a622a91e77dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/a0df834220102bf467dbfeceb037a622a91e77dd/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
2826,
25577,
4672,
3536,
9674,
333,
17313,
1316,
598,
326,
805,
1316,
14157,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2405,
12,
2890,
16,
2826,
25577,
4672,
3536,
9674,
333,
17313,
1316,
598,
326,
805,
1316,
14157,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
None, [cty.c_int, cty.POINTER(FL_POINT), cty.c_int, cty.c_long], | None, [cty.c_int, cty.POINTER(FL_POINT), cty.c_int, cty.c_long], | def flps_pieslice(p1, p2, p3, p4, p5, p6, p7, p8): """ flps_pieslice(p1, p2, p3, p4, p5, p6, p7, p8) """ _flps_pieslice(p1, p2, p3, p4, p5, p6, p7, p8) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
1121,
67,
84,
606,
2008,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
4672,
3536,
1183,
1121,
67,
84,
606,
2008,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
1121,
67,
84,
606,
2008,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
4672,
3536,
1183,
1121,
67,
84,
606,
2008,
... |
if not _urlopener: _urlopener = FancyURLopener() | if proxies is not None: opener = FancyURLopener(proxies=proxies) elif not _urlopener: opener = FancyURLopener() _urlopener = opener else: opener = _urlopener | def urlopen(url, data=None): """urlopen(url [, data]) -> open file-like object""" global _urlopener if not _urlopener: _urlopener = FancyURLopener() if data is None: return _urlopener.open(url) else: return _urlopener.open(url, data) | 22806d26422dea44e8ab7064525004b4cf13790b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/22806d26422dea44e8ab7064525004b4cf13790b/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19613,
12,
718,
16,
501,
33,
7036,
4672,
3536,
295,
18589,
12,
718,
306,
16,
501,
5717,
317,
1696,
585,
17,
5625,
733,
8395,
2552,
389,
295,
16884,
708,
309,
13263,
353,
486,
599,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19613,
12,
718,
16,
501,
33,
7036,
4672,
3536,
295,
18589,
12,
718,
306,
16,
501,
5717,
317,
1696,
585,
17,
5625,
733,
8395,
2552,
389,
295,
16884,
708,
309,
13263,
353,
486,
599,
30,
... |
"""Returns a string representing the same date with any leading zeros and the year removed. | """Returns a string representing the same date with any leading zeros and the year removed. | def format_date(self, value): """Returns a string representing the same date with any leading zeros and the year removed. | 20eab91c91a9f72ec790d8c5d1fb9261b7b89028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4025/20eab91c91a9f72ec790d8c5d1fb9261b7b89028/formatters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
712,
12,
2890,
16,
460,
4672,
3536,
1356,
279,
533,
5123,
326,
1967,
1509,
598,
1281,
7676,
4922,
471,
326,
3286,
3723,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
712,
12,
2890,
16,
460,
4672,
3536,
1356,
279,
533,
5123,
326,
1967,
1509,
598,
1281,
7676,
4922,
471,
326,
3286,
3723,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
incompleteness=incompleteness) | incompleteness=incompleteness, shortmsg = shortmsg) | def status_wrt(self, parent=None): detail_missing = 0 incompleteness = 0.0 if self.status == 'MISSING': msg = "%s (%s)" % (self.specifically, self.total) detail_missing = self.total if self.grandtotal: msg = "%s or in detail (%s)" % (msg, self.grandtotal) detail_missing = self.grandtotal return Status(msg, detail_miss... | ff0d2b538803dd460f5457f2817d7dd8bbd96981 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ff0d2b538803dd460f5457f2817d7dd8bbd96981/delta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
91,
3797,
12,
2890,
16,
982,
33,
7036,
4672,
7664,
67,
7337,
273,
374,
316,
7806,
15681,
273,
374,
18,
20,
225,
309,
365,
18,
2327,
422,
296,
19466,
4278,
1234,
273,
2213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
91,
3797,
12,
2890,
16,
982,
33,
7036,
4672,
7664,
67,
7337,
273,
374,
316,
7806,
15681,
273,
374,
18,
20,
225,
309,
365,
18,
2327,
422,
296,
19466,
4278,
1234,
273,
2213,
... |
for doc in self.valdocs: | for doc in self.indexed_docs: | def write_indices(self, out): """ Write an HTML page containing the term and identifier indices to the given streams. @bug: If there are private indexed terms, but no public indexed terms, then this function will still write a header for the Term Index to the public stream. @param public: The output stream for the publ... | 28d88ae14617650a4a829fae94668100dc4e2b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/28d88ae14617650a4a829fae94668100dc4e2b05/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6836,
12,
2890,
16,
596,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
2481,
471,
2756,
4295,
358,
326,
864,
8205,
18,
632,
925,
30,
971,
1915,
854,
3238,
8808,
6548,
16,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6836,
12,
2890,
16,
596,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
2481,
471,
2756,
4295,
358,
326,
864,
8205,
18,
632,
925,
30,
971,
1915,
854,
3238,
8808,
6548,
16,
149... |
return errorMsg(msg, req, CFG_SITE_NAME, ln) | return errorMsg(str(msg), req, ln) | def getfile(req, form): args = wash_urlargd(form, websubmit_templates.files_default_urlargd) ln = args['ln'] | 382a1f25f9b0d159df208291e44a573986f659ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/382a1f25f9b0d159df208291e44a573986f659ca/websubmit_webinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
12,
3658,
16,
646,
4672,
833,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
3311,
9297,
67,
8502,
18,
2354,
67,
1886,
67,
718,
3175,
72,
13,
7211,
273,
833,
3292,
2370,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
12,
3658,
16,
646,
4672,
833,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
3311,
9297,
67,
8502,
18,
2354,
67,
1886,
67,
718,
3175,
72,
13,
7211,
273,
833,
3292,
2370,
... |
widget.connect('drag_data_received', self.xds_data_received) | widget.connect('drag-data-received', self.xds_data_received) widget.connect('drag-drop', self.xds_drag_drop) def xds_drag_drop(self, widget, context, data, info, time): """Called when something is dropped on us. Decide which of the " offered targets to request and ask for it. xds_data_received will be called when it f... | def xds_proxy_for(self, widget): "Handle drops on this widget as if they were to 'self'." # (Konqueror requires ACTION_MOVE) widget.drag_dest_set(g.DEST_DEFAULT_MOTION | g.DEST_DEFAULT_HIGHLIGHT, self.targets, gdk.ACTION_COPY | gdk.ACTION_MOVE | gdk.ACTION_PRIVATE) widget.connect('drag_data_received', self.xds_data_re... | 08a3a9b7dfc52b69c441fa49c399f7667779ed0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/08a3a9b7dfc52b69c441fa49c399f7667779ed0d/loading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
2377,
67,
5656,
67,
1884,
12,
2890,
16,
3604,
4672,
315,
3259,
29535,
603,
333,
3604,
487,
309,
2898,
4591,
358,
296,
2890,
14550,
468,
261,
47,
265,
25734,
280,
4991,
11385,
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,
619,
2377,
67,
5656,
67,
1884,
12,
2890,
16,
3604,
4672,
315,
3259,
29535,
603,
333,
3604,
487,
309,
2898,
4591,
358,
296,
2890,
14550,
468,
261,
47,
265,
25734,
280,
4991,
11385,
67,
... |
NSApp.unhideAllApplications_(None) | NSApp().unhideAllApplications_(None) | def handleMenuItem_(self, sender): if self.action == "HideMiro": NSApp.hide_(None) | 1d95cb1e450c4175f3e0f98bf5d5c0a84aee5cde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/1d95cb1e450c4175f3e0f98bf5d5c0a84aee5cde/osxmenus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12958,
67,
12,
2890,
16,
5793,
4672,
309,
365,
18,
1128,
422,
315,
15690,
49,
11373,
6877,
11472,
3371,
18,
11248,
67,
12,
7036,
13,
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,
0,
0,
0,
0,
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,
12958,
67,
12,
2890,
16,
5793,
4672,
309,
365,
18,
1128,
422,
315,
15690,
49,
11373,
6877,
11472,
3371,
18,
11248,
67,
12,
7036,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return rvdeclared | return | def writeArgumentUnboxing(f, i, name, type, haveCcx, optional, rvdeclared): # f - file to write to # i - int or None - Indicates the source jsval. If i is an int, the source # jsval is argv[i]; otherwise it is *vp. But if Python i >= C++ argc, # which can only happen if optional is True, the argument is missi... | 6f558ca9eddc5be4f0e7a99f5054cd7d74be2155 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/6f558ca9eddc5be4f0e7a99f5054cd7d74be2155/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1379,
984,
2147,
310,
12,
74,
16,
277,
16,
508,
16,
618,
16,
1240,
39,
71,
92,
16,
3129,
16,
5633,
16571,
4672,
468,
284,
300,
585,
358,
1045,
358,
468,
277,
300,
509,
578,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1379,
984,
2147,
310,
12,
74,
16,
277,
16,
508,
16,
618,
16,
1240,
39,
71,
92,
16,
3129,
16,
5633,
16571,
4672,
468,
284,
300,
585,
358,
1045,
358,
468,
277,
300,
509,
578,
5... |
verify = getpass.getpass("Vefify password: ") | verify = getpass.getpass("Verify password: ") | def main(argv): short_options = ':u:p:e:d:' long_options = ['username=', 'password=', 'encoding=', 'domains='] usage = """%s [options] filename | 9dd00a1d38a4db24088a51cfe9332adccd0c2215 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/9dd00a1d38a4db24088a51cfe9332adccd0c2215/zpasswd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3025,
67,
2116,
273,
4290,
89,
30,
84,
30,
73,
30,
72,
2497,
1525,
67,
2116,
273,
10228,
5053,
33,
2187,
296,
3664,
33,
2187,
296,
5999,
33,
2187,
296,
14180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3025,
67,
2116,
273,
4290,
89,
30,
84,
30,
73,
30,
72,
2497,
1525,
67,
2116,
273,
10228,
5053,
33,
2187,
296,
3664,
33,
2187,
296,
5999,
33,
2187,
296,
14180,
... |
def ArchiveFilter(str): if str[:7] <> 'volume_': return 0 try: x = eval(str[7:]) if type(x) <> types.IntType: return 0 if x < 1: return 0 return 1 except: return 0 | def GetArchiveList(list): archive_list = htmlformat.UnorderedList() def ArchiveFilter(str): if str[:7] <> 'volume_': return 0 try: x = eval(str[7:]) if type(x) <> types.IntType: return 0 if x < 1: return 0 return 1 except: return 0 try: dir_listing = filter(ArchiveFilter, os.listdir(list.archive_dir())) except posix.e... | 7662f82fb5e0413cabe6879be806a1e98b4f9fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7662f82fb5e0413cabe6879be806a1e98b4f9fe8/archives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7465,
682,
12,
1098,
4672,
5052,
67,
1098,
273,
1729,
2139,
18,
984,
9885,
682,
1435,
775,
30,
1577,
67,
21228,
273,
1034,
12,
7465,
1586,
16,
1140,
18,
1098,
1214,
12,
1098,
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,
968,
7465,
682,
12,
1098,
4672,
5052,
67,
1098,
273,
1729,
2139,
18,
984,
9885,
682,
1435,
775,
30,
1577,
67,
21228,
273,
1034,
12,
7465,
1586,
16,
1140,
18,
1098,
1214,
12,
1098,
18,
... | |
if not line: self.cmd_missing_arg() return | def ftp_REST(self, line): if not line: self.cmd_missing_arg() return try: value = int(line) if value < 0: raise self.respond("350 Restarting at position %s. Now use RETR/STOR for resuming." %value) self.restart_position = value except: self.respond("501 Invalid number of parameters.") | 42cfb92815cfe91b8e9573da1b07cf8dce19a9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/42cfb92815cfe91b8e9573da1b07cf8dce19a9ff/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
12030,
12,
2890,
16,
980,
4672,
775,
30,
460,
273,
509,
12,
1369,
13,
309,
460,
411,
374,
30,
1002,
365,
18,
17863,
2932,
23,
3361,
20709,
310,
622,
1754,
738,
87,
18,
449... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
12030,
12,
2890,
16,
980,
4672,
775,
30,
460,
273,
509,
12,
1369,
13,
309,
460,
411,
374,
30,
1002,
365,
18,
17863,
2932,
23,
3361,
20709,
310,
622,
1754,
738,
87,
18,
449... | |
if type(value).__name__ in ['int','str','unicode', 'NoneType']: list.append((str(key),repr(value))) | if type(value).__name__ in ['int','str','unicode', 'NoneType' , 'bool']: list.append((key,repr(value))) | def parse_output(key,value,list= []): if type(value).__name__ in ['int','str','unicode', 'NoneType']: list.append((str(key),repr(value))) elif type(value).__name__ == 'list': cnt = 0 for ele in value: parse_output("%s[%s]" %(key,cnt),ele,list) cnt = cnt+1 elif type(value).__name__ == 'dict': for k,d in value.iteritems(... | a6119a0b625d014d2ccf34a7c4a4aa7c402a22a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11602/a6119a0b625d014d2ccf34a7c4a4aa7c402a22a2/ws_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2844,
12,
856,
16,
1132,
16,
1098,
33,
5378,
4672,
309,
618,
12,
1132,
2934,
972,
529,
972,
316,
10228,
474,
17023,
701,
17023,
9124,
2187,
296,
7036,
559,
11,
269,
296,
6430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2844,
12,
856,
16,
1132,
16,
1098,
33,
5378,
4672,
309,
618,
12,
1132,
2934,
972,
529,
972,
316,
10228,
474,
17023,
701,
17023,
9124,
2187,
296,
7036,
559,
11,
269,
296,
6430... |
return choiceIndex != wx.NOT_FOUND and choiceIndex or None | return None if choiceIndex == wx.NOT_FOUND else choiceIndex | def GetControlValue(self, control): choiceIndex = control.GetSelection() return choiceIndex != wx.NOT_FOUND and choiceIndex or None | 58c1bc9bb279cceeb2e715f5bf15e83b8217444c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/58c1bc9bb279cceeb2e715f5bf15e83b8217444c/detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3367,
620,
12,
2890,
16,
3325,
4672,
6023,
1016,
273,
3325,
18,
967,
6233,
1435,
327,
6023,
1016,
480,
7075,
18,
4400,
67,
9294,
471,
6023,
1016,
578,
599,
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,
968,
3367,
620,
12,
2890,
16,
3325,
4672,
6023,
1016,
273,
3325,
18,
967,
6233,
1435,
327,
6023,
1016,
480,
7075,
18,
4400,
67,
9294,
471,
6023,
1016,
578,
599,
2,
-100,
-100,
-100,
-1... |
return ret def getThumbnail(self): self.beginRead() try: ret = self.parsed.image.url except: ret = "" self.endRead() return ret | return ret | def getLibraryLink(self): self.beginRead() | c9109f8e984f28385edfa8cd144687c5d82b83fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/c9109f8e984f28385edfa8cd144687c5d82b83fa/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
9313,
2098,
12,
2890,
4672,
365,
18,
10086,
1994,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
336,
9313,
2098,
12,
2890,
4672,
365,
18,
10086,
1994,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
version="1.15.3", | version="1.17", licence="BSD license, Copyright (c) 2000-2003, ReportLab Inc.", | def run(): LIBS = [] setup( name="Reportlab", version="1.15.3", description="Reportlab PDF generation tools", author="The boys from SW19", author_email="info@reportlab.com", url="http://www.reportlab.com/", package_dir = {'': '..'}, packages=[ # include anything with an __init__ 'reportlab', 'reportlab.docs', 'report... | 19171ca0c12e27376e1b3eff31b51a8a1a52e78e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/19171ca0c12e27376e1b3eff31b51a8a1a52e78e/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
8961,
12692,
273,
5378,
3875,
12,
508,
1546,
4820,
7411,
3113,
1177,
1546,
21,
18,
4033,
3113,
328,
335,
802,
1546,
30780,
8630,
16,
25417,
261,
71,
13,
16291,
17,
6976,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
8961,
12692,
273,
5378,
3875,
12,
508,
1546,
4820,
7411,
3113,
1177,
1546,
21,
18,
4033,
3113,
328,
335,
802,
1546,
30780,
8630,
16,
25417,
261,
71,
13,
16291,
17,
6976,
23,... |
self._cvt = lambda s,x,ch=p[1],c=self._cvt: lin2lin(c(x),ch,2) | self._cvt = lambda s, x,ch=p[1],c=self._cvt: lin2lin(c(x),ch,2) | def __init__(self, fp): self.fp = self.module.open(fp, 'rb') p = self.fp.getparams() print p if (p[4] not in self.allowedComp): raise ValueError("Incorrect file format %r"%(p,)) self.comptype = p[4] if p[0] == 2: self._cvt = lambda s, x, c=self._cvt: audiop.tomono(c(x)) elif p[0] != 1: raise ValueError("can only handle... | 184985df2fd5fa0595464e1e777b4d2dffc1a140 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/184985df2fd5fa0595464e1e777b4d2dffc1a140/aufile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
365,
18,
2978,
18,
3190,
12,
7944,
16,
296,
6731,
6134,
293,
273,
365,
18,
7944,
18,
588,
2010,
1435,
1172,
293,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
365,
18,
2978,
18,
3190,
12,
7944,
16,
296,
6731,
6134,
293,
273,
365,
18,
7944,
18,
588,
2010,
1435,
1172,
293,
309,
2... |
AddCmd('CreateStyleFromSelection', _("Name Style..."), sensitive_cb = ('document', 'CanCreateStyle'), subscribe_to = SELECTION) | AddCmd('CreateStyleFromSelection', _("Name Style..."), sensitive_cb=('document', 'CanCreateStyle'), subscribe_to=SELECTION) | def GotoPage(self): from dialogs.gotopagedlg import gotopgDialog gotopgDialog(self.root) import time time.sleep(.1) self.document.SelectNone() self.canvas.ForceRedraw() | 5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
611,
6302,
1964,
12,
2890,
4672,
628,
7609,
14072,
18,
13212,
556,
11349,
23623,
1930,
2363,
556,
75,
6353,
2363,
556,
75,
6353,
12,
2890,
18,
3085,
13,
1930,
813,
813,
18,
19607,
10604,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
611,
6302,
1964,
12,
2890,
4672,
628,
7609,
14072,
18,
13212,
556,
11349,
23623,
1930,
2363,
556,
75,
6353,
2363,
556,
75,
6353,
12,
2890,
18,
3085,
13,
1930,
813,
813,
18,
19607,
10604,... |
activate = True self.status_string = _("Activated for Flash video") self.timedActivation(5*60, note=False) self.preventedForFlash = True | self.status_string = _("Activated for Flash video") self.timedActivation(5*60, note=False) self.preventedForFlash = True | def _check_for_Flash(self): try: tmp = "/tmp" activate = False ## look for filenames that begin with 'Flash' for file in os.listdir(tmp): if file.startswith("Flash"): filepath = os.path.join(tmp, file) ## Time of last access. atime = os.stat(filepath).st_atime ### see if user is buffering a flash video if (self.flash_a... | 7eec9e6641676887417832403fe48be16fb2d3ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/7eec9e6641676887417832403fe48be16fb2d3ce/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
775,
30,
1853,
273,
2206,
5645,
6,
10235,
273,
1083,
7541,
2324,
364,
9066,
716,
2376,
598,
296,
11353,
11,
364,
585,
316,
1140,
18,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
775,
30,
1853,
273,
2206,
5645,
6,
10235,
273,
1083,
7541,
2324,
364,
9066,
716,
2376,
598,
296,
11353,
11,
364,
585,
316,
1140,
18,
109... |
y_avg_time_s = "----" | y_avg_time_s = " ----" | def p(s): print >>out, s | f8b4a46b1e5b695ba6b028796d2ef32e56a87e8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/f8b4a46b1e5b695ba6b028796d2ef32e56a87e8c/playoffs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
12,
87,
4672,
1172,
1671,
659,
16,
272,
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,
... | [
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,
1652,
293,
12,
87,
4672,
1172,
1671,
659,
16,
272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"PATH": "/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin"} | "PATH": "/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin", "PYRPM_VERSION" : __version__} | def runScript(prog=None, script=None, otherargs=[], force=False, rusage=False, tmpdir="/var/tmp", chroot=None, pkg=None): """Run (script otherargs) with interpreter prog (which can be a list containing initial arguments). If pkg is supplied, it's used to populate environment. The following env. variables are defined: ... | 76847381022e5073d7572b16778bfee32ab62aec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/76847381022e5073d7572b16778bfee32ab62aec/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
703... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
703... |
self.sync_percent = None | if self.is_in_resync: self.sync_percent = 0 else: self.sync_percent = None | def __init__(self, procline): u = self.UNCONF_RE.match(procline) if u: self.cstatus = "Unconfigured" self.lrole = self.rrole = self.ldisk = self.rdisk = None else: m = self.LINE_RE.match(procline) if not m: raise errors.BlockDeviceError("Can't parse input data '%s'" % procline) self.cstatus = m.group(1) self.lrole = m.... | 3c003d9d4dd677407fb0361a7eefa3307ee75f3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/3c003d9d4dd677407fb0361a7eefa3307ee75f3b/bdev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
450,
830,
558,
4672,
582,
273,
365,
18,
2124,
14497,
67,
862,
18,
1916,
12,
685,
830,
558,
13,
309,
582,
30,
365,
18,
71,
2327,
273,
315,
984,
16449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
830,
558,
4672,
582,
273,
365,
18,
2124,
14497,
67,
862,
18,
1916,
12,
685,
830,
558,
13,
309,
582,
30,
365,
18,
71,
2327,
273,
315,
984,
16449,
... |
rev = self.previous_rev(rev) | rev = self._previous_rev(rev, pool=subpool) | def get_path_history(self, path, rev=None, limit=None): path = self.normalize_path(path) rev = self.normalize_rev(rev) expect_deletion = False subpool = Pool(self.pool) while rev: subpool.clear() if self.has_node(path, rev, subpool): if expect_deletion: # it was missing, now it's there again: # rev+1 must be a delete ... | 9c6ff2a43ba48c444878407af99f14bb4de378fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/9c6ff2a43ba48c444878407af99f14bb4de378fd/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
803,
67,
8189,
12,
2890,
16,
589,
16,
5588,
33,
7036,
16,
1800,
33,
7036,
4672,
589,
273,
365,
18,
12237,
67,
803,
12,
803,
13,
5588,
273,
365,
18,
12237,
67,
9083,
12,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
803,
67,
8189,
12,
2890,
16,
589,
16,
5588,
33,
7036,
16,
1800,
33,
7036,
4672,
589,
273,
365,
18,
12237,
67,
803,
12,
803,
13,
5588,
273,
365,
18,
12237,
67,
9083,
12,
90... |
s0 = SubByte(kj[1,c-1]) s1 = SubByte(kj[2,c-1]) s2 = SubByte(kj[3,c-1]) s3 = SubByte(kj[0,c-1]) | s0 = SubByte(kj[1, c-1]) s1 = SubByte(kj[2, c-1]) s2 = SubByte(kj[3, c-1]) s3 = SubByte(kj[0, c-1]) | def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$. TESTS: sage: sr = mq.SR(10,4,4,8, star=True, allow_zero_inversions=True) sage: ki = sr.state_array() sage: for i in range(10): ... ki = sr.key_schedule(ki,i+1) sage: print sr.hex_str_matrix(ki) B4 3E 23 6F EF 92 E9 8F 5B E2 51 1... | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
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,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
18,... |
return http.Response(stream=encode_list([str(id), cell.html()])) | return HTMLResponse(stream=encode_list([str(id), cell.html()])) | def render(self, ctx): id = self.id(ctx) if not ctx.args.has_key('input'): input_text = '' else: input_text = ctx.args['input'][0] input_text = input_text.replace('\r\n', '\n') # DOS | 2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
612,
273,
365,
18,
350,
12,
5900,
13,
309,
486,
1103,
18,
1968,
18,
5332,
67,
856,
2668,
2630,
11,
4672,
810,
67,
955,
273,
875,
469,
30,
810,
67,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
612,
273,
365,
18,
350,
12,
5900,
13,
309,
486,
1103,
18,
1968,
18,
5332,
67,
856,
2668,
2630,
11,
4672,
810,
67,
955,
273,
875,
469,
30,
810,
67,
9... |
a = _move_axis_to_0(asarray(a), axisa) b = _move_axis_to_0(asarray(b), axisb) | a = asarray(a).swapaxes(axisa, 0) b = asarray(b).swapaxes(axisb, 0) | def cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None): """Return the cross product of two (arrays of) vectors. The cross product is performed over the last axis of a and b by default, and can handle axes with dimensions 2 and 3. For a dimension of 2, the z-component of the equivalent three-dimensional cross product... | 972ae975594790108be7bd3661d0d0be007e048c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/972ae975594790108be7bd3661d0d0be007e048c/numeric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6828,
12,
69,
16,
324,
16,
2654,
69,
29711,
21,
16,
2654,
70,
29711,
21,
16,
2654,
71,
29711,
21,
16,
2654,
33,
7036,
4672,
3536,
990,
326,
6828,
3017,
434,
2795,
261,
16223,
434,
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,
6828,
12,
69,
16,
324,
16,
2654,
69,
29711,
21,
16,
2654,
70,
29711,
21,
16,
2654,
71,
29711,
21,
16,
2654,
33,
7036,
4672,
3536,
990,
326,
6828,
3017,
434,
2795,
261,
16223,
434,
13... |
return False | print "Warning: This file does not start with the quicktime sig.." | def parse(self, filename, video): stream = streams.factory.create_filestream(filename, endianess=self._endianess) | 117a818037d9114da7a13905b1889196ba858ebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5551/117a818037d9114da7a13905b1889196ba858ebf/quicktime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1544,
16,
6191,
4672,
1407,
273,
8205,
18,
6848,
18,
2640,
67,
7540,
29233,
12,
3459,
16,
14759,
403,
33,
2890,
6315,
22910,
403,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1544,
16,
6191,
4672,
1407,
273,
8205,
18,
6848,
18,
2640,
67,
7540,
29233,
12,
3459,
16,
14759,
403,
33,
2890,
6315,
22910,
403,
13,
2,
-100,
-100,
-100,
-100,
-10... |
return "if (fl.s != fl.o) goto %s;" % self.nextAddrs[-1].label() | return "if (SF != OF) goto %s;" % self.nextAddrs[-1].label() | def codegen_jl(self, arg): return "if (fl.s != fl.o) goto %s;" % self.nextAddrs[-1].label() | 8cf0c3c7a8428c608bbe912500420c8a19bc9730 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6757/8cf0c3c7a8428c608bbe912500420c8a19bc9730/sbt86.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23198,
67,
78,
80,
12,
2890,
16,
1501,
4672,
327,
315,
430,
261,
2242,
18,
87,
480,
1183,
18,
83,
13,
2897,
738,
87,
4868,
738,
365,
18,
4285,
13811,
18919,
21,
8009,
1925,
1435,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23198,
67,
78,
80,
12,
2890,
16,
1501,
4672,
327,
315,
430,
261,
2242,
18,
87,
480,
1183,
18,
83,
13,
2897,
738,
87,
4868,
738,
365,
18,
4285,
13811,
18919,
21,
8009,
1925,
1435,
2,
... |
print 'Usage: %s site' %(Script.scriptName) | Script.showHelp() | def usage(): print 'Usage: %s site' %(Script.scriptName) DIRAC.exit(2) | bdfb85ec4e6da0b488f42f79f834c17b4476075a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/bdfb85ec4e6da0b488f42f79f834c17b4476075a/dirac-admin-bdii-site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
7739,
18,
4500,
6696,
1435,
18544,
2226,
18,
8593,
12,
22,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
7739,
18,
4500,
6696,
1435,
18544,
2226,
18,
8593,
12,
22,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" % (include10rel, include10rel, include10rel, include10rel)], | <system_message level="4" line="12" source="%(source)s" type="SEVERE"> <paragraph> Problems with "include" directive path: IOError: [Errno 2] No such file or directory: '%(nonexistent)s'. <literal_block xml:space="preserve"> .. include:: <nonexistent> <system_message level="3" line="14" source="%(source)s" type="ERROR"... | def suite(): s = DocutilsTestSupport.ParserTestSuite() s.generateTests(totest) return s | 0f6dd539e83565870e60959cfbe85fcfddde1b61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/0f6dd539e83565870e60959cfbe85fcfddde1b61/test_include.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
2678,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
225,
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,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
2678,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
'RUNNER': ('python' in os.path.basename(interpreter) and 'pybot' | 'RUNNER': ('python' in os.path.basename(interpreter) and 'pybot' | def atests(interpreter, *params): if os.path.isdir(RESULTDIR): shutil.rmtree(RESULTDIR) args = ARGUMENTS % { 'PYTHONPATH' : os.path.join(CURDIR, 'resources'), 'OUTPUTDIR' : RESULTDIR, 'INTERPRETER': interpreter, 'PLATFORM': sys.platform, 'RUNNER': ('python' in os.path.basename(interpreter) and 'pybot' or 'jybot') } run... | b76533ce9b44db3ee273c2c5b9cf658a14f0560c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/b76533ce9b44db3ee273c2c5b9cf658a14f0560c/run_atests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
25563,
12,
2761,
11599,
16,
380,
2010,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
12289,
4537,
4672,
11060,
18,
86,
17371,
12,
12289,
4537,
13,
833,
273,
23654,
55,
738,
288,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
25563,
12,
2761,
11599,
16,
380,
2010,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
12289,
4537,
4672,
11060,
18,
86,
17371,
12,
12289,
4537,
13,
833,
273,
23654,
55,
738,
288,
29... |
mgr = self.GetTopLevelParent().GetFrameManager() | mgr = self._mw.GetFrameManager() | def UpdateMenuItem(self, evt): """Update the check mark for the menu item""" mgr = self.GetTopLevelParent().GetFrameManager() pane = mgr.GetPane(PANE_NAME) if pane.IsShown(): self._mi.Check(True) else: self._mi.Check(False) evt.Skip() | 5bf57fd6853665d43a5aaec102303912fafa0ce2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/5bf57fd6853665d43a5aaec102303912fafa0ce2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12958,
12,
2890,
16,
6324,
4672,
3536,
1891,
326,
866,
2267,
364,
326,
3824,
761,
8395,
13333,
273,
365,
6315,
81,
91,
18,
967,
3219,
1318,
1435,
13618,
273,
13333,
18,
967,
8485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12958,
12,
2890,
16,
6324,
4672,
3536,
1891,
326,
866,
2267,
364,
326,
3824,
761,
8395,
13333,
273,
365,
6315,
81,
91,
18,
967,
3219,
1318,
1435,
13618,
273,
13333,
18,
967,
8485,
... |
prepare_ok = False | raise AbortError(r) | def commit(self, txn): # commit calls _finishCommit() or abort() assert txn._status is Status.ACTIVE txn._status = Status.PREPARING prepare_ok = True self.logger.debug("%s: prepare", txn) try: for r in txn._resources: if prepare_ok and not r.prepare(txn): prepare_ok = False except: txn._status = Status.FAILED raise txn... | fbc8326d16094b1c5281d42c2bcf4f150c2b854f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/fbc8326d16094b1c5281d42c2bcf4f150c2b854f/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
16,
7827,
4672,
468,
3294,
4097,
389,
13749,
5580,
1435,
578,
6263,
1435,
1815,
7827,
6315,
2327,
353,
2685,
18,
13301,
7827,
6315,
2327,
273,
2685,
18,
3670,
2778,
1360,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
16,
7827,
4672,
468,
3294,
4097,
389,
13749,
5580,
1435,
578,
6263,
1435,
1815,
7827,
6315,
2327,
353,
2685,
18,
13301,
7827,
6315,
2327,
273,
2685,
18,
3670,
2778,
1360,
... |
size = vec_world_to_screen(flat_size, world.size, screen_size) | x, y = vec_world_to_screen(flat_size, world.size, screen_size) w, h = x, -y | def draw_obstacles(world, surface): """Draws obstacles defined in the given world onto the given surface. Obstacles includes both bases and boxes. """ screen_size = surface.get_size() wall_surface = load_wall() for item in world.items: # Note that bzflag sizes are more like a radius (half of width). flat_size = (2 * i... | 0196430f9e3bfc278e6e092344bf37c8e4d15d4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9601/0196430f9e3bfc278e6e092344bf37c8e4d15d4d/graphics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
947,
334,
69,
9558,
12,
18179,
16,
9034,
4672,
3536,
25113,
3768,
334,
69,
9558,
2553,
316,
326,
864,
9117,
10170,
326,
864,
9034,
18,
225,
19659,
334,
69,
9558,
6104,
3937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
947,
334,
69,
9558,
12,
18179,
16,
9034,
4672,
3536,
25113,
3768,
334,
69,
9558,
2553,
316,
326,
864,
9117,
10170,
326,
864,
9034,
18,
225,
19659,
334,
69,
9558,
6104,
3937,
... |
print "+++ ", log_filename print "*** ", log_file if not hasattr(log_file, "write"): print "no!!!" | def save_vistrail_to_zip_xml(vistrail, filename): """save_vistrail_to_zip_xml(vistrail: Vistrail, filename:str)-> None Generate a zip compressed version of vistrail. It raise an Exception if there was an error """ (file_, xmlfname) = tempfile.mkstemp(suffix='.xml') os.close(file_) save_vistrail_to_xml(vistrail,xmlfna... | 52453bf1d54184bf4bd648c5a0df179ad60c9fa8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/52453bf1d54184bf4bd648c5a0df179ad60c9fa8/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
90,
3337,
671,
67,
869,
67,
4450,
67,
2902,
12,
90,
3337,
671,
16,
1544,
4672,
3536,
5688,
67,
90,
3337,
671,
67,
869,
67,
4450,
67,
2902,
12,
90,
3337,
671,
30,
776,
333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
90,
3337,
671,
67,
869,
67,
4450,
67,
2902,
12,
90,
3337,
671,
16,
1544,
4672,
3536,
5688,
67,
90,
3337,
671,
67,
869,
67,
4450,
67,
2902,
12,
90,
3337,
671,
30,
776,
333... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.