rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
len(entry.enclosures)>0): | self.hasVideoFeed(entry.enclosures)): | def update(self): info = {} self.beginRead() try: if self.updating: return else: self.updating = True finally: self.endRead() if not self.initialHTML is None: html = self.initialHTML self.initialHTML = None else: info = grabURL(self.url,etag=self.etag,modified=self.modified) if info is None: self.beginRead() try: self.... | a51a6ef91446a209a060d0412f0cad511eb9faa4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/a51a6ef91446a209a060d0412f0cad511eb9faa4/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
1123,
273,
2618,
365,
18,
10086,
1994,
1435,
775,
30,
309,
365,
18,
5533,
1776,
30,
327,
469,
30,
365,
18,
5533,
1776,
273,
1053,
3095,
30,
365,
18,
409,
1994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
1123,
273,
2618,
365,
18,
10086,
1994,
1435,
775,
30,
309,
365,
18,
5533,
1776,
30,
327,
469,
30,
365,
18,
5533,
1776,
273,
1053,
3095,
30,
365,
18,
409,
1994,
... |
output_ll_max = pyre.inventory.int("output_ll_max", default=20) | output_ll_max = inv.int("output_ll_max", default=20) | def setProperties(self, stream): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory, stream) return | 30bb98f21f06a632cfbf5135512b5a294b485841 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/30bb98f21f06a632cfbf5135512b5a294b485841/Output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23126,
12,
2890,
16,
1407,
4672,
628,
385,
305,
832,
4559,
495,
1930,
3633,
67,
542,
67,
4738,
3633,
67,
542,
67,
4738,
12,
2890,
18,
454,
67,
7528,
16,
365,
18,
26024,
16,
1407,
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,
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,
23126,
12,
2890,
16,
1407,
4672,
628,
385,
305,
832,
4559,
495,
1930,
3633,
67,
542,
67,
4738,
3633,
67,
542,
67,
4738,
12,
2890,
18,
454,
67,
7528,
16,
365,
18,
26024,
16,
1407,
13,... |
2.00000000000000 \times 10^{-13} | 2 \times 10^{-13} | def float_function(x): r""" Returns the LaTeX code for a python float ``x``. INPUT: ``x`` - a python float EXAMPLES:: sage: from sage.misc.latex import float_function sage: float_function(float(3.14)) 3.14 sage: float_function(float(1e-10)) 1 \times 10^{-10} sage: float_function(float(2e10)) 20000000000.0 sage: late... | 45d89de46d3c02d01380c3dde6d6e396a059ccb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/45d89de46d3c02d01380c3dde6d6e396a059ccb4/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1431,
67,
915,
12,
92,
4672,
436,
8395,
2860,
326,
21072,
21575,
60,
981,
364,
279,
5790,
1431,
12176,
92,
68,
8338,
225,
12943,
30,
12176,
92,
10335,
300,
279,
5790,
1431,
225,
5675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1431,
67,
915,
12,
92,
4672,
436,
8395,
2860,
326,
21072,
21575,
60,
981,
364,
279,
5790,
1431,
12176,
92,
68,
8338,
225,
12943,
30,
12176,
92,
10335,
300,
279,
5790,
1431,
225,
5675,
... |
__dynamic__ = 1 | __dynamic__ = 1 | def mysetattr(self, name, value): if name == "spam": raise AttributeError return object.__setattr__(self, name, value) | 875eeaa193fd8e02d1a8b6d0d6f2768b55b0fff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/875eeaa193fd8e02d1a8b6d0d6f2768b55b0fff3/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
542,
1747,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
422,
315,
1752,
301,
6877,
1002,
6394,
327,
733,
16186,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
542,
1747,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
422,
315,
1752,
301,
6877,
1002,
6394,
327,
733,
16186,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
13,
2,
-100,
-100,
-1... |
repl, '\n'.join(lines)).split('\n') | repl, lines) | def repl(m): try: lexer = get_lexer_by_name(m.group(1)) except ValueError: lexer = TextLexer() code = highlight(m.group(2), lexer, formatter) code = code.replace('\n\n', '\n \n') return '\n\n<div class="code">%s</div>\n\n' % code | 7d41673fa57c7c48044655d25966eda9ff1b71ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/7d41673fa57c7c48044655d25966eda9ff1b71ba/markdown-processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6831,
12,
81,
4672,
775,
30,
8512,
273,
336,
67,
31731,
67,
1637,
67,
529,
12,
81,
18,
1655,
12,
21,
3719,
1335,
2068,
30,
8512,
273,
3867,
13356,
1435,
981,
273,
8839,
12,
81,
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,
6831,
12,
81,
4672,
775,
30,
8512,
273,
336,
67,
31731,
67,
1637,
67,
529,
12,
81,
18,
1655,
12,
21,
3719,
1335,
2068,
30,
8512,
273,
3867,
13356,
1435,
981,
273,
8839,
12,
81,
18,
... |
b[-1] = (dyk[-1]/dN - sl_N) | b[-1] = -(dyk[-1]/dN - sl_N) | def _get_cspline_Bb(yk, xk, kind, conds): # internal function to compute different tri-diagonal system # depending on the kind of spline requested. # conds is only used for 'second' and 'first' Np1 = len(xk) if kind in ['natural', 'second']: if kind == 'natural': m0, mN = 0.0, 0.0 else: m0, mN = conds # the matrix to ... | deff35fdd9225ffb4dc8424f8e00bbfc804dab49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/deff35fdd9225ffb4dc8424f8e00bbfc804dab49/interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2143,
412,
558,
67,
38,
70,
12,
93,
79,
16,
619,
79,
16,
3846,
16,
30958,
4672,
468,
2713,
445,
358,
3671,
3775,
6882,
17,
30130,
2619,
468,
8353,
603,
326,
3846,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2143,
412,
558,
67,
38,
70,
12,
93,
79,
16,
619,
79,
16,
3846,
16,
30958,
4672,
468,
2713,
445,
358,
3671,
3775,
6882,
17,
30130,
2619,
468,
8353,
603,
326,
3846,
434,
... |
representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate). | representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate). | def _coset_reduction_data_first_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate). | ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5/congroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
3645,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
3645,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
6... |
sys.stderr.write("%s: Parse error in input. EOF\n" % (sourcename)) | sys.stderr.write("%s: Parse error in input. EOF\n" % (errortoken.lexer.sourcename)) | def p_error(errtoken): global error error += 1 if errtoken: if hasattr(errtoken,"lineno"): lineno = errtoken.lineno else: lineno = 0 if lineno: sys.stderr.write("%s(%d): Syntax error: unexpected token %s\n" % (sourcename, lineno, errtoken.type)) else: sys.stderr.write("%s: Syntax error, token=%s" % (sourcename, errtoke... | fd6e74705730e8bfe77462fc585dc1b6c5368739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/fd6e74705730e8bfe77462fc585dc1b6c5368739/ddf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
1636,
12,
370,
2316,
4672,
2552,
555,
555,
1011,
404,
309,
393,
2316,
30,
309,
3859,
12,
370,
2316,
10837,
17782,
6,
4672,
7586,
273,
393,
2316,
18,
17782,
469,
30,
7586,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
1636,
12,
370,
2316,
4672,
2552,
555,
555,
1011,
404,
309,
393,
2316,
30,
309,
3859,
12,
370,
2316,
10837,
17782,
6,
4672,
7586,
273,
393,
2316,
18,
17782,
469,
30,
7586,
273,... |
if len(self.blockTimes)>100: | samplesInWindow = (self.UPDATE_CLIENT_WINDOW / self.UPDATE_CLIENT_INTERVAL) if len(self.blockTimes) > samplesInWindow: | def updateRateAndETA(self,length): now = clock() updated = False self.currentSize = self.currentSize + length if self.lastUpdated < now - self.UPDATE_CLIENT_INTERVAL: self.blockTimes.append((now, self.currentSize)) #Only keep the last 100 packets if len(self.blockTimes)>100: self.blockTimes.pop(0) updated = True self.... | b4a40ffd0c80903294d330ba38f0ce0c351918bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/b4a40ffd0c80903294d330ba38f0ce0c351918bf/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
4727,
1876,
31370,
12,
2890,
16,
2469,
4672,
2037,
273,
7268,
1435,
3526,
273,
1083,
365,
18,
2972,
1225,
273,
365,
18,
2972,
1225,
397,
769,
309,
365,
18,
2722,
7381,
411,
2037,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
4727,
1876,
31370,
12,
2890,
16,
2469,
4672,
2037,
273,
7268,
1435,
3526,
273,
1083,
365,
18,
2972,
1225,
273,
365,
18,
2972,
1225,
397,
769,
309,
365,
18,
2722,
7381,
411,
2037,
... |
""" if self.origCtf: self.dataUnit.getSettings().set("ColorTransferFunction", self.origCtf) | """ if self.origCtf: self.dataUnit.getSettings().set("ColorTransferFunction", self.origCtf) | def onRemove(self): """ Created: 26.1.2006, KP Description: Restore palette upon filter removal """ if self.origCtf: self.dataUnit.getSettings().set("ColorTransferFunction", self.origCtf) | 6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3288,
12,
2890,
4672,
3536,
12953,
30,
10659,
18,
21,
18,
6976,
26,
16,
1475,
52,
6507,
30,
11197,
12127,
12318,
1034,
14817,
3536,
309,
365,
18,
4949,
39,
6632,
30,
365,
18,
892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
3288,
12,
2890,
4672,
3536,
12953,
30,
10659,
18,
21,
18,
6976,
26,
16,
1475,
52,
6507,
30,
11197,
12127,
12318,
1034,
14817,
3536,
309,
365,
18,
4949,
39,
6632,
30,
365,
18,
892,... |
return s._matrix_(F) | return MatrixGroupElement(s._matrix_(F),self, check=False) | def random(self): """ Wraps GAP's Random function. | 4068dbea8a9ed96bfb3ad1d542af8bcd34f5cbde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/4068dbea8a9ed96bfb3ad1d542af8bcd34f5cbde/linear.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
12,
2890,
4672,
3536,
678,
7506,
611,
2203,
1807,
8072,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2744,
12,
2890,
4672,
3536,
678,
7506,
611,
2203,
1807,
8072,
445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Looks for updates for a given manifest item that is either | Looks for updates for a given manifest item that is either | def lookForUpdates(manifestitem, cataloglist, installinfo): """ Looks for updates for a given manifest item that is either installed or scheduled to be installed. This handles not only specific application updates, but also updates that aren't simply later versions of the manifest item. For example, AdobeCameraRaw is a... | 5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
1290,
5121,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
10176,
87,
364,
4533,
364,
279,
864,
5643,
761,
716,
353,
3344,
5876,
578,
9755,
358,
506,
5876,
18,
1220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
1290,
5121,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
10176,
87,
364,
4533,
364,
279,
864,
5643,
761,
716,
353,
3344,
5876,
578,
9755,
358,
506,
5876,
18,
1220,
... |
return re.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s', | return re.sub(r'(\.\d\d\d\d\d\d\d\d-\d\d\d\d\d\d|\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s)', | def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s', r' [D/T] ', str) | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
9683,
12,
701,
4672,
3536,
2569,
7811,
628,
5599,
471,
19649,
16,
469,
6729,
471,
5351,
3712,
3400,
629,
263,
8395,
327,
283,
18,
1717,
12,
86,
11,
4713,
8403,
72,
64,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
9683,
12,
701,
4672,
3536,
2569,
7811,
628,
5599,
471,
19649,
16,
469,
6729,
471,
5351,
3712,
3400,
629,
263,
8395,
327,
283,
18,
1717,
12,
86,
11,
4713,
8403,
72,
64,
72,
... |
], 'var': [ (r'\\\n', String), (r'\\', String), (r'\n', Text, ' (r'[^\\\n]+', String), | def get_tokens_unprocessed(self, text): ins = [] lines = text.splitlines(True) done = '' lex = BaseMakefileLexer(**self.options) backslashflag = False for line in lines: if self.r_special.match(line) or backslashflag: ins.append((len(done), [(0, Comment.Preproc, line)])) backslashflag = line.strip().endswith('\\') elif... | 6f5a2139d5ae4c998bb7e7d7a887a770ce727dc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2885/6f5a2139d5ae4c998bb7e7d7a887a770ce727dc7/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
2763,
273,
5378,
2362,
273,
977,
18,
4939,
3548,
12,
5510,
13,
2731,
273,
875,
5275,
273,
3360,
6464,
768,
13356,
12,
636,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
2763,
273,
5378,
2362,
273,
977,
18,
4939,
3548,
12,
5510,
13,
2731,
273,
875,
5275,
273,
3360,
6464,
768,
13356,
12,
636,
2890,... | |
if software == 'datadir': urlgrab(url,'data_dir.zip',progress_obj=text_progress_meter()) | def download_bin(options): ''' Downloads the binary files takes -a --auth username:password for geoserver download from hudson ''' with pushd(download_path) as download: section = "bin_software" for software in config.options(section): info("Downloading %s" % software) url = config.get(section,software) ''' Why are we... | 1bd170c7ba5b44a276f50c2ebe8fad07f47a124a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3279/1bd170c7ba5b44a276f50c2ebe8fad07f47a124a/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
4757,
12,
2116,
4672,
9163,
13059,
87,
326,
3112,
1390,
225,
5530,
300,
69,
1493,
1944,
2718,
30,
3664,
364,
8244,
538,
12330,
4224,
628,
366,
1100,
816,
9163,
598,
1817,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
4757,
12,
2116,
4672,
9163,
13059,
87,
326,
3112,
1390,
225,
5530,
300,
69,
1493,
1944,
2718,
30,
3664,
364,
8244,
538,
12330,
4224,
628,
366,
1100,
816,
9163,
598,
1817,
72,
... | |
traceback.print_exc() | traceback.print_exc() | def handle_error(self, request, client_address): """Handle an error gracefully. May be overridden. | dd4c61dbf554aa00cd0e32e94620607dcc47f870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dd4c61dbf554aa00cd0e32e94620607dcc47f870/SocketServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
3259,
392,
555,
25063,
18,
225,
16734,
506,
11000,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
3259,
392,
555,
25063,
18,
225,
16734,
506,
11000,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if method not in ['execute','exec_workflow','obj_list']: raise KeyError("Method not supported %s" % method) | if method == 'obj_list': raise NameError("obj_list has been discontinued via RPC as of 6.0, please query ir.model directly!") if method not in ['execute','exec_workflow']: raise NameError("Method not available %s" % method) | def dispatch(self, method, auth, params): (db, uid, passwd ) = params[0:3] params = params[3:] if method not in ['execute','exec_workflow','obj_list']: raise KeyError("Method not supported %s" % method) security.check(db,uid,passwd) ls = netsvc.LocalService('object_proxy') fn = getattr(ls, method) res = fn(db, uid, *pa... | 14b7e37bf5d01391a34b09baff483528ea4cbf66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/14b7e37bf5d01391a34b09baff483528ea4cbf66/web_services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
707,
16,
1357,
16,
859,
4672,
261,
1966,
16,
4555,
16,
19093,
262,
273,
859,
63,
20,
30,
23,
65,
859,
273,
859,
63,
23,
26894,
309,
707,
422,
296,
2603,
67,
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,
3435,
12,
2890,
16,
707,
16,
1357,
16,
859,
4672,
261,
1966,
16,
4555,
16,
19093,
262,
273,
859,
63,
20,
30,
23,
65,
859,
273,
859,
63,
23,
26894,
309,
707,
422,
296,
2603,
67,
109... |
command.extend([option.replace('"', '') for option in options]) | command.extend(options) | def main(args): sections = SplitArgsIntoSections(args[1:]) assert len(sections) == 3 (base, inputs, options) = sections assert len(base) == 3 input = base[0] cppdir = base[1] hdir = base[2] assert len(inputs) > 1 generate_bindings = inputs[0] perl_modules = inputs[1:] include_dirs = [] for perl_module in perl_module... | e8dec209df749eac3a3e566d96d0fdde3dadbe1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/e8dec209df749eac3a3e566d96d0fdde3dadbe1e/rule_binding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
7178,
273,
5385,
2615,
5952,
15965,
12,
1968,
63,
21,
30,
5717,
1815,
562,
12,
11657,
13,
422,
890,
261,
1969,
16,
4540,
16,
702,
13,
273,
7178,
225,
1815,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
4672,
7178,
273,
5385,
2615,
5952,
15965,
12,
1968,
63,
21,
30,
5717,
1815,
562,
12,
11657,
13,
422,
890,
261,
1969,
16,
4540,
16,
702,
13,
273,
7178,
225,
1815,
562,
... |
def timeleftstring(h, m, s): | def timeleftstring(self, h, m, s): | def timeleftstring(h, m, s): if h > 1 or h == 0: if m > 1 or m == 0: message = 'You have %s hours, %s minutes and %s seconds left' % (h, m, s) else: message = 'You have %s hours, %s minute and %s seconds left' % (h, m, s) else: if m > 1 or m == 0: message = 'You have %s hour, %s minutes and %s seconds left' % (h, m, s)... | 50c6a520efe246cf6eb4b60ba552276fa00bf629 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/50c6a520efe246cf6eb4b60ba552276fa00bf629/timekpr-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1658,
6516,
1222,
1080,
12,
2890,
16,
366,
16,
312,
16,
272,
4672,
309,
366,
405,
404,
578,
366,
422,
374,
30,
309,
312,
405,
404,
578,
312,
422,
374,
30,
883,
273,
296,
6225,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1658,
6516,
1222,
1080,
12,
2890,
16,
366,
16,
312,
16,
272,
4672,
309,
366,
405,
404,
578,
366,
422,
374,
30,
309,
312,
405,
404,
578,
312,
422,
374,
30,
883,
273,
296,
6225,
1240,
... |
truePartName = self.__subpartDict.get(partName, [partName])[0] partDef = partBundleDict.get(truePartName) | subpartDef = self.__subpartDict.get(partName, Actor.SubpartDef(partName)) partDef = partBundleDict.get(subpartDef.truePartName) | def instance(self, path, partName, jointName, lodName="lodRoot"): """instance(self, NodePath, string, string, key="lodRoot") Instance a nodePath to an actor part at a joint called jointName""" partBundleDict = self.__partBundleDict.get(lodName) if partBundleDict: truePartName = self.__subpartDict.get(partName, [partNam... | 26ce93174486f6c06d3dc99e56e4b550e8f35635 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/26ce93174486f6c06d3dc99e56e4b550e8f35635/Actor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
791,
12,
2890,
16,
589,
16,
1087,
461,
16,
15916,
461,
16,
328,
369,
461,
1546,
80,
369,
2375,
6,
4672,
3536,
1336,
12,
2890,
16,
2029,
743,
16,
533,
16,
533,
16,
498,
1546,
80,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
791,
12,
2890,
16,
589,
16,
1087,
461,
16,
15916,
461,
16,
328,
369,
461,
1546,
80,
369,
2375,
6,
4672,
3536,
1336,
12,
2890,
16,
2029,
743,
16,
533,
16,
533,
16,
498,
1546,
80,
36... |
binaries[arch][0][binary] = undo['binaries'][p] | if binary[0] == "-": del binaries[arch][0][binary[1:]] else: binaries[arch][0][binary] = undo['binaries'][p] | def iter_packages(self, packages, output): """Iter on the list of actions and apply them one-by-one | dc1a84151dc28148e685c2568d18f8af839288c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/dc1a84151dc28148e685c2568d18f8af839288c9/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
876,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
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,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
876,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
xhtmltools.urlencode(description.encode('utf-8'))) | xhtmltools.urlencode(description)) | def videoBombExternally(self, item): obj = db.getObjectByID(int(item)) paramList = {} paramList["title"] = obj.getTitle().encode('utf-8') paramList["info_url"] = obj.getLink() paramList["hookup_url"] = obj.getPaymentLink() try: rss_url = obj.getFeed().getURL() if (not rss_url.startswith(u'dtv:')): paramList["rss_url"] ... | 4dfe2a61c28f9e027aa86371e5c535aa3d042134 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/4dfe2a61c28f9e027aa86371e5c535aa3d042134/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6191,
38,
16659,
29764,
1230,
12,
2890,
16,
761,
4672,
1081,
273,
1319,
18,
588,
921,
13331,
12,
474,
12,
1726,
3719,
579,
682,
273,
2618,
579,
682,
9614,
2649,
11929,
273,
1081,
18,
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,
6191,
38,
16659,
29764,
1230,
12,
2890,
16,
761,
4672,
1081,
273,
1319,
18,
588,
921,
13331,
12,
474,
12,
1726,
3719,
579,
682,
273,
2618,
579,
682,
9614,
2649,
11929,
273,
1081,
18,
5... |
def gcc_exists(): | def gcc_exists(name = 'gcc'): | def gcc_exists(): """ Test to make sure gcc is found Does this return correct value on win98??? """ result = 0 try: w,r=os.popen4('gcc -v') w.close() str_result = r.read() #print str_result if string.find(str_result,'Reading specs') != -1: result = 1 except: # This was needed because the msvc compiler messes with # th... | 525bfa8f809ecb4a14080b5a3b4b055b303b701e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/525bfa8f809ecb4a14080b5a3b4b055b303b701e/build_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
952,
67,
1808,
12,
529,
273,
296,
75,
952,
11,
4672,
3536,
7766,
358,
1221,
3071,
314,
952,
353,
1392,
225,
9637,
333,
327,
3434,
460,
603,
5657,
10689,
14646,
35,
3536,
563,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
952,
67,
1808,
12,
529,
273,
296,
75,
952,
11,
4672,
3536,
7766,
358,
1221,
3071,
314,
952,
353,
1392,
225,
9637,
333,
327,
3434,
460,
603,
5657,
10689,
14646,
35,
3536,
563,
273,... |
if not inpackage: | if inpackage is None: | def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].''' # Compute the full module name (prepending inpackage if set) if inpackage: fullmodule = "%s.%s" % (inpackage, module) else: fullmodule = module # Check in the cache if fullmodule in _modules: return _modules[fullmodule] # Initi... | 63d2bd0c0f14b0ec86d5455858d3bf941cb273f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/63d2bd0c0f14b0ec86d5455858d3bf941cb273f5/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
... |
p.plot(T,Y[:,0],'b',linewidth=2) p.plot(T,Y[:,1],'g--',linewidth=2) | for i in range(model.getModelSize()): p.plot(T,Y[:,i],label="State | def _plot_control_solution(model, interval, initial_ys, us): """Plots a single shooting solution. Parameters: model -- the model to simulate. interval -- a tuple: (start_time, end_time) initial_ys -- the initial states at the beginning of the simulation. us -- the constant control signal(s) used through... | a1367e518caafa0fe1b6cc7c8a5068929ad01be2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/a1367e518caafa0fe1b6cc7c8a5068929ad01be2/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
67,
7098,
67,
13385,
12,
2284,
16,
3673,
16,
2172,
67,
1900,
16,
584,
4672,
3536,
29311,
279,
2202,
699,
1632,
310,
6959,
18,
225,
7012,
30,
938,
1377,
1493,
326,
938,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4032,
67,
7098,
67,
13385,
12,
2284,
16,
3673,
16,
2172,
67,
1900,
16,
584,
4672,
3536,
29311,
279,
2202,
699,
1632,
310,
6959,
18,
225,
7012,
30,
938,
1377,
1493,
326,
938,
358,
... |
tables=[self._table] | tables=['"'+self._table+'"'] | def _where_calc(self, cr, user, args, active_test=True, context=None): if not context: context={} args = args[:] # if the object has a field named 'active', filter out all inactive # records unless they were explicitely asked for if 'active' in self._columns and (active_test and context.get('active_test', True)): i = 0... | 21e2436edcfd48b26e17230380299a3196aac8b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/21e2436edcfd48b26e17230380299a3196aac8b0/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6051,
67,
12448,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
2695,
67,
3813,
33,
5510,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
833,
273,
833,
10531,
65,
468,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6051,
67,
12448,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
2695,
67,
3813,
33,
5510,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
833,
273,
833,
10531,
65,
468,
309,
... |
l = keylen / BLOCKLEN if keylen % BLOCKLEN != 0: | l = keylen / digest_size if keylen % digest_size != 0: | def pbkdf2( password, salt, itercount, keylen, hashfn = sha ): # l - number of output blocks to produce l = keylen / BLOCKLEN if keylen % BLOCKLEN != 0: l += 1 h = hmac.new( password, None, hashfn ) T = "" for i in range(1, l+1): T += pbkdf2_F( h, salt, itercount, i ) return T[: -( BLOCKLEN - keylen%BLOCKLEN) ] | 233e286a99a30c054db7e5a10ec5f649c0d8d573 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/233e286a99a30c054db7e5a10ec5f649c0d8d573/pbkdf2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6386,
27767,
22,
12,
2201,
16,
4286,
16,
1400,
1883,
16,
498,
1897,
16,
1651,
4293,
273,
6056,
262,
30,
282,
468,
328,
300,
1300,
434,
876,
4398,
358,
11402,
328,
273,
498,
1897,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6386,
27767,
22,
12,
2201,
16,
4286,
16,
1400,
1883,
16,
498,
1897,
16,
1651,
4293,
273,
6056,
262,
30,
282,
468,
328,
300,
1300,
434,
876,
4398,
358,
11402,
328,
273,
498,
1897,
342,
... |
"""Returns true iff the principal has the permission""" | """Return True iff principal has permission.""" | def __contains__(self, (principal, permission)): """Returns true iff the principal has the permission""" if not permission in (ViewPermission, ModifyPermission, AddPermission): raise ValueError("Bad permission: %r" % (permission,)) if principal == Everybody: return permission in self._everybody if principal is None: r... | 79fc1976e5a10bfbc75d3bf3b043c026c54a0c85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/79fc1976e5a10bfbc75d3bf3b043c026c54a0c85/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
261,
26138,
16,
225,
4132,
3719,
30,
3536,
990,
1053,
21437,
8897,
711,
4132,
12123,
309,
486,
4132,
316,
261,
1767,
5041,
16,
9518,
5041,
16,
1436,
5041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12298,
972,
12,
2890,
16,
261,
26138,
16,
225,
4132,
3719,
30,
3536,
990,
1053,
21437,
8897,
711,
4132,
12123,
309,
486,
4132,
316,
261,
1767,
5041,
16,
9518,
5041,
16,
1436,
5041,... |
if len(parts) <> 5: | if len(parts) != 5: | def parse229(resp, peer): '''Parse the '229' response for a EPSV request. Raises error_proto if it does not contain '(|||port|)' Return ('host.addr.as.numbers', port#) tuple.''' if resp[:3] <> '229': raise error_reply, resp left = resp.find('(') if left < 0: raise error_proto, resp right = resp.find(')', left + 1) if ... | 0c5eac883ea9d53f54e55ccf224c50b7b2951488 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0c5eac883ea9d53f54e55ccf224c50b7b2951488/ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3787,
29,
12,
12243,
16,
4261,
4672,
9163,
3201,
326,
296,
3787,
29,
11,
766,
364,
279,
512,
5857,
58,
590,
18,
20497,
555,
67,
9393,
309,
518,
1552,
486,
912,
7747,
20081,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3787,
29,
12,
12243,
16,
4261,
4672,
9163,
3201,
326,
296,
3787,
29,
11,
766,
364,
279,
512,
5857,
58,
590,
18,
20497,
555,
67,
9393,
309,
518,
1552,
486,
912,
7747,
20081,
96,
... |
print "db.h: found", db_ver, "in", d | if db_setup_debug: print "db.h: found", db_ver, "in", d | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 738446f44d6d37d920d00fa99bbb1a7084bd537b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/738446f44d6d37d920d00fa99bbb1a7084bd537b/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
... print("%s->%s" % (s, s.find()), end=' ') | ... print(" %s->%s" % (s, s.find()), end='') | ... def __str__(self): | 7bada064f17fe94764857ba822d8ce942b636aca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/7bada064f17fe94764857ba822d8ce942b636aca/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
from _subprocess import CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP | def __str__(self): return "Command '%s' returned non-zero exit status %d" % (self.cmd, self.returncode) | 01d745c0d6c3d2a76a021c1c7ae6f246899e9ba1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/01d745c0d6c3d2a76a021c1c7ae6f246899e9ba1/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
315,
2189,
1995,
87,
11,
2106,
1661,
17,
7124,
2427,
1267,
738,
72,
6,
738,
261,
2890,
18,
4172,
16,
365,
18,
2463,
710,
13,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
315,
2189,
1995,
87,
11,
2106,
1661,
17,
7124,
2427,
1267,
738,
72,
6,
738,
261,
2890,
18,
4172,
16,
365,
18,
2463,
710,
13,
2,
-100,
-100,
-100,... | |
M = self._bsgs(E(0),1,ub) | M = self._bsgs(E(0),lb,ub) | def order(self): """ Return the order of this point on the elliptic curve. If the point has infinite order, returns 0. | ac591dcc3ecc2f1bfb50bcb4414fa24d730cdfac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ac591dcc3ecc2f1bfb50bcb4414fa24d730cdfac/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
if not self.parent._context: self.parent._context = "{'project_type': locals().get('project_type')}" elif 'project_type' not in self.parent._context: | if not self.parent.context: self.parent.context = "{'project_type': locals().get('project_type')}" elif 'project_type' not in self.parent.context: | def __init__(self): super(TimesheetWork, self).__init__() self.parent = copy.copy(self.parent) if not self.parent._context: self.parent._context = "{'project_type': locals().get('project_type')}" elif 'project_type' not in self.parent._context: sep = '' if self.parent._context[-2] != ',': sep = ',' self.parent._context... | c35fa9bc0645f082f4f08d2bdc033b8a4fcf5790 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9304/c35fa9bc0645f082f4f08d2bdc033b8a4fcf5790/work.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
10694,
2963,
2421,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
2938,
273,
1610,
18,
3530,
12,
2890,
18,
2938,
13,
309,
486,
365,
18,
2938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
2240,
12,
10694,
2963,
2421,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
2938,
273,
1610,
18,
3530,
12,
2890,
18,
2938,
13,
309,
486,
365,
18,
2938,
... |
sqlStr2 = """ select DISTINCT workflow_spec_id FROM st_job_success;""" | sqlStr2 = """ select DISTINCT workflow_spec_id FROM st_job_failure;""" | def listWorkflowSpecs(): """ _listWorkflowSpecs_ Return a list of all workflow spec ids (request names) in the StatTracker """ sqlStr1 = """ select DISTINCT workflow_spec_id FROM st_job_success;""" sqlStr2 = """ select DISTINCT workflow_spec_id FROM st_job_success;""" connection = connect() dbCur = connection.curso... | 5e7be54332b6e4e75df9ceb7af4035fd4394a9e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/5e7be54332b6e4e75df9ceb7af4035fd4394a9e4/StatTrackerDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
8484,
15999,
13332,
3536,
389,
1098,
8484,
15999,
67,
225,
2000,
279,
666,
434,
777,
6095,
857,
3258,
261,
2293,
1257,
13,
316,
326,
8269,
8135,
225,
3536,
225,
1847,
1585,
21,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
8484,
15999,
13332,
3536,
389,
1098,
8484,
15999,
67,
225,
2000,
279,
666,
434,
777,
6095,
857,
3258,
261,
2293,
1257,
13,
316,
326,
8269,
8135,
225,
3536,
225,
1847,
1585,
21,
273,... |
"free to use." % num)) | "free to use.") % num) | def countRaidPartitions(self): self.list = [] | 9eb3ce5f98fc8a5512507e7b1c0336922f89488e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5376/9eb3ce5f98fc8a5512507e7b1c0336922f89488e/raidOptionsWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
12649,
350,
13738,
12,
2890,
4672,
365,
18,
1098,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
12649,
350,
13738,
12,
2890,
4672,
365,
18,
1098,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if len(args)>0 and isinstance(args[0],Database): return method(self, *args, **kwargs) else: | deadlocks = 0 while True: | def with_transaction(self, *args, **kwargs): if len(args)>0 and isinstance(args[0],Database): return method(self, *args, **kwargs) else: txn = self.env.txn_begin() try: result = method(self, txn, *args, **kwargs) txn.commit() return result except: txn.abort() raise | 29dcac664c3f2fbc9009978e949ae467280aa521 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11095/29dcac664c3f2fbc9009978e949ae467280aa521/bdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
598,
67,
7958,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
8363,
23581,
273,
374,
1323,
1053,
30,
7827,
273,
365,
18,
3074,
18,
24790,
67,
10086,
1435,
775,
30,
563,
273,
707,
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,
598,
67,
7958,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
8363,
23581,
273,
374,
1323,
1053,
30,
7827,
273,
365,
18,
3074,
18,
24790,
67,
10086,
1435,
775,
30,
563,
273,
707,
12,
... |
for k in x.keys(): x[k] = self.measure(self.epoch("last", dq.totime(a[k]), off=self.epoch("r_utc", (dq.quantity(ofe["m0"]) + dq.quantity("0.5d")))), "utc") | for k in x: x[k] = self.measure( self.epoch("last", a[k].totime(), off=self.epoch("r_utc", (dq.quantity(ofe["m0"]) + dq.quantity("0.5d") )) ), "utc") | def riseset(self, crd, ev="5deg"): a = self.rise(crd, ev) if isinstance(a, str): a = a.split() return { "rise": { "last": a[0], "utc": a[0] }, "set" : { "last": a[1], "utc": a[1] }, "solved": False } ofe = self.measure(self._framestack["epoch"], "utc") if not is_measure(ofe): ofe = self.epoch('utc', 'today') x = a.copy... | d38898ee7af73aa5b71e4eeaaf5344b8a4c61bb2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/d38898ee7af73aa5b71e4eeaaf5344b8a4c61bb2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
6141,
278,
12,
2890,
16,
26781,
16,
2113,
1546,
25,
9923,
6,
4672,
279,
273,
365,
18,
27075,
12,
3353,
72,
16,
2113,
13,
309,
1549,
12,
69,
16,
609,
4672,
279,
273,
279,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
6141,
278,
12,
2890,
16,
26781,
16,
2113,
1546,
25,
9923,
6,
4672,
279,
273,
365,
18,
27075,
12,
3353,
72,
16,
2113,
13,
309,
1549,
12,
69,
16,
609,
4672,
279,
273,
279,
18,
4... |
if guarantee_limit and date.today() > datetime.strptime(guarantee_limit, '%Y-%m-%d'): | if guarantee_limit and datetime.strptime(date.today().strftime('%Y-%m-%d'), '%Y-%m-%d') > datetime.strptime(guarantee_limit, '%Y-%m-%d'): | def onchange_operation_type(self, cr, uid, ids, type, guarantee_limit): """ On change of operation type it sets source location, destination location and to invoice field. @param product: Changed operation type. @param guarantee_limit: Guarantee limit of current record. @return: Dictionary of values. """ if not type: r... | d51ad12b0c17318118198286a61d85c7813aa5aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d51ad12b0c17318118198286a61d85c7813aa5aa/mrp_repair.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
7624,
67,
723,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
18779,
67,
3595,
4672,
3536,
2755,
2549,
434,
1674,
618,
518,
1678,
1084,
2117,
16,
2929,
2117,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
7624,
67,
723,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
18779,
67,
3595,
4672,
3536,
2755,
2549,
434,
1674,
618,
518,
1678,
1084,
2117,
16,
2929,
2117,
471,
... |
currentOrder.set_multikill_override(int(gg_multikill_override)) | if int(gg_multikill_override): currentOrder.set_multikill_override(int(gg_multikill_override)) | def server_cvar(event_var): cvarName = event_var['cvarname'] if cvarName in ['gg_weapon_order_file', 'gg_weapon_order_sort_type', 'gg_multikill_override']: # Get weapon order file # Set this as the weapon order and set the weapon order type currentOrder = set_weapon_order(str(gg_weapon_order_file), str(gg_weapon_order... | 6758e8e35b2c6231b05994fac55880da12c16bbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/6758e8e35b2c6231b05994fac55880da12c16bbd/gungame51.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
67,
71,
1401,
12,
2575,
67,
1401,
4672,
276,
1401,
461,
273,
871,
67,
1401,
3292,
71,
1401,
529,
3546,
225,
309,
276,
1401,
461,
316,
10228,
14253,
67,
1814,
28629,
67,
1019,
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,
1438,
67,
71,
1401,
12,
2575,
67,
1401,
4672,
276,
1401,
461,
273,
871,
67,
1401,
3292,
71,
1401,
529,
3546,
225,
309,
276,
1401,
461,
316,
10228,
14253,
67,
1814,
28629,
67,
1019,
67,... |
def _try_function(self, funct, args, opname='run function', cr=None, default_exc=DAV_Forbidden): | def _try_function(self, funct, args, opname='run function', cr=None, default_exc=DAV_Forbidden): | def _try_function(self, funct, args, opname='run function', cr=None, default_exc=DAV_Forbidden): """ Try to run a function, and properly convert exceptions to DAV ones. @objname the name of the operation being performed @param cr if given, the cursor to close at exceptions """ try: funct(*args) except DAV_Error: if c... | 403a71fbaab7a8b607934347ccf6e7309f875f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/403a71fbaab7a8b607934347ccf6e7309f875f1a/dav_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
698,
67,
915,
12,
2890,
16,
12882,
16,
833,
16,
30273,
2218,
2681,
445,
2187,
4422,
33,
7036,
16,
805,
67,
10075,
33,
17735,
67,
16553,
4672,
3536,
6161,
358,
1086,
279,
445,
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,
389,
698,
67,
915,
12,
2890,
16,
12882,
16,
833,
16,
30273,
2218,
2681,
445,
2187,
4422,
33,
7036,
16,
805,
67,
10075,
33,
17735,
67,
16553,
4672,
3536,
6161,
358,
1086,
279,
445,
16,
... |
False | True | def __contains__(self,x): """ TESTS: sage: [] in Permutations() False sage: [1] in Permutations() True sage: [2] in Permutations() False sage: [1,2] in Permutations() True sage: [2,1] in Permutations() True sage: [1,2,2] in Permutations() False sage: [3,1,5,2] in Permutations() False sage: [3,4,1,5,2] in Permutations()... | ad1c9e46cb5b925e0d4b68d23bd096906524f915 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ad1c9e46cb5b925e0d4b68d23bd096906524f915/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
92,
4672,
3536,
22130,
55,
30,
272,
410,
30,
5378,
316,
13813,
22190,
1435,
1053,
272,
410,
30,
306,
21,
65,
316,
13813,
22190,
1435,
1053,
272,
410,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
92,
4672,
3536,
22130,
55,
30,
272,
410,
30,
5378,
316,
13813,
22190,
1435,
1053,
272,
410,
30,
306,
21,
65,
316,
13813,
22190,
1435,
1053,
272,
410,
30... |
rpm.mpw().Debug(0) | mpw().Debug(0) | def tearDown(self): | 02c21bd38bc4c3cd104df46a866a86ecb963492c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1057/02c21bd38bc4c3cd104df46a866a86ecb963492c/test_methods.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
time.sleep(1) downloads = self.GetDownloadsInfo().Downloads() percentage = downloads[0]['PercentComplete'] self.assertTrue(percentage > old_percentage, 'Download percentage value is not increasing') | def _PercentInc(): percent = self.GetDownloadsInfo().Downloads()[0]['PercentComplete'] return old_percentage == 100 or percent > old_percentage, self.assertTrue(self.WaitUntil(_PercentInc), msg='Download percentage value is not increasing') | def testDownloadPercentage(self): """Verify that during downloading, % values increases, and once download is over, % value is 100""" file_path = self._MakeFile(2**24) file_url = self.GetFileURLForPath(file_path) downloaded_pkg = os.path.join(self.GetDownloadDirectory().value(), os.path.basename(file_path)) os.path.exi... | 438af0d022a3b6b5602a04b114a2e4ed1d0e6443 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/438af0d022a3b6b5602a04b114a2e4ed1d0e6443/downloads.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7109,
16397,
12,
2890,
4672,
3536,
8097,
716,
4982,
23742,
16,
738,
924,
7033,
3304,
16,
471,
3647,
4224,
353,
1879,
16,
738,
460,
353,
2130,
8395,
585,
67,
803,
273,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7109,
16397,
12,
2890,
4672,
3536,
8097,
716,
4982,
23742,
16,
738,
924,
7033,
3304,
16,
471,
3647,
4224,
353,
1879,
16,
738,
460,
353,
2130,
8395,
585,
67,
803,
273,
365,
6315,
... |
self.segment_lists = segment_lists.values() def finalize(self, process): | self.segment_lists[:] = segment_lists.values() def finalize(self, process_row): | def optimize(self): """ Identifies segment lists that differ only in their instruments --- they have the same active and inactive segments, the same name and the same comment --- and then deletes all but one of them, leaving just a single list having the union of the instruments. """ self.sort() segment_lists = dict(en... | aeb672567e2cb812b1d5748c0530ebfb9b9b6069 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/aeb672567e2cb812b1d5748c0530ebfb9b9b6069/segments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
12,
2890,
4672,
3536,
13128,
5032,
3267,
6035,
716,
15221,
1338,
316,
3675,
29555,
9948,
2898,
1240,
326,
1967,
2695,
471,
16838,
5155,
16,
326,
1967,
508,
471,
326,
1967,
2879,
994... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
12,
2890,
4672,
3536,
13128,
5032,
3267,
6035,
716,
15221,
1338,
316,
3675,
29555,
9948,
2898,
1240,
326,
1967,
2695,
471,
16838,
5155,
16,
326,
1967,
508,
471,
326,
1967,
2879,
994... |
glEnable(GL_LIGHTING) | glEnable(GL_LIGHTING) return | def drawDiamondCubic(color): glDisable(GL_LIGHTING) glColor3fv(color) glBegin(GL_LINES) for jj in range(5): for kk in range(5): glVertex3f(sp0, sp1*jj, sp1*kk) glVertex3f(sp4, sp1*jj, sp1*kk) for jj in range(5): for ii in range(5): glVertex3f(sp1*ii, sp1*jj, sp0) glVertex3f(sp1*ii, sp1*jj, sp4) for kk in range(5): fo... | d137aadae12afd03386c3c85863a6b2893ded503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d137aadae12afd03386c3c85863a6b2893ded503/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
14521,
301,
1434,
39,
17616,
12,
3266,
4672,
5118,
11879,
12,
11261,
67,
23516,
1360,
13,
5118,
2957,
23,
17679,
12,
3266,
13,
5118,
8149,
12,
11261,
67,
5997,
55,
13,
364,
10684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14521,
301,
1434,
39,
17616,
12,
3266,
4672,
5118,
11879,
12,
11261,
67,
23516,
1360,
13,
5118,
2957,
23,
17679,
12,
3266,
13,
5118,
8149,
12,
11261,
67,
5997,
55,
13,
364,
10684,
... |
return super(account_analytic_line,self).unlink(cursor, uid, ids, | return super(account_analytic_line,self).unlink(cursor, user, ids, | def unlink(self, cursor, user, ids, context=None): self._check(cursor, user, ids) return super(account_analytic_line,self).unlink(cursor, uid, ids, context=context) | 22cc537a7a1b4b6d7312e498abc9afc1e70f6801 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/22cc537a7a1b4b6d7312e498abc9afc1e70f6801/hr_timesheet_invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
365,
6315,
1893,
12,
9216,
16,
729,
16,
3258,
13,
327,
2240,
12,
4631,
67,
304,
7834,
335,
67,
1369,
16,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
365,
6315,
1893,
12,
9216,
16,
729,
16,
3258,
13,
327,
2240,
12,
4631,
67,
304,
7834,
335,
67,
1369,
16,
2890,
... |
def endTagColgroup(self, token): if self.ignoreEndTagColgroup(): assert self.parser.innerHTML self.parser.parseError() else: self.tree.openElements.pop() self.parser.phase = self.parser.phases["inTable"] def endTagCol(self, token): self.parser.parseError("no-end-tag", {"name": "col"}) def endTagOther(self, token): i... | def startTagTableOther(self, token): if (self.tree.elementInScope("tbody", variant="table") or self.tree.elementInScope("thead", variant="table") or self.tree.elementInScope("tfoot", variant="table")): self.clearStackToTableBodyContext() self.endTagTableRowGroup( impliedTagToken(self.tree.openElements[-1].name)) self.... | def endTagColgroup(self, token): if self.ignoreEndTagColgroup(): # innerHTML case assert self.parser.innerHTML self.parser.parseError() else: self.tree.openElements.pop() self.parser.phase = self.parser.phases["inTable"] | 7b800000ab5eed9d02fde3c4b884769a0bfbf17a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/7b800000ab5eed9d02fde3c4b884769a0bfbf17a/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
914,
1655,
12,
2890,
16,
1147,
4672,
309,
365,
18,
6185,
25633,
914,
1655,
13332,
468,
14129,
648,
1815,
365,
18,
4288,
18,
7872,
4870,
365,
18,
4288,
18,
2670,
668,
1435,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
914,
1655,
12,
2890,
16,
1147,
4672,
309,
365,
18,
6185,
25633,
914,
1655,
13332,
468,
14129,
648,
1815,
365,
18,
4288,
18,
7872,
4870,
365,
18,
4288,
18,
2670,
668,
1435,
469,
... |
if self.player.exploding: if self.player.expl_prog >= 30: for s in self.spawn_points: s.clear() del self.player self.player = Player.spawn_at(self.screen, self.width / 2, self.height / 2) self.space.empty() self.score = 0 self.levels[self.lev_i].start() else: js_dx = self.user_input.get_mx() js_dy = self.user_input.g... | if not self.paused: self.tick() | def run(self): | 9b09cf6ef07d2ee54bff2ed908465c95a67128b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4253/9b09cf6ef07d2ee54bff2ed908465c95a67128b1/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
-- David Harvey: original code | def mult_by_n(self, n, prec=10): """ The formal 'multiplication by n' endomorphism $[n]$. | d6d52d622e2ed6ae873e4370b7a510dcaf6f4837 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d6d52d622e2ed6ae873e4370b7a510dcaf6f4837/formal_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
67,
1637,
67,
82,
12,
2890,
16,
290,
16,
13382,
33,
2163,
4672,
3536,
1021,
25739,
296,
7027,
1254,
635,
290,
11,
679,
362,
7657,
6228,
271,
63,
82,
65,
8,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1778,
67,
1637,
67,
82,
12,
2890,
16,
290,
16,
13382,
33,
2163,
4672,
3536,
1021,
25739,
296,
7027,
1254,
635,
290,
11,
679,
362,
7657,
6228,
271,
63,
82,
65,
8,
18,
2,
-100,
-100,
... | |
mf = ModuleFinder(excludes=self.excludes) | mf = self.create_modulefinder() | def run(self): self.create_directories() self.plat_prepare() self.fixup_distribution() | c69362d5d926d4f6ccf280fe08d654ba6b176ed3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/c69362d5d926d4f6ccf280fe08d654ba6b176ed3/build_exe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
2640,
67,
15121,
1435,
365,
18,
412,
270,
67,
9366,
1435,
365,
18,
904,
416,
67,
16279,
1435,
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,
1086,
12,
2890,
4672,
365,
18,
2640,
67,
15121,
1435,
365,
18,
412,
270,
67,
9366,
1435,
365,
18,
904,
416,
67,
16279,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
'company': fields.selection(_companies_get, 'Company', size=64), | 'company': fields.selection(_companies_get, 'Company', size=64), | def get_current_company(self, cr, uid): res=[] cr.execute('select company_id, res_company.name from res_users left join res_company on res_company.id = company_id where res_users.id=%s' %uid) res = cr.fetchall() return res | a39605e86499b770e35bc3478f8560705b17f0d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/a39605e86499b770e35bc3478f8560705b17f0d2/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
16840,
12,
2890,
16,
4422,
16,
4555,
4672,
400,
33,
8526,
4422,
18,
8837,
2668,
4025,
9395,
67,
350,
16,
400,
67,
16840,
18,
529,
628,
400,
67,
5577,
2002,
1233,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
16840,
12,
2890,
16,
4422,
16,
4555,
4672,
400,
33,
8526,
4422,
18,
8837,
2668,
4025,
9395,
67,
350,
16,
400,
67,
16840,
18,
529,
628,
400,
67,
5577,
2002,
1233,
4... |
logger.debug("%s - compiling list of active processors", threading.currentThread().getName()) | logger.debug("%s - balanced jobSchedulerIter: compiling list of active processors", threading.currentThread().getName()) | def jobSchedulerIter(self, aCursor): """ This takes a snap shot of the state of the processors as well as the number of jobs assigned to each then acts as an iterator that returns a sequence of processor ids. Order of ids returned will assure that jobs are assigned in a balanced manner """ logger.debug("%s - compiling... | 84034bc05eed964565729d3b46fd16cb3b76c236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/84034bc05eed964565729d3b46fd16cb3b76c236/monitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1719,
11870,
2360,
12,
2890,
16,
279,
6688,
4672,
3536,
1220,
5530,
279,
10915,
24167,
434,
326,
919,
434,
326,
13399,
487,
5492,
487,
326,
1300,
434,
6550,
6958,
358,
1517,
1508,
22668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1719,
11870,
2360,
12,
2890,
16,
279,
6688,
4672,
3536,
1220,
5530,
279,
10915,
24167,
434,
326,
919,
434,
326,
13399,
487,
5492,
487,
326,
1300,
434,
6550,
6958,
358,
1517,
1508,
22668,
... |
for transaction in self.transactions.values(): transaction.delete() | def tearDown(self): self.group.delete() self.user.delete() for transaction in self.transactions.values(): transaction.delete() | cfea0eccfd7db3ad42699b42b7c41cd779f23174 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/cfea0eccfd7db3ad42699b42b7c41cd779f23174/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
365,
18,
1655,
18,
3733,
1435,
365,
18,
1355,
18,
3733,
1435,
364,
2492,
316,
365,
18,
20376,
18,
2372,
13332,
2492,
18,
3733,
1435,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
365,
18,
1655,
18,
3733,
1435,
365,
18,
1355,
18,
3733,
1435,
364,
2492,
316,
365,
18,
20376,
18,
2372,
13332,
2492,
18,
3733,
1435,
2,
-100,
-100,
-10... | |
colors_frame = PlainFrame(_('Select boxes colors')) | colors_frame = PlainFrame(_('Select boxes\' colors')) | def __makeColors(self): colors_frame = PlainFrame(_('Select boxes colors')) self.text_fill_color = self.__getColorButton(self.configuration_manager.text_fill) self.text_stroke_color = self.__getColorButton(self.configuration_manager.text_stroke) self.image_fill_color = self.__getColorButton(self.configuration_manager.i... | 1baf639b7c0b78357342a021c71b70a4eb7e2399 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3764/1baf639b7c0b78357342a021c71b70a4eb7e2399/widgetPresenter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6540,
12570,
12,
2890,
4672,
5740,
67,
3789,
273,
17367,
3219,
24899,
2668,
3391,
14356,
3730,
5740,
26112,
365,
18,
955,
67,
5935,
67,
3266,
273,
365,
16186,
588,
2957,
3616,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6540,
12570,
12,
2890,
4672,
5740,
67,
3789,
273,
17367,
3219,
24899,
2668,
3391,
14356,
3730,
5740,
26112,
365,
18,
955,
67,
5935,
67,
3266,
273,
365,
16186,
588,
2957,
3616,
12,
... |
if limit: result = result[:int(limit)] | def search(self, cr, uid, args, offset=0, limit=2000, order=None, context=None, count=False): if context is None: context = {} | e90c097fe4b630b7222276d722284cab27831585 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/e90c097fe4b630b7222276d722284cab27831585/ir_ui_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
17172,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
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,
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,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
17172,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
27... | |
self.childAttributeNames = childAttributeNames | self.childAttributeNames = tuple(childAttributeNames) def __repr__(self): return "ItemTemplate(%s, %r, %r, **%r)" % ( self.target_class.__name__, self.itsName, self.childAttributeNames, self.attrs ) | def __init__(self, target_class, itsName, childAttributeNames, **attrs): self.attrs = attrs self.itsName = itsName self.target_class = target_class self.childAttributeNames = childAttributeNames | 5ba3715657e2e119b3e7fcdf8a676cd550b7a914 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5ba3715657e2e119b3e7fcdf8a676cd550b7a914/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1018,
67,
1106,
16,
2097,
461,
16,
1151,
26080,
16,
2826,
7039,
4672,
365,
18,
7039,
273,
3422,
365,
18,
1282,
461,
273,
2097,
461,
365,
18,
3299,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1018,
67,
1106,
16,
2097,
461,
16,
1151,
26080,
16,
2826,
7039,
4672,
365,
18,
7039,
273,
3422,
365,
18,
1282,
461,
273,
2097,
461,
365,
18,
3299,
67,
... |
self.forces = np.array(forces, float) self.stress = np.array(stress, float) self.magmoms = np.array(magmoms, float) | if forces is not None: forces = np.array(forces, float) self.forces = forces if stress is not None: stress = np.array(stress, float) self.stress = stress if magmoms is not None: magmoms = np.array(magmoms, float) self.magmoms = magmoms | def __init__(self, energy, forces, stress, magmoms, atoms): """Save energy, forces and stresses for the current configuration.""" self.energy = energy self.forces = np.array(forces, float) self.stress = np.array(stress, float) self.magmoms = np.array(magmoms, float) self.atoms = atoms.copy() | 3fe1960a314508e599974a712e77cef73be163ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/3fe1960a314508e599974a712e77cef73be163ec/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12929,
16,
26376,
16,
384,
663,
16,
4447,
81,
25390,
16,
9006,
4672,
3536,
4755,
12929,
16,
26376,
471,
384,
15807,
364,
326,
783,
1664,
12123,
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,
1001,
2738,
972,
12,
2890,
16,
12929,
16,
26376,
16,
384,
663,
16,
4447,
81,
25390,
16,
9006,
4672,
3536,
4755,
12929,
16,
26376,
471,
384,
15807,
364,
326,
783,
1664,
12123,
365,
18,
... |
print _(" Successfully created Repo [ %s ]" % repo['id']) | print _(" Successfully created Repo [ %s ]") % repo['id'] | def _create(self): if not self.options.id: print("repo id required. Try --help") sys.exit(0) if not self.options.name: self.options.name = self.options.id if not self.options.arch: self.options.arch = "noarch" | 3031d7f1572d6916f4f024e22264c3de668d641f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/3031d7f1572d6916f4f024e22264c3de668d641f/core_repo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
12,
2890,
4672,
309,
486,
365,
18,
2116,
18,
350,
30,
1172,
2932,
7422,
612,
1931,
18,
6161,
1493,
5201,
7923,
2589,
18,
8593,
12,
20,
13,
309,
486,
365,
18,
2116,
18,
529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
12,
2890,
4672,
309,
486,
365,
18,
2116,
18,
350,
30,
1172,
2932,
7422,
612,
1931,
18,
6161,
1493,
5201,
7923,
2589,
18,
8593,
12,
20,
13,
309,
486,
365,
18,
2116,
18,
529... |
def wrapperCall( self, *args ): | def wrapperCall( *args ): | def wrapperCall( self, *args ): """Wrapper with all possible operations""" cArguments = args try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: err.args = err.args + (cArguments,) raise err except error.GLError, err: err.cArgs = cArgs err.pyArgs = args raise err # handle storage of per... | 37819bfb0a23b29e5197cbb47fad0e486a1708d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1545/37819bfb0a23b29e5197cbb47fad0e486a1708d3/wrapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
1477,
12,
380,
1968,
262,
30,
3536,
3611,
598,
777,
3323,
5295,
8395,
276,
4628,
273,
833,
775,
30,
563,
273,
365,
18,
18704,
2988,
12,
380,
71,
4628,
262,
1335,
6983,
18,
1379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
1477,
12,
380,
1968,
262,
30,
3536,
3611,
598,
777,
3323,
5295,
8395,
276,
4628,
273,
833,
775,
30,
563,
273,
365,
18,
18704,
2988,
12,
380,
71,
4628,
262,
1335,
6983,
18,
1379,
... |
assignees = self.request.form.get('assignees') | assignees = self.request.form.get('assignees', []) | def add_task(self): # We *really* need the inner acquisition chain for context # here. Otherwise the aq_parent is the view instead of the # story, which means the totals for the story are not # recalculated. Sneaky! :) context = aq_inner(self.context) plone_commands = self.getCommandSet('plone') title = self.request.... | a528b47d488bab8ef15cc080e92334996e6b2586 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10431/a528b47d488bab8ef15cc080e92334996e6b2586/tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4146,
12,
2890,
4672,
468,
1660,
380,
266,
1230,
14,
1608,
326,
3443,
1721,
22094,
2687,
364,
819,
468,
2674,
18,
225,
5272,
326,
279,
85,
67,
2938,
353,
326,
1476,
3560,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4146,
12,
2890,
4672,
468,
1660,
380,
266,
1230,
14,
1608,
326,
3443,
1721,
22094,
2687,
364,
819,
468,
2674,
18,
225,
5272,
326,
279,
85,
67,
2938,
353,
326,
1476,
3560,
434,... |
for fp in self.walk_doctree_files(self): | for fp in self.walk_doctree_files(): | def init(self): for fp in self.walk_doctree_files(self): if fp.endswith('.doctree'): copyfile(fp, fp + '.old') | 568bb63f0d73c8c7228374d228ea72f0d70c0ccf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/568bb63f0d73c8c7228374d228ea72f0d70c0ccf/versioning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
364,
4253,
316,
365,
18,
11348,
67,
2896,
299,
992,
67,
2354,
13332,
309,
4253,
18,
5839,
1918,
2668,
18,
2896,
299,
992,
11,
4672,
29310,
12,
7944,
16,
4253,
397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
2890,
4672,
364,
4253,
316,
365,
18,
11348,
67,
2896,
299,
992,
67,
2354,
13332,
309,
4253,
18,
5839,
1918,
2668,
18,
2896,
299,
992,
11,
4672,
29310,
12,
7944,
16,
4253,
397... |
local_n = grid.q.shape[0] | local_n = q.shape[0] | def step(self,solutions): r""" Evolve solutions one time step | b16821bdfe01b7151988da4691157be401ca7990 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12812/b16821bdfe01b7151988da4691157be401ca7990/petclaw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
18281,
6170,
4672,
436,
8395,
30964,
5390,
22567,
1245,
813,
2235,
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,
... | [
1,
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,
2235,
12,
2890,
16,
18281,
6170,
4672,
436,
8395,
30964,
5390,
22567,
1245,
813,
2235,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
position = (self.position * 100) / self.full | if not self.full: return position = min((self.position * 100) / self.full, 100) | def _draw(self): if not self.width or not self.height: raise TypeError, 'Not all needed variables set.' | 02d91762978996333e43f8c52800b243a6384364 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/02d91762978996333e43f8c52800b243a6384364/Progressbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
12,
2890,
4672,
309,
486,
365,
18,
2819,
578,
486,
365,
18,
4210,
30,
1002,
3580,
16,
296,
1248,
777,
3577,
3152,
444,
1093,
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,
389,
9446,
12,
2890,
4672,
309,
486,
365,
18,
2819,
578,
486,
365,
18,
4210,
30,
1002,
3580,
16,
296,
1248,
777,
3577,
3152,
444,
1093,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
@type content: L{Object} | @type content: L{Content} | def resume(self, content): """ Appending this content has resumed. @param content: The content for which proccessing has been resumed. @type content: L{Object} """ frame = Frame(content.type) self.resolver.push(frame) | ad01f21b6e51e0f4caf8326860cbf8690d8fc872 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5930/ad01f21b6e51e0f4caf8326860cbf8690d8fc872/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10774,
12,
2890,
16,
913,
4672,
3536,
6181,
310,
333,
913,
711,
24632,
329,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
2118,
24632,
329,
18,
632,
723,
913,
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,
10774,
12,
2890,
16,
913,
4672,
3536,
6181,
310,
333,
913,
711,
24632,
329,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
2118,
24632,
329,
18,
632,
723,
913,
30,
... |
handleSectionedFile(['templates', 'configure.zcml'], os.path.join(ppath, 'configure.zcml'), sectionnames=['HEAD', 'FOOT']) | def generateConfigureAndProfilesZCML(self, package): """Generate configure.zcml and profiles.zcml if type registration or skin registration is set to 'genericsetup' """ ppath = package.getFilePath() pname = package.getProductName() handleSectionedFile(['templates', 'profiles.zcml'], os.path.join(ppath, 'profiles.zcml'... | 5f57c901de265e45e47a326994b43eeda3ecd9dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11941/5f57c901de265e45e47a326994b43eeda3ecd9dd/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
11207,
1876,
12450,
62,
39,
1495,
12,
2890,
16,
2181,
4672,
3536,
4625,
5068,
18,
94,
71,
781,
471,
11788,
18,
94,
71,
781,
309,
618,
7914,
578,
18705,
7914,
353,
444,
358,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
11207,
1876,
12450,
62,
39,
1495,
12,
2890,
16,
2181,
4672,
3536,
4625,
5068,
18,
94,
71,
781,
471,
11788,
18,
94,
71,
781,
309,
618,
7914,
578,
18705,
7914,
353,
444,
358,
296,
... | |
author = options.authors.encode('ascii', 'ignore') | au = options.authors if not isinstance(au, basestring): au = u', '.join(au) author = au.encode('ascii', 'ignore') | def create_metadata(stream, options): md = r'{\info' if options.title: title = options.title.encode('ascii', 'ignore') md += r'{\title %s}'%(title,) if options.authors: author = options.authors.encode('ascii', 'ignore') md += r'{\author %s}'%(author,) if options.category: category = options.category.encode('ascii', 'ig... | c89dcfaa24e3debfd74b3608286557cf3413ed94 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/c89dcfaa24e3debfd74b3608286557cf3413ed94/rtf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4165,
12,
3256,
16,
702,
4672,
3481,
273,
436,
19163,
64,
1376,
11,
309,
702,
18,
2649,
30,
2077,
273,
702,
18,
2649,
18,
3015,
2668,
9184,
2187,
296,
6185,
6134,
3481,
1011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
12,
3256,
16,
702,
4672,
3481,
273,
436,
19163,
64,
1376,
11,
309,
702,
18,
2649,
30,
2077,
273,
702,
18,
2649,
18,
3015,
2668,
9184,
2187,
296,
6185,
6134,
3481,
1011,
... |
Content.__init__(self, schema, root) | TypedContent.__init__(self, schema, root) | def __init__(self, schema, root): """ @param schema: The containing schema. @type schema: L{schema.Schema} @param root: The xml root node. @type root: L{sax.element.Element} """ Content.__init__(self, schema, root) self.use = root.get('use', default='') | 338ad04d0a263c7a6148ef6a08d7bcf27388c257 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5930/338ad04d0a263c7a6148ef6a08d7bcf27388c257/sxbasic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1963,
16,
1365,
4672,
3536,
632,
891,
1963,
30,
1021,
4191,
1963,
18,
632,
723,
1963,
30,
511,
95,
4821,
18,
3078,
97,
632,
891,
1365,
30,
1021,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1963,
16,
1365,
4672,
3536,
632,
891,
1963,
30,
1021,
4191,
1963,
18,
632,
723,
1963,
30,
511,
95,
4821,
18,
3078,
97,
632,
891,
1365,
30,
1021,
2025,
... |
{'text':'send spam bounces?', | {'text':'Send spam bounces?', | def edit(self, mode): | e50661acc11dd82eda8624670841ea6edc88492e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3182/e50661acc11dd82eda8624670841ea6edc88492e/fetchmailconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
2890,
16,
1965,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
2890,
16,
1965,
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,
-10... |
self.overflowing = False | def __init__(self, gsg = None, limit = None): DirectObject.__init__(self) | 3fbb4b22ad49206f380327bd21da623d2929d8cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/3fbb4b22ad49206f380327bd21da623d2929d8cb/TexMemWatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
1055,
273,
599,
16,
1800,
273,
599,
4672,
9908,
921,
16186,
2738,
972,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
1055,
273,
599,
16,
1800,
273,
599,
4672,
9908,
921,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return Query(Query.OP_AND, [i2x(q) for q in query.atoms]) | return Query(OP_AND, [ i2x(q) for q in query.atoms ]) | def _query2xquery(self, query): """take a "itools" query and return a "xapian" query """ query_class = query.__class__ fields = self._fields if query_class is EqQuery or query_class is PhraseQuery: # EqQuery = PhraseQuery, the field must be indexed name = query.name if name in fields: info = fields[name] return _make_P... | 85023dcdde8b7afb3f3ab2553b9e226ae1122e12 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/85023dcdde8b7afb3f3ab2553b9e226ae1122e12/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
22,
92,
2271,
12,
2890,
16,
843,
4672,
3536,
22188,
279,
315,
305,
8192,
6,
843,
471,
327,
279,
315,
92,
2425,
304,
6,
843,
3536,
843,
67,
1106,
273,
843,
16186,
1106,
972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2271,
22,
92,
2271,
12,
2890,
16,
843,
4672,
3536,
22188,
279,
315,
305,
8192,
6,
843,
471,
327,
279,
315,
92,
2425,
304,
6,
843,
3536,
843,
67,
1106,
273,
843,
16186,
1106,
972... |
if request.method == 'POST': return redirect('monthlycostpervillage') else: villages = get_user_villages(request) monthlycostpervillages = MonthlyCostPerVillage.objects.filter(village__in = villages).distinct().order_by("-id")[offset:limit] if(monthlycostpervillages): json_subcat = serializers.serialize("json", monthly... | if request.method == 'POST': return redirect('monthlycostpervillage') else: villages = get_user_villages(request) monthlycostpervillages = MonthlyCostPerVillage.objects.filter(village__in = villages).distinct().order_by("-id")[offset:limit] if(monthlycostpervillages): json_subcat = serializers.serialize("json", monthly... | def get_monthlycostpervillages_online(request, offset, limit): if request.method == 'POST': return redirect('monthlycostpervillage') else: villages = get_user_villages(request) monthlycostpervillages = MonthlyCostPerVillage.objects.filter(village__in = villages).distinct().order_by("-id")[offset:limit] if(monthlycostpe... | 7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7496,
715,
12398,
457,
90,
737,
1023,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
7496,
715,
12398,
457,
90,
737,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7496,
715,
12398,
457,
90,
737,
1023,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
7496,
715,
12398,
457,
90,
737,... |
counter += loop.count("\n") | def splitloops(loops): real_loops = [] counter = 0 for loop in loops: firstline = loop[:loop.find("\n")] counter += loop.count("\n") m = re.match('# Loop (\d+)', firstline) if m: no = int(m.group(1)) assert len(real_loops) == no real_loops.append(FinalBlock(loop, None)) real_loops[-1].startlineno = counter else: m = re... | d83e5c680c37f76d4288f3d92542d307e6d2f489 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d83e5c680c37f76d4288f3d92542d307e6d2f489/otherviewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
383,
4473,
12,
383,
4473,
4672,
2863,
67,
383,
4473,
273,
5378,
3895,
273,
374,
364,
2798,
316,
14075,
30,
1122,
1369,
273,
2798,
10531,
6498,
18,
4720,
31458,
82,
7923,
65,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
383,
4473,
12,
383,
4473,
4672,
2863,
67,
383,
4473,
273,
5378,
3895,
273,
374,
364,
2798,
316,
14075,
30,
1122,
1369,
273,
2798,
10531,
6498,
18,
4720,
31458,
82,
7923,
65,
312,
... | |
elif os.name == 'mac': | elif os_name == 'mac': | def change_root (new_root, pathname): """Return 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to "os.path.join(new_root,pathname)". Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS. """ if os.name == 'posix' or o... | 9e33cba3961e274d89624d142496163f10640ccb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6753/9e33cba3961e274d89624d142496163f10640ccb/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3085,
261,
2704,
67,
3085,
16,
9806,
4672,
3536,
990,
296,
28336,
11,
598,
296,
2704,
67,
3085,
11,
26989,
18,
225,
971,
296,
28336,
11,
353,
3632,
16,
333,
353,
7680,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3085,
261,
2704,
67,
3085,
16,
9806,
4672,
3536,
990,
296,
28336,
11,
598,
296,
2704,
67,
3085,
11,
26989,
18,
225,
971,
296,
28336,
11,
353,
3632,
16,
333,
353,
7680,
358,
... |
raise error.Unauthorized("Malformed Response - not base64") | raise IllegalClientResponse("Malformed Response - not base64") | def __cbAuthChunk(self, result, chal, tag): try: uncoded = base64.decodestring(result) except binascii.Error: raise error.Unauthorized("Malformed Response - not base64") | 855265c03b66d249c179132ac6c987dfcc91c522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/855265c03b66d249c179132ac6c987dfcc91c522/imap4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7358,
1730,
5579,
12,
2890,
16,
563,
16,
462,
287,
16,
1047,
4672,
775,
30,
6301,
390,
72,
273,
1026,
1105,
18,
4924,
1145,
371,
12,
2088,
13,
1335,
28222,
18,
668,
30,
1002,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7358,
1730,
5579,
12,
2890,
16,
563,
16,
462,
287,
16,
1047,
4672,
775,
30,
6301,
390,
72,
273,
1026,
1105,
18,
4924,
1145,
371,
12,
2088,
13,
1335,
28222,
18,
668,
30,
1002,
5... |
def _find_package(self, req): | def _find_package(self, req): | def _find_package(self, req): # TODO: search here for a distro to download, matching Requirement # 'req' and return the package URL or filename raise DistributionNotFound(spec) | f58f799c4a90c726bb4b96a3a116ad6e9bedf8c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/f58f799c4a90c726bb4b96a3a116ad6e9bedf8c5/easy_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
5610,
12,
2890,
16,
1111,
4672,
468,
2660,
30,
1623,
2674,
364,
279,
27450,
358,
4224,
16,
3607,
30813,
468,
296,
3658,
11,
471,
327,
326,
2181,
1976,
578,
1544,
1002,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
4720,
67,
5610,
12,
2890,
16,
1111,
4672,
468,
2660,
30,
1623,
2674,
364,
279,
27450,
358,
4224,
16,
3607,
30813,
468,
296,
3658,
11,
471,
327,
326,
2181,
1976,
578,
1544,
1002,
1... |
res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] gLogger.debug("SRM2Storage.getFileMetadata: Obtaining metadata for %s file(s)." % len(urls)) resDict = self.__gfalls_wrapper(urls,0)['Value'] | res = self.checkArgumentFormat( path ) if not res['OK']: return res urls = res['Value'] gLogger.debug( "SRM2Storage.getFileMetadata: Obtaining metadata for %s file(s)." % len( urls ) ) resDict = self.__gfalls_wrapper( urls, 0 )['Value'] | def getFileMetadata(self,path): """ Get metadata associated to the file """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
... |
(127, 127, 127)),UInt8) actual = gc.bmp_array[:,:,0] assert_arrays_equal(desired, actual) | (127, 127, 127))) actual = gc.bmp_array[:,:,0] self.assertRavelEqual(desired, actual) | def test_antialias_width_slower_path(self): """ An anti-aliased horizontal line of width=1 has its energy centered between the bottom row of pixels and the next lower row of pixels (which is off the page). It dumps half its energy in each, so we end up with a single line of 127,127,127 pixel values in the last row of ... | ffaa755758d0641fe7c70006db7e0ae9dbc4b1c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/ffaa755758d0641fe7c70006db7e0ae9dbc4b1c2/stroke_path_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2819,
67,
87,
8167,
67,
803,
12,
2890,
4672,
3536,
1922,
30959,
17,
18083,
8905,
10300,
980,
434,
1835,
33,
21,
711,
2097,
12929,
25340,
3086,
326,
5469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2819,
67,
87,
8167,
67,
803,
12,
2890,
4672,
3536,
1922,
30959,
17,
18083,
8905,
10300,
980,
434,
1835,
33,
21,
711,
2097,
12929,
25340,
3086,
326,
5469,
... |
app = factory(PathAssertionEndpoint("/VirtualHostBase/http/www.example.com:80/VirtualHostRoot/", self)) app({"REQUEST_METHOD":"GET", | app = factory(PathAssertionEndpoint("/VirtualHostBase/http/127.0.0.1:8080/VirtualHostRoot/", self)) app({"SERVER_NAME":"127.0.0.1", "SERVER_PORT":"8080", "REQUEST_METHOD":"GET", | def test_vhm_host_autodetect(self): factory = RewriteFactory({}, autodetect="true") r = response() app = factory(PathAssertionEndpoint("/VirtualHostBase/http/www.example.com:80/VirtualHostRoot/", self)) app({"REQUEST_METHOD":"GET", "PATH_INFO":"/"}, r.start_response) assert r.status.startswith("200") | 737aa73e6c7065d1ef223f0d88d6a6f7c9c0d5d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9186/737aa73e6c7065d1ef223f0d88d6a6f7c9c0d5d2/test_url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9605,
81,
67,
2564,
67,
5854,
369,
278,
386,
12,
2890,
4672,
3272,
273,
17851,
1733,
23506,
16,
2059,
369,
278,
386,
1546,
3767,
7923,
436,
273,
766,
1435,
595,
273,
3272,
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,
1842,
67,
9605,
81,
67,
2564,
67,
5854,
369,
278,
386,
12,
2890,
4672,
3272,
273,
17851,
1733,
23506,
16,
2059,
369,
278,
386,
1546,
3767,
7923,
436,
273,
766,
1435,
595,
273,
3272,
12... |
Returns an induced copy of `G` in self. | Returns a copy of ``G`` in ``self``. | def induced_subgraph_search(self, G): r""" Returns an induced copy of `G` in self. | 84286d4be578725f91d534440b316bce27cdde2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/84286d4be578725f91d534440b316bce27cdde2f/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1547,
26372,
67,
1717,
4660,
67,
3072,
12,
2890,
16,
611,
4672,
436,
8395,
2860,
392,
1547,
26372,
1610,
434,
1375,
43,
68,
316,
365,
18,
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,
1547,
26372,
67,
1717,
4660,
67,
3072,
12,
2890,
16,
611,
4672,
436,
8395,
2860,
392,
1547,
26372,
1610,
434,
1375,
43,
68,
316,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return {'success' : passed, 'error_msgs' : msgs} | return {'success' : success, 'error_msgs' : msgs} | def run_imfit(): default('imfit') return imfit( imagename=two_gaussians_image, estimates=two_gaussians_estimates, newestimates=newestimates ) | 8eccdfd089c274e940f3689d52ad99f3e7be170d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/8eccdfd089c274e940f3689d52ad99f3e7be170d/imfit_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
381,
7216,
13332,
805,
2668,
381,
7216,
6134,
327,
709,
7216,
12,
8902,
1069,
33,
15415,
67,
75,
10325,
19657,
67,
2730,
16,
27585,
33,
15415,
67,
75,
10325,
19657,
67,
395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
381,
7216,
13332,
805,
2668,
381,
7216,
6134,
327,
709,
7216,
12,
8902,
1069,
33,
15415,
67,
75,
10325,
19657,
67,
2730,
16,
27585,
33,
15415,
67,
75,
10325,
19657,
67,
395,
... |
if self._has_changed() is False: | if not self.has_changed: | def save_changes(self): if self._has_changed() is False: return | b4b5ba283b653854b2683fa10db0821fb51d44ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/b4b5ba283b653854b2683fa10db0821fb51d44ee/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6329,
12,
2890,
4672,
309,
486,
365,
18,
5332,
67,
6703,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
1923,
67,
6329,
12,
2890,
4672,
309,
486,
365,
18,
5332,
67,
6703,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sum = coeff**2 while sum < 1.0: | line = inputfile.next() while line.strip() and not line[:7].strip(): info = line[43:].split() if len(info)>0: frag += "+" + fragname + info[-1] coeff = float(info[-4]) if coeff < 0: orbital += '-' + info[-3] + info[-2].replace(":", "") else: orbital += '+' + info[-3] + info[-2].replace(":", "") | def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 # Used to avoid extracting the final geometry... | 4331500fb6ad89973386c9376fe79c706ba5a705 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/4331500fb6ad89973386c9376fe79c706ba5a705/adfparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
16,
315,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
16,
315,
8... |
print '*** formatting u"%%c" % %i should give a ValueError' % ordinal | print '*** formatting u"%%c" %% %i should give a ValueError' % ordinal | def test_fixup(s): s2 = u'\ud800\udc01' test_lecmp(s, s2) s2 = u'\ud900\udc01' test_lecmp(s, s2) s2 = u'\uda00\udc01' test_lecmp(s, s2) s2 = u'\udb00\udc01' test_lecmp(s, s2) s2 = u'\ud800\udd01' test_lecmp(s, s2) s2 = u'\ud900\udd01' test_lecmp(s, s2) s2 = u'\uda00\udd01' test_lecmp(s, s2) s2 = u'\udb00\udd01' test_le... | 5c00accab67dddc3b5dbcc9aae46249243be78c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5c00accab67dddc3b5dbcc9aae46249243be78c9/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
904,
416,
12,
87,
4672,
272,
22,
273,
582,
8314,
1100,
17374,
64,
1100,
71,
1611,
11,
1842,
67,
298,
9625,
12,
87,
16,
272,
22,
13,
272,
22,
273,
582,
8314,
1100,
29,
713... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
904,
416,
12,
87,
4672,
272,
22,
273,
582,
8314,
1100,
17374,
64,
1100,
71,
1611,
11,
1842,
67,
298,
9625,
12,
87,
16,
272,
22,
13,
272,
22,
273,
582,
8314,
1100,
29,
713... |
if md is None or self.selections_metadata_name not in md: | if md is None or self.selection_metadata_name not in md: | def _get_selection_state(self, event): plot = self.component index = plot.map_index((event.x, event.y), threshold=self.threshold) index_md = plot.index.metadata.get(self.selections_metadata_name, None) value_md = plot.value.metadata.get(self.selections_metadata_name, None) already_selected = False for name in ('index'... | 605ee9a8a51e3941bff0a40b785047649151e760 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/605ee9a8a51e3941bff0a40b785047649151e760/scatter_inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
10705,
67,
2019,
12,
2890,
16,
871,
4672,
3207,
273,
365,
18,
4652,
770,
273,
3207,
18,
1458,
67,
1615,
12443,
2575,
18,
92,
16,
871,
18,
93,
3631,
5573,
33,
2890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
10705,
67,
2019,
12,
2890,
16,
871,
4672,
3207,
273,
365,
18,
4652,
770,
273,
3207,
18,
1458,
67,
1615,
12443,
2575,
18,
92,
16,
871,
18,
93,
3631,
5573,
33,
2890,
18,
... |
self.assert_(g) self.assertIsInstance(g, h5py.Group) | try: self.assert_(g) self.assertIsInstance(g, h5py.Group) finally: g.file.close() | def test_create(self): """ (Links) Access external link """ self.f['ext'] = h5py.ExternalLink(self.ename, '/external') g = self.f['ext'] self.assert_(g) self.assertIsInstance(g, h5py.Group) | 90dab93774b5120ec5c2a4b50ffb4d2c66395f38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/90dab93774b5120ec5c2a4b50ffb4d2c66395f38/test_links.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
12,
2890,
4672,
3536,
261,
7100,
13,
5016,
3903,
1692,
3536,
365,
18,
74,
3292,
408,
3546,
273,
366,
25,
2074,
18,
6841,
2098,
12,
2890,
18,
1069,
16,
1173,
9375,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
12,
2890,
4672,
3536,
261,
7100,
13,
5016,
3903,
1692,
3536,
365,
18,
74,
3292,
408,
3546,
273,
366,
25,
2074,
18,
6841,
2098,
12,
2890,
18,
1069,
16,
1173,
9375,
6134,... |
for platform in TestExpectationsFile.PLATFORMS: | for platform in test_expectations.TestExpectationsFile.PLATFORMS: | def __init__(self, options, paths, platform_new_results_dir): """Collect a list of files to test. | 60b340b82e9a8e9c20ee5b0c4a2c95ce6f2004f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/60b340b82e9a8e9c20ee5b0c4a2c95ce6f2004f9/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
2953,
16,
4072,
67,
2704,
67,
4717,
67,
1214,
4672,
3536,
10808,
279,
666,
434,
1390,
358,
1842,
18,
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,
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,
1001,
2738,
972,
12,
2890,
16,
702,
16,
2953,
16,
4072,
67,
2704,
67,
4717,
67,
1214,
4672,
3536,
10808,
279,
666,
434,
1390,
358,
1842,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return self.__changePathFunction(paths,credDict,self.db.dtree.changeDirectoryMode, self.changeFileMode, recursive) | return self.__changePathFunction(paths,credDict,self.db.dtree.changeDirectoryMode,self.changeFileMode) | def changePathMode(self,paths,credDict,recursive=False): """ Bulk method to change Owner for the given paths """ return self.__changePathFunction(paths,credDict,self.db.dtree.changeDirectoryMode, self.changeFileMode, recursive) | 3e8080b7f5c9bf248a6b5731fb23754af1084ed5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e8080b7f5c9bf248a6b5731fb23754af1084ed5/FileManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
743,
2309,
12,
2890,
16,
4481,
16,
20610,
5014,
16,
10543,
33,
8381,
4672,
3536,
18184,
707,
358,
2549,
16837,
364,
326,
864,
2953,
3536,
327,
365,
16186,
3427,
743,
2083,
12,
4481... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
743,
2309,
12,
2890,
16,
4481,
16,
20610,
5014,
16,
10543,
33,
8381,
4672,
3536,
18184,
707,
358,
2549,
16837,
364,
326,
864,
2953,
3536,
327,
365,
16186,
3427,
743,
2083,
12,
4481... |
compFile1 = hardhatlib.compressDirectory(buildenv, [distName], distName) | installSourceFile = hardhatlib.makeInstaller(buildenv, [distName], distName) installSourceFile = os.path.join(installSourceFile, "Setup.exe") installTargetFile = distName compFile1 = hardhatlib.compressDirectory(buildenv, [distName], distName) | def distribute(buildenv): _createVersionFile(buildenv) buildVersionShort = \ hardhatutil.RemovePunctuation(buildenv['buildVersion']) # When the build version string is based on one of our CVS tags # (which usually begin with "CHANDLER_") let's remove the "CHANDLER_" # prefix from the string so it doesn't end up in t... | 8f1d5f52f1fcbafe12ba8c009bce7cabbb00ab6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8f1d5f52f1fcbafe12ba8c009bce7cabbb00ab6d/__hardhat__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25722,
12,
3510,
3074,
4672,
225,
389,
2640,
1444,
812,
12,
3510,
3074,
13,
225,
1361,
1444,
4897,
273,
521,
7877,
11304,
1367,
18,
3288,
52,
15726,
12,
3510,
3074,
3292,
3510,
1444,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25722,
12,
3510,
3074,
4672,
225,
389,
2640,
1444,
812,
12,
3510,
3074,
13,
225,
1361,
1444,
4897,
273,
521,
7877,
11304,
1367,
18,
3288,
52,
15726,
12,
3510,
3074,
3292,
3510,
1444,
194... |
if not card.face_shown: return 0 | def acceptable(self, cards): | 1b2b53a25d27d96f60926802226dd375767cb3b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1b2b53a25d27d96f60926802226dd375767cb3b2/solitaire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14206,
12,
2890,
16,
18122,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14206,
12,
2890,
16,
18122,
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,
-... | |
if not filename in self.canonical_filename_cache: | if not self.canonical_filename_cache.has_key(filename): | def canonical_filename(self, filename): if not filename in self.canonical_filename_cache: f = filename if os.path.isabs(f) and not os.path.exists(f): f = os.path.basename(f) if not os.path.isabs(f): for path in [os.curdir] + sys.path: g = os.path.join(path, f) if os.path.exists(g): f = g break cf = os.path.normcase(os.... | 6554c74cd9574cf89b8acd0a0333651afacbfa8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/6554c74cd9574cf89b8acd0a0333651afacbfa8e/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
3459,
12,
2890,
16,
1544,
4672,
309,
486,
365,
18,
18288,
67,
3459,
67,
2493,
18,
5332,
67,
856,
12,
3459,
4672,
284,
273,
1544,
309,
1140,
18,
803,
18,
291,
5113,
12,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
3459,
12,
2890,
16,
1544,
4672,
309,
486,
365,
18,
18288,
67,
3459,
67,
2493,
18,
5332,
67,
856,
12,
3459,
4672,
284,
273,
1544,
309,
1140,
18,
803,
18,
291,
5113,
12,
74,
... |
if d is not None: data = '%s %s' % (data, d) | if d is None: continue if type(d) is type(''): l = len(string.split(d)) else: l = 1 if l == 0 or l > 1 and (d[0],d[-1]) not in (('(',')'),('"','"')): data = '%s "%s"' % (data, d) else: data = '%s %s' % (data, d) | def _command(self, name, dat1=None, dat2=None, dat3=None, literal=None): | 568f22046d54f57ebb15b35bb4692bb3d957b838 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/568f22046d54f57ebb15b35bb4692bb3d957b838/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3076,
12,
2890,
16,
508,
16,
1150,
21,
33,
7036,
16,
1150,
22,
33,
7036,
16,
1150,
23,
33,
7036,
16,
7158,
33,
7036,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3076,
12,
2890,
16,
508,
16,
1150,
21,
33,
7036,
16,
1150,
22,
33,
7036,
16,
1150,
23,
33,
7036,
16,
7158,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
module_spec = isc.config.module_spec_from_file("../cmdctl.spec.pre.in") | spec_file = FILE_PATH + 'cmdctl.spec' module_spec = isc.config.module_spec_from_file(spec_file) | def _setup_session(self): module_spec = isc.config.module_spec_from_file("../cmdctl.spec.pre.in") config = isc.config.config_data.ConfigData(module_spec) self._cmdctl_config_data = config.get_full_config() | a75fb3cc922567c293a7144d2d2857d8da3332cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/a75fb3cc922567c293a7144d2d2857d8da3332cf/cmdctl_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
3184,
12,
2890,
4672,
857,
67,
768,
273,
7527,
67,
4211,
397,
296,
4172,
12930,
18,
2793,
11,
1605,
67,
2793,
273,
353,
71,
18,
1425,
18,
2978,
67,
2793,
67,
2080,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
3184,
12,
2890,
4672,
857,
67,
768,
273,
7527,
67,
4211,
397,
296,
4172,
12930,
18,
2793,
11,
1605,
67,
2793,
273,
353,
71,
18,
1425,
18,
2978,
67,
2793,
67,
2080,
67,... |
char = getchar() if char == "\x04": if not ctrl_d_pressed: queue.put(("eof", None)) ctrl_d_pressed = True else: if string is not None: if char == "\x7f": if len(string) > 0: char = "\x08" sys.stdout.write("\x08 \x08") sys.stdout.flush() string = string[:-1] | for char in getchar(): if char == "\x04": if not ctrl_d_pressed: queue.put(("eof", None)) ctrl_d_pressed = True break else: if string is not None: if char == "\x7f": if len(string) > 0: char = "\x08" sys.stdout.write("\x08 \x08") sys.stdout.flush() string = string[:-1] else: if old is not None: sys.stdout.write(char) s... | def do_publish(**kwargs): global user_quit, lock, queue, do_trace_pjsip, string, getstr_event, old ctrl_d_pressed = False do_trace_pjsip = kwargs["do_trace_pjsip"] outbound_proxy = kwargs.pop("outbound_proxy") if outbound_proxy is None: proxy_host, proxy_port, proxy_is_ip = kwargs["domain"], None, False else: proxy_ho... | bc7a6f9dc24da4515096ca96260c52656132ecc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/bc7a6f9dc24da4515096ca96260c52656132ecc7/sip_publish_presence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6543,
12,
636,
4333,
4672,
2552,
729,
67,
27176,
16,
2176,
16,
2389,
16,
741,
67,
5129,
67,
84,
2924,
625,
16,
533,
16,
336,
701,
67,
2575,
16,
1592,
6414,
67,
72,
67,
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,
741,
67,
6543,
12,
636,
4333,
4672,
2552,
729,
67,
27176,
16,
2176,
16,
2389,
16,
741,
67,
5129,
67,
84,
2924,
625,
16,
533,
16,
336,
701,
67,
2575,
16,
1592,
6414,
67,
72,
67,
109... |
u"ilwd:char_u": ligolw_blob_format_func, u"blob": ligolw_blob_format_func, | u"ilwd:char_u": base64.standard_b64encode, u"blob": base64.standard_b64encode, | def ligolw_blob_format_func(b): return ligolw_string_format_func(tokenizer.blob_format_func(b)) | 379afb0b52989f252b836b3538141a36e1dce6c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/379afb0b52989f252b836b3538141a36e1dce6c9/types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
10721,
67,
2139,
67,
644,
12,
70,
4672,
327,
16917,
355,
91,
67,
1080,
67,
2139,
67,
644,
12,
2316,
1824,
18,
10721,
67,
2139,
67,
644,
12,
70,
3719,
282,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16917,
355,
91,
67,
10721,
67,
2139,
67,
644,
12,
70,
4672,
327,
16917,
355,
91,
67,
1080,
67,
2139,
67,
644,
12,
2316,
1824,
18,
10721,
67,
2139,
67,
644,
12,
70,
3719,
282,
2,
-1... |
return True | return False | def checkwhite_line(line): match = lead.search(line) if match and match.group(1).find('\t') != -1: return True match = trail.search(line) if match: return True return True | 6bb9486598963d148c88e35cb516a1e467ea73c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6787/6bb9486598963d148c88e35cb516a1e467ea73c3/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
14739,
67,
1369,
12,
1369,
4672,
845,
273,
5871,
18,
3072,
12,
1369,
13,
309,
845,
471,
845,
18,
1655,
12,
21,
2934,
4720,
2668,
64,
88,
6134,
480,
300,
21,
30,
327,
1083,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
14739,
67,
1369,
12,
1369,
4672,
845,
273,
5871,
18,
3072,
12,
1369,
13,
309,
845,
471,
845,
18,
1655,
12,
21,
2934,
4720,
2668,
64,
88,
6134,
480,
300,
21,
30,
327,
1083,
225,
... |
lastenforcedata = quotainfo junkfirst = quotainfo[4] | lastenforcedata = info | def get_time_and_cpu_percent(readfobj): global lastenforcedata global junkfirst cpudata = readfobj.readline().strip() # the child must have exited, I'll return so I can wait on them... if not cpudata: return (0.0, 0.0) quotainfo = eval(cpudata) # Give them a free pass the first time if not lastenforcedata: lastenf... | da5157d89e6ffa97b6c3efbb3b8f84e5a8c9fbd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7272/da5157d89e6ffa97b6c3efbb3b8f84e5a8c9fbd7/nonportable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
957,
67,
464,
67,
11447,
67,
8849,
12,
896,
27936,
4672,
2552,
1142,
275,
5734,
892,
2552,
525,
1683,
3645,
225,
8326,
892,
273,
855,
27936,
18,
896,
1369,
7675,
6406,
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,
1,
1,
1,
1,
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,
957,
67,
464,
67,
11447,
67,
8849,
12,
896,
27936,
4672,
2552,
1142,
275,
5734,
892,
2552,
525,
1683,
3645,
225,
8326,
892,
273,
855,
27936,
18,
896,
1369,
7675,
6406,
1435,
2... |
return "\n\n<pre><code>%s\n</code></pre>\n\n" % codeblock | pre_class_str = self._html_class_str_from_tag("pre") code_class_str = self._html_class_str_from_tag("code") return "\n\n<pre%s><code%s>%s\n</code></pre>\n\n" % ( pre_class_str, code_class_str, codeblock) def _html_class_str_from_tag(self, tag): """Get the appropriate ' class="..."' string (note the leading space), if ... | def _code_block_sub(self, match): codeblock = match.group(1) codeblock = self._outdent(codeblock) codeblock = self._detab(codeblock) codeblock = codeblock.lstrip('\n') # trim leading newlines codeblock = codeblock.rstrip() # trim trailing whitespace | 0019d4d8e1b0abb438cd1a7862e2e6730c37aaa2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8838/0019d4d8e1b0abb438cd1a7862e2e6730c37aaa2/markdown2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
710,
67,
2629,
67,
1717,
12,
2890,
16,
845,
4672,
981,
2629,
273,
845,
18,
1655,
12,
21,
13,
981,
2629,
273,
365,
6315,
659,
72,
319,
12,
710,
2629,
13,
981,
2629,
273,
365,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
710,
67,
2629,
67,
1717,
12,
2890,
16,
845,
4672,
981,
2629,
273,
845,
18,
1655,
12,
21,
13,
981,
2629,
273,
365,
6315,
659,
72,
319,
12,
710,
2629,
13,
981,
2629,
273,
365,
6... |
subarch_mapping = {'x86':['i686','i586','i386'], 'x86_64':['x86_64'], 'noarch':['noarch']} arch_mapping = {'i686':'x86', 'i586':'x86', 'i386':'x86', 'x86_64':'x86_64', 'noarch':'noarch'} | def prune_pkgs_archs(pkgs): """prune a pkgs structure to contain no more than one subarch per architecture for each set of packages.""" subarch_mapping = {'x86':['i686','i586','i386'], 'x86_64':['x86_64'], 'noarch':['noarch']} arch_mapping = {'i686':'x86', 'i586':'x86', 'i386':'x86', 'x86_64':'x86_64', 'noarch':'noarch... | a3e467705967c9bd663a934cca8f3c746d746f6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/a3e467705967c9bd663a934cca8f3c746d746f6f/rpmlisting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13293,
67,
25376,
67,
991,
87,
12,
25376,
4672,
3536,
28545,
279,
16922,
3695,
358,
912,
1158,
1898,
2353,
1245,
720,
991,
1534,
27418,
364,
1517,
444,
434,
5907,
12123,
27843,
67,
25376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13293,
67,
25376,
67,
991,
87,
12,
25376,
4672,
3536,
28545,
279,
16922,
3695,
358,
912,
1158,
1898,
2353,
1245,
720,
991,
1534,
27418,
364,
1517,
444,
434,
5907,
12123,
27843,
67,
25376,
... | |
'the future', 'Invalid Completion Date')) | 'the future'), _('Invalid Completion Date')) | def _render_admin_panel(self, req, cat, page, milestone): req.perm.require('TICKET_ADMIN') | 4b138a068f80ca15607d45d56325d57f2e728ce5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/4b138a068f80ca15607d45d56325d57f2e728ce5/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
28664,
4672,
1111,
18,
12160,
18,
6528,
2668,
56,
16656,
1584,
67,
15468,
6134,
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,
389,
5902,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
28664,
4672,
1111,
18,
12160,
18,
6528,
2668,
56,
16656,
1584,
67,
15468,
6134,
2,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.