rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if exact: z = self.getLevel(res, self.size) else: z = self.getClosestLevel(res) | z = self.getLevel(res, self.size) | def getCell (self, (minx, miny, maxx, maxy), exact = True): if exact and self.extent_type == "strict" and not self.contains((minx, miny)): raise TileCacheException("Lower left corner (%f, %f) is outside layer bounds %s. \nTo remove this condition, set extent_type=loose in your configuration." % (minx, miny, self.bbox))... | 86cfe892e9a7aa7e7bca1489a75042a1f12b3c49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6188/86cfe892e9a7aa7e7bca1489a75042a1f12b3c49/Layer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16458,
261,
2890,
16,
261,
1154,
92,
16,
1131,
93,
16,
943,
92,
16,
943,
93,
3631,
5565,
273,
1053,
4672,
309,
5565,
471,
365,
18,
18181,
67,
723,
422,
315,
13948,
6,
471,
486,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16458,
261,
2890,
16,
261,
1154,
92,
16,
1131,
93,
16,
943,
92,
16,
943,
93,
3631,
5565,
273,
1053,
4672,
309,
5565,
471,
365,
18,
18181,
67,
723,
422,
315,
13948,
6,
471,
486,
365,
... |
return [a.get('contact', '') for a in self.getAttendees()] | users = list(set([a.get('contact', '') for a in self.getAttendees()] + [a.get('contact', '') for a in self.getResponsibility()])) return users | def getAttendeesOrUsers(self): if self.getMeeting_type() == 'poodle_additional': return self.getUsers() elif self.getMeeting_type() == 'meeting_dates_additional': return [a.get('contact', '') for a in self.getAttendees()] else: return | de507eabcdb826f3df63f0736aea68286c37b98a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11898/de507eabcdb826f3df63f0736aea68286c37b98a/meeting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3075,
275,
323,
281,
1162,
6588,
12,
2890,
4672,
309,
365,
18,
588,
4667,
21747,
67,
723,
1435,
422,
296,
1631,
369,
298,
67,
13996,
4278,
327,
365,
18,
588,
6588,
1435,
1327,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3075,
275,
323,
281,
1162,
6588,
12,
2890,
4672,
309,
365,
18,
588,
4667,
21747,
67,
723,
1435,
422,
296,
1631,
369,
298,
67,
13996,
4278,
327,
365,
18,
588,
6588,
1435,
1327,
365... |
dependToDated=True, **kwargs): | dependToDated=True, uploadCompleteMar=True, **kwargs): | def __init__(self, objdir, username, milestone, platform, remoteHost, remoteBasePath, group=None, chmodMode=755, sshKey=None, releaseToDated=True, releaseToLatest=True, releaseToTinderboxBuilds=True, tinderboxBuildsDir=None, dependToDated=True, **kwargs): """ @type objdir: string @param objdir: The obj directory used ... | e014b77d52e1cd2daf9603df55c398336990097c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/e014b77d52e1cd2daf9603df55c398336990097c/transfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1081,
1214,
16,
2718,
16,
28664,
16,
4072,
16,
2632,
2594,
16,
2632,
15912,
16,
1041,
33,
7036,
16,
13413,
2309,
33,
21761,
16,
7056,
653,
33,
7036,
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,
1001,
2738,
972,
12,
2890,
16,
1081,
1214,
16,
2718,
16,
28664,
16,
4072,
16,
2632,
2594,
16,
2632,
15912,
16,
1041,
33,
7036,
16,
13413,
2309,
33,
21761,
16,
7056,
653,
33,
7036,
16,
... |
res = self.wmsClient.getJobsStatus(wmsIDs) | res = self.jobMonitoringClient.getJobsStatus(wmsIDs) | def getSubmittedTaskStatus(self,taskDicts): wmsIDs = [] for taskDict in taskDicts: wmsID = taskDict['JobWmsID'] wmsIDs.append(wmsID) res = self.wmsClient.getJobsStatus(wmsIDs) if not res['OK']: self.log.warn("Failed to get job status from the WMS system") return res updateDict = {} statusDict = result['Value'] for task... | 83b9db9976066289db9fe646975e00b42ef78b0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/83b9db9976066289db9fe646975e00b42ef78b0a/TaskManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7040,
7948,
2174,
1482,
12,
2890,
16,
4146,
5014,
87,
4672,
341,
959,
5103,
273,
5378,
364,
1562,
5014,
316,
1562,
5014,
87,
30,
341,
959,
734,
273,
1562,
5014,
3292,
2278,
59,
959,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7040,
7948,
2174,
1482,
12,
2890,
16,
4146,
5014,
87,
4672,
341,
959,
5103,
273,
5378,
364,
1562,
5014,
316,
1562,
5014,
87,
30,
341,
959,
734,
273,
1562,
5014,
3292,
2278,
59,
959,
73... |
stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, Contexteters) | stream = XMLParser(data, NAMESPACES) stream.next() para = paragraph_stream(stream, 'p', {}, context) | def test_formatting(self): Contexteters = Context() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, Contexteters) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>') | 3f5572cf3ff452e63a9867d97740e432a5973b1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/3f5572cf3ff452e63a9867d97740e432a5973b1d/test_rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
1772,
1032,
273,
1772,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
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,
1842,
67,
2139,
1787,
12,
2890,
4672,
1772,
1032,
273,
1772,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
... |
""" Get coordinate array. | """Get coordinate array. | def getXyz( self ): """ Get coordinate array. @return: coordinates, N.array( N x 3, 'f') @rtype: array @raise ParseError: if can't interprete second line """ if not self.xyz: | 6561fff7ef3f1bdce874a4f2653fa69f6a6cb913 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/6561fff7ef3f1bdce874a4f2653fa69f6a6cb913/AmberRstParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6538,
93,
94,
12,
365,
262,
30,
3536,
967,
7799,
526,
18,
225,
632,
2463,
30,
5513,
16,
423,
18,
1126,
12,
423,
619,
890,
16,
296,
74,
6134,
632,
86,
723,
30,
526,
225,
632,
11628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6538,
93,
94,
12,
365,
262,
30,
3536,
967,
7799,
526,
18,
225,
632,
2463,
30,
5513,
16,
423,
18,
1126,
12,
423,
619,
890,
16,
296,
74,
6134,
632,
86,
723,
30,
526,
225,
632,
11628,... |
((1, 3), 4) ((1, 0), 4) ((0, 2), 6) | def degree_iterator(self, vertices=None, labels=False): """ INPUT: labels=False: returns an iterator over degrees. labels=True: returns an iterator over tuples (vertex, degree). vertices -- if specified, restrict to this subset. EXAMPLE: sage: D = graphs.Grid2dGraph(2,4).to_directed() sage: for i in D.degree_iterator(... | c6ee9b8c95a50319119e91b8cfe37d340af4ae88 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c6ee9b8c95a50319119e91b8cfe37d340af4ae88/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10782,
67,
9838,
12,
2890,
16,
6928,
33,
7036,
16,
3249,
33,
8381,
4672,
3536,
12943,
30,
3249,
33,
8381,
30,
1135,
392,
2775,
1879,
10904,
18,
3249,
33,
5510,
30,
1135,
392,
2775,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10782,
67,
9838,
12,
2890,
16,
6928,
33,
7036,
16,
3249,
33,
8381,
4672,
3536,
12943,
30,
3249,
33,
8381,
30,
1135,
392,
2775,
1879,
10904,
18,
3249,
33,
5510,
30,
1135,
392,
2775,
187... | |
def maketables(): | def maketables(trace=0): | def maketables(): unicode = UnicodeData(UNICODE_DATA) # extract unicode properties dummy = (0, 0, 0, 0) table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) # 1) database properties for char in unicode.chars: record = unicode.table[char] if record: # extract database properties category = CATEGORY_NAM... | 2622eef694d130c649bfad1efd483f3876f83f54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2622eef694d130c649bfad1efd483f3876f83f54/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
1538,
12,
5129,
33,
20,
4672,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
13,
1014,
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,
29796,
278,
1538,
12,
5129,
33,
20,
4672,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
13,
1014,
273... |
v = getattr(obj, k) | v = getattr(obj, k, AttributeError) | def trace_one(self, req, typename, objid): rows = [] objid = int(objid) all_objs = gc.get_objects() for obj in all_objs: if id(obj) == objid: objtype = type(obj) if objtype.__module__ + "." + objtype.__name__ != typename: rows = ["<h3>The object you requested is no longer " "of the correct type.</h3>"] else: # Attribut... | 1f746dbb218375700e6e80f65ff139df2f1cc4dd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1012/1f746dbb218375700e6e80f65ff139df2f1cc4dd/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
476,
12,
2890,
16,
1111,
16,
26735,
16,
1081,
350,
4672,
2595,
273,
5378,
1081,
350,
273,
509,
12,
2603,
350,
13,
777,
67,
18093,
273,
8859,
18,
588,
67,
6911,
1435,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
476,
12,
2890,
16,
1111,
16,
26735,
16,
1081,
350,
4672,
2595,
273,
5378,
1081,
350,
273,
509,
12,
2603,
350,
13,
777,
67,
18093,
273,
8859,
18,
588,
67,
6911,
1435,
364,
1... |
"""Starts the SchoolTool HTTP server. | """Start the SchoolTool HTTP server. | def main(self, args): """Starts the SchoolTool HTTP server. | da1dca3f77b894f6d64135657128f461356526df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/da1dca3f77b894f6d64135657128f461356526df/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
16,
833,
4672,
3536,
11203,
326,
348,
343,
1371,
6364,
2239,
1438,
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,
2774,
12,
2890,
16,
833,
4672,
3536,
11203,
326,
348,
343,
1371,
6364,
2239,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
format = '%(message)s' | msg_format = '%(message)s' | def setup_logger(options): """Setup the global (root, basic) configuration for logging.""" format = '%(message)s' if options.debug: level = logging.DEBUG format = '%(levelname)s:%(name)s:%(message)s' elif options.verbose: level = logging.DEBUG elif options.quiet: level = logging.ERROR else: level = logging.INFO logging... | d06210e4550685a6f56af05f975818b155b4b91e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/d06210e4550685a6f56af05f975818b155b4b91e/google.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4901,
12,
2116,
4672,
3536,
7365,
326,
2552,
261,
3085,
16,
5337,
13,
1664,
364,
2907,
12123,
1234,
67,
2139,
273,
21063,
2150,
13,
87,
11,
309,
702,
18,
4148,
30,
1801,
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,
3875,
67,
4901,
12,
2116,
4672,
3536,
7365,
326,
2552,
261,
3085,
16,
5337,
13,
1664,
364,
2907,
12123,
1234,
67,
2139,
273,
21063,
2150,
13,
87,
11,
309,
702,
18,
4148,
30,
1801,
273,... |
q = self.get_table().insert() self.assertRaisesAny(q.execute, coldata) | query = self.get_table().insert() self.assertRaisesAny(query.execute, coldata) | def not_nullable(self): """Check that certain columns of a table are not nullable. Specify the ``not_nullables`` class variable with a list of column names that must not be null, and this method will insert into the table rows with each set to null and test for an exception from the database layer. """ | e26115b12b8916821fc089470a71b177e9807d0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/e26115b12b8916821fc089470a71b177e9807d0e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
67,
20247,
12,
2890,
4672,
3536,
1564,
716,
8626,
2168,
434,
279,
1014,
854,
486,
8413,
18,
225,
21664,
326,
12176,
902,
67,
2011,
1538,
10335,
667,
2190,
598,
279,
666,
434,
1057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
67,
20247,
12,
2890,
4672,
3536,
1564,
716,
8626,
2168,
434,
279,
1014,
854,
486,
8413,
18,
225,
21664,
326,
12176,
902,
67,
2011,
1538,
10335,
667,
2190,
598,
279,
666,
434,
1057,
... |
"Change view so that the entire model fits in the glpane." part = self.part part.computeBoundingBox() scale = float( part.bbox.scale() * .75) | "Change view so that the entire model fits in the glpane. If <fast> is True, then snap to the view (i.e. don't animate)" bbox = BBox() for mol in self.assy.molecules: if mol.hidden or mol.display == diINVISIBLE: continue bbox.merge(mol.bbox) center = bbox.center() scale = float( bbox.scale() * .75) | def setViewFitToWindow(self, fast=False): "Change view so that the entire model fits in the glpane." #Recalculate center and bounding box for the current part part = self.part part.computeBoundingBox() scale = float( part.bbox.scale() * .75) #bruce 050616 added float() as a precaution, probably not needed # appropriate... | 724d682b036849f840cb9e8a7bea953ecce28880 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/724d682b036849f840cb9e8a7bea953ecce28880/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19923,
14219,
774,
3829,
12,
2890,
16,
4797,
33,
8381,
4672,
315,
3043,
1476,
1427,
716,
326,
7278,
938,
13351,
316,
326,
5118,
29009,
1199,
468,
426,
11162,
4617,
471,
7552,
3919,
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,
19923,
14219,
774,
3829,
12,
2890,
16,
4797,
33,
8381,
4672,
315,
3043,
1476,
1427,
716,
326,
7278,
938,
13351,
316,
326,
5118,
29009,
1199,
468,
426,
11162,
4617,
471,
7552,
3919,
364,
... |
default alt_loc. The iteration is preformed in order according to | default alt_loc. The iteration is preformed in order according to | def iter_atoms(self): """Iterates over all Atom objects in the default Model, using the default alt_loc. The iteration is preformed in order according to the Chain and Fragment ordering rules the Atom object is a part of. """ if self.default_model is None: raise StopIteration for chain in self.default_model.chain_lis... | a181eacbeb3c68b8f7caba918a821d3f3e6c50f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/a181eacbeb3c68b8f7caba918a821d3f3e6c50f6/Structure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
14937,
12,
2890,
4672,
3536,
22051,
1879,
777,
7149,
2184,
316,
326,
805,
3164,
16,
1450,
326,
805,
3770,
67,
1829,
18,
1021,
6532,
353,
675,
7312,
316,
1353,
4888,
358,
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,
1400,
67,
14937,
12,
2890,
4672,
3536,
22051,
1879,
777,
7149,
2184,
316,
326,
805,
3164,
16,
1450,
326,
805,
3770,
67,
1829,
18,
1021,
6532,
353,
675,
7312,
316,
1353,
4888,
358,
326,
... |
(step, self.linesearch_stop_code) | (step, ('energy decreased' if new_energy < cur_energy else 'iteration limit reached')) if not dostep: p.restore(bup) | def _step_direction(self, p): grad, step_coeff = \ super(gd_linesearch_update, self)._step_direction(p) feval = self.feval states = p.states bup = p.backup() stop = self.max_line_steps step = 0 cur_energy = feval() new_energy = np.infty while new_energy > cur_energy and step != stop: for (g, state) in zip(gr... | 0ba80740ba1ae1f95289a79fc05208c58ebe6f01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9024/0ba80740ba1ae1f95289a79fc05208c58ebe6f01/parameter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4119,
67,
9855,
12,
2890,
16,
293,
4672,
6058,
16,
2235,
67,
18132,
273,
521,
2240,
12,
19016,
67,
3548,
73,
991,
67,
2725,
16,
365,
2934,
67,
4119,
67,
9855,
12,
84,
13,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4119,
67,
9855,
12,
2890,
16,
293,
4672,
6058,
16,
2235,
67,
18132,
273,
521,
2240,
12,
19016,
67,
3548,
73,
991,
67,
2725,
16,
365,
2934,
67,
4119,
67,
9855,
12,
84,
13,
225,
... |
self.has_changed = True | self.has_changed = True | def touch_handler(self, key, handler=None): key = self.normalize_key(key) | c96c012a52029f61b08814f16a9993e67153d063 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/c96c012a52029f61b08814f16a9993e67153d063/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6920,
67,
4176,
12,
2890,
16,
498,
16,
1838,
33,
7036,
4672,
498,
273,
365,
18,
12237,
67,
856,
12,
856,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6920,
67,
4176,
12,
2890,
16,
498,
16,
1838,
33,
7036,
4672,
498,
273,
365,
18,
12237,
67,
856,
12,
856,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else: | elif style == 'arrowhead-to-bp': | "#doc [dispdef can be None if not known to caller]" | cd79836bc81615ff8f163132777c1b0ff2d5f998 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/cd79836bc81615ff8f163132777c1b0ff2d5f998/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6619,
2434,
306,
25453,
536,
848,
506,
599,
309,
486,
4846,
358,
4894,
4279,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6619,
2434,
306,
25453,
536,
848,
506,
599,
309,
486,
4846,
358,
4894,
4279,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bayes_options_filename = os.path.join(self.data_directory, "default_bayes_customize.ini") import_core_spambayes_stuff(bayes_options_filename) | bayes_option_filenames = [] for look_dir in [self.application_directory, self.data_directory]: look_file = os.path.join(look_dir, "default_bayes_customize.ini") if os.path.isfile(look_file): bayes_option_filenames.append(look_file) import_core_spambayes_stuff(bayes_option_filenames) | def __init__(self, config_base="default", outlook=None, verbose=0): self.never_configured = True self.reported_error_map = {} self.reported_startup_error = False self.config = self.options = None self.addin = None self.verbose = verbose self.outlook = outlook self.dialog_parser = None self.test_suite_running = False | f61459525c99550a047f75d3bfd18c27348ca55b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/f61459525c99550a047f75d3bfd18c27348ca55b/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
67,
1969,
1546,
1886,
3113,
596,
7330,
33,
7036,
16,
3988,
33,
20,
4672,
365,
18,
4644,
502,
67,
16449,
273,
1053,
365,
18,
266,
1798,
67,
1636,
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,
1001,
2738,
972,
12,
2890,
16,
642,
67,
1969,
1546,
1886,
3113,
596,
7330,
33,
7036,
16,
3988,
33,
20,
4672,
365,
18,
4644,
502,
67,
16449,
273,
1053,
365,
18,
266,
1798,
67,
1636,
6... |
os.removedirs(path) | shutil.rmtree(path) | def read_data(path): f = open(path) data = f.read() f.close() return data | cdeda9aab24854e9c13f72b2b392a3a482b0afbe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/cdeda9aab24854e9c13f72b2b392a3a482b0afbe/test_shutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
892,
12,
803,
4672,
284,
273,
1696,
12,
803,
13,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
327,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
892,
12,
803,
4672,
284,
273,
1696,
12,
803,
13,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
327,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self._prop['hold']: if not None in self._prop['xlim']: xlim = self._check_lim(self._prop['xlim'], xlim) if not None in self._prop['ylim']: ylim = self._check_lim(self._prop['ylim'], ylim) if not None in self._prop['zlim']: zlim = self._check_lim(self._prop['zlim'], zlim) | if not None in self._prop['xlim']: xlim = self._check_lim(self._prop['xlim'], xlim) if not None in self._prop['ylim']: ylim = self._check_lim(self._prop['ylim'], ylim) if not None in self._prop['zlim']: zlim = self._check_lim(self._prop['zlim'], zlim) | def _update_limits(self, item): """ Update axis limits according to the PlotProperties given in 'item'. """ xlim = item.get('xlim') ylim = item.get('ylim') zlim = item.get('zlim') if self._prop['hold']: # update limits as necessary: if not None in self._prop['xlim']: xlim = self._check_lim(self._prop['xlim'], xlim) if ... | c8ea790ab23e6d82a1828cb8b3aa7a907ce1cb8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4727/c8ea790ab23e6d82a1828cb8b3aa7a907ce1cb8d/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
14270,
12,
2890,
16,
761,
4672,
3536,
2315,
2654,
8181,
4888,
358,
326,
15211,
2297,
864,
316,
296,
1726,
10332,
3536,
19744,
273,
761,
18,
588,
2668,
21611,
6134,
18447,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
67,
14270,
12,
2890,
16,
761,
4672,
3536,
2315,
2654,
8181,
4888,
358,
326,
15211,
2297,
864,
316,
296,
1726,
10332,
3536,
19744,
273,
761,
18,
588,
2668,
21611,
6134,
18447,
... |
except core.SubversionException, e: | except (core.SubversionException, AttributeError), e: | def blame_receiver(line_no, revision, author, date, line, pool): annotations.append(revision) | ff15ef4d4eedea2f1d3941e7bf7b557714b90644 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/ff15ef4d4eedea2f1d3941e7bf7b557714b90644/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2811,
339,
67,
24454,
12,
1369,
67,
2135,
16,
6350,
16,
2869,
16,
1509,
16,
980,
16,
2845,
4672,
5617,
18,
6923,
12,
13057,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2811,
339,
67,
24454,
12,
1369,
67,
2135,
16,
6350,
16,
2869,
16,
1509,
16,
980,
16,
2845,
4672,
5617,
18,
6923,
12,
13057,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if valign != 'BOTTOM' or just != 'LEFT': W = [] w, h = _listCellGeom(cellval,colwidth,cellstyle,W=W) | W = [] H = [] w, h = _listCellGeom(cellval,colwidth,cellstyle,W=W, H=H) if valign=='TOP': y = rowpos + rowheight - cellstyle.topPadding elif valign=='BOTTOM': y = rowpos+cellstyle.bottomPadding + h | def _drawCell(self, cellval, cellstyle, (colpos, rowpos), (colwidth, rowheight)): if self._curcellstyle is not cellstyle: cur = self._curcellstyle if cur is None or cellstyle.color != cur.color: self.canv.setFillColor(cellstyle.color) if cur is None or cellstyle.leading != cur.leading or cellstyle.fontname != cur.fontn... | 9f5a788184a7139b9b717f8b6082af233464645d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9f5a788184a7139b9b717f8b6082af233464645d/tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
4020,
12,
2890,
16,
2484,
1125,
16,
2484,
4060,
16,
261,
1293,
917,
16,
1027,
917,
3631,
261,
1293,
2819,
16,
1027,
4210,
3719,
30,
309,
365,
6315,
1397,
3855,
4060,
353,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
4020,
12,
2890,
16,
2484,
1125,
16,
2484,
4060,
16,
261,
1293,
917,
16,
1027,
917,
3631,
261,
1293,
2819,
16,
1027,
4210,
3719,
30,
309,
365,
6315,
1397,
3855,
4060,
353,
48... |
if resp[0] != '3': | if not resp.startswith(b'3'): | def post(self, f): """Process a POST command. Arguments: - f: file containing the article Returns: - resp: server response if successful""" | 17de0ac39e028b8777529030dfc984cdf592a543 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/17de0ac39e028b8777529030dfc984cdf592a543/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
16,
284,
4672,
3536,
2227,
279,
5485,
1296,
18,
225,
13599,
30,
300,
284,
30,
585,
4191,
326,
7559,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
8395,
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,
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,
1603,
12,
2890,
16,
284,
4672,
3536,
2227,
279,
5485,
1296,
18,
225,
13599,
30,
300,
284,
30,
585,
4191,
326,
7559,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
8395,
2,
-100,
-100,
... |
content = mg.content | self.logger.debug("ModelGroup(%r) contents(%r): %s" % (mg, mg.content, self._item.getItemTrace())) | def _setTypecodeList(self): """generates ofwhat content, minOccurs/maxOccurs facet generation. Dependency instance attribute: mgContent -- expected to be either a complex definition with model group content, a model group, or model group content. TODO: should only support the first two. localTypes -- produce local cla... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
559,
710,
682,
12,
2890,
4672,
3536,
3441,
815,
434,
23770,
913,
16,
1131,
31084,
19,
1896,
31084,
11082,
9377,
18,
11993,
791,
1566,
30,
11174,
1350,
1493,
2665,
358,
506,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
559,
710,
682,
12,
2890,
4672,
3536,
3441,
815,
434,
23770,
913,
16,
1131,
31084,
19,
1896,
31084,
11082,
9377,
18,
11993,
791,
1566,
30,
11174,
1350,
1493,
2665,
358,
506,
334... |
print 'MAKING q2q service for', certificateEntity | def _makeQ2QService(self, certificateEntity, pff=None): print 'MAKING q2q service for', certificateEntity svc = q2q.Q2QService(pff, q2qPortnum=0, inboundTCPPortnum=self.inboundTCPPortnum) svc.udpEnabled = self.udpEnabled svc.virtualEnabled = self.virtualEnabled if '@' not in certificateEntity: svc.certificateStorage.ad... | e56dcf564dc442d95c85eb44f592b6672bad21ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/e56dcf564dc442d95c85eb44f592b6672bad21ad/test_q2q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
53,
22,
53,
1179,
12,
2890,
16,
4944,
1943,
16,
293,
1403,
33,
7036,
4672,
7538,
273,
1043,
22,
85,
18,
53,
22,
53,
1179,
12,
84,
1403,
16,
1043,
22,
85,
2617,
2107,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
53,
22,
53,
1179,
12,
2890,
16,
4944,
1943,
16,
293,
1403,
33,
7036,
4672,
7538,
273,
1043,
22,
85,
18,
53,
22,
53,
1179,
12,
84,
1403,
16,
1043,
22,
85,
2617,
2107,
33,... | |
vbox.pack_start(hbox, False, False) | vbox.pack_start(hbox1, False, False) vbox.pack_start(hbox2, False, False) | def __init__(self, in_path = None): rox.Window.__init__(self) self.set_title(APP_NAME) self.set_default_size(550, 500) self.cancel = False self.running = False self.selected = False self.path = '' self.what = '' self.where = '' toolbar = gtk.Toolbar() toolbar.set_style(gtk.TOOLBAR_ICONS) toolbar.insert_stock(gtk.STOC... | 438364b32a747fe39be6e8f2ea68669bc697db81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5002/438364b32a747fe39be6e8f2ea68669bc697db81/filefind.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
67,
803,
273,
599,
4672,
721,
92,
18,
3829,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
67,
2649,
12,
7215,
67,
1985,
13,
365,
18,
542,
67,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
67,
803,
273,
599,
4672,
721,
92,
18,
3829,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
67,
2649,
12,
7215,
67,
1985,
13,
365,
18,
542,
67,
18... |
else | else: | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 861) else quickfix.DoubleField.__init__(self, 861, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
9498,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
9498,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
27... |
selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText(... | if self: selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetSt... | def RefreshStatusBar(self): selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0)... | 2b7fbb1fac6a6a375a61ad7642e1cab62481cb8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/116/2b7fbb1fac6a6a375a61ad7642e1cab62481cb8d/networkedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
30,
3170,
273,
365,
18,
3906,
3205,
18,
967,
6233,
1435,
309,
365,
18,
6696,
5190,
471,
3170,
1545,
374,
30,
2742,
273,
365,
18,
3906,
3205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
30,
3170,
273,
365,
18,
3906,
3205,
18,
967,
6233,
1435,
309,
365,
18,
6696,
5190,
471,
3170,
1545,
374,
30,
2742,
273,
365,
18,
3906,
3205... |
if not node.dad.__class__.__name__ == 'DnaStrand': | if node.parent_node_of_class(self.assy.DnaStrand) is None: | def filterStrands(node): if node.__class__.__name__ == 'DnaStrand': strandList.append(node) elif isinstance(node, Chunk) and node.isStrandChunk(): if not node.dad.__class__.__name__ == 'DnaStrand': strandList.append(node) | 1058407c629b533c5228002ab0b2b3aae47673e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/1058407c629b533c5228002ab0b2b3aae47673e7/DnaGroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
1585,
5708,
12,
2159,
4672,
309,
756,
16186,
1106,
972,
16186,
529,
972,
422,
296,
40,
6582,
1585,
464,
4278,
16706,
682,
18,
6923,
12,
2159,
13,
1327,
1549,
12,
2159,
16,
13021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
1585,
5708,
12,
2159,
4672,
309,
756,
16186,
1106,
972,
16186,
529,
972,
422,
296,
40,
6582,
1585,
464,
4278,
16706,
682,
18,
6923,
12,
2159,
13,
1327,
1549,
12,
2159,
16,
13021,
... |
drive_num:: An integer specifying a drive number. path:: A unicode string specifying the path. | @param drive_num:: An integer specifying a drive number. @param path:: A unicode string specifying the path. | def create_drive_subst(drive_num, path): """ Assigns a path to a drive letter. To clear an existing substitution, specify an empty string as the path. drive_num:: An integer specifying a drive number. path:: A unicode string specifying the path. """ pass | 88b8a1bd1deaae376f22144e433e9a82abe1b629 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12774/88b8a1bd1deaae376f22144e433e9a82abe1b629/miso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
25431,
67,
1717,
334,
12,
25431,
67,
2107,
16,
589,
4672,
3536,
12093,
87,
279,
589,
358,
279,
14316,
9471,
18,
2974,
2424,
392,
2062,
12785,
16,
4800,
392,
1008,
533,
487,
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,
752,
67,
25431,
67,
1717,
334,
12,
25431,
67,
2107,
16,
589,
4672,
3536,
12093,
87,
279,
589,
358,
279,
14316,
9471,
18,
2974,
2424,
392,
2062,
12785,
16,
4800,
392,
1008,
533,
487,
32... |
def __init__(self, wesnoth_exe): | def __init__(self, wesnoth_exe, userdir, datadir): | def __init__(self, wesnoth_exe): self.images = {} self.paths_per_campaign = {} self.ipaths = {} self.notfound = {} self.id = 0 self.verbose = 0 self.datadir = get_datadir(wesnoth_exe) self.userdir = get_userdir(wesnoth_exe) | 779ff4bbee41d48088a235ef744a4ffcc3c17be1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9355/779ff4bbee41d48088a235ef744a4ffcc3c17be1/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
341,
281,
902,
76,
67,
14880,
16,
729,
1214,
16,
22034,
481,
4672,
365,
18,
7369,
273,
2618,
365,
18,
4481,
67,
457,
67,
14608,
273,
2618,
365,
18,
625... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
341,
281,
902,
76,
67,
14880,
16,
729,
1214,
16,
22034,
481,
4672,
365,
18,
7369,
273,
2618,
365,
18,
4481,
67,
457,
67,
14608,
273,
2618,
365,
18,
625... |
if (getattr(self,'mailout_policy',getattr(self.folder(),'mailout_policy','')) == 'edits' and | if (getattr(self,'mailout_policy','') == 'edits' and | def rename(self,pagename, leaveplaceholder=LEAVE_PLACEHOLDER, updatebacklinks=1, sendmail=1, REQUEST=None): """ Rename this page, if permissions allow. | 2e83b9c4b17347c8be766d29eab24dc3ad9fb75b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/2e83b9c4b17347c8be766d29eab24dc3ad9fb75b/Editing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
9095,
1069,
16,
8851,
12988,
33,
900,
26714,
67,
12134,
21424,
16,
1089,
823,
7135,
33,
21,
16,
1366,
4408,
33,
21,
16,
12492,
33,
7036,
4672,
3536,
19996,
333,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6472,
12,
2890,
16,
9095,
1069,
16,
8851,
12988,
33,
900,
26714,
67,
12134,
21424,
16,
1089,
823,
7135,
33,
21,
16,
1366,
4408,
33,
21,
16,
12492,
33,
7036,
4672,
3536,
19996,
333,
136... |
if (filename is None) or inspect: | if (not files) or inspect: | def main(inspect=False, files=[]): jsi = JSInterpreter() for filename in files: jsi.runcodefromfile(filename) if (filename is None) or inspect: jsi.interact() | 474bed2efeb95fbc008ca8cb10f1ee61d63a9664 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/474bed2efeb95fbc008ca8cb10f1ee61d63a9664/js_interactive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
12009,
33,
8381,
16,
1390,
33,
8526,
4672,
3828,
77,
273,
6756,
30010,
1435,
364,
1544,
316,
1390,
30,
3828,
77,
18,
86,
551,
390,
2080,
768,
12,
3459,
13,
309,
261,
902,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
12009,
33,
8381,
16,
1390,
33,
8526,
4672,
3828,
77,
273,
6756,
30010,
1435,
364,
1544,
316,
1390,
30,
3828,
77,
18,
86,
551,
390,
2080,
768,
12,
3459,
13,
309,
261,
902,
1... |
from pypy.translator.tool.pygame.graphviewer import GraphDisplay GraphDisplay(self, functions).run() | from pypy.translator.tool.pygame.flowviewer import FlowGraphLayout from pypy.translator.tool.pygame.graphdisplay import GraphDisplay GraphDisplay(FlowGraphLayout(self, list(functions))).run() | def view(self, *functions): """Shows the control flow graph with annotations if computed. Requires 'dot' and pygame.""" from pypy.translator.tool.pygame.graphviewer import GraphDisplay GraphDisplay(self, functions).run() | b65ccc8d2b21c24dd22352a9374db30b46c95725 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/b65ccc8d2b21c24dd22352a9374db30b46c95725/translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
2890,
16,
380,
10722,
4672,
3536,
24548,
326,
3325,
4693,
2667,
598,
5617,
309,
8470,
18,
16412,
296,
9811,
11,
471,
2395,
13957,
12123,
628,
18951,
93,
18,
17879,
18,
6738,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
2890,
16,
380,
10722,
4672,
3536,
24548,
326,
3325,
4693,
2667,
598,
5617,
309,
8470,
18,
16412,
296,
9811,
11,
471,
2395,
13957,
12123,
628,
18951,
93,
18,
17879,
18,
6738,
18... |
self.dispname = None | def _post_init(self): ''' Set attributes based on self.form ''' # extract the index display information from the form self.columns = [] for name in ':columns @columns'.split(): if self.form.has_key(name): self.special_char = name[0] self.columns = handleListCGIValue(self.form[name]) break self.show = support.TruthDict(... | 24452e4ed554aa8c3faf5f32818c6e6fa7d553d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/24452e4ed554aa8c3faf5f32818c6e6fa7d553d8/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2767,
67,
2738,
12,
2890,
4672,
9163,
1000,
1677,
2511,
603,
365,
18,
687,
9163,
468,
2608,
326,
770,
2562,
1779,
628,
326,
646,
365,
18,
5112,
273,
5378,
364,
508,
316,
4290,
511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2767,
67,
2738,
12,
2890,
4672,
9163,
1000,
1677,
2511,
603,
365,
18,
687,
9163,
468,
2608,
326,
770,
2562,
1779,
628,
326,
646,
365,
18,
5112,
273,
5378,
364,
508,
316,
4290,
511... | |
def timeofbto(): | def timeofbto(self): | def timeofbto(): return datetime.datetime(datetime.date.today().year, datetime.date.today().month, datetime.date.today().day, self.bto, 0, 0) | fe3f7e131b15d1d29b93fafe521facd5a896eb6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/fe3f7e131b15d1d29b93fafe521facd5a896eb6a/timekpr-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
813,
792,
70,
869,
12,
2890,
4672,
327,
3314,
18,
6585,
12,
6585,
18,
712,
18,
30064,
7675,
6874,
16,
3314,
18,
712,
18,
30064,
7675,
7496,
16,
3314,
18,
712,
18,
30064,
7675,
2881,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
813,
792,
70,
869,
12,
2890,
4672,
327,
3314,
18,
6585,
12,
6585,
18,
712,
18,
30064,
7675,
6874,
16,
3314,
18,
712,
18,
30064,
7675,
7496,
16,
3314,
18,
712,
18,
30064,
7675,
2881,
... |
if fieldset is not None: | if fieldsets is not None: schemata = instance.Schemata() for fieldset in fieldsets: fields += [(field.getName(), field) for field in schemata[fieldset].fields()] elif fieldset is not None: | def validate(self, instance=None, REQUEST=None, errors=None, data=None, metadata=None): """Validate the state of the entire object. | 56cb458ec676f3ad5f698729f1ef14aecf96d5a7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/56cb458ec676f3ad5f698729f1ef14aecf96d5a7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
791,
33,
7036,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
16,
501,
33,
7036,
16,
1982,
33,
7036,
4672,
3536,
4270,
326,
919,
434,
326,
7278,
733,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
791,
33,
7036,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
16,
501,
33,
7036,
16,
1982,
33,
7036,
4672,
3536,
4270,
326,
919,
434,
326,
7278,
733,
18,
2,
-100,
-100,... |
RW.exec_loop() | RW.exec_() | def openConfigReport(self): RW = ReportWindow.ReportWindow(self, '', 1) RW.parseConfigReport(self.reportFile, self.itemattrlist) RW.exec_loop() | b02b1b3c3ce350ce2866d80a832fd61c5ae3b6c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/b02b1b3c3ce350ce2866d80a832fd61c5ae3b6c0/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
809,
4820,
12,
2890,
4672,
25920,
273,
8706,
3829,
18,
4820,
3829,
12,
2890,
16,
10226,
404,
13,
25920,
18,
2670,
809,
4820,
12,
2890,
18,
6006,
812,
16,
365,
18,
1726,
1747,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
809,
4820,
12,
2890,
4672,
25920,
273,
8706,
3829,
18,
4820,
3829,
12,
2890,
16,
10226,
404,
13,
25920,
18,
2670,
809,
4820,
12,
2890,
18,
6006,
812,
16,
365,
18,
1726,
1747,
109... |
e=find(text,';',args) | e=find(text,';',n) | def search(self, text, start=0, name_match=regex.compile('[\0- ]*[a-zA-Z]+[\0- ]*').match, end_match=regex.compile('[\0- ]*\(/\|end\)', regex.casefold).match, start_search=regex.compile('[<&]').search, ent_name=regex.compile('[-a-zA-Z0-9_.]+').match, find=find, strip=strip ): | 626960a1479cc325517d37bcbdbb2eb488e228f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/626960a1479cc325517d37bcbdbb2eb488e228f2/DT_HTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
977,
16,
787,
33,
20,
16,
508,
67,
1916,
33,
7584,
18,
11100,
2668,
7438,
20,
17,
308,
26625,
69,
17,
9600,
17,
62,
3737,
7438,
20,
17,
308,
4035,
2934,
1916,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
977,
16,
787,
33,
20,
16,
508,
67,
1916,
33,
7584,
18,
11100,
2668,
7438,
20,
17,
308,
26625,
69,
17,
9600,
17,
62,
3737,
7438,
20,
17,
308,
4035,
2934,
1916,
1... |
(self.resIndex(), m.resIndex() + self.lenResidues())) | (self.resIndex(), m.resIndex() + self.lenAtoms())) | def concat( self, *models ): """ Concatenate atoms, coordinates and profiles. source and fileName are lost, so are profiles that are not available in all models. model0.concat( model1 [, model2, ..]) -> single PDBModel. | ae0011291eb32d1b604dbfd281044d071f4bd703 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/ae0011291eb32d1b604dbfd281044d071f4bd703/PDBModel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3835,
12,
365,
16,
380,
7665,
262,
30,
3536,
23873,
275,
340,
9006,
16,
5513,
471,
11788,
18,
1084,
471,
3968,
854,
13557,
16,
1427,
854,
11788,
716,
854,
486,
2319,
316,
777,
3679,
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,
3835,
12,
365,
16,
380,
7665,
262,
30,
3536,
23873,
275,
340,
9006,
16,
5513,
471,
11788,
18,
1084,
471,
3968,
854,
13557,
16,
1427,
854,
11788,
716,
854,
486,
2319,
316,
777,
3679,
18... |
mod = getattr(__import__("Bcfg2.Server.Generators.%s" % (generator)).Server.Generators, generator) | try: mod = getattr(__import__("Bcfg2.Server.Generators.%s" % (generator)).Server.Generators, generator) except ImportError: syslog(LOG_ERR, 'Failed to load generator %s' % (generator)) continue | def __init__(self, repository, structures, generators): object.__init__(self) self.datastore = repository self.fam = fam() self.pubspace = {} self.structures = [] self.cron = {} for structure in structures: mod = getattr(__import__("Bcfg2.Server.Structures.%s" % (structure)).Server.Structures, structure) struct = getat... | 14f9ef1c442fdf8c03df85186a8825cae35ac99f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/14f9ef1c442fdf8c03df85186a8825cae35ac99f/Core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3352,
16,
12597,
16,
13327,
4672,
733,
16186,
2738,
972,
12,
2890,
13,
365,
18,
24522,
273,
3352,
365,
18,
74,
301,
273,
26688,
1435,
365,
18,
10174,
298... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3352,
16,
12597,
16,
13327,
4672,
733,
16186,
2738,
972,
12,
2890,
13,
365,
18,
24522,
273,
3352,
365,
18,
74,
301,
273,
26688,
1435,
365,
18,
10174,
298... |
def __init__(self, design, rho=0, **keywords): LikelihoodModel.__init__(self, **keywords) | def __init__(self, design, rho=0): | def __init__(self, design, rho=0, **keywords): LikelihoodModel.__init__(self, **keywords) self.rho = rho self.initialize(design) | 9ddff40881d697c0b8f7657aabf6bd401fbfe489 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/9ddff40881d697c0b8f7657aabf6bd401fbfe489/regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8281,
16,
10360,
33,
20,
4672,
365,
18,
25603,
273,
10360,
365,
18,
11160,
12,
16934,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8281,
16,
10360,
33,
20,
4672,
365,
18,
25603,
273,
10360,
365,
18,
11160,
12,
16934,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif isinstance(programChain.container, dvdread.LangUnit): | elif self.inMenu(): | def updateSubpicture(self): """Send a subpicture event corresponding to the current logical subpicture stream.""" programChain = self.currentProgramChain() | acc6f37c3b6853d283dea498765bf920453b9abc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/acc6f37c3b6853d283dea498765bf920453b9abc/machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1676,
21126,
12,
2890,
4672,
3536,
3826,
279,
720,
21126,
871,
4656,
358,
326,
783,
6374,
720,
21126,
1407,
12123,
5402,
3893,
273,
365,
18,
2972,
9459,
3893,
1435,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1676,
21126,
12,
2890,
4672,
3536,
3826,
279,
720,
21126,
871,
4656,
358,
326,
783,
6374,
720,
21126,
1407,
12123,
5402,
3893,
273,
365,
18,
2972,
9459,
3893,
1435,
2,
-100,
-100,
... |
temp = func.runFunction(val, audio, state, audio_str) | temp = func.runFunction(val, audio, state) | def runAction(funcs, audio, state = None, quick_action=None): """Runs an action on audio funcs can be a list of Function objects or a filename of an action file (see getAction). audio must dictionary-like object.""" if isinstance(funcs, basestring): funcs = getAction(funcs)[0] if state is None: state = {} audio_str ... | 369fc32e9c7b6f40115e708fde31e7238e87e79a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/369fc32e9c7b6f40115e708fde31e7238e87e79a/findfunc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1803,
12,
17728,
16,
7447,
16,
919,
273,
599,
16,
9549,
67,
1128,
33,
7036,
4672,
3536,
9361,
392,
1301,
603,
7447,
225,
15630,
848,
506,
279,
666,
434,
4284,
2184,
578,
279,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1803,
12,
17728,
16,
7447,
16,
919,
273,
599,
16,
9549,
67,
1128,
33,
7036,
4672,
3536,
9361,
392,
1301,
603,
7447,
225,
15630,
848,
506,
279,
666,
434,
4284,
2184,
578,
279,
154... |
def get_library_dirs(self): opt = [] if sys.platform[:5] != 'linux': d = self.get_libgcc_dir() if d: if sys.platform == 'win32' and not d.startswith('/usr/lib'): d = os.path.normpath(d) if not os.path.exists(os.path.join(d, "lib%s.a" % self.g2c)): d2 = os.path.abspath(os.path.join(d, '../../../../lib')) if os.path.exi... | compiler = klass(verbose=verbose, dry_run=dry_run, force=force) compiler.c_compiler = c_compiler return compiler def show_fcompilers(dist=None): """Print list of available compilers (used by the "--help-fcompiler" option to "config_fc"). """ if dist is None: from distutils.dist import Distribution from numpy.distutils... | def get_library_dirs(self): opt = [] if sys.platform[:5] != 'linux': d = self.get_libgcc_dir() if d: # if windows and not cygwin, libg2c lies in a different folder if sys.platform == 'win32' and not d.startswith('/usr/lib'): d = os.path.normpath(d) if not os.path.exists(os.path.join(d, "lib%s.a" % self.g2c)): d2 = os.p... | 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,
12083,
67,
8291,
12,
2890,
4672,
2153,
273,
5378,
309,
2589,
18,
9898,
10531,
25,
65,
480,
296,
20132,
4278,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12083,
67,
8291,
12,
2890,
4672,
2153,
273,
5378,
309,
2589,
18,
9898,
10531,
25,
65,
480,
296,
20132,
4278,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
... |
We solve an simple equation modulo 2:: | We solve a simple equation modulo 2:: | def solve_mod(eqns, modulus, solution_dict = False): r""" Return all solutions to an equation or list of equations modulo the given integer modulus. Each equation must involve only polynomials in 1 or many variables. By default the solutions are returned as `n`-tuples, where `n` is the number of variables appearing an... | 289f5b4d9eb95aca379cac874aa709bc2e2631eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/289f5b4d9eb95aca379cac874aa709bc2e2631eb/relation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
67,
1711,
12,
11253,
2387,
16,
24770,
16,
6959,
67,
1576,
273,
1083,
4672,
436,
8395,
2000,
777,
22567,
358,
392,
15778,
578,
666,
434,
30369,
26109,
326,
864,
3571,
24770,
18,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
67,
1711,
12,
11253,
2387,
16,
24770,
16,
6959,
67,
1576,
273,
1083,
4672,
436,
8395,
2000,
777,
22567,
358,
392,
15778,
578,
666,
434,
30369,
26109,
326,
864,
3571,
24770,
18,
83... |
this = apply(_quickfix.new_SettlPrice, args) | this = _quickfix.new_SettlPrice(*args) | def __init__(self, *args): this = apply(_quickfix.new_SettlPrice, 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,
694,
6172,
5147,
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,
694,
6172,
5147,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... |
return hex(self.i2h(pkt,x)) | return lhex(self.i2h(pkt,x)) | def i2repr(self, pkt, x): return hex(self.i2h(pkt,x)) | 28c56dd1d633fbcec3ae911ffb4ed8d85a784c40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/28c56dd1d633fbcec3ae911ffb4ed8d85a784c40/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
22,
12715,
12,
2890,
16,
11536,
16,
619,
4672,
327,
3827,
12,
2890,
18,
77,
22,
76,
12,
5465,
88,
16,
92,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
22,
12715,
12,
2890,
16,
11536,
16,
619,
4672,
327,
3827,
12,
2890,
18,
77,
22,
76,
12,
5465,
88,
16,
92,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def __call__(self, index): | def __call__(self, index, mir_rorp = None): | def __call__(self, index): """Given rpath, change permissions up to and including index""" old_index = self.current_index self.current_index = index if not index or index <= old_index: return self.restore_old(index) self.add_new(old_index, index) | 5e2f4cf96e473b8bdfc69f590da7fc2d7b90761f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6202/5e2f4cf96e473b8bdfc69f590da7fc2d7b90761f/restore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
770,
16,
312,
481,
67,
86,
280,
84,
273,
599,
4672,
3536,
6083,
436,
803,
16,
2549,
4371,
731,
358,
471,
6508,
770,
8395,
1592,
67,
1615,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
770,
16,
312,
481,
67,
86,
280,
84,
273,
599,
4672,
3536,
6083,
436,
803,
16,
2549,
4371,
731,
358,
471,
6508,
770,
8395,
1592,
67,
1615,
273,
365,
18,... |
pass | print("Gamin or Fam not found. Loading Pseudo FileMonitor.") | def AddMonitor(self, path, obj): '''add a monitor to path, installing a callback to obj.HandleEvent''' handleID = len(self.handles.keys()) mode = os.stat(path)[stat.ST_MODE] handle = GaminEvent(handleID, path, 'exists') if stat.S_ISDIR(mode): dirList = os.listdir(path) self.pending_events.append(handle) for includedFil... | 6ec4573ccd6f67234b81a8aa9a6dc1ca024a21d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/6ec4573ccd6f67234b81a8aa9a6dc1ca024a21d6/FileMonitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
7187,
12,
2890,
16,
589,
16,
1081,
4672,
9163,
1289,
279,
6438,
358,
589,
16,
3799,
310,
279,
1348,
358,
1081,
18,
3259,
1133,
26418,
1640,
734,
273,
562,
12,
2890,
18,
24111,
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,
1436,
7187,
12,
2890,
16,
589,
16,
1081,
4672,
9163,
1289,
279,
6438,
358,
589,
16,
3799,
310,
279,
1348,
358,
1081,
18,
3259,
1133,
26418,
1640,
734,
273,
562,
12,
2890,
18,
24111,
18... |
self.group.addtag_withtag(self.__rect) self.group.addtag_withtag(self.__text) self.reset() | def __init__(self, game, suit, value): | a9b383de5cc662464dfbac36854b1d4ca07c0a0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a9b383de5cc662464dfbac36854b1d4ca07c0a0c/solitaire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7920,
16,
1597,
305,
16,
460,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7920,
16,
1597,
305,
16,
460,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
FL_COLOR, [cty.POINTER(FL_OBJECT)], | FL_COLOR, [cty.POINTER(FL_OBJECT)], | def fl_get_select_item_by_text(obj, p2): """ fl_get_select_item_by_text(obj, p2) -> popup_entry """ retval = _fl_get_select_item_by_text(obj, p2) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
4025,
67,
1726,
67,
1637,
67,
955,
12,
2603,
16,
293,
22,
4672,
3536,
1183,
67,
588,
67,
4025,
67,
1726,
67,
1637,
67,
955,
12,
2603,
16,
293,
22,
13,
317,
10431... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
4025,
67,
1726,
67,
1637,
67,
955,
12,
2603,
16,
293,
22,
4672,
3536,
1183,
67,
588,
67,
4025,
67,
1726,
67,
1637,
67,
955,
12,
2603,
16,
293,
22,
13,
317,
10431... |
items = items_dict.keys() | items = map(str, items_dict.keys()) | def list2dict(l): ret={} for i in l: ret[i] = None return ret | a62ac6a6678578b05eb0921d942508054232b9f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/a62ac6a6678578b05eb0921d942508054232b9f6/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
22,
1576,
12,
80,
4672,
325,
12938,
364,
277,
316,
328,
30,
325,
63,
77,
65,
273,
599,
327,
325,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
22,
1576,
12,
80,
4672,
325,
12938,
364,
277,
316,
328,
30,
325,
63,
77,
65,
273,
599,
327,
325,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if type(value) is types.TupleType: return value if type(value) is not types.StringType: return tuple(value) r = [] for element in filter(None, string.split(value, '.')): try: r.append(string.atoi(element, 0)) except string.atoi_error: | if isinstance(value, self.__class__): return tuple(value) elif type(value) is types.StringType: r = [] for element in filter(None, string.split(value, '.')): | def prettyIn(self, value): """Dotted -> tuple of numerics OID converter""" if type(value) is types.TupleType: return value if type(value) is not types.StringType: return tuple(value) r = [] for element in filter(None, string.split(value, '.')): try: r.append(string.atoi(element, 0)) except string.atoi_error: try: r.app... | d3c38c46334edc85e1e31ed4c8f5114a77ff0ad9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4168/d3c38c46334edc85e1e31ed4c8f5114a77ff0ad9/univ.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
382,
12,
2890,
16,
460,
4672,
3536,
10412,
2344,
317,
3193,
434,
26511,
2102,
18026,
6027,
8395,
309,
1549,
12,
1132,
16,
365,
16186,
1106,
972,
4672,
327,
3193,
12,
1132,
13,
1327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
382,
12,
2890,
16,
460,
4672,
3536,
10412,
2344,
317,
3193,
434,
26511,
2102,
18026,
6027,
8395,
309,
1549,
12,
1132,
16,
365,
16186,
1106,
972,
4672,
327,
3193,
12,
1132,
13,
1327... |
st t1, ds, [scale, index, base], disp | st t1, ds, [0, t0, t7], disp | def macroop SBB_P_R | edaaf1ebf1461b20c0bfa06472d5188a975e47c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/edaaf1ebf1461b20c0bfa06472d5188a975e47c7/add_and_subtract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
348,
9676,
67,
52,
67,
54,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
348,
9676,
67,
52,
67,
54,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.domid = None | def destroyDomain(self): log.debug("XendDomainInfo.destroyDomain(%s)", str(self.domid)) | e71828acbc5e939713fb093add6b8a79a8190c5b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/e71828acbc5e939713fb093add6b8a79a8190c5b/XendDomainInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
3748,
12,
2890,
4672,
613,
18,
4148,
2932,
60,
409,
3748,
966,
18,
11662,
3748,
9275,
87,
2225,
16,
609,
12,
2890,
18,
9859,
350,
3719,
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,
5546,
3748,
12,
2890,
4672,
613,
18,
4148,
2932,
60,
409,
3748,
966,
18,
11662,
3748,
9275,
87,
2225,
16,
609,
12,
2890,
18,
9859,
350,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
Login to a new session: | Login to a new session:: | sage: def get_url(url): h = urllib.urlopen(url); data = h.read(); h.close(); return data | 146729e9e69da928a4db0f6148da09de78a043c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/146729e9e69da928a4db0f6148da09de78a043c5/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
336,
67,
718,
12,
718,
4672,
366,
273,
11527,
18,
295,
18589,
12,
718,
1769,
501,
273,
366,
18,
896,
5621,
366,
18,
4412,
5621,
327,
501,
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,
272,
410,
30,
1652,
336,
67,
718,
12,
718,
4672,
366,
273,
11527,
18,
295,
18589,
12,
718,
1769,
501,
273,
366,
18,
896,
5621,
366,
18,
4412,
5621,
327,
501,
2,
-100,
-100,
-100,
-100,
-10... |
href = url_encode(self.linker.link(element.attrib['href'])) | href = self.linker.link(element.attrib['href']) | def dump_children(self, list, output, list_level = -1): if list.text: output.append(list.text) | ac41eeba50a29c9fd21ae17bc66b910ea7d1d577 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4103/ac41eeba50a29c9fd21ae17bc66b910ea7d1d577/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
5906,
12,
2890,
16,
666,
16,
876,
16,
666,
67,
2815,
273,
300,
21,
4672,
309,
666,
18,
955,
30,
876,
18,
6923,
12,
1098,
18,
955,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
5906,
12,
2890,
16,
666,
16,
876,
16,
666,
67,
2815,
273,
300,
21,
4672,
309,
666,
18,
955,
30,
876,
18,
6923,
12,
1098,
18,
955,
13,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
SpecializedSetup<%(name)s, 0>(); | SpecializedSetup<%(name)s, 0>(true); | def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """ | c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
applets_list.append(s) | applets_list.append(s) | def _apply (self): applets_list = [] | 30bb56994f49caaea99383c3cdc7f4e2a2d375f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/30bb56994f49caaea99383c3cdc7f4e2a2d375f1/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
261,
2890,
4672,
513,
20773,
67,
1098,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
261,
2890,
4672,
513,
20773,
67,
1098,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
ident = self.ItemTexts().index(ident) -1 | ident = self.ItemTexts().index(ident) | def _get_item_index(self, ident): if isinstance(ident, (int, long)): | b368e4bc6cc8fb09eed959528c3165dbd21331c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/b368e4bc6cc8fb09eed959528c3165dbd21331c4/win32_controls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1726,
67,
1615,
12,
2890,
16,
3390,
4672,
309,
1549,
12,
6392,
16,
261,
474,
16,
1525,
3719,
30,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1726,
67,
1615,
12,
2890,
16,
3390,
4672,
309,
1549,
12,
6392,
16,
261,
474,
16,
1525,
3719,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
security.declareProtected(permissions.View, 'get_portal_metadata') | security.declareProtected(CMFCorePermissions.View, 'get_portal_metadata') | def getPrimaryField(self): """The primary field is some object that responds to PUT/manage_FTPget events. """ fields = self.Schema().filterFields(primary=1) if fields: return fields[0] return None | 460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11398,
974,
12,
2890,
4672,
3536,
1986,
3354,
652,
353,
2690,
733,
716,
26617,
358,
11443,
19,
12633,
67,
17104,
588,
2641,
18,
3536,
1466,
273,
365,
18,
3078,
7675,
2188,
2314,
12,
8258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11398,
974,
12,
2890,
4672,
3536,
1986,
3354,
652,
353,
2690,
733,
716,
26617,
358,
11443,
19,
12633,
67,
17104,
588,
2641,
18,
3536,
1466,
273,
365,
18,
3078,
7675,
2188,
2314,
12,
8258... |
labelRunTitle=Label(frameRun,text='Startup Preferences') | def CreatePageGeneral(self): #tkVars self.winWidth=StringVar(self) self.winHeight=StringVar(self) self.paraWidth=StringVar(self) self.startupEdit=IntVar(self) self.autoSave=IntVar(self) self.encoding=StringVar(self) self.userHelpBrowser=BooleanVar(self) self.helpBrowser=StringVar(self) #widget creation #body frame=self... | ed15565253c2cb817c68ed89e22c7a6c7707ab66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/ed15565253c2cb817c68ed89e22c7a6c7707ab66/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1964,
12580,
12,
2890,
4672,
468,
16099,
5555,
365,
18,
8082,
2384,
33,
780,
1537,
12,
2890,
13,
365,
18,
8082,
2686,
33,
780,
1537,
12,
2890,
13,
365,
18,
25072,
2384,
33,
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,
1788,
1964,
12580,
12,
2890,
4672,
468,
16099,
5555,
365,
18,
8082,
2384,
33,
780,
1537,
12,
2890,
13,
365,
18,
8082,
2686,
33,
780,
1537,
12,
2890,
13,
365,
18,
25072,
2384,
33,
780,
... | |
catlib.change_category(article, original_cat, None) | catlib.change_category(article, original_cat.catname(), None) | def move_to_subcategory(article, original_cat, current_cat): print print 'Treating page ' + article.ascii_linkname() + ', currently in category ' + current_cat.ascii_linkname() subcatlist = get_subcats(current_cat) print if len(subcatlist) == 0: print 'This category has no subcategories.' print # show subcategories as ... | 182596a0eafb007bcd0d00be114cf7f8f327e1cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/182596a0eafb007bcd0d00be114cf7f8f327e1cf/category.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
869,
67,
1717,
4743,
12,
11480,
16,
2282,
67,
2574,
16,
783,
67,
2574,
4672,
1172,
1172,
296,
56,
266,
1776,
1363,
296,
397,
7559,
18,
9184,
67,
1232,
529,
1435,
397,
2265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
869,
67,
1717,
4743,
12,
11480,
16,
2282,
67,
2574,
16,
783,
67,
2574,
4672,
1172,
1172,
296,
56,
266,
1776,
1363,
296,
397,
7559,
18,
9184,
67,
1232,
529,
1435,
397,
2265,
... |
def __init__(self, master, labels=None, frames=None, packopts=None): """Create a tab bar with: master: Tkinter widget to hold the Tabs frame labels: List of string labels to put on the tabs frames: List of tk.Frames to switch between (one for each label) packopts: Dictionary of options to give to pack() (this is... | def __init__(self, master, side='top'): """Create a tabbed frame widget. master: Tkinter widget that will contain the tabs widget side: Side to show the tab controls on ('top', 'bottom', 'left', or 'right') Tabs are added to the tab bar via the add() method. The added frames should have the Tabs frame as their mast... | def __init__(self, master, labels=None, frames=None, packopts=None): """Create a tab bar with: master: Tkinter widget to hold the Tabs frame labels: List of string labels to put on the tabs frames: List of tk.Frames to switch between (one for each label) packopts: Dictionary of options to give to pack() (this is... | 8403a395d70cb6e78009f1226c55376cfb4b8eb5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/8403a395d70cb6e78009f1226c55376cfb4b8eb5/meta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
4889,
2218,
3669,
11,
4672,
3536,
1684,
279,
3246,
2992,
2623,
3604,
18,
225,
4171,
30,
399,
79,
2761,
3604,
716,
903,
912,
326,
10920,
3604,
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,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
4889,
2218,
3669,
11,
4672,
3536,
1684,
279,
3246,
2992,
2623,
3604,
18,
225,
4171,
30,
399,
79,
2761,
3604,
716,
903,
912,
326,
10920,
3604,
4... |
self.current_view.set_cursor() | def display_prev(self): self.current_view.set_value() if self.current_model in self.models.models: idx = self.models.models.index(self.current_model)-1 if idx < 0: idx = len(self.models.models)-1 self.current_model = self.models.models[idx] else: self.current_model = len(self.models.models) \ and self.models.models[-1] | 1e8ef1b5465400ce1978f5200f738f65ce0a1698 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/1e8ef1b5465400ce1978f5200f738f65ce0a1698/screen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
10001,
12,
2890,
4672,
365,
18,
2972,
67,
1945,
18,
542,
67,
1132,
1435,
309,
365,
18,
2972,
67,
2284,
316,
365,
18,
7665,
18,
7665,
30,
2067,
273,
365,
18,
7665,
18,
7665,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
10001,
12,
2890,
4672,
365,
18,
2972,
67,
1945,
18,
542,
67,
1132,
1435,
309,
365,
18,
2972,
67,
2284,
316,
365,
18,
7665,
18,
7665,
30,
2067,
273,
365,
18,
7665,
18,
7665,... | |
arguments={} for name, arg in q._searchable_arguments().items(): arguments["%s/%s" % (id,name)]=arg | if input_id: for name, arg in q._searchable_arguments().items(): if len(qs) > 1: key="%s/%s" % (id,name) else: key=name arguments[key]=arg keys.append(key) | def add(self, report_id, report_title, report_style, input_id, input_title, queries=[], REQUEST=None): 'add a report' if not queries: raise ValueError, ( 'No <em>searchable objects</em> were selected') if not report_id: raise ValueError, ( 'No <em>report id</em> were specified') if input_title and not input_id: rais... | a6d40fd549fb346036b773f454c104713d9bb0d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a6d40fd549fb346036b773f454c104713d9bb0d5/Search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
2605,
67,
350,
16,
2605,
67,
2649,
16,
2605,
67,
4060,
16,
810,
67,
350,
16,
810,
67,
2649,
16,
6218,
22850,
6487,
12492,
33,
7036,
4672,
296,
1289,
279,
2605,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
2605,
67,
350,
16,
2605,
67,
2649,
16,
2605,
67,
4060,
16,
810,
67,
350,
16,
810,
67,
2649,
16,
6218,
22850,
6487,
12492,
33,
7036,
4672,
296,
1289,
279,
2605,
11,... |
layer = svc.layers[sys.argv[2]] if len(sys.argv) == 5: seed(svc, base, layer, map(int, sys.argv[3:])) | layer = svc.layers[sys.argv[1]] if len(sys.argv) == 4: seed(svc, layer, map(int, sys.argv[2:])) elif len(sys.argv) == 5: seed(svc, layer, map(int, sys.argv[2:4]), map(float, sys.argv[4].split(","))) | def main (): from Service import Service, cfgfiles from Layer import Layer base = sys.argv[1] svc = Service.load(*cfgfiles) layer = svc.layers[sys.argv[2]] if len(sys.argv) == 5: seed(svc, base, layer, map(int, sys.argv[3:])) elif len(sys.argv) == 6: seed(svc, base, layer, map(int, sys.argv[3:5]), map(float, sys.argv[... | 7c03b938be9179453d0fd8f6bb9a4360ab61083e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6188/7c03b938be9179453d0fd8f6bb9a4360ab61083e/Client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
1832,
30,
628,
1956,
1930,
1956,
16,
2776,
2354,
628,
12112,
1930,
12112,
1026,
225,
273,
2589,
18,
19485,
63,
21,
65,
7538,
273,
1956,
18,
945,
30857,
7066,
2354,
13,
3018,
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,
2774,
1832,
30,
628,
1956,
1930,
1956,
16,
2776,
2354,
628,
12112,
1930,
12112,
1026,
225,
273,
2589,
18,
19485,
63,
21,
65,
7538,
273,
1956,
18,
945,
30857,
7066,
2354,
13,
3018,
273,
... |
language='c++' | depends = ['sage/combinat/partitions_c.h'], language='c++' | def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False | 1566a0251d3192d0d1c090cbeb6e117ad663da4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1566a0251d3192d0d1c090cbeb6e117ad663da4f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
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,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... |
print '\t\tcp.Unadvise(cookie)' | print '\t\t\tcp.Unadvise(cookie)' | print '\tdef close(self):' | c1e3238fc978a75546f68a02cd5245ac27b9d9c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/c1e3238fc978a75546f68a02cd5245ac27b9d9c8/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
2337,
88,
536,
1746,
12,
2890,
13,
2497,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
2337,
88,
536,
1746,
12,
2890,
13,
2497,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For infinite periodic words (resp. for finite words of type `u^i u[0:j]`), the reduced Rauzy graph of order `n` (resp. for `n` smaller or equal to `(i-1)|u|+j`) is the directed graph whose unique vertex is the prefix `p` of length `n` of self and which has an only edge which is a loop on `p` labelled by `w[n+1:|w|] p` ... | For infinite periodic words (resp. for finite words of type `u^i u[0:j]`), the reduced Rauzy graph of order `n` (resp. for `n` smaller or equal to `(i-1)|u|+j`) is the directed graph whose unique vertex is the prefix `p` of length `n` of self and which has an only edge which is a loop on `p` labelled by `w[n+1:|w|] p` ... | def reduced_rauzy_graph(self, n): r""" Returns the reduced Rauzy graph of order `n` of self. | 2eab66e63556bda27359db7a54db5c47986fb336 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2eab66e63556bda27359db7a54db5c47986fb336/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13162,
67,
354,
89,
21832,
67,
4660,
12,
2890,
16,
290,
4672,
436,
8395,
2860,
326,
13162,
534,
8377,
21832,
2667,
434,
1353,
1375,
82,
68,
434,
365,
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,
0,
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,
13162,
67,
354,
89,
21832,
67,
4660,
12,
2890,
16,
290,
4672,
436,
8395,
2860,
326,
13162,
534,
8377,
21832,
2667,
434,
1353,
1375,
82,
68,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-10... |
profileDir = os.path.join(dataDir, '.chandler', '0.7') | profileDir = os.path.join(dataDir, '.chandler', version.release) | def _makeRandomProfileDir(pattern): chars = string.letters + string.digits name = ''.join([chars[ord(c) % len(chars)] for c in os.urandom(8)]) profileDir = pattern.replace('*', '%s') %(name) createProfileDir(profileDir) return profileDir | 8d62c8fd4c30437862ec4217f11d7d1054d1a354 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8d62c8fd4c30437862ec4217f11d7d1054d1a354/Utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
8529,
4029,
1621,
12,
4951,
4672,
5230,
273,
533,
18,
26054,
397,
533,
18,
16649,
508,
273,
875,
18,
5701,
3816,
7549,
63,
517,
12,
71,
13,
738,
562,
12,
7549,
25887,
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,
389,
6540,
8529,
4029,
1621,
12,
4951,
4672,
5230,
273,
533,
18,
26054,
397,
533,
18,
16649,
508,
273,
875,
18,
5701,
3816,
7549,
63,
517,
12,
71,
13,
738,
562,
12,
7549,
25887,
364,
... |
self.releaseDateObj = datetime.fromtimestamp( fileutil.getmtime(filename)) | def set_release_date(self): try: self.releaseDateObj = datetime.fromtimestamp( fileutil.getmtime(self.filename)) except OSError: self.releaseDateObj = datetime.now() | def set_filename(self, filename): Item.set_filename(self, filename) self.releaseDateObj = datetime.fromtimestamp( fileutil.getmtime(filename)) | 34c4cb6b3e061618ee5b07d65f51368158674611 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/34c4cb6b3e061618ee5b07d65f51368158674611/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3459,
12,
2890,
16,
1544,
4672,
4342,
18,
542,
67,
3459,
12,
2890,
16,
1544,
13,
365,
18,
9340,
1626,
2675,
273,
3314,
18,
2080,
5508,
12,
585,
1367,
18,
588,
10838,
12,
345... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3459,
12,
2890,
16,
1544,
4672,
4342,
18,
542,
67,
3459,
12,
2890,
16,
1544,
13,
365,
18,
9340,
1626,
2675,
273,
3314,
18,
2080,
5508,
12,
585,
1367,
18,
588,
10838,
12,
345... |
clam_env.Append( CPPFLAGS = ['-DWIN32', '-D_DEBUG'] ) clam_env.Append( CCFLAGS = '/D /FD /GR /GX /GZ /MDd /Od /W3 /ZI /Zm1000' ) clam_env.Append( LINKFLAGS = ['/OPT:NOREF', '/OPT:NOICF', '/DEBUG'] ) for includePath in clam_env['CPPPATH'] : print('include before pthread checking: ' + includePath ) | env.Append( CPPFLAGS = ['-DWIN32', '-D_DEBUG'] ) env.Append( CCFLAGS = '/D /FD /GR /GX /GZ /MDd /Od /W3 /ZI /Zm1000' ) env.Append( LINKFLAGS = ['/OPT:NOREF', '/OPT:NOICF', '/DEBUG'] ) | def setup_global_environment( clam_env, conf ) : # clam env # check for pkg-config, compiler support, bash features, et. if sys.platform == 'linux2' : if not conf.check_pkg_config( conf ) : print 'WARNING: pkg-config is not installed' clam_env['pkg_config_available'] = False else : clam_env['pkg_config_available'] = Tr... | 3b2775acdc54a677de237741e3af8ce52371f3d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1456/3b2775acdc54a677de237741e3af8ce52371f3d0/clam_dependent_libs_checks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
6347,
67,
10274,
12,
927,
301,
67,
3074,
16,
2195,
262,
294,
468,
927,
301,
1550,
468,
866,
364,
3475,
17,
1425,
16,
5274,
2865,
16,
24817,
4467,
16,
3393,
18,
309,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
6347,
67,
10274,
12,
927,
301,
67,
3074,
16,
2195,
262,
294,
468,
927,
301,
1550,
468,
866,
364,
3475,
17,
1425,
16,
5274,
2865,
16,
24817,
4467,
16,
3393,
18,
309,
2589,
1... |
recv_size = max(self._rbufsize, left) | recv_size = min(self._rbufsize, left) | def read(self, size=-1): data = self._rbuf if size < 0: # Read until EOF buffers = [] if data: buffers.append(data) self._rbuf = "" if self._rbufsize <= 1: recv_size = self.default_bufsize else: recv_size = self._rbufsize while True: data = self._sock.recv(recv_size) if not data: break buffers.append(data) return "".jo... | 37c5d8c7a95f58c24ab8da93a76323fe88cd20c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/37c5d8c7a95f58c24ab8da93a76323fe88cd20c5/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
6431,
9664,
273,
5378,
309,
501,
30,
9664,
18,
6923,
12,
892,
13,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
6431,
9664,
273,
5378,
309,
501,
30,
9664,
18,
6923,
12,
892,
13,
365... |
self.req = pyfile.m.core.requestFactory.getRequest(self.__name__) | def __init__(self, pyfile): self.config = pyfile.m.core.config self.core = pyfile.m.core | 03e179e217d000f729d3384d99b185e750e1c3d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/03e179e217d000f729d3384d99b185e750e1c3d9/Plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2395,
768,
4672,
365,
18,
1425,
273,
2395,
768,
18,
81,
18,
3644,
18,
1425,
365,
18,
3644,
273,
2395,
768,
18,
81,
18,
3644,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2395,
768,
4672,
365,
18,
1425,
273,
2395,
768,
18,
81,
18,
3644,
18,
1425,
365,
18,
3644,
273,
2395,
768,
18,
81,
18,
3644,
2,
-100,
-100,
-100,
-100,... | |
if "BODY.PEEK[]" in msg_parts: | if msg_parts.find("BODY.PEEK[]") != -1: | def onFetch(self, id, command, args, uid=False): msg_nums, msg_parts = args.split(None, 1) msg_nums = msg_nums.split() response = {} for msg in msg_nums: response[msg] = [] if "UID" in msg_parts: if uid: for msg in msg_nums: response[msg].append("FETCH (UID %s)" % (msg,)) else: for msg in msg_nums: response[msg].append... | e95d9caa455233c9752498a5155fdea947abf6b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/e95d9caa455233c9752498a5155fdea947abf6b3/test_sb_imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
5005,
12,
2890,
16,
612,
16,
1296,
16,
833,
16,
4555,
33,
8381,
4672,
1234,
67,
21180,
16,
1234,
67,
6019,
273,
833,
18,
4939,
12,
7036,
16,
404,
13,
1234,
67,
21180,
273,
1234,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5005,
12,
2890,
16,
612,
16,
1296,
16,
833,
16,
4555,
33,
8381,
4672,
1234,
67,
21180,
16,
1234,
67,
6019,
273,
833,
18,
4939,
12,
7036,
16,
404,
13,
1234,
67,
21180,
273,
1234,... |
def getCESiteMapping(gridName=''): | def getCESiteMapping( gridName = '' ): | def getCESiteMapping(gridName=''): """ Returns a dictionary of all CEs and their associated site, e.g. {'ce101.cern.ch':'LCG.CERN.ch', ...]} Assumes CS structure of: /Resources/Sites/<GRIDNAME>/<SITENAME> """ ceSiteMapping = {} gridTypes = gConfig.getSections('/Resources/Sites/',[]) if not gridTypes['OK']: gLogger.warn... | 22589f96877819f2316c9c3a130752773212d632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/22589f96877819f2316c9c3a130752773212d632/SiteCEMapping.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1441,
4956,
3233,
12,
3068,
461,
273,
875,
262,
30,
3536,
2860,
279,
3880,
434,
777,
385,
6705,
471,
3675,
3627,
2834,
16,
425,
18,
75,
18,
13666,
311,
15168,
18,
14770,
18,
343,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
4956,
3233,
12,
3068,
461,
273,
875,
262,
30,
3536,
2860,
279,
3880,
434,
777,
385,
6705,
471,
3675,
3627,
2834,
16,
425,
18,
75,
18,
13666,
311,
15168,
18,
14770,
18,
343,
... |
def __init__(self, fp): | seekable = 0 def __init__(self, fp, seekable=1): | def __init__(self, fp): self.fp = fp self.stack = [] # Grows down self.level = 0 self.last = 0 self.start = self.fp.tell() self.posstack = [] # Grows down | 24234bcdb14b276abecfb44b3b4afc5b093c0c3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/24234bcdb14b276abecfb44b3b4afc5b093c0c3e/multifile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6520,
429,
273,
374,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
16,
6520,
429,
33,
21,
4672,
365,
18,
7944,
273,
4253,
365,
18,
3772,
273,
5378,
468,
611,
3870,
2588,
365,
18,
2815,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6520,
429,
273,
374,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
16,
6520,
429,
33,
21,
4672,
365,
18,
7944,
273,
4253,
365,
18,
3772,
273,
5378,
468,
611,
3870,
2588,
365,
18,
2815,
273,
3... |
ConditionalWriteFile(PREFIX+'/direct/__init__.py', DIRECTINIT) | if (OMIT.count("PYTHON")==0): ConditionalWriteFile(PREFIX+'/direct/__init__.py', DIRECTINIT) | # ifndef WIN32 | a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
309,
82,
536,
678,
706,
1578,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
309,
82,
536,
678,
706,
1578,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
IPv4('192.168.1.1') == IPv4(3232235777). | IPv4('192.168.1.1') == IPv4(3232235777). | def __init__(self, ipaddr): """Instantiate a new IPv4 object. | 24d86d232c2c338090416f343c6ffddb8dc97766 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/24d86d232c2c338090416f343c6ffddb8dc97766/ipaddr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2359,
4793,
4672,
3536,
22438,
279,
394,
7853,
24,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2359,
4793,
4672,
3536,
22438,
279,
394,
7853,
24,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for line in dopen('/sys/devices/system/cpu/'+cpu+'/cpufreq/cpuinfo_cur_freq').readlines(): | for line in dopen('/sys/devices/system/cpu/'+cpu+'/cpufreq/scaling_cur_freq').readlines(): | def extract(self): for cpu in self.vars: for line in dopen('/sys/devices/system/cpu/'+cpu+'/cpufreq/cpuinfo_max_freq').readlines(): l = string.split(line) max = int(l[0]) for line in dopen('/sys/devices/system/cpu/'+cpu+'/cpufreq/cpuinfo_cur_freq').readlines(): l = string.split(line) cur = int(l[0]) ### Need to close b... | 9d2e2733ac83a295050df3131b55bf63dede6678 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1442/9d2e2733ac83a295050df3131b55bf63dede6678/dstat_cpufreq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12,
2890,
4672,
364,
8326,
316,
365,
18,
4699,
30,
364,
980,
316,
302,
3190,
2668,
19,
9499,
19,
12506,
19,
4299,
19,
11447,
2473,
15,
11447,
6797,
19,
4057,
696,
3658,
19,
11447... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12,
2890,
4672,
364,
8326,
316,
365,
18,
4699,
30,
364,
980,
316,
302,
3190,
2668,
19,
9499,
19,
12506,
19,
4299,
19,
11447,
2473,
15,
11447,
6797,
19,
4057,
696,
3658,
19,
11447... |
open(f+'~', 'w').write(contents) open(f, 'w').write(fix_includes(contents)) | new = fix_includes(contents) if new <> contents: open(f+'~', 'w').write(contents) open(f, 'w').write(fix_includes(contents)) | def fix_includes(bulk): eol = re.search("[\r\n]+", bulk).group() for heading, keywords in data: if bulk.find(heading) == -1: for word in keywords: if bulk.find(word) <> -1: bulk = "#include <%s>%s%s" % (heading, eol, bulk) break return bulk | 9680a3aa371618d85986dbafb926ad9ce7a8b65e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4662/9680a3aa371618d85986dbafb926ad9ce7a8b65e/fixc_includes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
18499,
12,
14597,
4672,
14775,
273,
283,
18,
3072,
2932,
7438,
86,
64,
82,
3737,
3113,
8280,
2934,
1655,
1435,
364,
11053,
16,
7093,
316,
501,
30,
309,
8280,
18,
4720,
12,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
18499,
12,
14597,
4672,
14775,
273,
283,
18,
3072,
2932,
7438,
86,
64,
82,
3737,
3113,
8280,
2934,
1655,
1435,
364,
11053,
16,
7093,
316,
501,
30,
309,
8280,
18,
4720,
12,
19... |
arch = _TARGET_ARCH_TO_BAT_ARCH[target_platform] debug('use_script 2 %s, args:%s\n' % (repr(script), arch)) d = script_env(script, args=arch) | arg = _HOST_TARGET_ARCH_TO_BAT_ARCH[(host_platform, target_platform)] debug('use_script 2 %s, args:%s\n' % (repr(script), arg)) d = script_env(script, args=arg) | def msvc_setup_env(env): debug('msvc_setup_env()') version = get_default_version(env) host_platform, target_platform = get_host_target(env) debug('msvc_setup_env: using specified MSVC version %s\n' % repr(version)) env['MSVC_VERSION'] = version msvc = InstalledVCMap.get(version) if not msvc: msg = 'VC version %s not ... | 47fb589099019154d690cd56598c98cb5baf9825 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/47fb589099019154d690cd56598c98cb5baf9825/vc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
8401,
67,
3074,
12,
3074,
4672,
1198,
2668,
959,
4227,
67,
8401,
67,
3074,
1435,
6134,
225,
1177,
273,
336,
67,
1886,
67,
1589,
12,
3074,
13,
1479,
67,
9898,
16,
1018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
8401,
67,
3074,
12,
3074,
4672,
1198,
2668,
959,
4227,
67,
8401,
67,
3074,
1435,
6134,
225,
1177,
273,
336,
67,
1886,
67,
1589,
12,
3074,
13,
1479,
67,
9898,
16,
1018,
... |
handler = build_handler(file) | handler_class = get_object_class(mimetype) handler = handler_class() handler.load_state_from_string(body) | def upload_file(self, context): file = context.get_form_value('file') if file is None: return context.come_back(u'The file must be entered') | 56664389e561f220588b848bd83b4e113024842f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/56664389e561f220588b848bd83b4e113024842f/Folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
768,
12,
2890,
16,
819,
4672,
585,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
768,
6134,
309,
585,
353,
599,
30,
327,
819,
18,
5624,
67,
823,
12,
89,
11,
1986,
585,
1297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3617,
67,
768,
12,
2890,
16,
819,
4672,
585,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
768,
6134,
309,
585,
353,
599,
30,
327,
819,
18,
5624,
67,
823,
12,
89,
11,
1986,
585,
1297... |
hard_formulas = [] | self.hard_formulas = [] | def __init__(self, filename_or_list=None, defaultInferenceMethod=InferenceMethods.MCSAT, parameterType='weights', verbose=False, mlnContent=None): ''' constructs an MLN object at least one of the arguments filename_or_list: either a single filename or a list of filenames (.mln files) mlnContent: string containing an ML... | e27983aa6194036a52cf699aa3e4c8e2cb5a2a5a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10261/e27983aa6194036a52cf699aa3e4c8e2cb5a2a5a/MLN.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
67,
280,
67,
1098,
33,
7036,
16,
805,
28543,
1305,
33,
28543,
4712,
18,
49,
4596,
789,
16,
28240,
2218,
9727,
2187,
3988,
33,
8381,
16,
312,
2370,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1544,
67,
280,
67,
1098,
33,
7036,
16,
805,
28543,
1305,
33,
28543,
4712,
18,
49,
4596,
789,
16,
28240,
2218,
9727,
2187,
3988,
33,
8381,
16,
312,
2370,
... |
def circle(self, radius, extent=None): | def circle(self, radius, extent = None): | def circle(self, radius, extent=None): """ Draw a circle with given radius. The center is radius units left of the turtle; extent determines which part of the circle is drawn. If not given, the entire circle is drawn. | 2dbd76aa3f559923b75db4e55239b73aec0d1f7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2dbd76aa3f559923b75db4e55239b73aec0d1f7b/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12470,
12,
2890,
16,
5725,
16,
11933,
273,
599,
4672,
3536,
10184,
279,
12470,
598,
864,
5725,
18,
1021,
4617,
353,
5725,
4971,
2002,
434,
326,
268,
295,
5929,
31,
11933,
12949,
1492,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12470,
12,
2890,
16,
5725,
16,
11933,
273,
599,
4672,
3536,
10184,
279,
12470,
598,
864,
5725,
18,
1021,
4617,
353,
5725,
4971,
2002,
434,
326,
268,
295,
5929,
31,
11933,
12949,
1492,
10... |
for val in (msg(46),msg(47),msg(70),msg(48),msg(74),msg(49),msg(50)): option14.append_text(val) | for x in (46, 47, 70, 48, 74, 49, 50): option14.append_text(msg(x)) | def bouyaka(widget,targets): """Set list size widgets sensitive state according to answer mode widget selected param. """ for x in targets: x.set_sensitive(not widget.get_active()) | 64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
800,
9835,
581,
69,
12,
6587,
16,
11358,
4672,
3536,
694,
666,
963,
10965,
16692,
919,
4888,
358,
5803,
1965,
3604,
3170,
579,
18,
225,
3536,
364,
619,
316,
5774,
30,
619,
18,
542,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
800,
9835,
581,
69,
12,
6587,
16,
11358,
4672,
3536,
694,
666,
963,
10965,
16692,
919,
4888,
358,
5803,
1965,
3604,
3170,
579,
18,
225,
3536,
364,
619,
316,
5774,
30,
619,
18,
542,
67,... |
none_list = [ None for x in xrange(l, self.current_x) ] | none_list = [ None for x in range(l, self.current_x) ] | def next_line(self): # Add span if first line if not self.current_y: while self.span_stack: start, stop = self.span_stack.pop() self.add_span(start, stop) l = len(self.colWidths) none_list = [ None for x in xrange(l, self.current_x) ] self.colWidths.extend(none_list) # Next line self.current_x = 0 self.current_y += 1 | f79fed1eac0b46c62cce01199e548b30ebc9188f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/f79fed1eac0b46c62cce01199e548b30ebc9188f/pml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
1369,
12,
2890,
4672,
468,
1436,
4548,
309,
1122,
980,
309,
486,
365,
18,
2972,
67,
93,
30,
1323,
365,
18,
3969,
67,
3772,
30,
787,
16,
2132,
273,
365,
18,
3969,
67,
3772,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
1369,
12,
2890,
4672,
468,
1436,
4548,
309,
1122,
980,
309,
486,
365,
18,
2972,
67,
93,
30,
1323,
365,
18,
3969,
67,
3772,
30,
787,
16,
2132,
273,
365,
18,
3969,
67,
3772,
... |
win32con.WM_USER+20 : self.OnTaskbarNotify, | WM_TASKBAR_NOTIFY : self.OnTaskbarNotify, | def __init__(self): # The ordering here is important - it is the order that they will # appear in the menu. As dicts don't have an order, this means # that the order is controlled by the id. Any items were the # function is None will appear as separators. self.control_functions = {1024 : ("Start SpamBayes", self.Star... | 0254a2f4a8a68361bc59fecaadbe2435c61fa306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0254a2f4a8a68361bc59fecaadbe2435c61fa306/pop3proxy_tray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
1021,
9543,
2674,
353,
10802,
300,
518,
353,
326,
1353,
716,
2898,
903,
468,
9788,
316,
326,
3824,
18,
225,
2970,
15838,
2727,
1404,
1240,
392,
1353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
1021,
9543,
2674,
353,
10802,
300,
518,
353,
326,
1353,
716,
2898,
903,
468,
9788,
316,
326,
3824,
18,
225,
2970,
15838,
2727,
1404,
1240,
392,
1353... |
tcl_version = self.tk.getvar('tcl_version') | tcl_version = str(self.tk.getvar('tcl_version')) | def __init__(self, screenName=None, baseName=None, className='Tk'): """Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will be created. BASENAME will be used for the identification of the profile file (see readprofile). It is constructed from sys.argv[0] without extensions if None is given. CLA... | 5cf7f9afbfca310aa252496d2eb6ba7875c0e4cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5cf7f9afbfca310aa252496d2eb6ba7875c0e4cc/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5518,
461,
33,
7036,
16,
16162,
33,
7036,
16,
2658,
2218,
56,
79,
11,
4672,
3536,
990,
279,
394,
7202,
2815,
3604,
603,
5518,
348,
5458,
1157,
1985,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5518,
461,
33,
7036,
16,
16162,
33,
7036,
16,
2658,
2218,
56,
79,
11,
4672,
3536,
990,
279,
394,
7202,
2815,
3604,
603,
5518,
348,
5458,
1157,
1985,
18,
... |
default='False', cmd='-r', ) | default='False', cmd='-r', odesc="<entry type|all>") | def parse(self, argv, do_getopt=True): '''Parse options''' ret = {} if do_getopt: try: opts, args = getopt.getopt(argv, self.buildGetopt(), []) except getopt.GetoptError, err: self.helpExit(err) if '-h' in argv: self.helpExit('', 0) for key in self.keys(): option = self[key] if do_getopt: option.parse(opts, []) else: o... | 388ae76f595adfa23b4b04f1a567d2cb66c684b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/388ae76f595adfa23b4b04f1a567d2cb66c684b3/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
5261,
16,
741,
67,
588,
3838,
33,
5510,
4672,
9163,
3201,
702,
26418,
325,
273,
2618,
309,
741,
67,
588,
3838,
30,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
5261,
16,
741,
67,
588,
3838,
33,
5510,
4672,
9163,
3201,
702,
26418,
325,
273,
2618,
309,
741,
67,
588,
3838,
30,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588... |
def dump(src, length = 8): N=0; result='' | def dump(src, length=8): FILTER = ''.join([(len(repr(chr(x))) == 3) and chr(x) or '.' for x in range(256)]) N = 0 result = '' | def dump(src, length = 8): N=0; result='' while src: s,src = src[:length],src[length:] hexa = ' '.join(["%02X"%ord(x) for x in s]) s = s.translate(FILTER) result += "%04X %-*s %s\n" % (N, length*3, hexa, s) N += length return result | 2d93b4a31ad99bdee3a54ba6dc8e4e7060e13a86 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6899/2d93b4a31ad99bdee3a54ba6dc8e4e7060e13a86/dumpit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
4816,
16,
769,
33,
28,
4672,
8919,
273,
875,
18,
5701,
3816,
12,
1897,
12,
12715,
12,
15182,
12,
92,
20349,
422,
890,
13,
471,
4513,
12,
92,
13,
578,
2611,
364,
619,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
4816,
16,
769,
33,
28,
4672,
8919,
273,
875,
18,
5701,
3816,
12,
1897,
12,
12715,
12,
15182,
12,
92,
20349,
422,
890,
13,
471,
4513,
12,
92,
13,
578,
2611,
364,
619,
316,
... |
data_files.append ((destpath % name, [mopath % name])) | data_files.append ((destpath % name, [mopath % name])) | def filter_images (image): return image.startswith ("plugin-") or image.startswith ("category-") | 111c0c74d135965550b8dce6951aa010382e3abb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7062/111c0c74d135965550b8dce6951aa010382e3abb/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
7369,
261,
2730,
4672,
327,
1316,
18,
17514,
1918,
7566,
4094,
17,
7923,
578,
1316,
18,
17514,
1918,
7566,
4743,
17,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1034,
67,
7369,
261,
2730,
4672,
327,
1316,
18,
17514,
1918,
7566,
4094,
17,
7923,
578,
1316,
18,
17514,
1918,
7566,
4743,
17,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def _debug(self, args): """ Quick method to output some debugging information which states the thread name, a colon, and whatever arguments have been passed to it. Args: args: a list of additional arguments to pass, much like what print() takes. """ if tsumufs.debugMode: syslog.syslog("nfsmount: "+ args) | def unmount(self): """ Quick and dirty method to actually UNmount the real NFS connection somewhere else on the filesystem. """ | bd12851c8e8414f0f1f5f5d515bd47a9833637ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/bd12851c8e8414f0f1f5f5d515bd47a9833637ce/nfsmount.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25670,
12,
2890,
4672,
3536,
19884,
471,
9603,
707,
358,
6013,
5019,
4778,
326,
2863,
31924,
1459,
22234,
469,
603,
326,
6496,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
25670,
12,
2890,
4672,
3536,
19884,
471,
9603,
707,
358,
6013,
5019,
4778,
326,
2863,
31924,
1459,
22234,
469,
603,
326,
6496,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
s_full = float(info['7_Sigma'][j]) | s_full = float(info['7_SigmaFull'][j]) | def _refine_sd_parameters_remerge(self, scales_file, sdadd_f, sdb_f): '''Actually compute the RMS deviation from scatter / sigma = 1.0 from unity.''' epochs = self._sweep_information.keys() epochs.sort() | 92b9e8c915238baa49f3b215dfc25645dfe22971 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3290/92b9e8c915238baa49f3b215dfc25645dfe22971/XDSScaler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1734,
558,
67,
6427,
67,
3977,
67,
266,
2702,
12,
2890,
16,
18211,
67,
768,
16,
8349,
1289,
67,
74,
16,
272,
1966,
67,
74,
4672,
9163,
2459,
3452,
3671,
326,
534,
3537,
17585,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1734,
558,
67,
6427,
67,
3977,
67,
266,
2702,
12,
2890,
16,
18211,
67,
768,
16,
8349,
1289,
67,
74,
16,
272,
1966,
67,
74,
4672,
9163,
2459,
3452,
3671,
326,
534,
3537,
17585,
6... |
None means use an actual sphere; other values distinguish the special cases encoded into draw_atom_sphere. | Return value "" (not None) means to use an actual sphere; other values distinguish the special cases encoded into draw_atom_sphere (and a few other calling methods). | def _draw_atom_style(self): #bruce 070409 split this out of draw_atom_sphere """[private helper method for draw_atom_sphere, and perhaps related methods like draw_wirespheres] Return a short hardcoded string (known to draw_atom_sphere) saying in what style to draw the atom's sphere. None means use an actual sphere; oth... | f173d4f674c49f0d7aca31b944ec94c5b3d48291 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/f173d4f674c49f0d7aca31b944ec94c5b3d48291/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
7466,
67,
4060,
12,
2890,
4672,
468,
2848,
3965,
10934,
3028,
5908,
1416,
333,
596,
434,
3724,
67,
7466,
67,
87,
9346,
3536,
63,
1152,
4222,
707,
364,
3724,
67,
7466,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
7466,
67,
4060,
12,
2890,
4672,
468,
2848,
3965,
10934,
3028,
5908,
1416,
333,
596,
434,
3724,
67,
7466,
67,
87,
9346,
3536,
63,
1152,
4222,
707,
364,
3724,
67,
7466,
67... |
ddate_col.add_attribute (render_text, "markup", self.TASK_MODEL_DDATE) | ddate_col.add_attribute (render_text, "markup", self.TASK_MODEL_DDATE_STR) | def __create_task_tview(self): | c5a0b65696467294e7b6a10bde93ac3f353da81b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/c5a0b65696467294e7b6a10bde93ac3f353da81b/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2640,
67,
4146,
67,
88,
1945,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sidebar = grid.blockItem | def drawButton (name): imagePrefix = "Sidebar" + name imageSuffix = ".png" if (row == getattr (grid, 'hoverImageRow', wx.NOT_FOUND) and name != "SharingIcon"): imagePrefix += "MouseOver" if grid.buttonState[name]['screenChecked']: imageSuffix = "Checked" + imageSuffix else: imageSuffix = sidebar.getButtonState (name, i... | 5610c6ef519c7cd7d9c793cc9ba01dbb0baa09ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5610c6ef519c7cd7d9c793cc9ba01dbb0baa09ca/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
3616,
261,
529,
4672,
1316,
2244,
273,
315,
8895,
3215,
6,
397,
508,
1316,
5791,
273,
3552,
6446,
6,
309,
261,
492,
422,
3869,
261,
5222,
16,
296,
24969,
2040,
1999,
2187,
7075,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
3616,
261,
529,
4672,
1316,
2244,
273,
315,
8895,
3215,
6,
397,
508,
1316,
5791,
273,
3552,
6446,
6,
309,
261,
492,
422,
3869,
261,
5222,
16,
296,
24969,
2040,
1999,
2187,
7075,
... | |
''' A version of strtime that returns unicode strings. ''' | ''' A version of strtime that returns unicode strings and tries to handle dates before 1900 ''' | def strftime(fmt, t=None): ''' A version of strtime that returns unicode strings. ''' if t is None: t = time.localtime() if iswindows: if isinstance(fmt, unicode): fmt = fmt.encode('mbcs') return plugins['winutil'][0].strftime(fmt, t) return time.strftime(fmt, t).decode(preferred_encoding, 'replace') | a625a9f6ea2c332ed77abf1b7662894067563b91 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/a625a9f6ea2c332ed77abf1b7662894067563b91/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10405,
12,
8666,
16,
268,
33,
7036,
4672,
9163,
432,
1177,
434,
609,
957,
716,
1135,
5252,
2064,
471,
9327,
358,
1640,
7811,
1865,
5342,
713,
9163,
309,
268,
353,
599,
30,
268,
273,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10405,
12,
8666,
16,
268,
33,
7036,
4672,
9163,
432,
1177,
434,
609,
957,
716,
1135,
5252,
2064,
471,
9327,
358,
1640,
7811,
1865,
5342,
713,
9163,
309,
268,
353,
599,
30,
268,
273,
81... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.