rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
font = QFont("Arial", 10) | font = QFont("Arial", fontSize) font.setBold(isBold) | def _getFontForTextNearCursor(self): """ Returns the font for text near the cursor. @see: self.renderTextNearCursor """ font = QFont("Arial", 10) ##font.setBold(True) ##font.setPixelSize(15) return font | 43f2ab517da3d20c9269b6801c4a57442aabf5cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/43f2ab517da3d20c9269b6801c4a57442aabf5cd/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
5711,
1290,
1528,
24686,
6688,
12,
2890,
4672,
3536,
2860,
326,
3512,
364,
977,
13378,
326,
3347,
18,
632,
5946,
30,
365,
18,
5902,
1528,
24686,
6688,
3536,
3512,
273,
2238,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5711,
1290,
1528,
24686,
6688,
12,
2890,
4672,
3536,
2860,
326,
3512,
364,
977,
13378,
326,
3347,
18,
632,
5946,
30,
365,
18,
5902,
1528,
24686,
6688,
3536,
3512,
273,
2238,
57... |
if val.type == 'datetime': | if (val.type == 'datetime') and (data[key] is not None): | def _process(self, data): data = DictData._process(self, data) for key, val in self._db.tablefields[self._table].items(): if val.type == 'datetime': data[key] = datetime.duck(data[key]) return data | f7a8be5ce032172c0cc8d131782e4a2af6cca24b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/f7a8be5ce032172c0cc8d131782e4a2af6cca24b/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
16,
501,
4672,
501,
273,
9696,
751,
6315,
2567,
12,
2890,
16,
501,
13,
364,
498,
16,
1244,
316,
365,
6315,
1966,
18,
2121,
2821,
63,
2890,
6315,
2121,
8009,
3319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2567,
12,
2890,
16,
501,
4672,
501,
273,
9696,
751,
6315,
2567,
12,
2890,
16,
501,
13,
364,
498,
16,
1244,
316,
365,
6315,
1966,
18,
2121,
2821,
63,
2890,
6315,
2121,
8009,
3319,
... |
sage: q = qsieve(n, block=False, time=True) sage: q Proper factors so far: [] sage: q | sage: q = qsieve(n, block=False, time=True) sage: q Proper factors so far: [] sage: q | def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''... | 07dfb65d821de43735eca894886c02cab7d3ed76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/07dfb65d821de43735eca894886c02cab7d3ed76/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
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,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... |
"%r doesn't start with %r" % (stderr, expected)) | "%s doesn't start with %s" % (ascii(stderr), ascii(expected))) | def check_exit_message(code, expected): process = subprocess.Popen([sys.executable, "-c", code], stderr=subprocess.PIPE) stdout, stderr = process.communicate() self.assertEqual(process.returncode, 1) self.assertTrue(stderr.startswith(expected), "%r doesn't start with %r" % (stderr, expected)) | c0983856c6814272a5e6004bd50b429afba3f3b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/c0983856c6814272a5e6004bd50b429afba3f3b4/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
8593,
67,
2150,
12,
710,
16,
2665,
4672,
1207,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
3701,
71,
3113,
981,
6487,
4514,
33,
1717,
2567,
18,
27602,
13,
3909,
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,
866,
67,
8593,
67,
2150,
12,
710,
16,
2665,
4672,
1207,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
3701,
71,
3113,
981,
6487,
4514,
33,
1717,
2567,
18,
27602,
13,
3909,
16,
... |
elif bom == 0xFFFE0000: | elif bom == BOM32_REVERSE: | def str_decode_utf_32_helper(s, size, errors, final=True, errorhandler=None, byteorder="native"): if errorhandler is None: errorhandler = raise_unicode_exception_decode bo = 0 if BYTEORDER == 'little': iorder = [0, 1, 2, 3] else: iorder = [3, 2, 1, 0] # Check for BOM marks (U+FEFF) in the input and adjust current # ... | fdebcf0959de2c3d1b15f32988290d4eb5cce2e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/fdebcf0959de2c3d1b15f32988290d4eb5cce2e7/runicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
3922,
67,
3158,
67,
1578,
67,
4759,
12,
87,
16,
963,
16,
1334,
16,
727,
33,
5510,
16,
555,
4176,
33,
7036,
16,
1160,
1019,
1546,
13635,
6,
4672,
309,
555,
4176,
353,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
3922,
67,
3158,
67,
1578,
67,
4759,
12,
87,
16,
963,
16,
1334,
16,
727,
33,
5510,
16,
555,
4176,
33,
7036,
16,
1160,
1019,
1546,
13635,
6,
4672,
309,
555,
4176,
353,
599,
... |
settings = __stv.get(ps, None) if not settings: settings = __set_target_variables_aux(manager, rule_or_module, ps) __stv[ps] = settings | settings = __set_target_variables_aux(manager, rule_or_module, ps) | def set_target_variables (manager, rule_or_module, targets, ps): """ """ settings = __stv.get(ps, None) if not settings: settings = __set_target_variables_aux(manager, rule_or_module, ps) __stv[ps] = settings if settings: for s in settings: for target in targets: manager.engine ().set_target_variable (target, s [0], ... | b5c039898945f7c0301c0e28779009baf092a0c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/b5c039898945f7c0301c0e28779009baf092a0c8/toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3299,
67,
7528,
261,
4181,
16,
1720,
67,
280,
67,
2978,
16,
5774,
16,
4250,
4672,
3536,
3536,
1947,
273,
1001,
542,
67,
3299,
67,
7528,
67,
18196,
12,
4181,
16,
1720,
67,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3299,
67,
7528,
261,
4181,
16,
1720,
67,
280,
67,
2978,
16,
5774,
16,
4250,
4672,
3536,
3536,
1947,
273,
1001,
542,
67,
3299,
67,
7528,
67,
18196,
12,
4181,
16,
1720,
67,
28... |
r""" The zero sequence. INPUT: n -- non negative integer OUTPUT: EXAMPLES: sage: a = sloane.A000004; a | def __init__(self): r""" | def _eval(self, n): return n | 69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
290,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
290,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.conf = c | section = "" log.debug("Searching for config section matching %s" % self.url) for s in sorted(c.sections(), lambda a,b: cmp(len(a),len(b)) or cmp(a,b)): if s in self.url: log.debug("Found matching section: %s" % s) section = s if not section: return for k,v in c.items(section): if k in ('user','password'): log.debug(... | def readconfig(self,configpath=None): '''Read bugzillarc file(s) into memory.''' configpath = [os.path.expanduser(p) for p in configpath] import ConfigParser c = ConfigParser.SafeConfigParser() if not configpath: configpath = self.configpath r = c.read(configpath) if not r: return # FIXME save parsed config in a more l... | 735e18f2d1aa144af541ad972ca419a2b4cef005 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5050/735e18f2d1aa144af541ad972ca419a2b4cef005/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1425,
12,
2890,
16,
1425,
803,
33,
7036,
4672,
9163,
1994,
7934,
94,
737,
11828,
585,
12,
87,
13,
1368,
3778,
1093,
6309,
642,
803,
273,
306,
538,
18,
803,
18,
12320,
1355,
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,
855,
1425,
12,
2890,
16,
1425,
803,
33,
7036,
4672,
9163,
1994,
7934,
94,
737,
11828,
585,
12,
87,
13,
1368,
3778,
1093,
6309,
642,
803,
273,
306,
538,
18,
803,
18,
12320,
1355,
12,
... |
pc_brains = pc(path=abs_paths.keys()) | pc_brains = pc(path=abs_paths.keys(), **skw) | def assign(x, y): abs_paths[x]=y | ddb3fe2770e38f01e7df190b13bd194852b887e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ddb3fe2770e38f01e7df190b13bd194852b887e4/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2683,
12,
92,
16,
677,
4672,
2417,
67,
4481,
63,
92,
65,
33,
93,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2683,
12,
92,
16,
677,
4672,
2417,
67,
4481,
63,
92,
65,
33,
93,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return self.convertFileToPDF(absdocpath) | command = 'CONVERT_PDF\nPATH=%s\n' % (absdocpath,) result = self.sendRequest(command) result.message = self.copyResultToTempDir(absdocpath, result) return result | def convertToPDF(self, filename, data): """Send a request to a running pyuno server to convert to PDF. | dbd4bd7405ec6ca650d508b661704ebc8d4b038a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9481/dbd4bd7405ec6ca650d508b661704ebc8d4b038a/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
17508,
12,
2890,
16,
1544,
16,
501,
4672,
3536,
3826,
279,
590,
358,
279,
3549,
2395,
318,
83,
1438,
358,
1765,
358,
12667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
17508,
12,
2890,
16,
1544,
16,
501,
4672,
3536,
3826,
279,
590,
358,
279,
3549,
2395,
318,
83,
1438,
358,
1765,
358,
12667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
glsl_vertex, glsl_fragment, log = cg_to_glsl(cg_shader, CGC) | glsl_vertex, glsl_fragment, log = cg_to_glsl(cg_shader, cgc_path) | def main(cg_shader, CGC): matrixloadorder = get_matrixloadorder(cg_shader) glsl_vertex, glsl_fragment, log = cg_to_glsl(cg_shader, CGC) print log print fix_glsl(glsl_vertex) print print '// #o3d SplitMarker' print get_matrixloadorder(cg_shader).strip() print print fix_glsl(glsl_fragment) | b4063f4f2c6fc90bbda47a2fb5e91c437341938f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b4063f4f2c6fc90bbda47a2fb5e91c437341938f/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
26275,
67,
674,
1143,
16,
385,
15396,
4672,
3148,
945,
1019,
273,
336,
67,
5667,
945,
1019,
12,
26275,
67,
674,
1143,
13,
5118,
2069,
67,
15281,
16,
5118,
2069,
67,
11956,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
26275,
67,
674,
1143,
16,
385,
15396,
4672,
3148,
945,
1019,
273,
336,
67,
5667,
945,
1019,
12,
26275,
67,
674,
1143,
13,
5118,
2069,
67,
15281,
16,
5118,
2069,
67,
11956,
16... |
SpecializedSetup<%(name)s, 0>(); | SpecializedSetup<%(name)s, 0>(false); | def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """ | c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
arg_strings = [] for arg in self.arg_specs: arg_strings.append(arg.local_dict_code()) code = arg_strings.join("") return code | """Return the code to create the local dict as a string.""" arg_strings = [arg.local_dict_code() for arg in self.arg_specs] return "".join(arg_strings) | def arg_local_dict_code(self): arg_strings = [] for arg in self.arg_specs: arg_strings.append(arg.local_dict_code()) code = arg_strings.join("") return code | 6cb6cd5b31f93f9794892ac5ac615a3996646baf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/6cb6cd5b31f93f9794892ac5ac615a3996646baf/inline_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
3729,
67,
1576,
67,
710,
12,
2890,
4672,
1501,
67,
10219,
273,
5378,
364,
1501,
316,
365,
18,
3175,
67,
15115,
30,
1501,
67,
10219,
18,
6923,
12,
3175,
18,
3729,
67,
1576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1501,
67,
3729,
67,
1576,
67,
710,
12,
2890,
4672,
1501,
67,
10219,
273,
5378,
364,
1501,
316,
365,
18,
3175,
67,
15115,
30,
1501,
67,
10219,
18,
6923,
12,
3175,
18,
3729,
67,
1576,
... |
self.cachefile = self.escape_url(self.url + '@' + version) + '.data' | if not self.rawurl: self.cachefile = self.escape_url(self.url + '@' + self.version) + '.data' else: self.cachefile = self.escape_url(self.rawurl) + '.data' | def __init__(self, basepath, url, version, arches, components, groups, rawurl, blacklist, recommended): Source.__init__(self, basepath, url, version, arches, components, groups, rawurl, blacklist, recommended) self.cachefile = self.escape_url(self.url + '@' + version) + '.data' self.pkgnames = set() | eae6b6c8932496b374170e990a756ad1d4ac925c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/eae6b6c8932496b374170e990a756ad1d4ac925c/Packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
16,
11709,
16,
14553,
4672,
4998,
16186,
2738,
972,
12,
2890,
16,
23853,
16,
880,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
16,
11709,
16,
14553,
4672,
4998,
16186,
2738,
972,
12,
2890,
16,
23853,
16,
880,... |
name='btnBrowse', parent=self, pos=wxPoint(339, 51), size=wxSize(19, 21), style=0) | name='btnBrowse', parent=self, pos=wxPoint(329, 51), size=wxSize(27, 21), style=0) | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 42b28de011a20c147bdfbed99afa82dcd0124408 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/42b28de011a20c147bdfbed99afa82dcd0124408/FindReplaceDlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
42,
2356,
21726,
8914... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
42,
2356,
21726,
8914... |
self.entries.create(startdate=startdate,enddate=enddate,quantity=quantity).save() | self.entries.create(startdate=startdate,enddate=enddate,quantity=str(quantity)).save() | def setTotal(self, startdate, enddate, quantity): ''' Update the forecast quantity. The logic followed is three-fold: - If one or more forecast entries already exist in the daterange, the quantities of those entries are proportionally rescaled to fit the new quantity. - If no forecast entries exist yet, we create a new... | be185fc1f8e444a57ca49b9420207c749e3d2f5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8604/be185fc1f8e444a57ca49b9420207c749e3d2f5f/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25015,
12,
2890,
16,
787,
712,
16,
679,
712,
16,
10457,
4672,
9163,
2315,
326,
18763,
10457,
18,
1021,
4058,
10860,
353,
8925,
17,
16007,
30,
300,
971,
1245,
578,
1898,
18763,
3222,
1818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25015,
12,
2890,
16,
787,
712,
16,
679,
712,
16,
10457,
4672,
9163,
2315,
326,
18763,
10457,
18,
1021,
4058,
10860,
353,
8925,
17,
16007,
30,
300,
971,
1245,
578,
1898,
18763,
3222,
1818... |
assert(repeating_widget.children[0].orig_value == 'test') assert(repeating_widget.children[1].orig_value == 'test2') | assert(rep.children[0].value == 'test') assert(rep.children[1].value == 'test2') | def test_rw_pass(self): testapi.request(1) inp = ['test', 'test2'] out = repeating_widget.validate(inp) assert(inp == out) assert(repeating_widget.children[0].orig_value == 'test') assert(repeating_widget.children[1].orig_value == 'test2') | 63e95fe54937a8558192c280d2bd6d29e642b625 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11475/63e95fe54937a8558192c280d2bd6d29e642b625/test_validation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
21878,
67,
5466,
12,
2890,
4672,
1842,
2425,
18,
2293,
12,
21,
13,
12789,
273,
10228,
3813,
2187,
296,
3813,
22,
3546,
596,
273,
30571,
67,
6587,
18,
5662,
12,
31647,
13,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21878,
67,
5466,
12,
2890,
4672,
1842,
2425,
18,
2293,
12,
21,
13,
12789,
273,
10228,
3813,
2187,
296,
3813,
22,
3546,
596,
273,
30571,
67,
6587,
18,
5662,
12,
31647,
13,
181... |
while i < len(self.start) and i < len(newstart) and \ self.start[i] == newstart[i]: | while i < min_len and self.start[i] == newstart[i]: | def _change_start(self, newstart): i = 0 while i < len(self.start) and i < len(newstart) and \ self.start[i] == newstart[i]: i += 1 if i < len(self.start): self.widget.delete("%s+%dc" % (self.startindex, i), "%s+%dc" % (self.startindex, len(self.start))) if i < len(newstart): self.widget.insert("%s+%dc" % (self.startin... | 3a5751b89d078981e266e7f3d128a26b4bb9bf8f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/3a5751b89d078981e266e7f3d128a26b4bb9bf8f/AutoCompleteWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3427,
67,
1937,
12,
2890,
16,
394,
1937,
4672,
277,
273,
374,
1323,
277,
411,
1131,
67,
1897,
471,
365,
18,
1937,
63,
77,
65,
422,
394,
1937,
63,
77,
14542,
277,
1011,
404,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3427,
67,
1937,
12,
2890,
16,
394,
1937,
4672,
277,
273,
374,
1323,
277,
411,
1131,
67,
1897,
471,
365,
18,
1937,
63,
77,
65,
422,
394,
1937,
63,
77,
14542,
277,
1011,
404,
309,... |
return | return False | def alpm_install_targets(self, targets, repo = None): # TODO: check if there's something searched for or a repo selected, and # update the pkg_treeview accordingly self.busy_status_label = self.all_widgets.get_widget('busy_status_label') number_pkgs_to_download =\ self.alpm_get_number_of_packages_to_download(targets) | 8f90b0f951a01773d8498fe71f08a3fa9c6bba7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/8f90b0f951a01773d8498fe71f08a3fa9c6bba7e/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
524,
7755,
67,
5425,
67,
11358,
12,
2890,
16,
5774,
16,
3538,
273,
599,
4672,
468,
2660,
30,
866,
309,
1915,
1807,
5943,
19242,
364,
578,
279,
3538,
3170,
16,
471,
468,
1089,
326,
3475... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
524,
7755,
67,
5425,
67,
11358,
12,
2890,
16,
5774,
16,
3538,
273,
599,
4672,
468,
2660,
30,
866,
309,
1915,
1807,
5943,
19242,
364,
578,
279,
3538,
3170,
16,
471,
468,
1089,
326,
3475... |
if path[1:3] == ':\\' and path[0:1] and path[0].isalpha(): | if absolute and path[1:3] == ':\\' and path[0:1] and path[0].isalpha(): | def CleanPath(self, path): if win32: # Without hacks it is (up to Vista) not possible to have more # than 26 drives mounted, so we can assume a '[a-zA-Z]:\' prefix # for drives - we shouldn't escape that drive = '' if path[1:3] == ':\\' and path[0:1] and path[0].isalpha(): drive = path[:3] path = path[3:] chars = ["?",... | 607d90a86a7ddfea3eb5ea6c558c948485ea76a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/607d90a86a7ddfea3eb5ea6c558c948485ea76a0/transfers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9645,
743,
12,
2890,
16,
589,
4672,
309,
5657,
1578,
30,
468,
27287,
11769,
87,
518,
353,
261,
416,
358,
776,
376,
69,
13,
486,
3323,
358,
1240,
1898,
468,
2353,
10659,
5081,
3606,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9645,
743,
12,
2890,
16,
589,
4672,
309,
5657,
1578,
30,
468,
27287,
11769,
87,
518,
353,
261,
416,
358,
776,
376,
69,
13,
486,
3323,
358,
1240,
1898,
468,
2353,
10659,
5081,
3606,
209... |
req.hdf['query.verbose'] = 1 | req.hdf['query.verbose'] = True | def display_html(self, req, query): req.hdf['title'] = 'Custom Query' add_stylesheet(req, 'common/css/report.css') | 2263ea8c93b55f55a518f2d4a5c890dd01b309f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/2263ea8c93b55f55a518f2d4a5c890dd01b309f4/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
2620,
12,
2890,
16,
1111,
16,
843,
4672,
1111,
18,
26428,
3292,
2649,
3546,
273,
296,
3802,
2770,
11,
527,
67,
19403,
12,
3658,
16,
296,
6054,
19,
5212,
19,
6006,
18,
5212,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
2620,
12,
2890,
16,
1111,
16,
843,
4672,
1111,
18,
26428,
3292,
2649,
3546,
273,
296,
3802,
2770,
11,
527,
67,
19403,
12,
3658,
16,
296,
6054,
19,
5212,
19,
6006,
18,
5212,
... |
return this. Otherwise, we return the upper and lower bounds with a warning that these are not the same. | return this. Otherwise, we raise a ValueError with an error message specifying the upper and lower bounds. | def rank(self,verbose=0, lim1=5, lim3=50, limtriv=10, maxprob=20, limbigprime=30): r""" Return the rank of this elliptic curve, if it can be determined. | 650f1818f624820481186d5c23dd6c8792ace92e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/650f1818f624820481186d5c23dd6c8792ace92e/ell_number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
5082,
4672,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6171,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
5082,
4672,
43... |
return LANGUAGES[(int(language_id or DEFAULT_LANGUAGE)) - 1][0] | return LANGUAGES[(int(language_id or thread_locals.DEFAULT_LANGUAGE)) - 1][0] | def get_language_code(language_id): return LANGUAGES[(int(language_id or DEFAULT_LANGUAGE)) - 1][0] | 61bd5dc5cbf7a5ad71e99b10ba2d7091681b78ca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12035/61bd5dc5cbf7a5ad71e99b10ba2d7091681b78ca/languages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4923,
67,
710,
12,
4923,
67,
350,
4672,
327,
24748,
55,
63,
12,
474,
12,
4923,
67,
350,
578,
2650,
67,
17977,
18,
5280,
67,
15547,
3719,
300,
404,
6362,
20,
65,
225,
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,
336,
67,
4923,
67,
710,
12,
4923,
67,
350,
4672,
327,
24748,
55,
63,
12,
474,
12,
4923,
67,
350,
578,
2650,
67,
17977,
18,
5280,
67,
15547,
3719,
300,
404,
6362,
20,
65,
225,
2,
-1... |
client = SystemAdministratorClient( self.host ) | client = SystemAdministratorClient( self.host, self.port ) | def do_add( self, args ): """ Add new entity to the Configuration Service usage: add instance <system> <instance> """ argss = args.split() option = argss[0] del argss[0] if option == "instance": system = argss[0] instance = argss[1] client = SystemAdministratorClient( self.host ) result = client.addSystemInstance( sy... | cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1289,
12,
365,
16,
833,
262,
30,
3536,
1436,
394,
1522,
358,
326,
4659,
1956,
225,
4084,
30,
225,
527,
791,
411,
4299,
34,
411,
1336,
34,
3536,
833,
87,
273,
833,
18,
4939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
12,
365,
16,
833,
262,
30,
3536,
1436,
394,
1522,
358,
326,
4659,
1956,
225,
4084,
30,
225,
527,
791,
411,
4299,
34,
411,
1336,
34,
3536,
833,
87,
273,
833,
18,
4939,
... |
no_of_permutations=pd.no_of_permutations) | no_of_permutations=pd.no_of_permutations, no_of_min_breaks=pd.no_of_min_breaks) | def run_wilcox_test(self, pd): """ 2008-08-20 use pd to summarize all parameters 2008-08-15 fix option max_pvalue_per_gene, to have the choice to take the most significant SNP associated with one gene or not 2008-08-14 add min_MAF just prepareDataForRankTest(). 2008-07-24 fix a bug. still using self.list_type_id, rathe... | d2a16d467a466b03daa63dd27037a863a5827a2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/d2a16d467a466b03daa63dd27037a863a5827a2a/GeneListRankTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
91,
330,
71,
2409,
67,
3813,
12,
2890,
16,
4863,
4672,
3536,
4044,
28,
17,
6840,
17,
3462,
999,
4863,
358,
28712,
777,
1472,
4044,
28,
17,
6840,
17,
3600,
2917,
1456,
943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
91,
330,
71,
2409,
67,
3813,
12,
2890,
16,
4863,
4672,
3536,
4044,
28,
17,
6840,
17,
3462,
999,
4863,
358,
28712,
777,
1472,
4044,
28,
17,
6840,
17,
3600,
2917,
1456,
943,
... |
J = self.index_set() | J = self.index_object() | def dwt(self,other="haar",wavelet_k=2): """ Wraps the gsl WaveletTransform.forward in dwt.pyx (written by Johua Kantor). Assumes the length of the sample is a power of 2. Uses the GSL function gsl_wavelet_transform_forward. | 5d0c7d543a1b24ac0a1d29ac68884870541a3a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d0c7d543a1b24ac0a1d29ac68884870541a3a98/dft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
6046,
12,
2890,
16,
3011,
1546,
3395,
297,
3113,
24801,
808,
67,
79,
33,
22,
4672,
3536,
678,
7506,
326,
314,
2069,
678,
842,
808,
4059,
18,
11565,
316,
302,
6046,
18,
2074,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
6046,
12,
2890,
16,
3011,
1546,
3395,
297,
3113,
24801,
808,
67,
79,
33,
22,
4672,
3536,
678,
7506,
326,
314,
2069,
678,
842,
808,
4059,
18,
11565,
316,
302,
6046,
18,
2074,
92,
... |
type = Bantracker.type._default ignore = Bantracker.ignore._default forward = Bantracker.forward._default channels = Bantracker.channels._default review = Bantracker.review._default | type = Bantracker.request.type._default ignore = Bantracker.request.ignore._default forward = Bantracker.request.forward._default channels = Bantracker.request.forward.channels._default review = Bantracker.request.review._default | def getReviewTime(): output("How many days should the bot wait before requesting a ban/quiet review?") review = something("Can be an integer or decimal value. Zero disables reviews.", default=str(Bantracker.review._default)) | 5e4cd4efc7e0b9287648ba0ba010e20a8486cc0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3106/5e4cd4efc7e0b9287648ba0ba010e20a8486cc0a/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5561,
1945,
950,
13332,
876,
2932,
44,
543,
4906,
4681,
1410,
326,
2512,
2529,
1865,
18709,
279,
25732,
19,
20380,
10725,
7225,
13,
10725,
273,
5943,
2932,
2568,
506,
392,
3571,
578,
6970,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5561,
1945,
950,
13332,
876,
2932,
44,
543,
4906,
4681,
1410,
326,
2512,
2529,
1865,
18709,
279,
25732,
19,
20380,
10725,
7225,
13,
10725,
273,
5943,
2932,
2568,
506,
392,
3571,
578,
6970,... |
up in the table self.extensions_map, using text/plain | up in the table self.extensions_map, using application/octet-stream | def guess_type(self, path): """Guess the type of a file. | 89865921bf26c9372703a46612fe032afab254d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/89865921bf26c9372703a46612fe032afab254d4/SimpleHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
723,
12,
2890,
16,
589,
4672,
3536,
15977,
326,
618,
434,
279,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
723,
12,
2890,
16,
589,
4672,
3536,
15977,
326,
618,
434,
279,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print "removing parent" | def set_status(self,status,donedate=None) : old_status = self.status self.can_be_deleted = False if status : self.status = status #If Done, we set the done date if status in ["Done","Dismiss"] : for c in self.get_subtasks() : c.set_status(status,donedate=donedate) #to the specified date (if any) if donedate : self.clos... | c5f5895fb192a1b4f195e27dde7d5ffcd03fe8b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/c5f5895fb192a1b4f195e27dde7d5ffcd03fe8b3/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2327,
12,
2890,
16,
2327,
16,
72,
8184,
340,
33,
7036,
13,
294,
1592,
67,
2327,
273,
365,
18,
2327,
365,
18,
4169,
67,
2196,
67,
8600,
273,
1083,
309,
1267,
294,
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,
444,
67,
2327,
12,
2890,
16,
2327,
16,
72,
8184,
340,
33,
7036,
13,
294,
1592,
67,
2327,
273,
365,
18,
2327,
365,
18,
4169,
67,
2196,
67,
8600,
273,
1083,
309,
1267,
294,
365,
18,
... | |
catalogs = [getattr(self, 'pcng_catalog'), getToolByName(self, 'portal_catalog', None)] for c in catalogs: c.unindexObject(self) | self.pcng_catalog.unindexObject(self) catalogs = [getattr(self, 'pcng_catalog')] from Products.Archetypes.config import TOOL_NAME at = getToolByName(self, TOOL_NAME , None) for c in at.getCatalogsByType(self.meta_type): if c.getId() in 'portal_catalog': continue c.uncatalog_object('/'.join(self.getPhysicalPath())) | def unindexObject(self): catalogs = [getattr(self, 'pcng_catalog'), getToolByName(self, 'portal_catalog', None)] for c in catalogs: c.unindexObject(self) | 93cfbcd87a24baed4a22425a68526b04b6569ad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/93cfbcd87a24baed4a22425a68526b04b6569ad5/Issue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
1615,
921,
12,
2890,
4672,
225,
365,
18,
2436,
3368,
67,
7199,
18,
318,
1615,
921,
12,
2890,
13,
225,
26455,
273,
306,
588,
1747,
12,
2890,
16,
296,
2436,
3368,
67,
7199,
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,
640,
1615,
921,
12,
2890,
4672,
225,
365,
18,
2436,
3368,
67,
7199,
18,
318,
1615,
921,
12,
2890,
13,
225,
26455,
273,
306,
588,
1747,
12,
2890,
16,
296,
2436,
3368,
67,
7199,
6134,
... |
self._test(['${v1}', '${v2}'], kw=None, assign=['${v1}', '${v2}']) | self._test(['${v1}', '${v2}'], kw='', assign=['${v1}', '${v2}']) | def test_assign_without_keyword(self): self._test(['${v1}', '${v2}'], kw=None, assign=['${v1}', '${v2}']) | f16b86bfcf008a9cf63bb1a43c1b5dea94df758e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/f16b86bfcf008a9cf63bb1a43c1b5dea94df758e/test_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6145,
67,
13299,
67,
11041,
12,
2890,
4672,
365,
6315,
3813,
12,
3292,
18498,
90,
21,
24259,
25596,
90,
22,
1713,
6487,
5323,
33,
7036,
16,
2683,
33,
3292,
18498,
90,
21,
242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6145,
67,
13299,
67,
11041,
12,
2890,
4672,
365,
6315,
3813,
12,
3292,
18498,
90,
21,
24259,
25596,
90,
22,
1713,
6487,
5323,
33,
7036,
16,
2683,
33,
3292,
18498,
90,
21,
242... |
self.buttons[i].set_label(labels[i][0]) | self.buttons[i].set_label(labels[i]) | def set_toolbar_label(self): labels = { 'but_new': _('_New'), 'but_save': _('_Save'), 'but_remove': _('_Delete'), 'but_search': _('_Find'), 'but_previous': _('Previous'), 'but_next': _('Next'), 'but_switch': _('Switch'), 'but_reload': _('_Reload'), 'but_menu': _('Menu'), 'but_action': _('Action'), 'but_print': _('Print... | 3a0944a9dd6e3832ef2186953ac75876cda2f07f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/3a0944a9dd6e3832ef2186953ac75876cda2f07f/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
18849,
67,
1925,
12,
2890,
4672,
3249,
273,
288,
296,
12885,
67,
2704,
4278,
389,
2668,
67,
1908,
19899,
296,
12885,
67,
5688,
4278,
389,
2668,
67,
4755,
19899,
296,
12885,
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,
444,
67,
18849,
67,
1925,
12,
2890,
4672,
3249,
273,
288,
296,
12885,
67,
2704,
4278,
389,
2668,
67,
1908,
19899,
296,
12885,
67,
5688,
4278,
389,
2668,
67,
4755,
19899,
296,
12885,
67,
... |
self.tk.call(self._w, 'delete', from_, to) | self.tk.call(self._w, 'delete', from_, to) | def delete(self, from_, to=None): | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
628,
67,
16,
358,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
628,
67,
16,
358,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pa = pyaudio.PyAudio() stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RATE, | global _stream if _stream is None: pa = pyaudio.PyAudio() _stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RATE, | def get_audio_data(): pa = pyaudio.PyAudio() stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RATE, input=True, frames_per_buffer=NUM_SAMPLES) audio_data = fromstring(stream.read(NUM_SAMPLES), dtype=short) stream.close() normalized_data = audio_data / 32768.0 return (abs(fft(normalized_data))[:NUM_SA... | 62a694dbe985bb9e9007d6bf4cb21d6776a985ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13167/62a694dbe985bb9e9007d6bf4cb21d6776a985ef/spectrum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11509,
67,
892,
13332,
2552,
389,
3256,
309,
389,
3256,
353,
599,
30,
6790,
273,
2395,
11509,
18,
9413,
12719,
1435,
389,
3256,
273,
6790,
18,
3190,
12,
2139,
33,
2074,
11509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11509,
67,
892,
13332,
2552,
389,
3256,
309,
389,
3256,
353,
599,
30,
6790,
273,
2395,
11509,
18,
9413,
12719,
1435,
389,
3256,
273,
6790,
18,
3190,
12,
2139,
33,
2074,
11509,
... |
""" Convert a LIGOTimeGPS to a count of nanoseconds as a long. Example use: LIGOTimeGPS(100.5).ns() """ | """ Convert a LIGOTimeGPS to a count of nanoseconds as a long. Example use: LIGOTimeGPS(100.5).ns() """ | def ns(self): | 6bd9b206313336554b64d1ec732fcfdde7d0ad94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/6bd9b206313336554b64d1ec732fcfdde7d0ad94/lal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3153,
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,
3153,
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,
-... |
writer() | r = Redirector(ser, connection) r.shortcut() print 'Disconnected' connection.close() | def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: serial port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow co... | 56d976500e8cfd13cd4ccd05f7bf15d8572b5335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/56d976500e8cfd13cd4ccd05f7bf15d8572b5335/tcp_serial_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... |
class TestMultipleShooter: | class TestShooting: | def run_optimization(self, plot=True, _only_check_gradients=False): """Start/run optimization procedure and the optimum unless. Set the keyword parameter 'plot' to False (default=True) if plotting should not be conducted. """ grid = self.get_grid() model = self.get_model() # Initial try p0 = self.get_p0() | f13fa0823b3e7cf20d4468ee3fab52c74faf6bb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f13fa0823b3e7cf20d4468ee3fab52c74faf6bb9/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16689,
1588,
12,
2890,
16,
3207,
33,
5510,
16,
389,
3700,
67,
1893,
67,
9974,
5828,
33,
8381,
4672,
3536,
1685,
19,
2681,
14850,
12131,
471,
326,
2153,
2422,
3308,
18,
225,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16689,
1588,
12,
2890,
16,
3207,
33,
5510,
16,
389,
3700,
67,
1893,
67,
9974,
5828,
33,
8381,
4672,
3536,
1685,
19,
2681,
14850,
12131,
471,
326,
2153,
2422,
3308,
18,
225,
1... |
def browse_in_bibwords(p, f): """Browse inside words indexes.""" return def browse_in_bibxxx(req, colls, p, f, rg): | def browse_in_bibxxx(colls, p, f, rg): | def browse_in_bibwords(p, f): """Browse inside words indexes.""" return | 03e310531e299959e23e689e2221361a7aa1e6d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/03e310531e299959e23e689e2221361a7aa1e6d6/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
267,
67,
70,
495,
3753,
12,
84,
16,
284,
4672,
3536,
27304,
4832,
4511,
5596,
12123,
327,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
267,
67,
70,
495,
3753,
12,
84,
16,
284,
4672,
3536,
27304,
4832,
4511,
5596,
12123,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
ssl_incs = find_file('openssl/ssl.h', inc_dirs, | ssl_incs = find_file('openssl/ssl.h', self.compiler.include_dirs, | 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') | a01db4a131d7d8159b62681f26b27c0c81bcdba2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a01db4a131d7d8159b62681f26b27c0c81bcdba2/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,
... |
label_w = gc.GetTextExtent("X"*8)[0] | label_w = char_w * 8 | def paint_sequence (self, gc) : gc.SetBrush(wx.TRANSPARENT_BRUSH) gc_txt_font = gc.CreateFont(self.txt_font, (0,0,0)) gc.SetFont(gc_txt_font) i = 0 ypos = self.line_sep xpos = 16 black_pen = wx.Pen((0,0,0), 1) (char_w, char_h) = self.get_char_size(gc) if self._style & WXTBX_SEQ_SHOW_SELECTIONS : for j, (i_start, i_end)... | 39c76176c8745c3d5eefb2f852b0edf76b064c91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/39c76176c8745c3d5eefb2f852b0edf76b064c91/sequence_view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
67,
6178,
261,
2890,
16,
8859,
13,
294,
8859,
18,
694,
19114,
1218,
12,
27226,
18,
8989,
3118,
37,
7480,
67,
7192,
57,
2664,
13,
8859,
67,
5830,
67,
5776,
273,
8859,
18,
1684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
67,
6178,
261,
2890,
16,
8859,
13,
294,
8859,
18,
694,
19114,
1218,
12,
27226,
18,
8989,
3118,
37,
7480,
67,
7192,
57,
2664,
13,
8859,
67,
5830,
67,
5776,
273,
8859,
18,
1684,
... |
nadeData = weapon | nadeData.append(weapon) | def __set_weapon_order_type(self, type): # ===================================================================== # RANDOM WEAPON ORDER # ===================================================================== if type == '#random': # Get weapons weapons = self.order.values() | 2f22a91521a8eefc4faac36b3a3525a48c2f568c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/2f22a91521a8eefc4faac36b3a3525a48c2f568c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
67,
1814,
28629,
67,
1019,
67,
723,
12,
2890,
16,
618,
4672,
468,
422,
9917,
12275,
468,
534,
28159,
13880,
2203,
673,
10205,
468,
422,
9917,
12275,
309,
618,
422,
2946,
9188,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
542,
67,
1814,
28629,
67,
1019,
67,
723,
12,
2890,
16,
618,
4672,
468,
422,
9917,
12275,
468,
534,
28159,
13880,
2203,
673,
10205,
468,
422,
9917,
12275,
309,
618,
422,
2946,
9188,... |
is_equation.__doc__ = Hrepresentation.is_equation.__doc__ | def is_equation(self): """ Tests if this object is an equation. By construction, it must be. | 346f358354c345210a872f113663df4917187850 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/346f358354c345210a872f113663df4917187850/polyhedra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
14298,
367,
12,
2890,
4672,
3536,
7766,
87,
309,
333,
733,
353,
392,
15778,
18,
225,
2525,
16171,
16,
518,
1297,
506,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
14298,
367,
12,
2890,
4672,
3536,
7766,
87,
309,
333,
733,
353,
392,
15778,
18,
225,
2525,
16171,
16,
518,
1297,
506,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
def XXXtest_strip_bytearray(self): | def test_strip_bytearray(self): | def XXXtest_strip_bytearray(self): # XXX memoryview not available self.assertEqual(self.type2test(b'abc').strip(memoryview(b'ac')), b'b') self.assertEqual(self.type2test(b'abc').lstrip(memoryview(b'ac')), b'bc') self.assertEqual(self.type2test(b'abc').rstrip(memoryview(b'ac')), b'ab') | efa45f35b529a61aceb4e1266ded7a0b268b0c17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/efa45f35b529a61aceb4e1266ded7a0b268b0c17/test_bytes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11329,
3813,
67,
6406,
67,
7229,
1126,
12,
2890,
4672,
468,
11329,
3778,
1945,
486,
2319,
365,
18,
11231,
5812,
12,
2890,
18,
723,
22,
3813,
12,
70,
11,
18947,
16063,
6406,
12,
7858,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11329,
3813,
67,
6406,
67,
7229,
1126,
12,
2890,
4672,
468,
11329,
3778,
1945,
486,
2319,
365,
18,
11231,
5812,
12,
2890,
18,
723,
22,
3813,
12,
70,
11,
18947,
16063,
6406,
12,
7858,
1... |
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) | def setupUi(self, ui): ui.setObjectName("ui") ui.resize(625, 637) self.verticalLayout_12 = QtGui.QVBoxLayout(ui) self.verticalLayout_12.setObjectName("verticalLayout_12") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_13 = QtGui.QHBoxLayout() se... | 2503e9f807f1add21e1e4ab81249139c1d70195c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8312/2503e9f807f1add21e1e4ab81249139c1d70195c/Ui_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5915,
4672,
5915,
18,
542,
16707,
2932,
4881,
7923,
5915,
18,
15169,
12,
26,
2947,
16,
1666,
6418,
13,
365,
18,
17824,
3744,
67,
2138,
273,
23425,
18,
53,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5915,
4672,
5915,
18,
542,
16707,
2932,
4881,
7923,
5915,
18,
15169,
12,
26,
2947,
16,
1666,
6418,
13,
365,
18,
17824,
3744,
67,
2138,
273,
23425,
18,
53,
58... |
a((rgb>>16)&0xff) a((rgb>>8)&0xff) | a(chr((rgb>>16)&0xff)) a(chr((rgb>>8)&0xff)) | def getRGBData(self): "Return byte array of RGB data as string" if self._data is None: if sys.platform[0:4] == 'java': import jarray from java.awt.image import PixelGrabber width, height = self.getSize() buffer = jarray.zeros(width*height, 'i') pg = PixelGrabber(self._image, 0,0,width,height,buffer,0,width) pg.grabPixe... | b232871229ec463da8e9e807bce8e7f1251cbe5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b232871229ec463da8e9e807bce8e7f1251cbe5c/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4170,
5887,
751,
12,
2890,
4672,
315,
990,
1160,
526,
434,
11510,
501,
487,
533,
6,
309,
365,
6315,
892,
353,
599,
30,
309,
2589,
18,
9898,
63,
20,
30,
24,
65,
422,
296,
6290,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4170,
5887,
751,
12,
2890,
4672,
315,
990,
1160,
526,
434,
11510,
501,
487,
533,
6,
309,
365,
6315,
892,
353,
599,
30,
309,
2589,
18,
9898,
63,
20,
30,
24,
65,
422,
296,
6290,
4278,
... |
class State: | class State: | def InstallLicense(Root, InstallRoot): license = os.path.join(InstallRoot, "license") CreateDirectory(license) for a in glob.glob(os.path.join(Root, "COPYRIGHT*")): CopyFile(a, os.path.join(license, GetLastPathElement(a))) or FatalError() CopyFile(os.path.join(Root, "m3-libs", "arithmetic", "copyrite.txt"), os.path.... | 51fdfe1be110e1275dab5bfa83910300803aedf8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9328/51fdfe1be110e1275dab5bfa83910300803aedf8/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13211,
12,
2375,
16,
10284,
2375,
4672,
225,
8630,
273,
1140,
18,
803,
18,
5701,
12,
6410,
2375,
16,
315,
12687,
7923,
1788,
2853,
12,
12687,
13,
225,
364,
279,
316,
4715,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13211,
12,
2375,
16,
10284,
2375,
4672,
225,
8630,
273,
1140,
18,
803,
18,
5701,
12,
6410,
2375,
16,
315,
12687,
7923,
1788,
2853,
12,
12687,
13,
225,
364,
279,
316,
4715,
18,
1... |
lines.append("Content-type: text/plain; charset=us-ascii") | lines.append("Content-type: text/plain; charset=" + Utils.GetCharSet()) | def Present(self, mime): """Produce a rendering of the digest, as an OutgoingMessage.""" msg = Message.OutgoingMessage() self.ComposeBaseHeaders(msg) digestboundary = MIME_SEPARATOR if mime: import mimetools envboundary = mimetools.choose_boundary() msg['Content-type'] = 'multipart/mixed; boundary=' + envboundary else:... | 32b60f92af057cc2c8d1035d61dddc7b4d2722a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/32b60f92af057cc2c8d1035d61dddc7b4d2722a2/ToDigest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25130,
12,
2890,
16,
4892,
4672,
3536,
25884,
279,
9782,
434,
326,
5403,
16,
487,
392,
2976,
8162,
1079,
12123,
1234,
273,
2350,
18,
24866,
1079,
1435,
365,
18,
22375,
2171,
3121,
12,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25130,
12,
2890,
16,
4892,
4672,
3536,
25884,
279,
9782,
434,
326,
5403,
16,
487,
392,
2976,
8162,
1079,
12123,
1234,
273,
2350,
18,
24866,
1079,
1435,
365,
18,
22375,
2171,
3121,
12,
35... |
wikipedia.showHelp('pagegenerators') | gen = genFactory.getCombinedGenerator() if gen: for page in gen: wikipedia.output(page.title(), toStdout = True) else: wikipedia.showHelp('pagegenerators') | def handleArg(self, arg): """Parse one argument at a time. | 9b3547e49e323a6ae89a831dcdbea5be375b9ba9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/9b3547e49e323a6ae89a831dcdbea5be375b9ba9/pagegenerators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if line[-1] == '\r': | if len(line) and line[-1] == '\r': | def append(self, data): self.data += data while not self.headers_complete: newline = self.data.find('\n') if newline < 0: break # no complete line found line = self.data[:newline] if line[-1] == '\r': line = line[:-1] if len(line): self.headers.append(line) else: self.headers_complete = True self.content_length = int( ... | a7b367c42d396331a4e4fcf5921ad833139ba80a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/a7b367c42d396331a4e4fcf5921ad833139ba80a/throxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
501,
4672,
365,
18,
892,
1011,
501,
1323,
486,
365,
18,
2485,
67,
6226,
30,
9472,
273,
365,
18,
892,
18,
4720,
2668,
64,
82,
6134,
309,
9472,
411,
374,
30,
898,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
501,
4672,
365,
18,
892,
1011,
501,
1323,
486,
365,
18,
2485,
67,
6226,
30,
9472,
273,
365,
18,
892,
18,
4720,
2668,
64,
82,
6134,
309,
9472,
411,
374,
30,
898,
... |
except ObjectNotFound: | except ClassNotFound: | def __init__(self, raw, request, **kw): self.raw = raw self.req = request if "format_args" in kw: # called from a {{{ }}} block try: self.lexer = get_lexer_by_name(kw['format_args'].strip()) except ObjectNotFound: self.lexer = textlexer return if "filename" in kw: # called for an attachment filename = kw['filename'] el... | d6d8f52cacd75edba4fffd344a68fe3ea030e965 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6148/d6d8f52cacd75edba4fffd344a68fe3ea030e965/moin-parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1831,
16,
590,
16,
2826,
9987,
4672,
365,
18,
1899,
273,
1831,
365,
18,
3658,
273,
590,
309,
315,
2139,
67,
1968,
6,
316,
5323,
30,
468,
2566,
628,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1831,
16,
590,
16,
2826,
9987,
4672,
365,
18,
1899,
273,
1831,
365,
18,
3658,
273,
590,
309,
315,
2139,
67,
1968,
6,
316,
5323,
30,
468,
2566,
628,
279... |
attribute.""" | attribute. This method is called by __del__, so it cannot reference anything outside of the local scope (nor can any methods it calls). """ | def _internal_poll(self, _deadstate=None): """Check if child process has terminated. Returns returncode attribute.""" if self.returncode is None: try: pid, sts = os.waitpid(self.pid, os.WNOHANG) if pid == self.pid: self._handle_exitstatus(sts) except os.error: if _deadstate is not None: self.returncode = _deadstate re... | 42a0ba7b2c88b181bce603a57c69a66539dab693 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/42a0ba7b2c88b181bce603a57c69a66539dab693/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7236,
67,
13835,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
3536,
1564,
309,
1151,
1207,
711,
14127,
18,
225,
2860,
18125,
1566,
18,
225,
1220,
707,
353,
2566,
635,
1001,
3771,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7236,
67,
13835,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
3536,
1564,
309,
1151,
1207,
711,
14127,
18,
225,
2860,
18125,
1566,
18,
225,
1220,
707,
353,
2566,
635,
1001,
3771,... |
self.parentWidget.showAttributes(attrList, clusterClosure = closure) painter = QPainter() pic = QPixmap(QSize(100,100)) painter.begin(pic) painter.fillRect(pic.rect(), QBrush(Qt.white)) self.graph.printPlot(painter, pic.rect()) painter.flush() painter.end() self.arguments[classValue].append((pic, value, attrList, i)... | pic = None if snapshots: self.parentWidget.showAttributes(attrList, clusterClosure = closure) painter = QPainter() pic = QPixmap(QSize(120,120)) painter.begin(pic) painter.fillRect(pic.rect(), QBrush(Qt.white)) self.graph.printPlot(painter, pic.rect()) painter.flush() painter.end() self.arguments[classValue].append(... | def findArguments(self): self.cancelArgumentation = 0 self.arguments = [[] for i in range(self.classValueList.count())] if self.subsetdata == None: QMessageBox.information( None, "Argumentation", 'To find arguments you first have to provide a new example that you wish to classify. \nYou can do this by sending the exam... | 509fd7bce11b383105f28fc76c9cd97530e78262 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/509fd7bce11b383105f28fc76c9cd97530e78262/OWClusterOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4628,
12,
2890,
4672,
365,
18,
10996,
1379,
367,
273,
374,
365,
18,
7099,
273,
306,
8526,
364,
277,
316,
1048,
12,
2890,
18,
1106,
24999,
18,
1883,
10756,
65,
225,
309,
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,
1104,
4628,
12,
2890,
4672,
365,
18,
10996,
1379,
367,
273,
374,
365,
18,
7099,
273,
306,
8526,
364,
277,
316,
1048,
12,
2890,
18,
1106,
24999,
18,
1883,
10756,
65,
225,
309,
365,
18,
... |
for t in c.tasks: | for t in self.tasks: | def get_task(self, task_name): """ Returns the first task in the contest with the given name. """ for t in c.tasks: if t.name == task_name: return t raise KeyError("Task not found") | 2ee91f7db0078a332f8ef2ccaf614bab51a20a49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9479/2ee91f7db0078a332f8ef2ccaf614bab51a20a49/Contest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4146,
12,
2890,
16,
1562,
67,
529,
4672,
3536,
2860,
326,
1122,
1562,
316,
326,
466,
395,
598,
326,
864,
508,
18,
3536,
364,
268,
316,
365,
18,
9416,
30,
309,
268,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4146,
12,
2890,
16,
1562,
67,
529,
4672,
3536,
2860,
326,
1122,
1562,
316,
326,
466,
395,
598,
326,
864,
508,
18,
3536,
364,
268,
316,
365,
18,
9416,
30,
309,
268,
18,
529,
... |
def findPeriod(self, time): | def findPeriod(self, utc): tm = datetime.time(*time.localtime(utc)[3:5]) | def findPeriod(self, time): index = len(self.schedule) while index > 0: index -= 1 entry = self.schedule[index] if entry.time < time: return entry return self.schedule[-1] | be10923fcbaed864405188585858853d67c7a2c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10272/be10923fcbaed864405188585858853d67c7a2c5/thermostat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
5027,
12,
2890,
16,
9439,
4672,
6118,
273,
3314,
18,
957,
30857,
957,
18,
3729,
957,
12,
17892,
25146,
23,
30,
25,
5717,
770,
273,
562,
12,
2890,
18,
10676,
13,
1323,
770,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
5027,
12,
2890,
16,
9439,
4672,
6118,
273,
3314,
18,
957,
30857,
957,
18,
3729,
957,
12,
17892,
25146,
23,
30,
25,
5717,
770,
273,
562,
12,
2890,
18,
10676,
13,
1323,
770,
405,
... |
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))] | if sqlite_libfile: sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))] | def gen_db_minor_ver_nums(major): if major == 4: for x in range(max_db_ver[1]+1): if allow_db_ver((4, x)): yield x elif major == 3: for x in (3,): if allow_db_ver((3, x)): yield x else: raise ValueError("unknown major BerkeleyDB version", major) | 1ae415cbee7c35f00a167df84a6ca0759d66a4e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/1ae415cbee7c35f00a167df84a6ca0759d66a4e5/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
1966,
67,
17364,
67,
502,
67,
21180,
12,
14019,
4672,
309,
7888,
422,
1059,
30,
364,
619,
316,
1048,
12,
1896,
67,
1966,
67,
502,
63,
21,
3737,
21,
4672,
309,
1699,
67,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
1966,
67,
17364,
67,
502,
67,
21180,
12,
14019,
4672,
309,
7888,
422,
1059,
30,
364,
619,
316,
1048,
12,
1896,
67,
1966,
67,
502,
63,
21,
3737,
21,
4672,
309,
1699,
67,
196... |
def start_tag(self, indent): """ See the source code for an explanation. """ return indent + "<%s Name=\"%s\" Type=\"%s\"/>" % (self.tagName, self.getAttribute("Name"), self.getAttribute("Type")) | def asarray(self): """ Construct a numarray array from this column. """ if self.getAttribute("Type") in StringTypes: raise TypeError, "Column does not have numeric type" # hack to work around bug in numarray: numarray tests that # an object can be turned into an array, that is it is # "list like", by trying to retriev... | 0b885a9349d0c06b88b02c7943dcbec10a0f29d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/0b885a9349d0c06b88b02c7943dcbec10a0f29d5/metaio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10455,
12,
2890,
4672,
3536,
14291,
279,
818,
1126,
526,
628,
333,
1057,
18,
3536,
309,
365,
18,
588,
1499,
2932,
559,
7923,
316,
514,
2016,
30,
1002,
3580,
16,
315,
1494,
1552,
486,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10455,
12,
2890,
4672,
3536,
14291,
279,
818,
1126,
526,
628,
333,
1057,
18,
3536,
309,
365,
18,
588,
1499,
2932,
559,
7923,
316,
514,
2016,
30,
1002,
3580,
16,
315,
1494,
1552,
486,
1... | |
>>> form['name'] | >>> form.data['name'] | def add_validator(cls, validator): cls._converter.add_validator(validator) | f95105a4e0c240821e86d7b5d2305e9c23ac1b4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/f95105a4e0c240821e86d7b5d2305e9c23ac1b4d/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7357,
12,
6429,
16,
4213,
4672,
2028,
6315,
15747,
18,
1289,
67,
7357,
12,
7357,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7357,
12,
6429,
16,
4213,
4672,
2028,
6315,
15747,
18,
1289,
67,
7357,
12,
7357,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
update_list(cc.include_dirs, ["/sw/include/freetype2", "/sw/lib/freetype2/include", "/sw/include", "/opt/local/include"]) | update_list(cc.include_dirs, ["/sw/include/freetype2", "/sw/lib/freetype2/include", "/sw/include", "/opt/local/include"]) | def update_list(list1, list2): for v in list2: if v not in list1: list1 += [v] | 8ac3ae21174523bd86c800b8140e0cba37564a25 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5722/8ac3ae21174523bd86c800b8140e0cba37564a25/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
1098,
21,
16,
666,
22,
4672,
364,
331,
316,
666,
22,
30,
309,
331,
486,
316,
666,
21,
30,
666,
21,
1011,
306,
90,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
1098,
21,
16,
666,
22,
4672,
364,
331,
316,
666,
22,
30,
309,
331,
486,
316,
666,
21,
30,
666,
21,
1011,
306,
90,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
Technically, only a <mailbox> is allowed. In addition, email addresses without a domain are permitted. Addresses will not be modified if they are already quoted (actually if they begin with '<' and end with '>'.""" if re.match('(?s)\A<.*>\Z', addr): | Should be able to handle anything rfc822.parseaddr can handle.""" m=None try: m=rfc822.parseaddr(addr)[1] except AttributeError: pass if not m: | def quoteaddr(addr): """Quote a subset of the email addresses defined by RFC 821. Technically, only a <mailbox> is allowed. In addition, email addresses without a domain are permitted. Addresses will not be modified if they are already quoted (actually if they begin with '<' and end with '>'.""" if re.match('(?s)\A<... | fcfb6323fb0030467d67b071654b342b7725727f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fcfb6323fb0030467d67b071654b342b7725727f/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4914,
684,
3069,
12,
4793,
4672,
3536,
10257,
279,
7931,
434,
326,
2699,
6138,
2553,
635,
8372,
1725,
5340,
18,
225,
9363,
506,
7752,
358,
1640,
6967,
16590,
24532,
18,
2670,
4793,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4914,
684,
3069,
12,
4793,
4672,
3536,
10257,
279,
7931,
434,
326,
2699,
6138,
2553,
635,
8372,
1725,
5340,
18,
225,
9363,
506,
7752,
358,
1640,
6967,
16590,
24532,
18,
2670,
4793,
848,
... |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 6c6678d8443cc0ac1425216db36bdd74c2f8cb7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6c6678d8443cc0ac1425216db36bdd74c2f8cb7b/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
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,
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,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
fix_one2many_relations( klas, me.tables, me.mapcontext) | fix_one2many_relations( klas, me, me.mapcontext) | def make_tables( me, metadata, only_table_defs =False, **kargs): me.tables = me.DICT() for klas in me.iterklasi(): me.tables[ klas] = make_table( klas, metadata, me.mapcontext, **kargs) for klas in me.iterklasi(): #to be sure all tables exists already fix_one2many_relations( klas, me.tables, me.mapcontext) | d579a10298219b0ac62bda613229c5200b135134 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/d579a10298219b0ac62bda613229c5200b135134/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9373,
12,
1791,
16,
1982,
16,
1338,
67,
2121,
67,
12537,
273,
8381,
16,
2826,
79,
1968,
4672,
1791,
18,
9373,
273,
1791,
18,
31456,
1435,
364,
417,
9521,
316,
1791,
18,
2165,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9373,
12,
1791,
16,
1982,
16,
1338,
67,
2121,
67,
12537,
273,
8381,
16,
2826,
79,
1968,
4672,
1791,
18,
9373,
273,
1791,
18,
31456,
1435,
364,
417,
9521,
316,
1791,
18,
2165,... |
Multiplicative Abelian Group isomorphic to Z x C2 x C3 x C5, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a, c] | Multiplicative Abelian Group isomorphic to C2 x C3 x C5 x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [a, c] | def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x... | ac7b9e1e09a437ce1112b2a6f61db8126e9ee984 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ac7b9e1e09a437ce1112b2a6f61db8126e9ee984/abelian_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... |
def __init__(self, build, partner_dir, build_dir, repack_dir, repack_info): | def __init__(self, build, partner_dir, build_dir, working_dir, final_dir, repack_info): | def __init__(self, build, partner_dir, build_dir, repack_dir, repack_info): super(RepackMac, self).__init__(build, partner_dir, build_dir, repack_dir, repack_info) self.platform = "mac" self.mountpoint = "/tmp/FirefoxInstaller" | e36822b26ce81ba3f89d96443ec62c28dbd6e70f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10262/e36822b26ce81ba3f89d96443ec62c28dbd6e70f/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
16,
19170,
67,
1214,
16,
1361,
67,
1214,
16,
5960,
67,
1214,
16,
727,
67,
1214,
16,
2071,
484,
67,
1376,
4672,
2240,
12,
426,
2920,
9990,
16,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
16,
19170,
67,
1214,
16,
1361,
67,
1214,
16,
5960,
67,
1214,
16,
727,
67,
1214,
16,
2071,
484,
67,
1376,
4672,
2240,
12,
426,
2920,
9990,
16,
365... |
makeCommand + 'clean;' + | makeCommand + ' clean;' + | def verifyCompiler(self, extraFlags): """Checks if test contain src directory and generates sequential program to verify. """ | afb2104e7b6fe5239eee74f6d2d329de74fd2fe2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1302/afb2104e7b6fe5239eee74f6d2d329de74fd2fe2/scheduler_tester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
9213,
12,
2890,
16,
2870,
5094,
4672,
3536,
4081,
309,
1842,
912,
1705,
1867,
471,
6026,
21210,
5402,
358,
3929,
18,
3536,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
9213,
12,
2890,
16,
2870,
5094,
4672,
3536,
4081,
309,
1842,
912,
1705,
1867,
471,
6026,
21210,
5402,
358,
3929,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
signal.alarm(0) | parse_exit(result) | def sigalarm_handler(signum, frame): print '%s timed out after %d seconds' % (sys.argv[0], options.timeout) sys.exit(CRITICAL) | bcc8d42c7ab9447ba44b394a2e5e59078c4944b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4345/bcc8d42c7ab9447ba44b394a2e5e59078c4944b2/check_dell_warranty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
20681,
67,
4176,
12,
2977,
379,
16,
2623,
4672,
1172,
1995,
87,
7491,
596,
1839,
738,
72,
3974,
11,
738,
261,
9499,
18,
19485,
63,
20,
6487,
702,
18,
4538,
13,
2589,
18,
8593,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
20681,
67,
4176,
12,
2977,
379,
16,
2623,
4672,
1172,
1995,
87,
7491,
596,
1839,
738,
72,
3974,
11,
738,
261,
9499,
18,
19485,
63,
20,
6487,
702,
18,
4538,
13,
2589,
18,
8593,
... |
"%(out)s &> %(done)s.log " \ | "%(out)s > %(done)s.log " \ | def run(self): """Converts media to flash video (flv) files""" if sys.platform == 'win32': # TODO: Improve (fix) conversion on Win Platform cmd = "ffmpeg -y -v 0 " \ "-benchmark " \ "-i %(in)s " \ "-ar 22050 -s 320x240 -b 500k -f flv " \ "%(out)s &> %(done)s.log " \ "&& del %(in)s " if _is_flvtool2_available: cmd += "&... | cf45101e1cef69270629e5d26e03002f0959d553 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/cf45101e1cef69270629e5d26e03002f0959d553/MediaConverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
5692,
3539,
358,
9563,
6191,
261,
2242,
90,
13,
1390,
8395,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
468,
2660,
30,
2221,
685,
537,
261,
904,
13,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
5692,
3539,
358,
9563,
6191,
261,
2242,
90,
13,
1390,
8395,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
468,
2660,
30,
2221,
685,
537,
261,
904,
13,
41... |
self._blast_query_letters = self._header.query_letters | self._blast.query_letters = self._header.query_letters | def _end_Iteration(self): # We stored a lot of generic "top level" information # in self._header (an object of type Record.Header) self._blast.reference = self._header.reference self._blast.date = self._header.date self._blast.version = self._header.version self._blast.database = self._header.database self._blast.appli... | e44879e4cb3f3d69a8f115a3f35e255031a3ed8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/e44879e4cb3f3d69a8f115a3f35e255031a3ed8e/NCBIXML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
10795,
12,
2890,
4672,
468,
1660,
4041,
279,
17417,
434,
5210,
315,
3669,
1801,
6,
1779,
468,
316,
365,
6315,
3374,
261,
304,
733,
434,
618,
5059,
18,
1864,
13,
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,
389,
409,
67,
10795,
12,
2890,
4672,
468,
1660,
4041,
279,
17417,
434,
5210,
315,
3669,
1801,
6,
1779,
468,
316,
365,
6315,
3374,
261,
304,
733,
434,
618,
5059,
18,
1864,
13,
365,
6315... |
socket2 = self.socket.makefile(mode, bufsize) sockbio = m2.bio_new_socket(socket2.fileno(), 1) ssl = m2.ssl_dup(self.ssl) m2.ssl_set_bio(ssl, sockbio, sockbio) | def _makefile(self, mode='r', bufsize=1024): # XXX doesn't work socket2 = self.socket.makefile(mode, bufsize) sockbio = m2.bio_new_socket(socket2.fileno(), 1) ssl = m2.ssl_dup(self.ssl) m2.ssl_set_bio(ssl, sockbio, sockbio) sslbio = m2.bio_dup_chain(self.sslbio) #m2.bio_set_ssl(sslbio, ssl, 0) m2.bio_push(sslbio, sockb... | 68eec3f8b360f3b2273e926c78910c19fb337641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/68eec3f8b360f3b2273e926c78910c19fb337641/Connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
768,
12,
2890,
16,
1965,
2218,
86,
2187,
1681,
1467,
33,
2163,
3247,
4672,
468,
11329,
3302,
1404,
1440,
282,
5832,
21010,
273,
312,
22,
18,
21010,
67,
26427,
67,
5639,
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,
389,
6540,
768,
12,
2890,
16,
1965,
2218,
86,
2187,
1681,
1467,
33,
2163,
3247,
4672,
468,
11329,
3302,
1404,
1440,
282,
5832,
21010,
273,
312,
22,
18,
21010,
67,
26427,
67,
5639,
12,
... | |
def writefile(fname, text, fmode="w"): | def writefile(fname, text, fmode="wb"): | def writefile(fname, text, fmode="w"): f = open(fname, fmode) try: f.write(text) finally: f.close() | 118042189dd6900465b025c0bbf857007e8b3484 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/118042189dd6900465b025c0bbf857007e8b3484/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
768,
12,
12749,
16,
977,
16,
284,
3188,
1546,
9464,
6,
4672,
284,
273,
1696,
12,
12749,
16,
284,
3188,
13,
775,
30,
284,
18,
2626,
12,
955,
13,
3095,
30,
284,
18,
4412,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
768,
12,
12749,
16,
977,
16,
284,
3188,
1546,
9464,
6,
4672,
284,
273,
1696,
12,
12749,
16,
284,
3188,
13,
775,
30,
284,
18,
2626,
12,
955,
13,
3095,
30,
284,
18,
4412,
1435,
... |
'Unable to open source file for reading (%s). Exiting.' | 'Unable to open source file for reading (%r). Exiting.' | def __init__(self, source=None, source_path=None, encoding=None, autoclose=1, handle_io_errors=1): """ :Parameters: - `source`: either a file-like object (which is read directly), or `None` (which implies `sys.stdin` if no `source_path` given). - `source_path`: a path to a file, which is opened and then read. - `autocl... | 308fa73c0e30dc0c552339c6fe145fa0e633429b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/308fa73c0e30dc0c552339c6fe145fa0e633429b/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1084,
33,
7036,
16,
1084,
67,
803,
33,
7036,
16,
2688,
33,
7036,
16,
23173,
2061,
33,
21,
16,
1640,
67,
1594,
67,
4324,
33,
21,
4672,
3536,
294,
2402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1084,
33,
7036,
16,
1084,
67,
803,
33,
7036,
16,
2688,
33,
7036,
16,
23173,
2061,
33,
21,
16,
1640,
67,
1594,
67,
4324,
33,
21,
4672,
3536,
294,
2402,
... |
Returns an iterator through all optimal curves with conductor between Nmin and Nmax-1 in the database. | Return an iterator through all optimal curves in the database with given conductors. | def iter_optimal(self, conductors): """ Returns an iterator through all optimal curves with conductor between Nmin and Nmax-1 in the database. INPUT: | c505e04eee8babcf64b9ccd5039fa569f6981a5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c505e04eee8babcf64b9ccd5039fa569f6981a5b/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
3838,
2840,
12,
2890,
16,
356,
1828,
1383,
4672,
3536,
2000,
392,
2775,
3059,
777,
16413,
24106,
316,
326,
2063,
598,
864,
356,
1828,
1383,
18,
225,
12943,
30,
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,
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,
3838,
2840,
12,
2890,
16,
356,
1828,
1383,
4672,
3536,
2000,
392,
2775,
3059,
777,
16413,
24106,
316,
326,
2063,
598,
864,
356,
1828,
1383,
18,
225,
12943,
30,
2,
-100,
-100,
... |
"pdo" : values["subindexes"][subindex]["PDOMAPPING"] == 1}) | "pdo" : values["subindexes"][subindex].get("PDOMAPPING", 0) == 1}) | def GenerateNode(filepath, cwd, nodeID = 0): global Node # Create a new node Node = node.Node(id = nodeID) try: # Parse file and extract dictionary of EDS entry eds_dict = ParseEDSFile(filepath) # Extract Profile Number from Device Type entry ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff # If profile is not... | f74eabf1947f53aa36192fb06c72a58267a5a8fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/116/f74eabf1947f53aa36192fb06c72a58267a5a8fb/eds_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
907,
12,
10561,
16,
7239,
16,
14871,
273,
374,
4672,
2552,
2029,
468,
1788,
279,
394,
756,
2029,
273,
756,
18,
907,
12,
350,
273,
14871,
13,
775,
30,
468,
2884,
585,
471,
2608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
907,
12,
10561,
16,
7239,
16,
14871,
273,
374,
4672,
2552,
2029,
468,
1788,
279,
394,
756,
2029,
273,
756,
18,
907,
12,
350,
273,
14871,
13,
775,
30,
468,
2884,
585,
471,
2608,
... |
(minx, miny, maxx, maxy)) | (minx, miny, maxx, maxy), image_filter[self.resampling]) | def _transform_simple(self, src_img, src_bbox, dst_size, dst_bbox): """ Do a simple crop transformation. """ src_quad = (0, 0, src_img.size[0], src_img.size[1]) to_src_px = make_lin_transf(src_bbox, src_quad) minx, miny = to_src_px((dst_bbox[0], dst_bbox[3])) maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1])) result = ... | d71ff9dbf5980704a57696da894a900aa7194c0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/d71ff9dbf5980704a57696da894a900aa7194c0b/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6547,
67,
9647,
12,
2890,
16,
1705,
67,
6081,
16,
1705,
67,
20737,
16,
3046,
67,
1467,
16,
3046,
67,
20737,
4672,
3536,
2256,
279,
4143,
7987,
8620,
18,
3536,
1705,
67,
21733,
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,
389,
6547,
67,
9647,
12,
2890,
16,
1705,
67,
6081,
16,
1705,
67,
20737,
16,
3046,
67,
1467,
16,
3046,
67,
20737,
4672,
3536,
2256,
279,
4143,
7987,
8620,
18,
3536,
1705,
67,
21733,
273... |
def drop_column(self, table, col_name): | def drop_column(self, table_name, col_name): | def drop_column(self, table, col_name): """ Takes a while, thanks to SQLite... """ # Check input: if not self.__skeleton__.has_key(table): raise ValueError("Database has no table %s."%table) if not self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s has no column %s."%(table,col_name)) | 5ddf79d83938a9c0191ec3af2f60e264a74ecef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5ddf79d83938a9c0191ec3af2f60e264a74ecef9/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
2827,
12,
2890,
16,
1014,
67,
529,
16,
645,
67,
529,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
225,
3536,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
2827,
12,
2890,
16,
1014,
67,
529,
16,
645,
67,
529,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
225,
3536,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771... |
def getClump(self): | def getClump(self, display=False): | def getClump(self): psfImage = self.getImage() # # Embed psfImage into a larger image so we can smooth when measuring it # width, height = psfImage.getWidth(), psfImage.getHeight() largeImg = psfImage.Factory(2*width, 2*height) largeImg.set(0) | 547b519462d554ac7b81db265a3cd62e62263aa9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6523/547b519462d554ac7b81db265a3cd62e62263aa9/Psf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13674,
2801,
12,
2890,
16,
2562,
33,
8381,
4672,
28687,
2040,
273,
365,
18,
588,
2040,
1435,
468,
468,
14564,
28687,
2040,
1368,
279,
10974,
1316,
1427,
732,
848,
11957,
1347,
10017,
4017,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13674,
2801,
12,
2890,
16,
2562,
33,
8381,
4672,
28687,
2040,
273,
365,
18,
588,
2040,
1435,
468,
468,
14564,
28687,
2040,
1368,
279,
10974,
1316,
1427,
732,
848,
11957,
1347,
10017,
4017,... |
class Error: pass | class Error(Exception): """Base class for client errors.""" def __str__(self): return repr(self) | def _decode(data, encoding, is8bit=re.compile("[\x80-\xff]").search): # decode non-ascii string (if possible) if unicode and is8bit(data): data = unicode(data, encoding) return data | cd906440fbd0694e165a09262268a608df82deeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cd906440fbd0694e165a09262268a608df82deeb/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
12,
892,
16,
2688,
16,
353,
28,
3682,
33,
266,
18,
11100,
2932,
7438,
92,
3672,
6943,
5297,
4279,
2934,
3072,
4672,
468,
2495,
1661,
17,
9184,
533,
261,
430,
3323,
13,
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,
3922,
12,
892,
16,
2688,
16,
353,
28,
3682,
33,
266,
18,
11100,
2932,
7438,
92,
3672,
6943,
5297,
4279,
2934,
3072,
4672,
468,
2495,
1661,
17,
9184,
533,
261,
430,
3323,
13,
309,
... |
glEnable(GL_LINE_SMOOTH) glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE) | def drawPlaneGrid(color, w, h, uw, uh): '''Draw grid lines with <color>, unit size is <uw>*<uh>''' if uw > w: uw = w if uh > h: uh = h Z_OFF = 0.0 #0.001 glDisable(GL_LIGHTING) glColor3fv(color) hw = w/2.0; hh = h/2.0 glEnable(GL_LINE_SMOOTH) glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE)#_MINUS_SRC_ALPHA) ... | 18d34bb04bd8176d31c8522d990515bc7b962fe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/18d34bb04bd8176d31c8522d990515bc7b962fe3/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
19505,
6313,
12,
3266,
16,
341,
16,
366,
16,
582,
91,
16,
582,
76,
4672,
9163,
6493,
3068,
2362,
598,
411,
3266,
20401,
2836,
963,
353,
411,
89,
91,
34,
14,
32,
89,
76,
1870,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19505,
6313,
12,
3266,
16,
341,
16,
366,
16,
582,
91,
16,
582,
76,
4672,
9163,
6493,
3068,
2362,
598,
411,
3266,
20401,
2836,
963,
353,
411,
89,
91,
34,
14,
32,
89,
76,
1870,
... | |
return self._b[n] | return self._b[n - 1] | def _eval(self, n): if len(self._b) < n: self._precompute(n - len(self._b) + 1) return self._b[n] | 5ad0f14fef547e66c89adc64319f63972b6df436 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5ad0f14fef547e66c89adc64319f63972b6df436/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
562,
12,
2890,
6315,
70,
13,
411,
290,
30,
365,
6315,
1484,
9200,
12,
82,
300,
562,
12,
2890,
6315,
70,
13,
397,
404,
13,
327,
365,
6315,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
562,
12,
2890,
6315,
70,
13,
411,
290,
30,
365,
6315,
1484,
9200,
12,
82,
300,
562,
12,
2890,
6315,
70,
13,
397,
404,
13,
327,
365,
6315,
7... |
self.codeafter=True self.runCode(self.wizard[currStep]["codeafter"]) async = self.runCode(self.wizard[currStep]["codeafter_async"]) if self.wizard[currStep]["nextstep"] is not None: self.currStep = self.getStepWithID(self.wizard[currStep]["nextstep"]) if gotoStep is not None: self.currStep = self.getStepWithID(gotoStep... | self.codeafterA=True self.runCode(self.wizard[self.prevStep]["codeafter"]) if self.runCode(self.wizard[self.prevStep]["codeafter_async"]): if self.updateValues in self.onShown: self.onShown.remove(self.updateValues) | def finished(self, gotoStep = None, *args, **kwargs): print "finished" currStep = self.currStep | c9faacfea68f90597fb82504790dc1f7d7b71f3f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/c9faacfea68f90597fb82504790dc1f7d7b71f3f/Wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6708,
12,
2890,
16,
2897,
4160,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
1172,
315,
13527,
6,
4306,
4160,
273,
365,
18,
17016,
4160,
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,
6708,
12,
2890,
16,
2897,
4160,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
1172,
315,
13527,
6,
4306,
4160,
273,
365,
18,
17016,
4160,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assert_((time.time() - now) >= 1) | self.assert_((time.time() - now) >= 1) | def run(): with JSContext(g) as ctxt: ctxt.eval(""" started.wait(); for (i=0; i<10; i++) { sleep(100); } finished.release(); """) | 39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
598,
6756,
1042,
12,
75,
13,
487,
14286,
30,
14286,
18,
8622,
2932,
3660,
5746,
18,
7048,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
31,
277,
27245,
288,
5329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
13332,
598,
6756,
1042,
12,
75,
13,
487,
14286,
30,
14286,
18,
8622,
2932,
3660,
5746,
18,
7048,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
31,
277,
27245,
288,
5329,
... |
self.required_values.extend(["grp","grp/use"]) | self.required_values.extend(["grp"]) | def __init__(self,spec,addlargs): self.required_values=["version_stamp","target","subarch",\ "rel_type","profile","snapshot","source_subpath"] self.valid_values=self.required_values[:] if not addlargs.has_key("grp"): raise CatalystError,"Required value \"grp\" not specified in spec." self.required_values.extend(["grp... | 51a3fc8cdae6b597f3876d511159da6bb1ef4fee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/51a3fc8cdae6b597f3876d511159da6bb1ef4fee/grp_target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
365,
18,
4718,
67,
2372,
33,
9614,
1589,
67,
14317,
15937,
3299,
15937,
1717,
991,
3113,
64,
315,
2878,
67,
723,
15937,
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,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
365,
18,
4718,
67,
2372,
33,
9614,
1589,
67,
14317,
15937,
3299,
15937,
1717,
991,
3113,
64,
315,
2878,
67,
723,
15937,
5... |
if res.numberOfLearners > 1: | if res and res.numberOfLearners > 1: | def setLearner(self, learner, id=None): """add/remove a learner""" if learner: # a new or updated learner if id in self.learners: self.learners[id].learner = learner self.learners[id].name = learner.name else: # new learner self.learners[id] = Learner(learner, id) self.score([id]) else: # remove a learner and correspon... | 70d3be61d668a18e0f8c4aa875a591ec3655f9dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/70d3be61d668a18e0f8c4aa875a591ec3655f9dd/OWTestLearners.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1682,
24834,
12,
2890,
16,
884,
24834,
16,
612,
33,
7036,
4672,
3536,
1289,
19,
4479,
279,
884,
24834,
8395,
309,
884,
24834,
30,
468,
279,
394,
578,
3526,
884,
24834,
309,
612,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1682,
24834,
12,
2890,
16,
884,
24834,
16,
612,
33,
7036,
4672,
3536,
1289,
19,
4479,
279,
884,
24834,
8395,
309,
884,
24834,
30,
468,
279,
394,
578,
3526,
884,
24834,
309,
612,
3... |
function_name = Optional( GET ^ SET ) + identifier | function_name = Optional( GET ^ SET ) + identifier("name") | def getMetaData(s,l,t): meta = ASMetaTag(t.name) for att in t.attributes: if att.key == "": meta.addParam(att.value) else: meta.addParam(att.value,att.key) return meta | 977ba618732a36c027a6f53d26c86a40da63238e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/977ba618732a36c027a6f53d26c86a40da63238e/asGrammar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23028,
12,
87,
16,
80,
16,
88,
4672,
2191,
273,
5355,
2781,
1805,
12,
88,
18,
529,
13,
225,
364,
2403,
316,
268,
18,
4350,
30,
309,
2403,
18,
856,
422,
1408,
30,
2191,
18,
1289,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23028,
12,
87,
16,
80,
16,
88,
4672,
2191,
273,
5355,
2781,
1805,
12,
88,
18,
529,
13,
225,
364,
2403,
316,
268,
18,
4350,
30,
309,
2403,
18,
856,
422,
1408,
30,
2191,
18,
1289,
78... |
return Ideal(PolynomialRing(base_ring, len(vars.split(",")), vars), polys) | return PolynomialRing(base_ring, len(vars.split(",")), vars).ideal(polys) | def _dom2ideal(node): """ """ l = [] | 098299fb7ba92a5e5a685d29ddb173b941be2018 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/098299fb7ba92a5e5a685d29ddb173b941be2018/symbolic_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
22,
831,
287,
12,
2159,
4672,
3536,
3536,
328,
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,... | [
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,
389,
9859,
22,
831,
287,
12,
2159,
4672,
3536,
3536,
328,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the... | dispCylinderActionText = \ "<u><b>Display Cylinder</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected "\ "chunks to <b>Cylinder</b> mode. Chunks are "\ "rendered as cylinders. "\ "</p>"\ "<p>If no chunks are selected, then this action "\ "... | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
ALGORITHM: These are simple functions of the b invariants. | ALGORITHM: These are simple functions of the b-invariants. | def c_invariants(self): """ The c-invariants of this elliptic curve. | b731b462902660c0112a8494ebc6f58ef36102b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b731b462902660c0112a8494ebc6f58ef36102b5/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
267,
15886,
12,
2890,
4672,
3536,
1021,
276,
17,
267,
15886,
434,
333,
415,
549,
21507,
8882,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
267,
15886,
12,
2890,
4672,
3536,
1021,
276,
17,
267,
15886,
434,
333,
415,
549,
21507,
8882,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
gdaltest.setup_run( 'pam_md' ) | gdaltest.setup_run( 'mask' ) | def mask_3(): if gdaltest.have_ng == 0: return 'skip' ds = gdal.Open('data/stefan_full_rgba.png') # Test first mask. band = ds.GetRasterBand(1) if band.GetMaskFlags() != gdal.GMF_ALPHA + gdal.GMF_PER_DATASET: gdaltest.post_reason( 'Did not get expected mask.' ) return 'fail' cs = band.GetMaskBand().Checksum() if ... | 05b43cf5ac98744353d44956617766a6fe3ee394 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/05b43cf5ac98744353d44956617766a6fe3ee394/mask.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3066,
67,
23,
13332,
225,
309,
15551,
2390,
395,
18,
21516,
67,
3368,
422,
374,
30,
327,
296,
7457,
11,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
334,
10241,
304,
67,
2854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3066,
67,
23,
13332,
225,
309,
15551,
2390,
395,
18,
21516,
67,
3368,
422,
374,
30,
327,
296,
7457,
11,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
334,
10241,
304,
67,
2854,
... |
except pysnmp.smi.error.SmiError: | except error.SmiError: | def sendNotification( self, snmpEngine, notificationTarget, notificationName, additionalNames=None, contextName='', cbFun=None, cbCtx=None ): # 3.3 ( notifyTag, notifyType ) = config.getNotificationInfo( snmpEngine, notificationTarget ) pendingReqsCount = { 0: 0 } for targetAddrName in config.getTargetNames(snmpEngine,... | 2ef6d66432dc958997df2634ee4c2d01795d156e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/2ef6d66432dc958997df2634ee4c2d01795d156e/ntforg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4386,
12,
365,
16,
15366,
4410,
16,
3851,
2326,
16,
3851,
461,
16,
3312,
1557,
33,
7036,
16,
819,
461,
2218,
2187,
2875,
22783,
33,
7036,
16,
2875,
6442,
33,
7036,
262,
30,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4386,
12,
365,
16,
15366,
4410,
16,
3851,
2326,
16,
3851,
461,
16,
3312,
1557,
33,
7036,
16,
819,
461,
2218,
2187,
2875,
22783,
33,
7036,
16,
2875,
6442,
33,
7036,
262,
30,
468,
... |
cfg.set(section_name, "publisher", "False") | cfg[section_name][u"publisher"] = u"False" | def save(rv, filename): """Save selected settings information, including all sharing accounts and shares (whether published or subscribed), to an INI file""" cfg = ConfigParser.ConfigParser() # Sharing accounts currentAccount = schema.ns("osaf.sharing", rv).currentWebDAVAccount.item section_prefix = "sharing_account"... | 5fcc26e162e0c42f8a4ee0116787795eb4f10175 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5fcc26e162e0c42f8a4ee0116787795eb4f10175/settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
4962,
16,
1544,
4672,
3536,
4755,
3170,
1947,
1779,
16,
6508,
777,
21001,
9484,
471,
24123,
261,
3350,
2437,
9487,
578,
16445,
3631,
358,
392,
2120,
45,
585,
8395,
225,
2776,
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,
1923,
12,
4962,
16,
1544,
4672,
3536,
4755,
3170,
1947,
1779,
16,
6508,
777,
21001,
9484,
471,
24123,
261,
3350,
2437,
9487,
578,
16445,
3631,
358,
392,
2120,
45,
585,
8395,
225,
2776,
2... |
entry = yt.upload_video(video_file, complete_title, description, category, keywords) | entry = yt.upload_video(splitted_video_path, complete_title, description, category, keywords) | def main_upload(args): """Upload video to Youtube.""" usage = """Usage: %prog [OPTIONS] EMAIL PASSWORD FILE TITLE DESCRIPTION CATEGORY KEYWORDS Upload videos to youtube.""" parser = optparse.OptionParser(usage, version=VERSION) parser.add_option('-c', '--get-categories', dest='get_categories', action="store_true", def... | ed6bf904a238788bf9d233eb6f7ddcd0b645eead /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9246/ed6bf904a238788bf9d233eb6f7ddcd0b645eead/youtube-upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
6327,
12,
1968,
4672,
3536,
4777,
6191,
358,
1624,
21105,
12123,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
12422,
65,
25229,
23446,
7527,
29406,
21736,
31524,
19281,
5311,
23287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
6327,
12,
1968,
4672,
3536,
4777,
6191,
358,
1624,
21105,
12123,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
12422,
65,
25229,
23446,
7527,
29406,
21736,
31524,
19281,
5311,
23287,... |
'body': {'pat': r'^Target body name:\s+\d*\s*(\w+)'}, | 'NAME': {'pat': r'^Target body name:\s+\d*\s*(\w+)'}, | def readJPLephem(fmfile): """ Reads a JPL Horizons text file (see http://ssd.jpl.nasa.gov/horizons.cgi#top ) for a solar system object and returns various quantities in a dictionary. The dict will be blank ({}) if there is a failure. """ retdict = {} casalog.origin('readJPLephem') # Try opening fmfile now, because ot... | 5546e2d104795dbfd8f04699e4e3b396ed11f080 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/5546e2d104795dbfd8f04699e4e3b396ed11f080/JPLephem_reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
29532,
1682,
12549,
12,
25089,
768,
4672,
3536,
29185,
279,
804,
6253,
670,
5331,
7008,
977,
585,
261,
5946,
1062,
2207,
1049,
72,
18,
78,
412,
18,
82,
345,
69,
18,
75,
1527,
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,
855,
29532,
1682,
12549,
12,
25089,
768,
4672,
3536,
29185,
279,
804,
6253,
670,
5331,
7008,
977,
585,
261,
5946,
1062,
2207,
1049,
72,
18,
78,
412,
18,
82,
345,
69,
18,
75,
1527,
19,
... |
names = [] for id in users: user = Ecouser.get(id) names.append(user.fullname()) user.delete() the_verb = "has" if len(names) > 1: the_verb = "have" message("'" + ", ".join(names) + "' " + the_verb + " been deleted.") | if len(users) < 1: message("No Users selected.") else: names = [] for id in users: user = Ecouser.get(id) names.append(user.fullname()) user.delete() the_verb = "has" if len(names) > 1: the_verb = "have" message("'" + ", ".join(names) + "' " + the_verb + " been deleted.") | def delete_users(self,users): names = [] for id in users: # get the user, remove him from all his courses and delete him user = Ecouser.get(id) names.append(user.fullname()) user.delete() | 89695e2663021b8894b2f00223dee5447867e4b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5854/89695e2663021b8894b2f00223dee5447867e4b1/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5577,
12,
2890,
16,
5577,
4672,
1257,
273,
5378,
364,
612,
316,
3677,
30,
468,
336,
326,
729,
16,
1206,
366,
381,
628,
777,
18423,
17224,
471,
1430,
366,
381,
729,
273,
512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5577,
12,
2890,
16,
5577,
4672,
1257,
273,
5378,
364,
612,
316,
3677,
30,
468,
336,
326,
729,
16,
1206,
366,
381,
628,
777,
18423,
17224,
471,
1430,
366,
381,
729,
273,
512,
... |
X3 = singular.extcurve(1, X2) R = X3[1][5] | v = X2[3].sage_flattened_str_list() v = [ v[i].partition(',') for i in range(len(v)) ] pnts = [ ( int(v[i][0]), int(v[i][2])-1 ) for i in range(len(v))] R = X2[5][1][1] | def riemann_roch_basis(self, D): r""" Return a basis for the Riemann-Roch space corresponding to `D`. .. warning:: | cfd0c5535db92e52e7b8ddd12fd21dd75dd1821e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cfd0c5535db92e52e7b8ddd12fd21dd75dd1821e/projective_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12347,
351,
1072,
67,
303,
343,
67,
23774,
12,
2890,
16,
463,
4672,
436,
8395,
2000,
279,
10853,
364,
326,
21688,
351,
1072,
17,
54,
9842,
3476,
4656,
358,
1375,
40,
8338,
225,
6116,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12347,
351,
1072,
67,
303,
343,
67,
23774,
12,
2890,
16,
463,
4672,
436,
8395,
2000,
279,
10853,
364,
326,
21688,
351,
1072,
17,
54,
9842,
3476,
4656,
358,
1375,
40,
8338,
225,
6116,
3... |
context=context) | context=local_context) | def get_shortage(self, cursor, user, location_id, product_id, min_date, max_date, min_date_qty, order_point=None, context=None): """ Return between min_date and max_date the first date where the stock quantity is less than the minimal quantity and the smallest stock quantity in the interval or None if there is no date... | 723339f594ada60ac6712394aacf043390322b2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9299/723339f594ada60ac6712394aacf043390322b2a/purchase_request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6620,
410,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
350,
16,
3017,
67,
350,
16,
1131,
67,
712,
16,
943,
67,
712,
16,
1131,
67,
712,
67,
85,
4098,
16,
1353,
67,
1153,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6620,
410,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
350,
16,
3017,
67,
350,
16,
1131,
67,
712,
16,
943,
67,
712,
16,
1131,
67,
712,
67,
85,
4098,
16,
1353,
67,
1153,
3... |
conn = self.msg.getheader('connection') if conn: conn = conn.lower() self.will_close = conn.find('close') != -1 or \ ( self.version != 11 and \ not self.msg.getheader('keep-alive') ) else: self.will_close = self.version != 11 and \ not self.msg.getheader('keep-alive') | self.will_close = self._check_close() | def begin(self): if self.msg is not None: # we've already started reading the response return | 5db29f3cdd6adeb4740149d2e5fb3375bac92d26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5db29f3cdd6adeb4740149d2e5fb3375bac92d26/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
4672,
309,
365,
18,
3576,
353,
486,
599,
30,
468,
732,
8081,
1818,
5746,
6453,
326,
766,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
4672,
309,
365,
18,
3576,
353,
486,
599,
30,
468,
732,
8081,
1818,
5746,
6453,
326,
766,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
location = None if re.match("[a-zA-Z]+", smsList[0]): location = smsList[0] smsList.pop(0) elif len(smsList[0]) == 5: location = None smsList.pop(0) | smsList = smsList[len(locationList):] location = " ".join(locationList) print location print smsList | def massageName(name, limit): newName = str(name)[0:limit] if len(name) > limit: newName += "..." return newName | f74c4008b0aa5a71ea4eaee8549e6c2bbd36786c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/840/f74c4008b0aa5a71ea4eaee8549e6c2bbd36786c/smsupc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8039,
410,
461,
12,
529,
16,
1800,
4672,
13253,
273,
609,
12,
529,
25146,
20,
30,
3595,
65,
309,
562,
12,
529,
13,
405,
1800,
30,
13253,
1011,
26456,
327,
13253,
225,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8039,
410,
461,
12,
529,
16,
1800,
4672,
13253,
273,
609,
12,
529,
25146,
20,
30,
3595,
65,
309,
562,
12,
529,
13,
405,
1800,
30,
13253,
1011,
26456,
327,
13253,
225,
2,
-100,
-100,
... |
dbg ("VS_RCFile: Setting value %s to %s"%(key, value)) | dbg (" VS_RCFile: Setting value %s to %s"%(key, value)) | def __init__ (self): self.type = "RCFile" self.rcfilename = pwd.getpwuid (os.getuid ())[5] + "/.terminatorrc" if os.path.exists (self.rcfilename): rcfile = open (self.rcfilename) rc = rcfile.readlines () rcfile.close () | 842b5a0207f96131d410a9b20b0b52500aa93aa9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/842b5a0207f96131d410a9b20b0b52500aa93aa9/terminatorconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
365,
18,
723,
273,
315,
11529,
812,
6,
365,
18,
1310,
3459,
273,
14720,
18,
588,
14921,
1911,
261,
538,
18,
588,
1911,
1832,
25146,
25,
65,
397,
2206,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
4672,
365,
18,
723,
273,
315,
11529,
812,
6,
365,
18,
1310,
3459,
273,
14720,
18,
588,
14921,
1911,
261,
538,
18,
588,
1911,
1832,
25146,
25,
65,
397,
2206,... |
if col_id in col_id2NA_mismatch_rate and col_id2NA_mismatch_rate[col_id][1]<=max_mismatch_rate: | if col_id in col_id_wanted_set: | def removeColsByMismatchRate(cls, snpData, col_id2NA_mismatch_rate, max_mismatch_rate=1): """ 2008-05-19 """ sys.stderr.write("Removing cols whose mismatch_rate >%s ..."%(max_mismatch_rate)) no_of_cols = 0 #extra computing time a bit, but to save memory for col_id in snpData.col_id_ls: if col_id in col_id2NA_mismatch_r... | a0db0d6d1d040c21cd05d0fc1b5346c1ed01e4df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/a0db0d6d1d040c21cd05d0fc1b5346c1ed01e4df/SNP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
8011,
858,
16901,
4727,
12,
6429,
16,
28648,
751,
16,
645,
67,
350,
22,
11277,
67,
11173,
1916,
67,
5141,
16,
943,
67,
11173,
1916,
67,
5141,
33,
21,
4672,
3536,
4044,
28,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
8011,
858,
16901,
4727,
12,
6429,
16,
28648,
751,
16,
645,
67,
350,
22,
11277,
67,
11173,
1916,
67,
5141,
16,
943,
67,
11173,
1916,
67,
5141,
33,
21,
4672,
3536,
4044,
28,
17,
... |
g.add(sr.draw()) | g.add(sr) | def draw(self): g = Group() ys = self.bottomPadding+(self.triangleHeight/2)+self.sourceLabelOffset+self.sourceLabelFontSize if self.background: x,y = self._getDrawingDimensions() g.add(Rect(-self.leftPadding,-ys,x,y, strokeColor=None, strokeWidth=0, fillColor=self.background)) | 1a4c1fa27e25d7181b12cb1772c1e32db9507de6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/1a4c1fa27e25d7181b12cb1772c1e32db9507de6/slidebox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
314,
273,
3756,
1435,
16036,
273,
365,
18,
9176,
9485,
15,
12,
2890,
18,
16857,
4341,
2686,
19,
22,
27921,
2890,
18,
3168,
2224,
2335,
15,
2890,
18,
3168,
2224,
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,
3724,
12,
2890,
4672,
314,
273,
3756,
1435,
16036,
273,
365,
18,
9176,
9485,
15,
12,
2890,
18,
16857,
4341,
2686,
19,
22,
27921,
2890,
18,
3168,
2224,
2335,
15,
2890,
18,
3168,
2224,
2... |
self.nb = wxNotebook(splitter2, -1) | self.nb = wxNotebook(nbParent, -1) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 5a7823f5999fdcaec5b43d18c6a5f299654e5492 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5a7823f5999fdcaec5b43d18c6a5f299654e5492/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
16,
963,
273,
261,
27,
2947,
16,
1381,
3361,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
16,
963,
273,
261,
27,
2947,
16,
1381,
3361,
3719... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.