rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
error = int(error.split(None, 1)) | error = int(error.split(None, 1)[0]) | def __init__(self, applications, catch=(404,)): self.apps = applications self.catch_codes = {} self.catch_exceptions = [] for error in catch: if isinstance(error, str): error = int(error.split(None, 1)) if isinstance(error, httpexceptions.HTTPException): exc = error code = error.code else: exc = httpexceptions.get_exce... | ddfe81497a3ba9d729b75d1d040e5d954504b190 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/ddfe81497a3ba9d729b75d1d040e5d954504b190/cascade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12165,
16,
1044,
28657,
11746,
16,
3719,
30,
365,
18,
11411,
273,
12165,
365,
18,
14683,
67,
7000,
273,
2618,
365,
18,
14683,
67,
11855,
273,
5378,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12165,
16,
1044,
28657,
11746,
16,
3719,
30,
365,
18,
11411,
273,
12165,
365,
18,
14683,
67,
7000,
273,
2618,
365,
18,
14683,
67,
11855,
273,
5378,
364,
... |
retString += string.replace("\n", '') | retString += string.replace("\n", '').replace("\r", '') | def _get_header(str): '''Get the full text of a header and remove newlines.''' list = decode_header(str) retString = '' for string, charset in list: retString += string.replace("\n", '') return retString | e8e207f775f5601535954c3e4738f14b5592ab21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3483/e8e207f775f5601535954c3e4738f14b5592ab21/bugmail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3374,
12,
701,
4672,
9163,
967,
326,
1983,
977,
434,
279,
1446,
471,
1206,
19181,
1093,
6309,
666,
273,
2495,
67,
3374,
12,
701,
13,
325,
780,
273,
875,
364,
533,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3374,
12,
701,
4672,
9163,
967,
326,
1983,
977,
434,
279,
1446,
471,
1206,
19181,
1093,
6309,
666,
273,
2495,
67,
3374,
12,
701,
13,
325,
780,
273,
875,
364,
533,
16,
4... |
ext = ('pyc' if __debug__ else 'pyo') expected = [base.format(ext) for base in ('__init__.{}', 'bar.{}')] expected.extend(['__init__.py', 'bar.py']) expected.sort() | expected = sorted(['__init__.py', '__init__.pyc', 'bar.py', 'bar.pyc']) | def test_legacy_paths(self): # Ensure that with the proper switch, compileall leaves legacy # pyc/pyo files, and no __pycache__ directory. retcode = subprocess.call( (sys.executable, '-m', 'compileall', '-b', '-q', self.pkgdir)) self.assertEqual(retcode, 0) # Verify the __pycache__ directory contents. cachedir = os.pat... | e80883cb43a11ecbf3ebdca16c035d50f1eb9a4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/e80883cb43a11ecbf3ebdca16c035d50f1eb9a4a/test_compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17386,
67,
4481,
12,
2890,
4672,
468,
7693,
716,
598,
326,
5338,
1620,
16,
4074,
454,
15559,
8866,
468,
2395,
71,
19,
2074,
83,
1390,
16,
471,
1158,
1001,
2074,
2493,
972,
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,
1842,
67,
17386,
67,
4481,
12,
2890,
4672,
468,
7693,
716,
598,
326,
5338,
1620,
16,
4074,
454,
15559,
8866,
468,
2395,
71,
19,
2074,
83,
1390,
16,
471,
1158,
1001,
2074,
2493,
972,
18... |
except DoesNotExistError: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Caught a DoesNotExistError while calling interface.release_vessels") | def release_resources(auth, vesselhandle_list): """ <Purpose> Release resources for a user over XMLRPC. <Arguments> auth An authorization dict of the form {'username':username, 'password':password} vesselhandle_list A list of vessel handles <Exceptions> Raises xmlrpclib Fault objects: 100, "GENIOpError" for internal GE... | e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
67,
4683,
12,
1944,
16,
331,
403,
292,
4110,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
10819,
2703,
364,
279,
729,
1879,
3167,
8087,
18,
411,
4628,
34,
1357,
1922,
6093,
2065,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
67,
4683,
12,
1944,
16,
331,
403,
292,
4110,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
10819,
2703,
364,
279,
729,
1879,
3167,
8087,
18,
411,
4628,
34,
1357,
1922,
6093,
2065,
... | |
Either x or x-m must be an integer. | Either m or x-m must be an integer. | def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. If x-m is an integer we define: binomial(x,m)= binomial(x,x-m) (This rule makes sense if x is assumed to be an integer) INPUT:: x,m -- numbers or symbolic expre... | 1a020eacc741381f5e57fe8e80e43aef5e717d5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1a020eacc741381f5e57fe8e80e43aef5e717d5f/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... |
return "/Users/gschmidt/Movies/mahnamahna.mpeg" | return self.item.getFilename() | def getPath(self): # NEEDS return "/Users/gschmidt/Movies/mahnamahna.mpeg" | 185159b0ac3bde69e8e08ff969675209f7ad5432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/185159b0ac3bde69e8e08ff969675209f7ad5432/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
12,
2890,
4672,
468,
12901,
2056,
55,
327,
2206,
6588,
19,
564,
343,
13138,
88,
19,
16727,
29028,
19,
2540,
76,
17808,
9795,
6582,
18,
19951,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
12,
2890,
4672,
468,
12901,
2056,
55,
327,
2206,
6588,
19,
564,
343,
13138,
88,
19,
16727,
29028,
19,
2540,
76,
17808,
9795,
6582,
18,
19951,
6,
2,
-100,
-100,
-100,
-100,
-100,
... |
Sub(quality, "secondaryAzimuthalGap").text = '%s' % self.EventAzimGap | Sub(quality, "azimuthalGap").text = '%s' % self.EventAzimGap Sub(quality, "secondaryAzimuthalGap") | def hyp20002XML(self): """ Returns output of hypo2000 as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.xmlEventID Sub(Sub(xml, "event_type"), "value").text = "manual" # we save P picks on Z-component and S picks on N-component # XXX standard values for unset keys!!!???!!!??? epidi... | cdb296935764c4f637eb405e18bf7388bd815e22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/cdb296935764c4f637eb405e18bf7388bd815e22/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
6976,
3103,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
16117,
83,
17172,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
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,
16117,
6976,
3103,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
16117,
83,
17172,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67... |
assert d == "e2da3bb63e6468141e4830e6f6aa220c" | assert d == "c4089359af431bb2962d6a8e457dd86f" | def exercise_atoms(): pdb_inp = pdb.input(source_info=None, lines=flex.split_lines("""\ | 57535404decd05f3a5832686a97f513c3085e932 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/57535404decd05f3a5832686a97f513c3085e932/tst_hierarchy_v2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
14937,
13332,
10892,
67,
31647,
273,
10892,
18,
2630,
12,
3168,
67,
1376,
33,
7036,
16,
2362,
33,
27592,
18,
4939,
67,
3548,
2932,
3660,
64,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
14937,
13332,
10892,
67,
31647,
273,
10892,
18,
2630,
12,
3168,
67,
1376,
33,
7036,
16,
2362,
33,
27592,
18,
4939,
67,
3548,
2932,
3660,
64,
2,
-100,
-100,
-100,
-100,
-100,
... |
self.title, self.input = input.split('\n', 1) if self.title: self.title = self.title.strip() | self.title = title self.input = input | def __init__(self, input, correct, file, line, setup=None, teardown=None, context=None): unittest.TestCase.__init__(self, 'test') self.title, self.input = input.split('\n', 1) if self.title: self.title = self.title.strip() self.correct = correct self.file = file self.line = line self._setup = setup self._teardown = tea... | 6648663ff7931a79e9e83e80dd03f1448d2d7676 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/6648663ff7931a79e9e83e80dd03f1448d2d7676/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
3434,
16,
585,
16,
980,
16,
3875,
33,
7036,
16,
28196,
33,
7036,
16,
819,
33,
7036,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
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,
1001,
2738,
972,
12,
2890,
16,
810,
16,
3434,
16,
585,
16,
980,
16,
3875,
33,
7036,
16,
28196,
33,
7036,
16,
819,
33,
7036,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
28... |
return [] | return {} | def readCharBlacklist(self, char_blacklist_file): if not char_blacklist_file: return [] char_blacklist = {} for char in open(char_blacklist_file).readlines(): if char: char = int(char.strip()) char_blacklist[char]=True return char_blacklist | b77644c9582d2ebd46f70aa81102b546954fccc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/b77644c9582d2ebd46f70aa81102b546954fccc0/fontswitcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2156,
25811,
12,
2890,
16,
1149,
67,
22491,
67,
768,
4672,
309,
486,
1149,
67,
22491,
67,
768,
30,
327,
2618,
1149,
67,
22491,
273,
2618,
364,
1149,
316,
1696,
12,
3001,
67,
22491... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2156,
25811,
12,
2890,
16,
1149,
67,
22491,
67,
768,
4672,
309,
486,
1149,
67,
22491,
67,
768,
30,
327,
2618,
1149,
67,
22491,
273,
2618,
364,
1149,
316,
1696,
12,
3001,
67,
22491... |
if not content.type.any() and \ content.type.derived(): name = content.type.name node.set('xsi:type', name) log.debug('encoding name=(%s) on:\n\t%s', name, node) node.addPrefix(Namespace.xsins[0], Namespace.xsins[1]) | if not content.type.any() and content.type.derived(): name = content.type.name ns = content.type.namespace() ref = ':'.join((ns[0], name)) node.set('xsi:type', ref) log.debug('encoding name=(%s)', name) node.addPrefix(ns[0], ns[1]) node.addPrefix(Namespace.xsins[0], Namespace.xsins[1]) | def encode(self, node, content): """ Add (soap) encoding information @param node: The node to update. @type node: L{Element} @param content: The content for which proccessing has ended. @type content: L{Object} """ if not content.type.any() and \ content.type.derived(): name = content.type.name node.set('xsi:type', nam... | 226991359d254c1e348799799ecc745a4a739316 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5377/226991359d254c1e348799799ecc745a4a739316/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
756,
16,
913,
4672,
3536,
1436,
261,
19215,
13,
2688,
1779,
632,
891,
756,
30,
1021,
756,
358,
1089,
18,
632,
723,
756,
30,
511,
95,
1046,
97,
632,
891,
913,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
756,
16,
913,
4672,
3536,
1436,
261,
19215,
13,
2688,
1779,
632,
891,
756,
30,
1021,
756,
358,
1089,
18,
632,
723,
756,
30,
511,
95,
1046,
97,
632,
891,
913,
30,
... |
Return True if this group is cyclic. | Return ``True`` if this group is cyclic. | def is_cyclic(self): """ Return True if this group is cyclic. EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)(4,5)', '(1,2,3,4,5)']) sage: G.is_cyclic() False sage: G = PermutationGroup(['(1,2,3)(4,5)']) sage: G.is_cyclic() True """ return self._gap_().IsCyclic().bool() | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2431,
18964,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
30383,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2431,
18964,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
30383,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
32... |
log.is_success = false | log.is_success = False | def check_mirror_url(mirror_url): url = mirror_url.url + 'lastsync' logger.info("checking URL %s" % url) log = MirrorLog(url=mirror_url, check_time=datetime.utcnow()) try: start = time.time() result = urllib2.urlopen(url, timeout=10) data = result.read() result.close() end = time.time() # lastsync should be an epoch va... | fe5e460d0607cb0989a92441afe2bdd52640f214 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/fe5e460d0607cb0989a92441afe2bdd52640f214/mirrorcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
27197,
67,
718,
12,
27197,
67,
718,
4672,
880,
273,
15593,
67,
718,
18,
718,
397,
296,
2722,
8389,
11,
1194,
18,
1376,
2932,
24609,
1976,
738,
87,
6,
738,
880,
13,
613,
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,
866,
67,
27197,
67,
718,
12,
27197,
67,
718,
4672,
880,
273,
15593,
67,
718,
18,
718,
397,
296,
2722,
8389,
11,
1194,
18,
1376,
2932,
24609,
1976,
738,
87,
6,
738,
880,
13,
613,
273,... |
os.makedirs(os.path.join(mm_cfg.LIST_DATA_DIR, name), 02775) | try: os.makedirs(os.path.join(mm_cfg.LIST_DATA_DIR, name), 02775) except OSError: raise Errors.MMUnknownListError | def Create(self, name, admin, crypted_password): if Utils.list_exists(name): raise Errors.MMListAlreadyExistsError, name Utils.ValidateEmail(admin) omask = os.umask(0) try: os.makedirs(os.path.join(mm_cfg.LIST_DATA_DIR, name), 02775) finally: os.umask(omask) self._full_path = os.path.join(mm_cfg.LIST_DATA_DIR, name) se... | 03cefec889a189ac182db77a254bee97fc3d4ac7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/03cefec889a189ac182db77a254bee97fc3d4ac7/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
12,
2890,
16,
508,
16,
3981,
16,
276,
4567,
67,
3664,
4672,
309,
6091,
18,
1098,
67,
1808,
12,
529,
4672,
1002,
9372,
18,
8206,
682,
16686,
668,
16,
508,
6091,
18,
4270,
4134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
12,
2890,
16,
508,
16,
3981,
16,
276,
4567,
67,
3664,
4672,
309,
6091,
18,
1098,
67,
1808,
12,
529,
4672,
1002,
9372,
18,
8206,
682,
16686,
668,
16,
508,
6091,
18,
4270,
4134,
... |
if _UseAnimation: self.canvas.mpl_connect('draw_event', self._handleDrawEvent) | self.canvas.mpl_connect('draw_event', self._handleDrawEvent) | def __init__(self, master, timeRange = 3600, width = 8, height = 2, numSubplots = 1, showGrid = True, dateFormat = "%H:%M:%S", updateInterval = None, cnvTimeFunc = None, doAutoscale = True, | 3b283b48ede157cec1c6e79ad973ff5a399f5fbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6354/3b283b48ede157cec1c6e79ad973ff5a399f5fbe/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
813,
2655,
273,
12396,
16,
1835,
273,
1725,
16,
2072,
273,
576,
16,
818,
1676,
13214,
273,
404,
16,
2405,
6313,
273,
1053,
16,
16996,
273,
2213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
813,
2655,
273,
12396,
16,
1835,
273,
1725,
16,
2072,
273,
576,
16,
818,
1676,
13214,
273,
404,
16,
2405,
6313,
273,
1053,
16,
16996,
273,
2213... |
if is_pdftohtml: | if is_pdftohtml and length > -1: | def dump(raw, where): import os dp = getattr(self.extra_opts, 'debug_pipeline', None) if dp and os.path.exists(dp): odir = os.path.join(dp, 'input') if os.path.exists(odir): odir = os.path.join(odir, where) if not os.path.exists(odir): os.makedirs(odir) name, i = None, 0 while not name or os.path.exists(os.path.join(od... | 0ce2126cdc5b78440059018355494e2bdb3fd95f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/0ce2126cdc5b78440059018355494e2bdb3fd95f/preprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
1899,
16,
1625,
4672,
1930,
1140,
9986,
273,
3869,
12,
2890,
18,
7763,
67,
4952,
16,
296,
4148,
67,
14511,
2187,
599,
13,
309,
9986,
471,
1140,
18,
803,
18,
1808,
12,
9295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
1899,
16,
1625,
4672,
1930,
1140,
9986,
273,
3869,
12,
2890,
18,
7763,
67,
4952,
16,
296,
4148,
67,
14511,
2187,
599,
13,
309,
9986,
471,
1140,
18,
803,
18,
1808,
12,
9295,
... |
val = ((x1-x0)* aprioriDist[values[i]])/len(self.data) | if i == len(aprioriDist)-1: v = x1-x0 - total else: v = int(((x1-x0)* aprioriDist[values[i]])/float(len(self.data))) | def addRect(self, x0, x1, y0, y1, condition = "", usedAttrs = [], attrVals = ""): x0 = int(x0); x1 = int(x1); y0 = int(y0); y1 = int(y1) if x0 == x1: x1+=1 if y0 == y1: y1+=1 | e9d9dacd9a0eba29f2c3082ac6763755c24eb485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/e9d9dacd9a0eba29f2c3082ac6763755c24eb485/OWMosaicDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6120,
12,
2890,
16,
619,
20,
16,
619,
21,
16,
677,
20,
16,
677,
21,
16,
2269,
273,
23453,
1399,
8262,
273,
5378,
16,
1604,
13169,
273,
1408,
4672,
619,
20,
273,
509,
12,
92,
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,
527,
6120,
12,
2890,
16,
619,
20,
16,
619,
21,
16,
677,
20,
16,
677,
21,
16,
2269,
273,
23453,
1399,
8262,
273,
5378,
16,
1604,
13169,
273,
1408,
4672,
619,
20,
273,
509,
12,
92,
2... |
if __namedColors is not None: return __namedColors | global _namedColors if _namedColors is not None: return _namedColors | def getAllNamedColors(): #returns a dictionary of all the named ones in the module # uses a singleton for efficiency if __namedColors is not None: return __namedColors import colors __namedColors = {} for (name, value) in colors.__dict__.items(): if isinstance(value, Color): __namedColors[name] = value return __namedC... | 3daa68405a22f63b744187a24ada665bcc516ed9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/3daa68405a22f63b744187a24ada665bcc516ed9/colors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5514,
7604,
12570,
13332,
468,
6154,
279,
3880,
434,
777,
326,
4141,
5945,
316,
326,
1605,
468,
4692,
279,
6396,
364,
30325,
2552,
389,
13188,
12570,
309,
389,
13188,
12570,
353,
486,
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,
5514,
7604,
12570,
13332,
468,
6154,
279,
3880,
434,
777,
326,
4141,
5945,
316,
326,
1605,
468,
4692,
279,
6396,
364,
30325,
2552,
389,
13188,
12570,
309,
389,
13188,
12570,
353,
486,
599,... |
print self.TC.mount(0, target[0], "ME182BT") | print self.TC.mount(0, target[0], "ME182BT") | def action(self, button): selection = self.treeview.get_selection() model, iter = selection.get_selected() if iter: state = self.liststore.get(iter, 2) path = self.liststore.get(iter, 0) target = self.liststore.get(iter, 1) if state[0] == "volume not mounted": self.liststore.set(iter, 2, "mounted") print self.TC.mount(... | 1927e83351e540bbe69485b75510e7cc834a2758 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3000/1927e83351e540bbe69485b75510e7cc834a2758/gTrueCrypt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
938,
16,
1400,
273,
4421,
18,
588,
67,
8109,
1435,
309,
1400,
30,
919,
273,
365,
18,
1098,
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,
1301,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
938,
16,
1400,
273,
4421,
18,
588,
67,
8109,
1435,
309,
1400,
30,
919,
273,
365,
18,
1098,
2... |
13 0 LOAD_FAST 0 (a) | %-4d 0 LOAD_FAST 0 (a) | def _f(a): print a return 1 | ba3442719752c0249b79d560478e9add02475101 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ba3442719752c0249b79d560478e9add02475101/test_dis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
12,
69,
4672,
1172,
279,
327,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
12,
69,
4672,
1172,
279,
327,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.__query_dict__['dillhole'][0] + ' ' + \ self.__query_dict__['dillhole'][1] + ' ?' | self.__query_dict__['expression'][0] + ' ' + \ self.__query_dict__['expression'][1] + ' ?' | def __init__(self, database, query_dict=None): """ point out strings '"value"' """ if not isinstance(database, SQLDatabase): raise TypeError('%s is not a valid SQLDatabase'%database) self.__database__ = database self.__query_dict__ = query_dict # TODO: ERROR CHECKING: # 1. Confirm query_dict matches skeleton: # 2. c... | ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
225,
309,
486,
1549,
12,
6231,
16,
3063,
4254,
4672,
1002,
3580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
225,
309,
486,
1549,
12,
6231,
16,
3063,
4254,
4672,
1002,
3580,
... |
pass | if self.focused: self.focused.unfocus() self.focused = None | def cleanup( self): """called when switching to another mode""" #self._recent_key_seq = '' pass | 92973d53b4f0c7d7b893685c491dc4c205d7af3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4298/92973d53b4f0c7d7b893685c491dc4c205d7af3d/modes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
365,
4672,
3536,
11777,
1347,
30882,
358,
4042,
1965,
8395,
468,
2890,
6315,
20872,
67,
856,
67,
5436,
273,
875,
430,
365,
18,
74,
14569,
30,
365,
18,
74,
14569,
18,
318,
139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
365,
4672,
3536,
11777,
1347,
30882,
358,
4042,
1965,
8395,
468,
2890,
6315,
20872,
67,
856,
67,
5436,
273,
875,
430,
365,
18,
74,
14569,
30,
365,
18,
74,
14569,
18,
318,
139... |
author_email='zope3-dev@zope.org', | author_email='zope-dev@zope.org', | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 7659c4e3ec54d2d14237a4c971cef2e78106baac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10012/7659c4e3ec54d2d14237a4c971cef2e78106baac/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,... |
c.Run() | def call_jobqueue_set_drain(node_list, drain_flag): """Set the drain flag on the queue. | ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
4688,
4000,
67,
542,
67,
72,
7596,
12,
2159,
67,
1098,
16,
15427,
67,
6420,
4672,
3536,
694,
326,
15427,
2982,
603,
326,
2389,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
4688,
4000,
67,
542,
67,
72,
7596,
12,
2159,
67,
1098,
16,
15427,
67,
6420,
4672,
3536,
694,
326,
15427,
2982,
603,
326,
2389,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
'd': r"(?P<d>3[0-1]|[0-2]\d|\d| \d)", | 'd': r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])", | def __init__(self, locale_time=LocaleTime()): """Init inst with non-locale regexes and store LocaleTime object.""" # XXX: should 0 be valid for: # day (d), julian day (j), month (m), and hour12 (I)? super(TimeRE,self).__init__({ # The " \d" option is to make %c from ANSI C work 'd': r"(?P<d>3[0-1]|[0-2]\d|\d| ... | 50f001a2bec2167530d44e08a09c827478352447 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/50f001a2bec2167530d44e08a09c827478352447/_strptime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2573,
67,
957,
33,
3916,
950,
1435,
4672,
3536,
2570,
1804,
598,
1661,
17,
6339,
28522,
471,
1707,
6458,
950,
733,
12123,
468,
11329,
30,
1410,
374,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2573,
67,
957,
33,
3916,
950,
1435,
4672,
3536,
2570,
1804,
598,
1661,
17,
6339,
28522,
471,
1707,
6458,
950,
733,
12123,
468,
11329,
30,
1410,
374,
506,
... |
if print_tree: print print SCons.Util.render_tree(self.target, get_children) | def execute(self): if self.target.get_state() == SCons.Node.up_to_date: if self.top: print 'scons: "%s" is up to date.' % str(self.target) if print_tree: print print SCons.Util.render_tree(self.target, get_children) else: try: self.target.build() if self.top and print_tree: print print SCons.Util.render_tree(self.targe... | b56b2f19bd1a51f4e2f68affbbd2303d69840d27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/b56b2f19bd1a51f4e2f68affbbd2303d69840d27/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
309,
365,
18,
3299,
18,
588,
67,
2019,
1435,
422,
20487,
18,
907,
18,
416,
67,
869,
67,
712,
30,
309,
365,
18,
3669,
30,
1172,
296,
87,
8559,
30,
2213,
87,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
309,
365,
18,
3299,
18,
588,
67,
2019,
1435,
422,
20487,
18,
907,
18,
416,
67,
869,
67,
712,
30,
309,
365,
18,
3669,
30,
1172,
296,
87,
8559,
30,
2213,
87,
6,... | |
this = apply(_quickfix.new_ContAmtType, args) | this = _quickfix.new_ContAmtType(*args) | def __init__(self, *args): this = apply(_quickfix.new_ContAmtType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
660,
31787,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
660,
31787,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... |
if event.key() == ord('A'): index = self.currentIndex() if not index.isValid(): return self.model().addAnnotation(index, {'type':'beer', 'alc': '5.1', 'name': 'rothaus'}) if event.key() == ord('D'): index = self.currentIndex() if not index.isValid(): return self.model().removeAnnotation(index) | def keyPressEvent(self, event): ## handle deletions of items if event.key() == Qt.Key_Delete: index = self.currentIndex() if not index.isValid(): return parent = self.model().parent(index) self.model().removeRow(index.row(), parent) | 28363c24f0576c37694ba68b8c9bb3d163d0321e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/142/28363c24f0576c37694ba68b8c9bb3d163d0321e/annotationmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
7541,
1640,
26334,
434,
1516,
309,
871,
18,
856,
1435,
422,
7354,
18,
653,
67,
2613,
30,
770,
273,
365,
18,
2972,
1016,
1435,
309,
486,
770,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
7541,
1640,
26334,
434,
1516,
309,
871,
18,
856,
1435,
422,
7354,
18,
653,
67,
2613,
30,
770,
273,
365,
18,
2972,
1016,
1435,
309,
486,
770,
... | |
def begin_batch(self): """ Denote the beginning of a batch update. No update commands will be sent to the backend server until end_batch() is called. Any update commands issued outside of a begin_batch()/ end_batch() series will be immediately processed. begin_batch/end_batch transactions can be nested. The transact... | def begin_batch(self): """ Denote the beginning of a batch update. | 10c60c538f0740775ac218c7e53a1f14861578cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4931/10c60c538f0740775ac218c7e53a1f14861578cf/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
5303,
12,
2890,
4672,
3536,
22453,
1168,
326,
8435,
434,
279,
2581,
1089,
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,... | [
1,
1,
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,
2376,
67,
5303,
12,
2890,
4672,
3536,
22453,
1168,
326,
8435,
434,
279,
2581,
1089,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
open(mainwrapperpath, "w").write(BOOTSTRAP_SCRIPT % locals()) os.chmod(mainwrapperpath, 0775) | open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals()) os.chmod(bootstrappath, 0775) | def preProcess(self): resdir = "Contents/Resources" if self.executable is not None: if self.mainprogram is None: execname = self.name else: execname = os.path.basename(self.executable) execpath = pathjoin(self.execdir, execname) if not self.symlink_exec: self.files.append((self.executable, execpath)) self.binaries.appe... | 3b64c2b31cddc5ef8bf1569d9df6834e1957d5bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3b64c2b31cddc5ef8bf1569d9df6834e1957d5bd/bundlebuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2227,
12,
2890,
4672,
400,
1214,
273,
315,
6323,
19,
3805,
6,
309,
365,
18,
17751,
353,
486,
599,
30,
309,
365,
18,
5254,
12890,
353,
599,
30,
1196,
529,
273,
365,
18,
529,
469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2227,
12,
2890,
4672,
400,
1214,
273,
315,
6323,
19,
3805,
6,
309,
365,
18,
17751,
353,
486,
599,
30,
309,
365,
18,
5254,
12890,
353,
599,
30,
1196,
529,
273,
365,
18,
529,
469,... |
self.tk.call(self._w, 'dropsite', 'set', index) | self.tk.call(self._w, 'dropsite', 'set', index) | def dropsite_set(self, index): | 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,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
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,
... |
out = self.bot.say | def d_PrivateMsg(self, nick, _1, _2, _3, text): | bf34db320db25e90f3714ca16b3b3cff056558eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/bf34db320db25e90f3714ca16b3b3cff056558eb/dtella_dc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
67,
6014,
3332,
12,
2890,
16,
10909,
16,
389,
21,
16,
389,
22,
16,
389,
23,
16,
977,
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... | [
1,
1,
1,
1,
1,
1,
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,
302,
67,
6014,
3332,
12,
2890,
16,
10909,
16,
389,
21,
16,
389,
22,
16,
389,
23,
16,
977,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
ValueError | ValueError: you should pass exactly one of of_degree and max_degree | def polynomials( self, of_degree = None, max_degree = None ): """ Return an iterator over the polynomials of specified degree. | 3eb6f5d2076fa6fa0385bdfc619bbdb2c4ad2e3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3eb6f5d2076fa6fa0385bdfc619bbdb2c4ad2e3d/polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
365,
16,
434,
67,
21361,
273,
599,
16,
943,
67,
21361,
273,
599,
262,
30,
3536,
2000,
392,
2775,
1879,
326,
16991,
87,
434,
1269,
10782,
18,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16991,
87,
12,
365,
16,
434,
67,
21361,
273,
599,
16,
943,
67,
21361,
273,
599,
262,
30,
3536,
2000,
392,
2775,
1879,
326,
16991,
87,
434,
1269,
10782,
18,
2,
-100,
-100,
-100,
-100,
... |
def review-index(self): | def review_index(self): | def review-index(self): c.person = c.signed_in_person # hack for bug#34, don't show miniconfs to reviewers # Jiri: unless they're also organisers... if 'organiser' in [r.name for r in c.signed_in_person.roles]: c.proposal_types = self.dbsession.query(ProposalType).all() else: c.proposal_types = self.dbsession.query(Pro... | 4f52e3760d9051fcaa1380094850a8a9eb1deb34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/4f52e3760d9051fcaa1380094850a8a9eb1deb34/proposal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
1615,
12,
2890,
4672,
276,
18,
12479,
273,
276,
18,
5679,
67,
267,
67,
12479,
468,
11769,
364,
7934,
7,
5026,
16,
2727,
1404,
2405,
1131,
3950,
2556,
358,
10725,
414,
468,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
1615,
12,
2890,
4672,
276,
18,
12479,
273,
276,
18,
5679,
67,
267,
67,
12479,
468,
11769,
364,
7934,
7,
5026,
16,
2727,
1404,
2405,
1131,
3950,
2556,
358,
10725,
414,
468,
8... |
def tamagawa_product(self): | def tamagawa_product_bsd(self): | def tamagawa_product(self): r""" Given an elliptic curve `E` over a number field `K`, this function returns the integer `C(E/K)` that appears in the Birch and Swinnerton-Dyer conjecture accounting for the local information at finite places. If the model is a global minimal model then `C(E/K)` is simply the product of t... | 73136fe88017b1ada2ab43235edd1ad9bf1f056d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/73136fe88017b1ada2ab43235edd1ad9bf1f056d/ell_number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
301,
346,
2219,
69,
67,
5896,
67,
2038,
72,
12,
2890,
4672,
436,
8395,
16803,
392,
415,
549,
21507,
8882,
1375,
41,
68,
1879,
279,
1300,
652,
1375,
47,
9191,
333,
445,
1135,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
301,
346,
2219,
69,
67,
5896,
67,
2038,
72,
12,
2890,
4672,
436,
8395,
16803,
392,
415,
549,
21507,
8882,
1375,
41,
68,
1879,
279,
1300,
652,
1375,
47,
9191,
333,
445,
1135,
326,
... |
if newSelection != self.selectedVisibles or self.hoverSelected and not self.hoverSelecting: | if newSelection != self.selectedVisibles or (self.hoverSelected and not self.hoverSelecting): | def selectVisibles(self, visibles, extend = False, findShortestPath = False): if (extend or findShortestPath) and not self.hoverSelected: newSelection = set(self.selectedVisibles) else: newSelection = set() if findShortestPath: # Add the visibles that exist along the path to the selection. for visible in visibles: for... | 046bd8ebb1a4aa88b88e7e2cbcda99f728add42f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/046bd8ebb1a4aa88b88e7e2cbcda99f728add42f/Display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
3282,
495,
1040,
12,
2890,
16,
2281,
495,
1040,
16,
2133,
273,
1083,
16,
1104,
4897,
395,
743,
273,
1083,
4672,
309,
261,
14313,
578,
1104,
4897,
395,
743,
13,
471,
486,
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,
2027,
3282,
495,
1040,
12,
2890,
16,
2281,
495,
1040,
16,
2133,
273,
1083,
16,
1104,
4897,
395,
743,
273,
1083,
4672,
309,
261,
14313,
578,
1104,
4897,
395,
743,
13,
471,
486,
365,
18,... |
execute(DELETE + argument) os.system('rm -rf %s/* %s/*' % (configuration.home_backup_dir, | execute(DEL + argument) os.system('sudo rm -rf %s/* %s/*' % (configuration.home_backup_dir, | def clean_system(): """ Remove all stuff to make the system clean, testsuite-wise.""" test_message('''cleaning system from previous runs.''') # delete them first in case of a previous failed testsuite run. # don't check exit codes or such, this will be done later. for argument in ( ['user', 'toto'], ['user', 'tutu']... | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
4299,
13332,
3536,
3581,
777,
10769,
358,
1221,
326,
2619,
2721,
16,
7434,
9519,
17,
2460,
12123,
225,
1842,
67,
2150,
2668,
6309,
6200,
310,
2619,
628,
2416,
7597,
1093,
11,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
4299,
13332,
3536,
3581,
777,
10769,
358,
1221,
326,
2619,
2721,
16,
7434,
9519,
17,
2460,
12123,
225,
1842,
67,
2150,
2668,
6309,
6200,
310,
2619,
628,
2416,
7597,
1093,
11,
6... |
list -- list of EllpticCurve objects. | list -- list of EllipticCurve objects. | def isogeny_class(self, label): """ Returns the isogeny class of elliptic curves that are isogeneous to the curve with given Cremona label. INPUT: label -- string OUTPUT: list -- list of EllpticCurve objects. """ conductor, iso, num = parse_cremona_label(label) A = self.allcurves(conductor) K = [k for k in A.keys() if ... | ea7222c470d5e09631300cfbe105bbf29eef90ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ea7222c470d5e09631300cfbe105bbf29eef90ea/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
19409,
93,
67,
1106,
12,
2890,
16,
1433,
4672,
3536,
2860,
326,
353,
19409,
93,
667,
434,
415,
549,
21507,
24106,
716,
854,
353,
30075,
1481,
358,
326,
8882,
598,
864,
5799,
2586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
19409,
93,
67,
1106,
12,
2890,
16,
1433,
4672,
3536,
2860,
326,
353,
19409,
93,
667,
434,
415,
549,
21507,
24106,
716,
854,
353,
30075,
1481,
358,
326,
8882,
598,
864,
5799,
2586,
... |
if not isinstance(value, self.content_class): | if value and not isinstance(value, self.content_class): | def get(self, instance, **kwargs): value = ObjectField.get(self, instance, **kwargs) if not isinstance(value, self.content_class): value = self._wrapValue(instance, value) if (shasattr(value, '__of__', acquire=True) and not kwargs.get('unwrapped', False)): return value.__of__(instance) else: return value | 809657aff1e48a9eb15209837cdae668475834bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/809657aff1e48a9eb15209837cdae668475834bc/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
791,
16,
2826,
4333,
4672,
460,
273,
1033,
974,
18,
588,
12,
2890,
16,
791,
16,
2826,
4333,
13,
309,
460,
471,
486,
1549,
12,
1132,
16,
365,
18,
1745,
67,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
791,
16,
2826,
4333,
4672,
460,
273,
1033,
974,
18,
588,
12,
2890,
16,
791,
16,
2826,
4333,
13,
309,
460,
471,
486,
1549,
12,
1132,
16,
365,
18,
1745,
67,
1106,
... |
self.mapping.append (u"a�bc2A�BC") | self.mapping.append (u"abc2ABC") | def __init__(self, nextFunc=None, handleTimeout = True): self.mapping = [] self.lang = language.getLanguage() self.useableChars=None self.nextFunction=nextFunc if self.lang == 'de_DE': self.mapping.append (u".,?'\"0-()@/:_$") # 0 self.mapping.append (u" 1") # 1 self.mapping.append (u"a�bc2A�BC") # 2 self.mapping.appen... | 465b7a546fceb6eb038ba0c7fc08bb713c5559ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/465b7a546fceb6eb038ba0c7fc08bb713c5559ef/NumericalTextInput.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1024,
2622,
33,
7036,
16,
1640,
2694,
273,
1053,
4672,
365,
18,
6770,
273,
5378,
365,
18,
4936,
273,
2653,
18,
588,
3779,
1435,
365,
18,
1202,
429,
7803,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1024,
2622,
33,
7036,
16,
1640,
2694,
273,
1053,
4672,
365,
18,
6770,
273,
5378,
365,
18,
4936,
273,
2653,
18,
588,
3779,
1435,
365,
18,
1202,
429,
7803,... |
if not os.path.exists(debian_file) and not os.path.exists(ubuntu_file): print " + Leaving %s (removed in Both)" % filename | if not os.path.exists(right_file) and not os.path.exists(left_file): print " + Leaving %s (removed in both)" % filename | def update_oneside(filename, debian_file, ubuntu_file, base_file, merged_file): """Update files by copying or deleting when they only exist on one side.""" dirname = os.path.dirname(merged_file) # File removed in Ubuntu, leave it removed if os.path.exists(base_file) and not os.path.exists(ubuntu_file): print " + Lea... | 144cd852907c9e860817a286fd32fd93f856e242 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1955/144cd852907c9e860817a286fd32fd93f856e242/hi_mom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5322,
831,
12,
3459,
16,
18202,
2779,
67,
768,
16,
13910,
25348,
67,
768,
16,
1026,
67,
768,
16,
5384,
67,
768,
4672,
3536,
1891,
1390,
635,
8933,
578,
12993,
1347,
2898,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5322,
831,
12,
3459,
16,
18202,
2779,
67,
768,
16,
13910,
25348,
67,
768,
16,
1026,
67,
768,
16,
5384,
67,
768,
4672,
3536,
1891,
1390,
635,
8933,
578,
12993,
1347,
2898,
133... |
self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] | self.anythingElse() | def processCharacters(self, token): self.parser.parseError("expected-doctype-but-got-chars") self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] self.parser.phase.processCharacters(token) | 5ffcb84f153ade0b8b7a2d4cdfb6f77a05ee5232 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/5ffcb84f153ade0b8b7a2d4cdfb6f77a05ee5232/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
11600,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
3825,
17,
2896,
12387,
17,
12885,
17,
13212,
17,
7549,
7923,
365,
18,
2273,
4274,
12427,
1435,
365,
18,
4288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
11600,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
3825,
17,
2896,
12387,
17,
12885,
17,
13212,
17,
7549,
7923,
365,
18,
2273,
4274,
12427,
1435,
365,
18,
4288,
... |
@require_perm('view', Order) def view(request, id): order = Order.objects.for_company().get(id=id) whoCanSeeThis = order.whoHasPermissionTo('view') return render_with_request(request, 'orders/view.html', {'title':'Ordre: %s' % order.order_name, 'order':order, 'whoCanSeeThis':whoCanSeeThis}) | def delete(request, id): return form(request, id) | 04fe2b6695242689f71dc05b12426552d76ba0a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12430/04fe2b6695242689f71dc05b12426552d76ba0a3/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2293,
16,
612,
4672,
327,
646,
12,
2293,
16,
612,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2293,
16,
612,
4672,
327,
646,
12,
2293,
16,
612,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
FROM ?)""" connection.cursor().execute( sqlquery, (table_name,) ) | FROM """, table_name, ')' ]) connection.cursor().execute( sqlquery ) | def clean_using_coinc_table( connection, table_name, verbose = False, clean_experiment_map = True, clean_coinc_event_table = True, clean_coinc_definer = True, clean_coinc_event_map = True, clean_mapped_tables = True, selected_tables = []): """ Clears experiment_map, coinc_event, coinc_event_map, and all tables pointing... | 9edf708fb0141e77915abb6fb546e3cf05f54a6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9edf708fb0141e77915abb6fb546e3cf05f54a6d/ligolw_sqlutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
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,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,... |
def do_current(self, city): | def do_current(self, line): | def do_current(self, city): """ current CITY | 8827b15496f5f474965b352a253dfc2648a268e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/8827b15496f5f474965b352a253dfc2648a268e0/wetboobs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2972,
12,
2890,
16,
980,
4672,
3536,
783,
385,
4107,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2972,
12,
2890,
16,
980,
4672,
3536,
783,
385,
4107,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.dt = 0.0 | def __init__(self, callback, priority = 0): if __debug__: if self.debugTaskTraceback: self.debugInitTraceback = StackTrace("Task "+str(callback), 1, 10) # Unique ID for each task self.id = Task.count Task.count += 1 self.__call__ = callback self.__priority = priority self.__removed = 0 if TaskManager.taskTimerVerbose: ... | 4e9c3e7b5cc14af689237cd2316a97c616e728a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/4e9c3e7b5cc14af689237cd2316a97c616e728a1/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1348,
16,
4394,
273,
374,
4672,
309,
1001,
4148,
972,
30,
309,
365,
18,
4148,
2174,
3448,
823,
30,
365,
18,
4148,
2570,
3448,
823,
273,
22164,
2932,
2174... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1348,
16,
4394,
273,
374,
4672,
309,
1001,
4148,
972,
30,
309,
365,
18,
4148,
2174,
3448,
823,
30,
365,
18,
4148,
2570,
3448,
823,
273,
22164,
2932,
2174... | |
tfn = os.path.join(path, "tmp", | tfn = os.path.join(path, os.path.normpath(os.path.join("..", "tmp")), | def maildir_train(h, path, is_spam, force): """Train bayes with all messages from a maildir.""" if loud: print " Reading as Maildir" import time import socket pid = os.getpid() host = socket.gethostname() counter = 0 trained = 0 for fn in os.listdir(path): counter += 1 cfn = os.path.join(path, fn) tfn = os.path.jo... | 45aadd2af1dbe10c78d56023129580f6864eb14b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/45aadd2af1dbe10c78d56023129580f6864eb14b/mboxtrain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10843,
545,
481,
67,
9754,
12,
76,
16,
589,
16,
353,
67,
1752,
301,
16,
2944,
4672,
3536,
23419,
324,
528,
281,
598,
777,
2743,
628,
279,
10843,
545,
481,
12123,
225,
309,
437,
1100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10843,
545,
481,
67,
9754,
12,
76,
16,
589,
16,
353,
67,
1752,
301,
16,
2944,
4672,
3536,
23419,
324,
528,
281,
598,
777,
2743,
628,
279,
10843,
545,
481,
12123,
225,
309,
437,
1100,
... |
def __init__(self, abortable=False, frame=None): | def __init__(self, abortable=False, frame=0): | def __init__(self, abortable=False, frame=None): """ :param abortable: see the :attr:`~kaa.InProgress.abortable` property. (Default: False) :type abortable: bool """ super(InProgress, self).__init__() self._exception_signal = Signal() self._finished = False self._finished_event = threading.Event() self._exception = Non... | 528ac341939c8c61d82deee44475112f47554e9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/528ac341939c8c61d82deee44475112f47554e9e/async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6263,
429,
33,
8381,
16,
2623,
33,
20,
4672,
3536,
294,
891,
6263,
429,
30,
2621,
326,
294,
1747,
28288,
98,
7282,
69,
18,
13434,
18,
18623,
429,
68,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6263,
429,
33,
8381,
16,
2623,
33,
20,
4672,
3536,
294,
891,
6263,
429,
30,
2621,
326,
294,
1747,
28288,
98,
7282,
69,
18,
13434,
18,
18623,
429,
68,
1... |
if os.access( gladefile, os.R_OK ): | if os.access( os.path.join( GLADEFILE_PATH, gladefile ), os.R_OK ): | def __init__( self, gladefile=None, root=None ): | b0639908e5a2b65e5d9c7f9f5f5a5bc42e0db78b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b0639908e5a2b65e5d9c7f9f5f5a5bc42e0db78b/Window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
5118,
69,
536,
398,
33,
7036,
16,
1365,
33,
7036,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
5118,
69,
536,
398,
33,
7036,
16,
1365,
33,
7036,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ret = [credits_above_thresh, credits_below_thresh, geni_user_record, total_vessels] | ret = [credits_above_thresh, credits_below_thresh, geni_user_record, int(total_vessels)] | def credit_compare(a, b): return cmp(a['percent'], b['percent']) | 445b878e05f55a1b9458b1793be8fd549afd8d75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/445b878e05f55a1b9458b1793be8fd549afd8d75/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12896,
67,
9877,
12,
69,
16,
324,
4672,
327,
9411,
12,
69,
3292,
8849,
17337,
324,
3292,
8849,
19486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12896,
67,
9877,
12,
69,
16,
324,
4672,
327,
9411,
12,
69,
3292,
8849,
17337,
324,
3292,
8849,
19486,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
("share/doc/prelude-correlator/sample-plugin", docs_plugin_support), ("share/doc/prelude-correlator/sample-plugin/myplugin", docs_plugin_files), | def init_siteconfig(self, prefix): config = open("PreludeCorrelator/siteconfig.py", "w") print >> config, "conf_dir = '%s'" % os.path.abspath(prefix + "/etc/prelude-correlator") print >> config, "lib_dir = '%s'" % os.path.abspath(prefix + "/var/lib/prelude-correlator") config.close() | 7cd300069d788c4366846e2ca600aa46c8e45cf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3386/7cd300069d788c4366846e2ca600aa46c8e45cf6/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
25404,
22703,
12,
2890,
16,
1633,
4672,
642,
273,
1696,
2932,
1386,
80,
1317,
6217,
2878,
639,
19,
25404,
22703,
18,
2074,
3113,
315,
91,
7923,
1172,
1671,
642,
16,
315,
3923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
25404,
22703,
12,
2890,
16,
1633,
4672,
642,
273,
1696,
2932,
1386,
80,
1317,
6217,
2878,
639,
19,
25404,
22703,
18,
2074,
3113,
315,
91,
7923,
1172,
1671,
642,
16,
315,
3923,
... | |
sage: print c == 1 or c == 2 | sage: c == 1 or c == 2 | def row_containing_sym(L, c, x): """ Given an improper latin square L with L[r1, c] = L[r2, c] = x, return r1 or r2 with equal probability. This is an internal function and should only be used in LatinSquare_generator(). EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: L = matrix([(0, 1, 0, 3), (3, 0, ... | 0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1213,
3280,
67,
8117,
12,
48,
16,
276,
16,
619,
4672,
3536,
16803,
392,
13069,
457,
30486,
8576,
511,
598,
511,
63,
86,
21,
16,
276,
65,
273,
511,
63,
86,
22,
16,
276,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1213,
3280,
67,
8117,
12,
48,
16,
276,
16,
619,
4672,
3536,
16803,
392,
13069,
457,
30486,
8576,
511,
598,
511,
63,
86,
21,
16,
276,
65,
273,
511,
63,
86,
22,
16,
276,
65... |
print "no focal mechanism data." | err = "Error: No focal mechanism data!" appendTextview(self.textviewStdErr, err) | def showFocMec(self): if self.dictFocalMechanism == {}: print "no focal mechanism data." return # make up the figure: fig = plt.figure(1002, figsize=(2, 2)) fig.clear() fig.subplots_adjust(left=0, bottom=0, right=1, top=1) # plot the selected solution Beachball([self.dictFocalMechanism['Strike'], self.dictFocalMechani... | 4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
42,
504,
49,
557,
12,
2890,
4672,
309,
365,
18,
1576,
42,
23735,
31546,
422,
16648,
393,
273,
315,
668,
30,
2631,
284,
23735,
12860,
501,
4442,
714,
1528,
1945,
12,
2890,
18,
955... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
42,
504,
49,
557,
12,
2890,
4672,
309,
365,
18,
1576,
42,
23735,
31546,
422,
16648,
393,
273,
315,
668,
30,
2631,
284,
23735,
12860,
501,
4442,
714,
1528,
1945,
12,
2890,
18,
955... |
configurator = configuratorClass(self.runid, wfPolicy, prodPolicy, self.logger) | configurator = configuratorClass(self.runid, prodPolicy, wfPolicy, self.logger) | def createConfigurator(self, runid, wfPolicy, prodPolicy): self.logger.log(Log.DEBUG, "WorkflowManager:createConfigurator") | 6e19c93138cc4e791f490f6461969b871f91e115 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/6e19c93138cc4e791f490f6461969b871f91e115/WorkflowManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
17182,
12,
2890,
16,
1086,
350,
16,
11578,
2582,
16,
10791,
2582,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
8484,
1318,
30,
2640,
17182,
7923,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
17182,
12,
2890,
16,
1086,
350,
16,
11578,
2582,
16,
10791,
2582,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
8484,
1318,
30,
2640,
17182,
7923,
2,
-100,
-100,
-10... |
end_date, date)) | end_date, 'TWIXT')) | def delete_events(self, events, date, calendar_user): """Delete events from a calendar. Keyword arguments: events: List of non-expanded calendar events to delete. date: Date string specifying the date range of the events, as the date option. calendar_user: "User" of the calendar to delete events from. """ single_even... | 23fd3d59a2121c80459f2021852b8a78de699aaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/23fd3d59a2121c80459f2021852b8a78de699aaf/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5989,
12,
2890,
16,
2641,
16,
1509,
16,
5686,
67,
1355,
4672,
3536,
2613,
2641,
628,
279,
5686,
18,
225,
18317,
1775,
30,
2641,
30,
987,
434,
1661,
17,
17336,
5686,
2641,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5989,
12,
2890,
16,
2641,
16,
1509,
16,
5686,
67,
1355,
4672,
3536,
2613,
2641,
628,
279,
5686,
18,
225,
18317,
1775,
30,
2641,
30,
987,
434,
1661,
17,
17336,
5686,
2641,
358... |
if not kegtype: | if not kegtype and not kegtype == 0: | def onUse( char, potionkeg ): kegtype = None socket = char.socket backpack = char.getbackpack() if not char or not backpack: return False if not potionkeg.hasscript( 'potionkeg' ): return False if not potionkeg.hastag( 'kegfill' ): kegfill = 0 potionkeg.settag( 'kegfill', kegfill ) potionkeg.resendtooltip() else: ke... | 27e2628d2e9ec9b3c4f611a87eb5b0415276e5e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/27e2628d2e9ec9b3c4f611a87eb5b0415276e5e3/potionkeg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
1149,
16,
5974,
285,
79,
1332,
262,
30,
417,
1332,
723,
273,
599,
2987,
273,
1149,
18,
7814,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
225,
309,
486,
1149,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
1149,
16,
5974,
285,
79,
1332,
262,
30,
417,
1332,
723,
273,
599,
2987,
273,
1149,
18,
7814,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
225,
309,
486,
1149,
578,
... |
if opts['plain']: | if opts.get('plain'): | def makepatch(patch, idx, total): desc = [] node = None body = '' for line in patch: if line.startswith('#'): if line.startswith('# Node ID'): node = line.split()[-1] continue if line.startswith('diff -r') or line.startswith('diff --git'): break desc.append(line) if not node: raise ValueError | e48386cad337fc8ad23ccd992fc19ce1b45e1870 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/e48386cad337fc8ad23ccd992fc19ce1b45e1870/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
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,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18... |
res = pythonCall( 0, replicaManager.putAndRegister, outFile, os.path.realpath( file ), outputSE.name, catalog = outputFCName ) | res = pythonCall( 2 * 3600, replicaManager.putAndRegister, outFile, os.path.realpath( file ), outputSE.name, catalog = outputFCName ) | def __retrieveAndUploadFile( self, file, outputDict ): """ Retrieve, Upload, and remove """ fileName = file inputPath = outputDict['InputPath'] inputFCName = outputDict['InputFC'] inBytes = 0 if inputFCName == 'LocalDisk': inFile = file file = os.path.join( inputPath, file ) else: inputFC = FileCatalog( [inputFCName] ) | 20aa57e0dd6683c56035539c1b0eda97a38ff5f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/20aa57e0dd6683c56035539c1b0eda97a38ff5f7/OutputDataExecutor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17466,
1876,
4777,
812,
12,
365,
16,
585,
16,
876,
5014,
262,
30,
3536,
10708,
16,
9414,
16,
471,
1206,
3536,
3968,
273,
585,
810,
743,
273,
876,
5014,
3292,
1210,
743,
3546,
810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17466,
1876,
4777,
812,
12,
365,
16,
585,
16,
876,
5014,
262,
30,
3536,
10708,
16,
9414,
16,
471,
1206,
3536,
3968,
273,
585,
810,
743,
273,
876,
5014,
3292,
1210,
743,
3546,
810... |
modules[file] = os.path.join(dirname, file) if file == '__init__.py': found_init = 1 | modules['%s.%s' % (pkgname, file[:-3])] = 1 | def find_modules(dirname): """ If C{dirname} contains a package, then return the filenames for the package, its modules, and all of its descendant packages and modules. If C{dirname} does not contain a package, then return an empty list. @rtype: C{list} of C{string} @return: The filenames for the package in C{dirname... | b9eaae15c1716aa772cd1f26c76cd22cf5b3881d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b9eaae15c1716aa772cd1f26c76cd22cf5b3881d/imports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
12,
12287,
4672,
3536,
971,
385,
95,
12287,
97,
1914,
279,
2181,
16,
1508,
327,
326,
9066,
364,
326,
2181,
16,
2097,
4381,
16,
471,
777,
434,
2097,
17465,
5907,
471,
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,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
12,
12287,
4672,
3536,
971,
385,
95,
12287,
97,
1914,
279,
2181,
16,
1508,
327,
326,
9066,
364,
326,
2181,
16,
2097,
4381,
16,
471,
777,
434,
2097,
17465,
5907,
471,
43... |
self.checksyntax(filename) | def check_module_event(self, event): filename = self.getfilename() if not filename: return if not self.tabnanny(filename): return self.checksyntax(filename) | c426ffcdfc12cbe13e307cf3897d99a5511fc8ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c426ffcdfc12cbe13e307cf3897d99a5511fc8ca/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
1544,
273,
365,
18,
588,
3459,
1435,
309,
486,
1544,
30,
327,
309,
486,
365,
18,
7032,
82,
1072,
93,
12,
3459,
4672,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
1544,
273,
365,
18,
588,
3459,
1435,
309,
486,
1544,
30,
327,
309,
486,
365,
18,
7032,
82,
1072,
93,
12,
3459,
4672,
327,
365,
18,
... | |
Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg | Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg. | def buildnextreg(self, path, clist): """Recursively build our regexp given a path, and a controller list. Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg """ if path: part = path[0] else: part = '' reg = '' # noreqs will remember whether the... | 52ae2d9eaabbf5ff009086347bb090d7048fa505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/52ae2d9eaabbf5ff009086347bb090d7048fa505/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
3536,
12474,
1361,
3134,
7195,
864,
279,
589,
16,
471,
279,
2596,
666,
18,
225,
2860,
326,
6736,
2652,
533,
16,
471,
2795,
3105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
3536,
12474,
1361,
3134,
7195,
864,
279,
589,
16,
471,
279,
2596,
666,
18,
225,
2860,
326,
6736,
2652,
533,
16,
471,
2795,
3105... |
files = files.filter(lambda x: x.endswith(".dir"), self.incrementEntries) | files = filter(lambda x: x.endswith(".dir"), files) | def _getLastChangedBackupTime(self, filename): files = self.groupedIncrementEntries.get(filename, []) if os.path.isdir(joinPaths(self.completePath, filename)): files = files.filter(lambda x: x.endswith(".dir"), self.incrementEntries) files.sort() if not files: return self._getFirstBackupAfterDate(None) return self._get... | aa8390e52b87a46db41be998afa2df9242993b87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2223/aa8390e52b87a46db41be998afa2df9242993b87/librdiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3024,
5033,
6248,
950,
12,
2890,
16,
1544,
4672,
1390,
273,
365,
18,
25472,
10798,
5400,
18,
588,
12,
3459,
16,
5378,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
5701,
4466,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3024,
5033,
6248,
950,
12,
2890,
16,
1544,
4672,
1390,
273,
365,
18,
25472,
10798,
5400,
18,
588,
12,
3459,
16,
5378,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
5701,
4466,
... |
s = self.get_time() | s = get_time() | def calibrate(self, m): # Modified by Tim Peters n = m s = self.get_time() while n: self.simple() n = n - 1 f = self.get_time() my_simple = f - s #print "Simple =", my_simple, | bc75e8f6af740f0d3b26d6eeaa9a4428ce268142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc75e8f6af740f0d3b26d6eeaa9a4428ce268142/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
5141,
12,
2890,
16,
312,
4672,
468,
21154,
635,
12652,
453,
1032,
290,
273,
312,
272,
273,
336,
67,
957,
1435,
1323,
290,
30,
365,
18,
9647,
1435,
290,
273,
290,
300,
404,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
5141,
12,
2890,
16,
312,
4672,
468,
21154,
635,
12652,
453,
1032,
290,
273,
312,
272,
273,
336,
67,
957,
1435,
1323,
290,
30,
365,
18,
9647,
1435,
290,
273,
290,
300,
404,
284,
... |
addFmt ('fi', True, [ None, None, None, None, None, u"Huhtikuu %d", None, None, None, None, None, None ]) | addFmt2('fi', True, u"%s %%d", True ) | def addFmt2( lang, isMnthOfYear, pattern, makeUpperCase = None ): addFmt( lang, isMnthOfYear, makeMonthNamedList( lang, pattern, makeUpperCase )) | 9c89f2d41aa715a883a13e3d4522c33979f1a94a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/9c89f2d41aa715a883a13e3d4522c33979f1a94a/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
16090,
22,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1936,
16,
1221,
8915,
273,
599,
262,
30,
527,
16090,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1221,
5445,
7604,
682,
12,
3303,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
16090,
22,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1936,
16,
1221,
8915,
273,
599,
262,
30,
527,
16090,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1221,
5445,
7604,
682,
12,
3303,
... |
*New in Jinja 1.1* | *new in Jinja 1.1* | def do_batch(linecount, fill_with=None): """ A filter that batches items. It works pretty much like `slice` just the other way round. It returns a list of lists with the given number of items. If you provide a second parameter this is used to fill missing items. See this example: .. sourcecode:: html+jinja <table> {%... | eec3138d28317e0ccd76640be6e6624675f3e78a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/eec3138d28317e0ccd76640be6e6624675f3e78a/filters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5303,
12,
7511,
557,
592,
16,
3636,
67,
1918,
33,
7036,
4672,
3536,
432,
1034,
716,
13166,
1516,
18,
2597,
6330,
7517,
9816,
3007,
1375,
6665,
68,
2537,
326,
1308,
4031,
3643,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5303,
12,
7511,
557,
592,
16,
3636,
67,
1918,
33,
7036,
4672,
3536,
432,
1034,
716,
13166,
1516,
18,
2597,
6330,
7517,
9816,
3007,
1375,
6665,
68,
2537,
326,
1308,
4031,
3643,
... |
if self.run_task(task): | if exec_func(task_name, recipe.data): | def bake(self, options, args): | 76eb1f70b4623f9091724f04add1689f7822eb9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5897/76eb1f70b4623f9091724f04add1689f7822eb9b/baker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
911,
12,
2890,
16,
702,
16,
833,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
911,
12,
2890,
16,
702,
16,
833,
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,
-... |
def __init__(self, application, env_parent_dir, env_paths): | def __init__(self, application, env_parent_dir, env_paths, single_env): | def __init__(self, application, env_parent_dir, env_paths): self.application = application self.environ = {} self.environ['trac.env_path'] = None if env_parent_dir: self.environ['trac.env_parent_dir'] = env_parent_dir else: self.environ['trac.env_paths'] = env_paths | a5fd0203fa0c419cc17c9c2ee632262a696a064d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/a5fd0203fa0c419cc17c9c2ee632262a696a064d/standalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
16,
1550,
67,
2938,
67,
1214,
16,
1550,
67,
4481,
16,
2202,
67,
3074,
4672,
365,
18,
3685,
273,
2521,
365,
18,
28684,
273,
2618,
365,
18,
28684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2521,
16,
1550,
67,
2938,
67,
1214,
16,
1550,
67,
4481,
16,
2202,
67,
3074,
4672,
365,
18,
3685,
273,
2521,
365,
18,
28684,
273,
2618,
365,
18,
28684,
... |
self._update_status("Unable to successfully build and test", results_file=failure_log) | self._update_status("Unable to successfully do a clean build and test", results_file=failure_log) | def _can_build_and_test(self): try: self.run_webkit_patch([ "build-and-test", "--force-clean", "--build", "--test", "--non-interactive", "--no-update", "--build-style=both", "--quiet"]) except ScriptError, e: failure_log = self._log_from_script_error_for_upload(e) self._update_status("Unable to successfully build and t... | 09c6ab91192eb20d813099a8c920995c6b32a7cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/09c6ab91192eb20d813099a8c920995c6b32a7cb/queues.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4169,
67,
3510,
67,
464,
67,
3813,
12,
2890,
4672,
775,
30,
365,
18,
2681,
67,
29319,
67,
2272,
3816,
315,
3510,
17,
464,
17,
3813,
3113,
5238,
5734,
17,
6200,
3113,
5238,
3510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4169,
67,
3510,
67,
464,
67,
3813,
12,
2890,
4672,
775,
30,
365,
18,
2681,
67,
29319,
67,
2272,
3816,
315,
3510,
17,
464,
17,
3813,
3113,
5238,
5734,
17,
6200,
3113,
5238,
3510,
... |
elif type(stdout) == int: | elif isinstance(stdout, int): | def _get_handles(self, stdin, stdout, stderr): """Construct and return tupel with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite """ if stdin == None and stdout == None and stderr == None: return (None, None, None, None, None, None) | 95702de0f98da1d3b802ca9a49a105d914f43a51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/95702de0f98da1d3b802ca9a49a105d914f43a51/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... |
if __debug__: if self.wantDebugIndicator: onScreenDebug.add("posDelta1", self.avatarNodePath.getPosDelta(render).pPrintValues()) if 0: onScreenDebug.add("posDelta3", render.getRelativeVector( self.avatarNodePath, self.avatarNodePath.getPosDelta(render)).pPrintValues()) if 0: onScreenDebug.add("gravity", self.gravity.... | def handleAvatarControls(self, task): """ Check on the arrow keys and update the avatar. """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%(base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar h = % 10.4f\n"%(base.localAvatar.getH(),)) #onScreenDebug.ap... | 26c17f70fcfa45ec83704a784de1cab5357f8a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/26c17f70fcfa45ec83704a784de1cab5357f8a7a/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
16910,
18,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829,
13140,
30,
603,
795... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
16910,
18,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829,
13140,
30,
603,
795... | |
if output is None: self.write_iteration_keyval(attr, keyval) continue | def postprocess(self): """The following patterns parse the following outputs: TCP -- bidirectional 20080806120605,10.75.222.14,59744,10.75.222.13,5001,13,0.0-10.0,105054208,84029467 20080806120605,10.75.222.14,5001,10.75.222.13,46112,12,0.0-10.0,1176387584,940172245 CPU: 38.88% -- 85 samples | dc922cffa78641d46d2f63f718d7ace073d60d09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/dc922cffa78641d46d2f63f718d7ace073d60d09/iperf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
2567,
12,
2890,
4672,
3536,
1986,
3751,
6884,
1109,
326,
3751,
6729,
30,
9911,
1493,
9949,
24699,
4044,
3672,
3672,
26,
22343,
4848,
25,
16,
2163,
18,
5877,
18,
28855,
18,
3461,
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,
1603,
2567,
12,
2890,
4672,
3536,
1986,
3751,
6884,
1109,
326,
3751,
6729,
30,
9911,
1493,
9949,
24699,
4044,
3672,
3672,
26,
22343,
4848,
25,
16,
2163,
18,
5877,
18,
28855,
18,
3461,
16... | |
if not self.pk: try: makedirs(self.layer_path()) makedirs(self.template_path()) makedirs(self.upload_hd_path()) makedirs(self.upload_template_path()) makedirs(self.upload_thumb_path()) except OSError, error: print error | def save(self, force_insert=False, force_update=False): if not self.pk: try: makedirs(self.layer_path()) makedirs(self.template_path()) makedirs(self.upload_hd_path()) makedirs(self.upload_template_path()) makedirs(self.upload_thumb_path()) except OSError, error: print error super(Issue, self).save(force_insert, force_... | 73ef761c789a8002c2fe63b4ca1640427094bc19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/73ef761c789a8002c2fe63b4ca1640427094bc19/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
2944,
67,
6387,
33,
8381,
16,
2944,
67,
2725,
33,
8381,
4672,
2240,
12,
12956,
16,
365,
2934,
5688,
12,
5734,
67,
6387,
16,
2944,
67,
2725,
13,
225,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
2944,
67,
6387,
33,
8381,
16,
2944,
67,
2725,
33,
8381,
4672,
2240,
12,
12956,
16,
365,
2934,
5688,
12,
5734,
67,
6387,
16,
2944,
67,
2725,
13,
225,
2,
-100,
-100... | |
vstr = markup.plaintext_to_html(vstr) | vstr = quote_html(vstr) | def pprint_pyval(self, pyval, multiline=True, summary_linelen=0): # Handle the most common cases first. The following types # will never need any line wrapping, etc; and they cover most # variable values (esp int, for constants). I leave out # LongType on purpose, since long values may need line- # wrapping. if (type... | 002d70bfdb399f96d8ebf5ed35ed01eb526ca66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/002d70bfdb399f96d8ebf5ed35ed01eb526ca66c/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
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,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468... |
elif line.category_id.contribute and line.category_id.include_in_salary and line.category_id.amount_type == 'fix': | elif line.category_id.contribute and line.category_id.amount_type == 'fix': | def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids... | 9cefb7520803ded7f648633ccca30e623a0dd192 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9cefb7520803ded7f648633ccca30e623a0dd192/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... |
((have_prelink and (vflags & _RPMVERIFY_FILESIZE) and (my_st_size != size)) or (csum and vflags & _RPMVERIFY_DIGEST))): | (verify_digest or (pf.verify_size and have_prelink and my_st_size != pf.size))): if pf.digest: digest_type = pf.digest[0] csum = pf.digest[0] + ':' + pf.digest[1] else: digest_type = csum_type csum = '' | def _ftype(mode): """ Given a "mode" return the name of the type of file. """ if stat.S_ISREG(mode): return "file" if stat.S_ISDIR(mode): return "directory" if stat.S_ISLNK(mode): return "symlink" if stat.S_ISFIFO(mode): return "fifo" if stat.S_ISCHR(mode): return "character device" if stat.S_ISBLK(mode): return "... | 1f1a9c8f653cd8cc3aa77f966051de6095bdd390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/1f1a9c8f653cd8cc3aa77f966051de6095bdd390/packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
723,
12,
3188,
4672,
3536,
16803,
279,
315,
3188,
6,
327,
326,
508,
434,
326,
618,
434,
585,
18,
3536,
309,
610,
18,
55,
67,
5127,
5937,
12,
3188,
4672,
225,
327,
315,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
723,
12,
3188,
4672,
3536,
16803,
279,
315,
3188,
6,
327,
326,
508,
434,
326,
618,
434,
585,
18,
3536,
309,
610,
18,
55,
67,
5127,
5937,
12,
3188,
4672,
225,
327,
315,
768,
... |
query_radius=1 | query_radius=10 | def all_get_radii(self): """Return All Fixed Neighbor Search results. | 6dd679c8e75c7248bd2a7adfd29d57df80d12beb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/6dd679c8e75c7248bd2a7adfd29d57df80d12beb/KDTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
588,
67,
6012,
2835,
12,
2890,
4672,
3536,
990,
4826,
15038,
30663,
280,
5167,
1686,
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,
... | [
1,
1,
1,
1,
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,
777,
67,
588,
67,
6012,
2835,
12,
2890,
4672,
3536,
990,
4826,
15038,
30663,
280,
5167,
1686,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if is_datatype(datatype, Enumerate): value = datatype.get_namespace(value) | def build_form_namespace(self, fields): """ This utility method builds a namespace suitable to use to produce an HTML form. Its input data is a list (fields) that defines the form variables to consider: [(<field name>, <is field required>), ...] | cd5ecdf31e68509207e348e70782af36b7f466c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/cd5ecdf31e68509207e348e70782af36b7f466c3/context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
687,
67,
4937,
12,
2890,
16,
1466,
4672,
3536,
1220,
12788,
707,
10736,
279,
1981,
10631,
358,
999,
358,
11402,
392,
3982,
646,
18,
29517,
810,
501,
353,
279,
666,
261,
2821,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
687,
67,
4937,
12,
2890,
16,
1466,
4672,
3536,
1220,
12788,
707,
10736,
279,
1981,
10631,
358,
999,
358,
11402,
392,
3982,
646,
18,
29517,
810,
501,
353,
279,
666,
261,
2821,
... | |
dbm_som0 = dr_lib.add_files(datalist, Data_Paths=conf.bmon_path.toPath(), SO_Axis=conf.so_axis, dataset_type="background", Verbose=conf.verbose, Timer=t)[0] if t is not None: t.getTime(msg="After reading beam monitor data ") | dbm_som0 = dr_lib.add_files(config.data, Data_Paths=config.bmon_path.toPath(), SO_Axis=config.so_axis, dataset_type=dataset_type, Verbose=config.verbose, Timer=tim)[0] if tim is not None: tim.getTime(msg="After reading beam monitor data ") | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.Di... | bb758ce3cbe25f73e8a8618bfaf541f06d48e121 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/bb758ce3cbe25f73e8a8618bfaf541f06d48e121/sas_background.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
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,
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,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
runpipe = Popen4(command, bufsize=16384) | runpipe = popen2.Popen4(command, bufsize=16384) | def saferun(self, command): '''Run a command in a pipe dealing with stdout buffer overloads''' self.CondPrint('debug', '> %s' % command) | 6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7864,
586,
318,
12,
2890,
16,
1296,
4672,
9163,
1997,
279,
1296,
316,
279,
6010,
21964,
598,
3909,
1613,
1879,
17135,
26418,
365,
18,
12441,
5108,
2668,
4148,
2187,
11279,
738,
87,
11,
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,
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,
7864,
586,
318,
12,
2890,
16,
1296,
4672,
9163,
1997,
279,
1296,
316,
279,
6010,
21964,
598,
3909,
1613,
1879,
17135,
26418,
365,
18,
12441,
5108,
2668,
4148,
2187,
11279,
738,
87,
11,
7... |
check_call([cvs, '-d', cvsroot, 'checkout', '-P', '-r', tag, '-d', leaf, 'mozilla/%s' % module], cwd=os.path.join(topsrcdir, parent)) | check_call_noisy([cvs, '-d', cvsroot, 'checkout', '-P', '-r', tag, '-d', leaf, 'mozilla/%s' % module], cwd=os.path.join(topsrcdir, parent)) | def do_cvs_checkout(modules, tag, cvsroot, cvs): """Check out a CVS directory. modules is a list of directories to check out, e.g. ['nsprpub'] """ for module in modules: (parent, leaf) = os.path.split(module) check_call([cvs, '-d', cvsroot, 'checkout', '-P', '-r', tag, '-d', leaf, 'mozilla/%s' % module], cwd=os.path.jo... | 00aaeed871ec9115b2cae2a6356fecd118ccabb0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/00aaeed871ec9115b2cae2a6356fecd118ccabb0/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
71,
6904,
67,
17300,
12,
6400,
16,
1047,
16,
276,
6904,
3085,
16,
276,
6904,
4672,
3536,
1564,
596,
279,
385,
14640,
1867,
18,
4381,
353,
279,
666,
434,
6402,
358,
866,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
6904,
67,
17300,
12,
6400,
16,
1047,
16,
276,
6904,
3085,
16,
276,
6904,
4672,
3536,
1564,
596,
279,
385,
14640,
1867,
18,
4381,
353,
279,
666,
434,
6402,
358,
866,
596,
... |
self.debug('PlayerInfoBlock: %s' % pib) | if len(pib) == 0: self.debug('no such client found') return None | def getClient(self, cid): """Get a connected client from storage or create it B3 CID <--> BFBC2 character name B3 GUID <--> BFBC2 EA_guid """ # try to get the client from the storage of already authed clients client = self.clients.getByCID(cid) if not client: if cid == 'Server': return self.clients.newClient('Serve... | 03ea835b7a1d4baaffb3b9f13d990c3f8111c817 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/03ea835b7a1d4baaffb3b9f13d990c3f8111c817/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7635,
12,
2890,
16,
7504,
4672,
3536,
967,
279,
5840,
1004,
628,
2502,
578,
752,
518,
605,
23,
385,
734,
282,
411,
413,
34,
605,
42,
16283,
22,
3351,
508,
605,
23,
20322,
225,
411,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7635,
12,
2890,
16,
7504,
4672,
3536,
967,
279,
5840,
1004,
628,
2502,
578,
752,
518,
605,
23,
385,
734,
282,
411,
413,
34,
605,
42,
16283,
22,
3351,
508,
605,
23,
20322,
225,
411,
4... |
def tryProtocolCombo (server_protocol, client_protocol, expectedToWork, certsreqs=None): | def try_protocol_combo(server_protocol, client_protocol, expect_success, certsreqs=None): | def tryProtocolCombo (server_protocol, client_protocol, expectedToWork, certsreqs=None): | f08683542eada763321715f558eac5b2baec28e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f08683542eada763321715f558eac5b2baec28e9/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
5752,
16156,
261,
3567,
67,
8373,
16,
1004,
67,
8373,
16,
2665,
774,
2421,
16,
13870,
25782,
33,
7036,
4672,
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,
775,
5752,
16156,
261,
3567,
67,
8373,
16,
1004,
67,
8373,
16,
2665,
774,
2421,
16,
13870,
25782,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
user = users.get_current_user() if user: mkey = '/results/user/' + user.email() else: mkey = '/results/remote_addr/' + self.request.remote_addr memcache.delete(mkey) | ClearUserCache() | def post(self): # Clear cache for this user/remote_addr. user = users.get_current_user() if user: mkey = '/results/user/' + user.email() else: mkey = '/results/remote_addr/' + self.request.remote_addr memcache.delete(mkey) # Extract description + intrinsic. description = str(self.request.get('description')) m = re.matc... | 6b0de005d5a7ed60d5899b0e289c03fa5d908052 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/6b0de005d5a7ed60d5899b0e289c03fa5d908052/iconforth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
468,
10121,
1247,
364,
333,
729,
19,
7222,
67,
4793,
18,
10121,
1299,
1649,
1435,
468,
8152,
2477,
397,
28871,
18,
2477,
273,
609,
12,
2890,
18,
2293,
18,
588,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
468,
10121,
1247,
364,
333,
729,
19,
7222,
67,
4793,
18,
10121,
1299,
1649,
1435,
468,
8152,
2477,
397,
28871,
18,
2477,
273,
609,
12,
2890,
18,
2293,
18,
588,
26... |
self.__deleteFileSelection() | self.__deleteFileSelection() | def __saveModel( self, *arg ) : | 4aea2a590e9d7a8a7769456664c223248776a740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4aea2a590e9d7a8a7769456664c223248776a740/MainWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1488,
12,
365,
16,
380,
3175,
262,
294,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1488,
12,
365,
16,
380,
3175,
262,
294,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
review.score, COUNT(review.id) AS " | review.score, COUNT(review.id) AS " | def proposals_by_strong_rank(self): """ List of proposals ordered by number of certain score / total number of reviewers [CFP] """ query = """ | eb2895ad014d63b312b71edb8998575baedf1fe5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/eb2895ad014d63b312b71edb8998575baedf1fe5/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
22536,
67,
1637,
67,
9110,
67,
11500,
12,
2890,
4672,
3536,
987,
434,
450,
22536,
5901,
635,
1300,
434,
8626,
4462,
342,
2078,
1300,
434,
10725,
414,
306,
8955,
52,
65,
3536,
843,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
22536,
67,
1637,
67,
9110,
67,
11500,
12,
2890,
4672,
3536,
987,
434,
450,
22536,
5901,
635,
1300,
434,
8626,
4462,
342,
2078,
1300,
434,
10725,
414,
306,
8955,
52,
65,
3536,
843,
... |
if namespace.isAbsentNamespace(): defn = 'pyxb.namespace.CreateAbsentNamespace()' else: defn = 'pyxb.namespace.NamespaceForURI(%s, create_if_missing=True)' % (repr(namespace.uri()),) self.__namespaceDeclarations.append('%s = %s' % (name, defn)) | if definition is None: if namespace.isAbsentNamespace(): definition = 'pyxb.namespace.CreateAbsentNamespace()' else: definition = 'pyxb.namespace.NamespaceForURI(%s, create_if_missing=True)' % (repr(namespace.uri()),) self.__namespaceDeclarations.append('%s = %s' % (name, definition)) | def defineNamespace (self, namespace, name, require_unique=True, **kw): rv = self.__referencedNamespaces.get(namespace) print '%s define %s current %s has %s' % (self, namespace, self.__referencedNamespaces, rv) if rv is not None: print 'WARNING: Module already have reference to %s' % (namespace,) return rv if require_... | 9f5af2d1d44c2b5959dfd93a88068cafbaa04be3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/9f5af2d1d44c2b5959dfd93a88068cafbaa04be3/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4426,
3402,
261,
2890,
16,
1981,
16,
508,
16,
2583,
67,
6270,
33,
5510,
16,
2826,
9987,
4672,
5633,
273,
365,
16186,
20883,
13180,
18,
588,
12,
4937,
13,
1172,
1995,
87,
4426,
738,
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,
4426,
3402,
261,
2890,
16,
1981,
16,
508,
16,
2583,
67,
6270,
33,
5510,
16,
2826,
9987,
4672,
5633,
273,
365,
16186,
20883,
13180,
18,
588,
12,
4937,
13,
1172,
1995,
87,
4426,
738,
87,... |
actions_list = input_file.readlines() | actions_list = [] for line in input_file.readlines(): if not line.startswith(' actions_list.append(line) | def __init__(self): (options,args) = ParseCommandLine() input_file = open(options.input_file_name) actions_list = input_file.readlines() input_file.close() | 5b7bf3231ee0987c700b8b6be9a7078a3ae7ffe5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/5b7bf3231ee0987c700b8b6be9a7078a3ae7ffe5/auto_ui_test_input_generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
261,
2116,
16,
1968,
13,
273,
2884,
21391,
1435,
810,
67,
768,
273,
1696,
12,
2116,
18,
2630,
67,
768,
67,
529,
13,
4209,
67,
1098,
273,
5378,
364,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
261,
2116,
16,
1968,
13,
273,
2884,
21391,
1435,
810,
67,
768,
273,
1696,
12,
2116,
18,
2630,
67,
768,
67,
529,
13,
4209,
67,
1098,
273,
5378,
364,
9... |
self.dynamic_util | self.dynamic_util, | def getSandboxModules(self): """Return list of module dependencies.""" import Ganga.Lib.MonitoringServices.Dashboard import sys return DashboardMS.getSandboxModules(self) + [ Ganga.Lib.MonitoringServices.Dashboard.CommonUtil, Ganga.Lib.MonitoringServices.Dashboard.BackendMS, self.dynamic_util ] | 00e3049d6176f90a37f2465f58d578fbdb4081f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/00e3049d6176f90a37f2465f58d578fbdb4081f1/BackendMS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
9069,
7782,
12,
2890,
4672,
3536,
990,
666,
434,
1605,
5030,
12123,
1930,
611,
539,
69,
18,
5664,
18,
18410,
5676,
18,
14830,
1930,
2589,
327,
18230,
3537,
18,
588,
17881,
7782,
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,
1322,
9069,
7782,
12,
2890,
4672,
3536,
990,
666,
434,
1605,
5030,
12123,
1930,
611,
539,
69,
18,
5664,
18,
18410,
5676,
18,
14830,
1930,
2589,
327,
18230,
3537,
18,
588,
17881,
7782,
12... |
node.text=u"blindtext1\u00A0blindtext2\u00Ablindtext3 "+ "blindtext4\u00A0lindtext\u00A0blindtext\u00A0" | node.text=(u"blindtext1\u00A0blindtext2\u00Ablindtext3 "+ u"blindtext4\u00A0blindtext\u00A0blindtext\u00A0") | def setNBSP(): node = Player.getElementByID("dynamictext") node.width=100 node.text=u"blindtext1\u00A0blindtext2\u00Ablindtext3 "+ "blindtext4\u00A0lindtext\u00A0blindtext\u00A0" | 8e2394e01d055683bfb06c7dfd89ddcf749c1b15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/8e2394e01d055683bfb06c7dfd89ddcf749c1b15/WordsTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
20626,
3118,
13332,
756,
273,
19185,
18,
21336,
13331,
2932,
31129,
933,
408,
7923,
756,
18,
2819,
33,
6625,
756,
18,
955,
33,
89,
6,
3083,
728,
955,
21,
64,
89,
713,
37,
20,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
20626,
3118,
13332,
756,
273,
19185,
18,
21336,
13331,
2932,
31129,
933,
408,
7923,
756,
18,
2819,
33,
6625,
756,
18,
955,
33,
89,
6,
3083,
728,
955,
21,
64,
89,
713,
37,
20,
30... |
return self._groups | return self._groupnames def by_group(self, elts): ungrouped = [e for e in elts if not self._anygroup.has_key(e.name())] grouped = [(g, [e for e in elts if self._groupmembers[g].has_key(e.name())]) for g in self._groupnames] if ungrouped: return [(None,ungrouped)]+grouped else: return grouped | def groups(self): return self._groups | 3483c073f313594e2126bb590c1618ff249ff09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3483c073f313594e2126bb590c1618ff249ff09b/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3252,
12,
2890,
4672,
327,
365,
6315,
4650,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3252,
12,
2890,
4672,
327,
365,
6315,
4650,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
- B -- positive integer OUTPUT: - vector over ZZ with B entries | - ``B`` -- positive integer OUTPUT: vector over `\\ZZ` with ``B`` entries | def theta_series_vector(self, B): """ Return theta series coefficients of self, as a vector of `B` integers. | b7a16ed05ab1759a61c3840607275d6cd5b220a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b7a16ed05ab1759a61c3840607275d6cd5b220a1/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
67,
10222,
67,
7737,
12,
2890,
16,
605,
4672,
3536,
2000,
7338,
4166,
14229,
434,
365,
16,
487,
279,
3806,
434,
1375,
38,
68,
12321,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
7338,
67,
10222,
67,
7737,
12,
2890,
16,
605,
4672,
3536,
2000,
7338,
4166,
14229,
434,
365,
16,
487,
279,
3806,
434,
1375,
38,
68,
12321,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
FixedTargetTest.__init__(self, targets) | FixedTargetTest.__init__(self, utargets) | def __init__(self, targets): BaseHTTPTest.__init__(self) utargets = [t for t in targets if self._is_useable_url(t, ['http'])] FixedTargetTest.__init__(self, targets) | 90c90d31036c691f9c9aaf7f88b6f051e32e6285 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/90c90d31036c691f9c9aaf7f88b6f051e32e6285/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5774,
4672,
3360,
3693,
4709,
16186,
2738,
972,
12,
2890,
13,
5218,
826,
87,
273,
306,
88,
364,
268,
316,
5774,
309,
365,
6315,
291,
67,
1202,
429,
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,
1001,
2738,
972,
12,
2890,
16,
5774,
4672,
3360,
3693,
4709,
16186,
2738,
972,
12,
2890,
13,
5218,
826,
87,
273,
306,
88,
364,
268,
316,
5774,
309,
365,
6315,
291,
67,
1202,
429,
67,
... |
self._statusbar(msg="Searching...") | self._statusbar(_("Searching for %s..." %keywords)) | def _fork(): repos_tree = self.gld.get_widget("repos_tree") repos_model = repos_tree.get_model() pacs = self.database.get_by_keywords(keywords) if self.search_iter: repos_model.remove(self.search_iter) self.search_iter = repos_model.append(None, [_("Search results for '%s'") %keywords]) self.models["search"] = search_... | 9064ea83b7f7c250ddde26dda9d2d559d0848000 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/9064ea83b7f7c250ddde26dda9d2d559d0848000/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23335,
13332,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
13686,
67,
2284,
273,
13686,
67,
3413,
18,
588,
67,
2284,
1435,
225,
293,
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,
389,
23335,
13332,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
13686,
67,
2284,
273,
13686,
67,
3413,
18,
588,
67,
2284,
1435,
225,
293,
28... |
if verbose: print 'unpack tuple' a, b, c = t if a != 1 or b != 2 or c != 3: raise TestFailed | >>> l = [4, 5, 6] >>> a, b, c = l >>> a == 4 and b == 5 and c == 6 True | def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError | 3981511070311e958bd2cd48b1ab16b24f8b350e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3981511070311e958bd2cd48b1ab16b24f8b350e/test_unpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
1545,
374,
471,
277,
411,
890,
30,
327,
277,
1002,
10195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
1545,
374,
471,
277,
411,
890,
30,
327,
277,
1002,
10195,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache % self.parent().prime_pow(halt - right.valuation()): | elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache.lift() % self.parent().prime_pow(halt - right.valuation()): | def __cmp__(self, right, halt = None): if halt is None: halt = self.parent().halting_parameter() #print "self = %s, type = %s"%(self, type(self)) #print "right = %s, type = %s"%(right, type(right)) if self.valuation() < right.valuation(): return -1 elif self.valuation() > right.valuation(): return 1 elif self.valuation... | 9fa135a5cd623a645e15a84938ff8e9507360652 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9fa135a5cd623a645e15a84938ff8e9507360652/padic_lazy_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
16,
18389,
273,
599,
4672,
309,
18389,
353,
599,
30,
18389,
273,
365,
18,
2938,
7675,
22314,
1787,
67,
6775,
1435,
468,
1188,
315,
2890,
273,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
16,
18389,
273,
599,
4672,
309,
18389,
353,
599,
30,
18389,
273,
365,
18,
2938,
7675,
22314,
1787,
67,
6775,
1435,
468,
1188,
315,
2890,
273,
738,
... |
g2c = self.g2c if g2c is not None: opt.append(g2c) c_compiler = self.c_compiler if sys.platform == 'win32' and c_compiler and \ c_compiler.compiler_type=='msvc': opt.append('gcc') runtime_lib = msvc_runtime_library() if runtime_lib: opt.append(runtime_lib) if sys.platform == 'darwin': opt.append('cc_dynamic') return... | c.dump_properties() compilers.append(("fcompiler="+compiler, None, fcompiler_class[compiler][2] + ' (%s)' % v)) compilers_ni = list(set(fcompiler_class.keys()) - set(platform_compilers)) compilers_ni = [("fcompiler="+fc, None, fcompiler_class[fc][2]) for fc in compilers_ni] compilers.sort() compilers_na.sort() compil... | def get_libraries(self): opt = [] d = self.get_libgcc_dir() if d is not None: g2c = self.g2c + '-pic' f = self.static_lib_format % (g2c, self.static_lib_extension) if not os.path.isfile(os.path.join(d,f)): g2c = self.g2c else: g2c = self.g2c | 88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
31417,
12,
2890,
4672,
2153,
273,
5378,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
302,
353,
486,
599,
30,
314,
22,
71,
273,
365,
18,
75,
22,
71,
397,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31417,
12,
2890,
4672,
2153,
273,
5378,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
302,
353,
486,
599,
30,
314,
22,
71,
273,
365,
18,
75,
22,
71,
397,... |
ui.write("Found bad cset: %s\n" % hg.hex(b.badrev)) | ui.write("Found bad cset: %s\n" % hg.hex(b.badnode)) | def test(ui, repo, rev): """test the bisection code""" b = bisect(ui, repo) rev = repo.lookup(rev) ui.write("testing with rev %s\n" % hg.hex(rev)) anc = b.ancestors() while len(anc) > 1: if not rev in anc: ui.warn("failure while bisecting\n") sys.exit(1) ui.write("it worked :)\n") new_rev = b.next() ui.write("choosing ... | 6919e042e934d02082016dfb73d7ed6ccac1b5b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/6919e042e934d02082016dfb73d7ed6ccac1b5b5/hbisect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
4881,
16,
3538,
16,
5588,
4672,
3536,
3813,
326,
324,
784,
349,
981,
8395,
324,
273,
27031,
12,
4881,
16,
3538,
13,
5588,
273,
3538,
18,
8664,
12,
9083,
13,
5915,
18,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
4881,
16,
3538,
16,
5588,
4672,
3536,
3813,
326,
324,
784,
349,
981,
8395,
324,
273,
27031,
12,
4881,
16,
3538,
13,
5588,
273,
3538,
18,
8664,
12,
9083,
13,
5915,
18,
2626,
... |
result = self.__setRegistrationRequest(fileDict['LFN'],se,'') | result = self.__setRegistrationRequest(fileDict['LFN'],se,'',fileDict) | def transferAndRegisterFile(self,fileName,localPath,lfn,destinationSEList,fileGUID=None,fileCatalog=None): """Performs the transfer and register operation with failover. """ errorList = [] for se in destinationSEList: self.log.info('Attempting rm.putAndRegister("%s","%s","%s",guid="%s",catalog="%s")' %(lfn,localPath,se... | 7a20f605299fa7e624d8f2dad9d33a602c724dde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7a20f605299fa7e624d8f2dad9d33a602c724dde/FailoverTransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
1876,
3996,
812,
12,
2890,
16,
17812,
16,
3729,
743,
16,
80,
4293,
16,
10590,
1090,
682,
16,
768,
17525,
33,
7036,
16,
768,
9769,
33,
7036,
4672,
3536,
9409,
326,
7412,
471,
1744... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
1876,
3996,
812,
12,
2890,
16,
17812,
16,
3729,
743,
16,
80,
4293,
16,
10590,
1090,
682,
16,
768,
17525,
33,
7036,
16,
768,
9769,
33,
7036,
4672,
3536,
9409,
326,
7412,
471,
1744... |
newline = ' firefox: ' + self.exePath if 'testtitle' in line: newline = line.replace('testtitle', self.title) | newline = 'firefox: ' + self.exePath if 'title:' in line: newline = 'title: ' + self.title | def writeConfigFile(self): configFile = open(path.join(self.configPath, "sample.config")) self.currentDate = self._getCurrentDateString() if not self.buildid: self.buildid = self._getCurrentBuildId() if not self.outputName: self.outputName = self.currentDate + "_config.yml" destination = open(self.outputName, "w") conf... | 4c906af96dfa1b3a689b4abe42854d0d160b3472 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/4c906af96dfa1b3a689b4abe42854d0d160b3472/PerfConfigurator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
13705,
12,
2890,
4672,
12247,
273,
1696,
12,
803,
18,
5701,
12,
2890,
18,
1425,
743,
16,
315,
6358,
18,
1425,
6,
3719,
365,
18,
2972,
1626,
273,
365,
6315,
588,
3935,
1626,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
13705,
12,
2890,
4672,
12247,
273,
1696,
12,
803,
18,
5701,
12,
2890,
18,
1425,
743,
16,
315,
6358,
18,
1425,
6,
3719,
365,
18,
2972,
1626,
273,
365,
6315,
588,
3935,
1626,
780,
... |
def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False, endpoint_tolerance=1e-5): | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): r""" Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This provides one way to iterate over Sage integers as opposed to Python int's. It also allows you to specify step... | 7dbed6340590bb07caaccdfb42c33acf5a427320 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7dbed6340590bb07caaccdfb42c33acf5a427320/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
16,
2494,
67,
25456,
33,
21,
73,
17,
25,
4672,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
16,
2494,
67,
25456,
33,
21,
73,
17,
25,
4672,
436,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.