rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
am = [( unicode(amenity[0].decode("utf-8")), unicode(amenity[1].decode("utf-8")), | am = [( amenity[0], amenity[1], | def humanize_amenity_list(self, am): # We transform the string representing the squares list into a # Python list am = [( unicode(amenity[0].decode("utf-8")), unicode(amenity[1].decode("utf-8")), [ map(int, x.split(',')) for x in amenity[2].split(';')[:-1] ] ) for amenity in am] | 0280212f34e2e8635e73455f44e90ed69c35e6cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9326/0280212f34e2e8635e73455f44e90ed69c35e6cc/street_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27792,
67,
301,
275,
560,
67,
1098,
12,
2890,
16,
2125,
4672,
468,
1660,
2510,
326,
533,
5123,
326,
31206,
666,
1368,
279,
468,
6600,
666,
2125,
273,
306,
12,
2125,
275,
560,
63,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27792,
67,
301,
275,
560,
67,
1098,
12,
2890,
16,
2125,
4672,
468,
1660,
2510,
326,
533,
5123,
326,
31206,
666,
1368,
279,
468,
6600,
666,
2125,
273,
306,
12,
2125,
275,
560,
63,
20,
... |
if (not self.force_content_type and (not content_type or not content_type.startswith('text/html'))): | if (removed or (not self.force_content_type and (not content_type or not content_type.startswith('text/html')))): | def __call__(self, environ, start_response): global _threadedprint_installed if environ.get('paste.testing'): # In a testing environment this interception isn't # useful: return self.app(environ, start_response) if not _threadedprint_installed: # @@: Not strictly threadsafe _threadedprint_installed = True threadedprint... | 0307c0898dd2d4c86dd34e3a585f2990b0b297a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/0307c0898dd2d4c86dd34e3a585f2990b0b297a9/prints.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
2552,
389,
451,
20528,
1188,
67,
13435,
309,
5473,
18,
588,
2668,
29795,
18,
3813,
310,
11,
4672,
468,
657,
279,
7769,
333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
2552,
389,
451,
20528,
1188,
67,
13435,
309,
5473,
18,
588,
2668,
29795,
18,
3813,
310,
11,
4672,
468,
657,
279,
7769,
333... |
toonbase.tcr.sendSetZoneMsg(self.getZoneId(zoneNum), visibleZoneIds) self.curZoneNum = zoneNum self.curVisibleZoneNums = visibleZoneNums | toonbase.tcr.sendSetZoneMsg(self.getZoneId(curZone), visibleZoneIds) | def enterZone(self, zoneNum): if not DistributedLevel.WantVisibility: return | 16166d65736ecb9018e5c6a3e3f4e69582f979af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/16166d65736ecb9018e5c6a3e3f4e69582f979af/DistributedLevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
4226,
12,
2890,
16,
4157,
2578,
4672,
309,
486,
27877,
2355,
18,
59,
970,
10135,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
4226,
12,
2890,
16,
4157,
2578,
4672,
309,
486,
27877,
2355,
18,
59,
970,
10135,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
prop_restriction = (mapi.RES_PROPERTY, (mapi.RELOP_EQ, PR_CONTENT_UNREAD, (PR_CONTENT_UNREAD, True)) ) | prop_restriction = (mapi.RES_BITMASK, (mapi.BMR_EQZ, PR_MESSAGE_FLAGS, MSGFLAG_READ)) | def GetNewUnscoredMessageGenerator(self, scoreFieldName): folder = self.msgstore._OpenEntry(self.id) table = folder.GetContentsTable(0) # Resolve the field name resolve_props = ( (mapi.PS_PUBLIC_STRINGS, "Spam"), ) resolve_ids = folder.GetIDsFromNames(resolve_props, 0) field_id = PROP_TAG( PT_I4, PROP_ID(resolve_ids[0]... | df7e0953d74c12a851d3ab366dfd868b01eb57ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/df7e0953d74c12a851d3ab366dfd868b01eb57ae/msgstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1908,
984,
6355,
72,
1079,
3908,
12,
2890,
16,
4462,
7287,
4672,
3009,
273,
365,
18,
3576,
2233,
6315,
3678,
1622,
12,
2890,
18,
350,
13,
1014,
273,
3009,
18,
967,
6323,
1388,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1908,
984,
6355,
72,
1079,
3908,
12,
2890,
16,
4462,
7287,
4672,
3009,
273,
365,
18,
3576,
2233,
6315,
3678,
1622,
12,
2890,
18,
350,
13,
1014,
273,
3009,
18,
967,
6323,
1388,
12,... |
err.append('A workgroup is already defined for this location') | err.append( 'A workgroup is already defined for this location') | def admin_addworkgroup(self, title='', location='', role='', REQUEST=None): """ """ err = [] if title=='': err.append('Title is required') if location=='': err.append('Location is required') else: try: #check for a valid location ob = self.unrestrictedTraverse(location) except: err.append('Invalid location') else: #che... | 83c9a05f7bcb0c9e391837f25115cc8d647c0436 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/83c9a05f7bcb0c9e391837f25115cc8d647c0436/CHMSite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
1289,
1252,
1655,
12,
2890,
16,
2077,
2218,
2187,
2117,
2218,
2187,
2478,
2218,
2187,
12492,
33,
7036,
4672,
3536,
3536,
393,
273,
5378,
309,
2077,
18920,
4278,
393,
18,
6923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
1289,
1252,
1655,
12,
2890,
16,
2077,
2218,
2187,
2117,
2218,
2187,
2478,
2218,
2187,
12492,
33,
7036,
4672,
3536,
3536,
393,
273,
5378,
309,
2077,
18920,
4278,
393,
18,
6923,
... |
raise OpenProjectError(1,scheme) | raise OpenProjectError(1, scheme) | def LoadFromFile(uri): """ Loads a project from a save file on disk. uri The filesystem location of the project file to load. Currently only file:// URIs are considered valid. """ p = Project() (scheme, domain, projectfile, params, query, fragment) = urlparse.urlparse(uri, "file") if scheme != "file": # raise "The UR... | e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
13087,
12,
1650,
4672,
3536,
4444,
87,
279,
1984,
628,
279,
1923,
585,
603,
4234,
18,
225,
2003,
1021,
6496,
2117,
434,
326,
1984,
585,
358,
1262,
18,
15212,
1338,
585,
2207,
24565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
13087,
12,
1650,
4672,
3536,
4444,
87,
279,
1984,
628,
279,
1923,
585,
603,
4234,
18,
225,
2003,
1021,
6496,
2117,
434,
326,
1984,
585,
358,
1262,
18,
15212,
1338,
585,
2207,
24565... |
if tgw_ulx >= tgw_lrx or tgw_uly <= tgw_lry: return 1 | if tgw_ulx >= tgw_lrx: return 1 if t_geotransform[5] < 0 and tgw_uly <= tgw_lry: return 1 if t_geotransform[5] > 0 and tgw_uly >= tgw_lry: return 1 | def copy_into( self, t_fh, s_band = 1, t_band = 1, nodata_arg=None ): """ Copy this files image into target file. | 33db332f78c113ef89d7da3572d049b8743d62f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10290/33db332f78c113ef89d7da3572d049b8743d62f8/gdal_merge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
18591,
12,
365,
16,
268,
67,
19260,
16,
272,
67,
12752,
273,
404,
16,
268,
67,
12752,
273,
404,
16,
14003,
396,
67,
3175,
33,
7036,
262,
30,
3536,
5631,
333,
1390,
1316,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
18591,
12,
365,
16,
268,
67,
19260,
16,
272,
67,
12752,
273,
404,
16,
268,
67,
12752,
273,
404,
16,
14003,
396,
67,
3175,
33,
7036,
262,
30,
3536,
5631,
333,
1390,
1316,
13... |
info("checking %s consistency on %s" % (dev.iv_name, pri_node)) | info("checking disk/%d consistency on %s" % (idx, pri_node)) | def _ExecD8Secondary(self, feedback_fn): """Replace the secondary node for drbd8. | d418ebfb87b39874d8ab5c5e0243201049c0b25f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/d418ebfb87b39874d8ab5c5e0243201049c0b25f/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
18,
2,
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,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
[2.5000000000000004 - 0.00000000000000011102230246251565*I, 2.5000000000000004 - 0.00000000000000011102230246251565*I, 2.5000000000000004 - 0.00000000000000011102230246251565*I, 2.5000000000000004 - 0.00000000000000011102230246251565*I, 2.5000000000000004 - 0.00000000000000011102230246251565*I] """ F = self.base_ring()... | Indexed sequence: [2.50000000000011 + 0.00000000000000571764857681955*I, 2.50000000000011 + 0.00000000000000571764857681955*I, 2.50000000000011 + 0.00000000000000571764857681955*I, 2.50000000000011 + 0.00000000000000571764857681955*I, 2.50000000000011 + 0.00000000000000571764857681955*I] indexed by [0, 1, 2, 3, 4] """ ... | def dct(self): """ Implements a discrete Cosine transform | 837c0b7c218776beb9f35f10fe4f0b231105b3a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/837c0b7c218776beb9f35f10fe4f0b231105b3a3/dft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18253,
12,
2890,
4672,
3536,
29704,
279,
20035,
385,
538,
558,
2510,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18253,
12,
2890,
4672,
3536,
29704,
279,
20035,
385,
538,
558,
2510,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
bullet=obj.name.rstrip() | bullet=obj.name bullet=bullet.rstrip() if isinstance(bullet,basestring) else "" | def fillBuffer(self,obj,parentID=None,position=None): getNVDAObjectID=self.getNVDAObjectID role=getMozillaRole(obj.IAccessibleRole) states=obj.IAccessibleStates text="" if position is None: position=self.text_characterCount ID=getNVDAObjectID(obj) if ID is None: ID=parentID #Collect the children #Use IAccessible direct... | 3d2658d103eed06ae0ea441992954f6837e5a4be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/3d2658d103eed06ae0ea441992954f6837e5a4be/gecko.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
1892,
12,
2890,
16,
2603,
16,
2938,
734,
33,
7036,
16,
3276,
33,
7036,
4672,
11069,
58,
9793,
22359,
33,
2890,
18,
588,
11679,
9793,
22359,
2478,
33,
588,
49,
11142,
10745,
2996,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
1892,
12,
2890,
16,
2603,
16,
2938,
734,
33,
7036,
16,
3276,
33,
7036,
4672,
11069,
58,
9793,
22359,
33,
2890,
18,
588,
11679,
9793,
22359,
2478,
33,
588,
49,
11142,
10745,
2996,
... |
client = SystemAdministratorClient( self.host ) | client = SystemAdministratorClient( self.host, self.port ) | def do_install( self, args ): """ Install various DIRAC components usage: install mysql install db <database> install service <system> <service> install agent <system> <agent> """ argss = args.split() if not argss: print self.do_install.__doc__ return | cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5425,
12,
365,
16,
833,
262,
30,
3536,
10284,
11191,
18544,
2226,
4085,
225,
4084,
30,
225,
3799,
7219,
3799,
1319,
411,
6231,
34,
3799,
1156,
411,
4299,
34,
411,
3278,
34,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5425,
12,
365,
16,
833,
262,
30,
3536,
10284,
11191,
18544,
2226,
4085,
225,
4084,
30,
225,
3799,
7219,
3799,
1319,
411,
6231,
34,
3799,
1156,
411,
4299,
34,
411,
3278,
34,
37... |
c2pread, c2pwrite = CreatePipe(None, 0) | c2pread, c2pwrite = _subprocess.CreatePipe(None, 0) | def _get_handles(self, stdin, stdout, stderr): """Construct and return tuple with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite """ if stdin is None and stdout is None and stderr is None: return (None, None, None, None, None, None) | bfcbec5091d1f60c18c1f9c12171de7a06cc742c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/bfcbec5091d1f60c18c1f9c12171de7a06cc742c/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
3193,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
896,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
3193,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
896,
1... |
return [(md5.new(str(math.pow(int(e), 2))).digest(), "")] | k = str(int(math.ceil(float(e))) ** 2) return [(md5.new(k).hexdigest(), "")] | def fun_map(e, params): return [(md5.new(str(math.pow(int(e), 2))).digest(), "")] | 0c7cacf2af61a5dc23d4e642928bd168795f50a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/373/0c7cacf2af61a5dc23d4e642928bd168795f50a5/test_reqmodules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9831,
67,
1458,
12,
73,
16,
859,
4672,
417,
273,
609,
12,
474,
12,
15949,
18,
311,
330,
12,
5659,
12,
73,
20349,
2826,
576,
13,
327,
306,
12,
1264,
25,
18,
2704,
12,
79,
2934,
7118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9831,
67,
1458,
12,
73,
16,
859,
4672,
417,
273,
609,
12,
474,
12,
15949,
18,
311,
330,
12,
5659,
12,
73,
20349,
2826,
576,
13,
327,
306,
12,
1264,
25,
18,
2704,
12,
79,
2934,
7118... |
user = line.getInterwikiEditorData(request)[-1] | user = ' '.join(line.getInterwikiEditorData(request)[1:]) | def execute(pagename, request): _ = request.getText log = editlog.EditLog(request) request.http_headers(["Content-type: application/xml;charset=%s" % config.charset]) request.write("<data>\n") for line in log.reverse(): is_new = line.action == 'SAVENEW' if not request.user.may.read(line.pagename): continue line.t... | c540e1c85767aac03b299d447266ae96a5e4953b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/c540e1c85767aac03b299d447266ae96a5e4953b/recentchangestimeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
613,
273,
3874,
1330,
18,
4666,
1343,
12,
2293,
13,
225,
590,
18,
2505,
67,
2485,
3816,
6,
1350,
17,
723,
30,
2521,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
613,
273,
3874,
1330,
18,
4666,
1343,
12,
2293,
13,
225,
590,
18,
2505,
67,
2485,
3816,
6,
1350,
17,
723,
30,
2521,... |
if script[i:i+9].lower() == '</script>' and quote: script = script[:i]+"</scr"+quote+"+"+quote+"ipt>"+\ script[(i+9):] | if script[i:i+9].lower() == '</script>': if quote: script = script[:i] + "</scr" + quote + "+" + \ quote + "ipt>" + script[(i+9):] else: script = script[:i] + script[(i+9):] | def escape_js_line (script): # if we encounter "</script>" in the script, we assume that is # in a quoted string. The solution is to split it into # "</scr"+"ipt>" (with the proper quotes of course) quote = False escape = False i = 0 while i < len(script): c = script[i] if c == '"' or c == "'": if not escape: if quote ... | 1be559507527d8ab8cf4c85c0653082cb57e6e8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/1be559507527d8ab8cf4c85c0653082cb57e6e8b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
2924,
67,
1369,
261,
4263,
4672,
468,
309,
732,
8273,
6823,
4263,
2984,
316,
326,
2728,
16,
732,
6750,
716,
353,
468,
316,
279,
9298,
533,
18,
1021,
6959,
353,
358,
1416,
518... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
2924,
67,
1369,
261,
4263,
4672,
468,
309,
732,
8273,
6823,
4263,
2984,
316,
326,
2728,
16,
732,
6750,
716,
353,
468,
316,
279,
9298,
533,
18,
1021,
6959,
353,
358,
1416,
518... |
( LLPPP, IP, { } ), | ( PPP, IP, { "proto" : 0x0021 } ), | def bind_layers(lower, upper, fval): lower.payload_guess = lower.payload_guess[:] upper.overload_fields = upper.overload_fields.copy() lower.payload_guess.append((fval, upper)) upper.overload_fields[lower] = fval | ec0022b353da8880bc8f72ff0e8b5404cf6f209f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/ec0022b353da8880bc8f72ff0e8b5404cf6f209f/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
67,
10396,
12,
8167,
16,
3854,
16,
284,
1125,
4672,
2612,
18,
7648,
67,
20885,
273,
2612,
18,
7648,
67,
20885,
10531,
65,
3854,
18,
1643,
945,
67,
2821,
273,
3854,
18,
1643,
945,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
67,
10396,
12,
8167,
16,
3854,
16,
284,
1125,
4672,
2612,
18,
7648,
67,
20885,
273,
2612,
18,
7648,
67,
20885,
10531,
65,
3854,
18,
1643,
945,
67,
2821,
273,
3854,
18,
1643,
945,... |
extra_path = [] | extra_path = [] | def run(self): # refactor, refactor, refactor! bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'winexe') | 85eb5e78c2d5450640ece0916595fa9c51e7a54d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/85eb5e78c2d5450640ece0916595fa9c51e7a54d/build_exe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
26627,
16,
26627,
16,
26627,
5,
324,
4413,
67,
1969,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
70,
4413,
16063,
70,
4413,
67,
1969,
365,
18,
70,
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,
1086,
12,
2890,
4672,
468,
26627,
16,
26627,
16,
26627,
5,
324,
4413,
67,
1969,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
70,
4413,
16063,
70,
4413,
67,
1969,
365,
18,
70,
4... |
if text is not None: | if text is not None and len(text) > idx: | def updatecache(*args): # linecache.updatecache brokenlt looks in the module # search path for files that match the module name # (problem if you have a file without source with the same # name as a python standard library module. We'll just check # to see if the file exists first and require exact path # matches if no... | 4d177e49018d133eea530dd6a3b35c6328c5a56b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/4d177e49018d133eea530dd6a3b35c6328c5a56b/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2493,
30857,
1968,
4672,
468,
4739,
557,
807,
18,
2725,
2493,
12933,
5618,
10192,
316,
326,
1605,
468,
1623,
589,
364,
1390,
716,
845,
326,
1605,
508,
468,
261,
18968,
309,
1846,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2493,
30857,
1968,
4672,
468,
4739,
557,
807,
18,
2725,
2493,
12933,
5618,
10192,
316,
326,
1605,
468,
1623,
589,
364,
1390,
716,
845,
326,
1605,
508,
468,
261,
18968,
309,
1846,
1... |
new, start = Query(title=title, author=author, publisher=publisher, | new, start = Query(title=title, author=author, publisher=publisher, | def search(title=None, author=None, publisher=None, isbn=None, min_viewability='none', verbose=False, max_results=40): br = browser() start, entries = 1, [] while start > 0 and len(entries) <= max_results: new, start = Query(title=title, author=author, publisher=publisher, isbn=isbn, min_viewability=min_viewability)(... | 3a1909ba2fb33e87c357fc94a8cd27eb92ca181d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/3a1909ba2fb33e87c357fc94a8cd27eb92ca181d/google_books.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2649,
33,
7036,
16,
2869,
33,
7036,
16,
12855,
33,
7036,
16,
24205,
33,
7036,
16,
1131,
67,
1945,
2967,
2218,
6102,
2187,
3988,
33,
8381,
16,
943,
67,
4717,
33,
7132,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2649,
33,
7036,
16,
2869,
33,
7036,
16,
12855,
33,
7036,
16,
24205,
33,
7036,
16,
1131,
67,
1945,
2967,
2218,
6102,
2187,
3988,
33,
8381,
16,
943,
67,
4717,
33,
7132,
4672,
... |
procedure_preferences.distl_aggressive["force_outer_resolution"] = 3.6 procedure_preferences.distl_highres_limit = 3.6 | if outer_resolution != None: procedure_preferences.distl_aggressive["force_outer_resolution"] = outer_resolution procedure_preferences.distl_highres_limit = outer_resolution | def common_parameters(outer_resolution): from labelit.preferences import procedure_preferences procedure_preferences.distl_aggressive["force_outer_resolution"] = 3.6 procedure_preferences.distl_highres_limit = 3.6 procedure_preferences.phil.distl_force_binning = False procedure_preferences.phil.distl_permit_binning = ... | c8ca6b75d7d0c0d1d310a0e958630870fa4b1a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/c8ca6b75d7d0c0d1d310a0e958630870fa4b1a43/spotfinder_server_read_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
3977,
12,
14068,
67,
19182,
4672,
628,
1433,
305,
18,
23219,
1930,
12131,
67,
23219,
309,
6390,
67,
19182,
480,
599,
30,
12131,
67,
23219,
18,
4413,
80,
67,
346,
2329,
688,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
3977,
12,
14068,
67,
19182,
4672,
628,
1433,
305,
18,
23219,
1930,
12131,
67,
23219,
309,
6390,
67,
19182,
480,
599,
30,
12131,
67,
23219,
18,
4413,
80,
67,
346,
2329,
688,
9... |
raise "Not supported just yet" | networks = dict([(record['name_label'], record['uuid']) for record in server.xenapi.network .get_all_records()]) if bridge not in networks.keys(): raise "Unknown bridge name!" return networks[bridge] | def get_net_from_bridge(bridge): raise "Not supported just yet" | c71948861b3ca0b2979a703a7103a44fdd28ead9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/c71948861b3ca0b2979a703a7103a44fdd28ead9/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2758,
67,
2080,
67,
18337,
12,
18337,
4672,
1002,
315,
1248,
3260,
2537,
4671,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2758,
67,
2080,
67,
18337,
12,
18337,
4672,
1002,
315,
1248,
3260,
2537,
4671,
6,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
k = 1 | k = self._k | def gen(self,a0,a1,d): """ """ x, y = ZZ(a0), ZZ(a1) k = 1 yield x while True: k = k+1 x, y = y, k*y+(k-d)*x yield x | 8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
12,
2890,
16,
69,
20,
16,
69,
21,
16,
72,
4672,
3536,
225,
3536,
619,
16,
677,
273,
2285,
62,
12,
69,
20,
3631,
2285,
62,
12,
69,
21,
13,
417,
273,
365,
6315,
79,
2824,
619... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
12,
2890,
16,
69,
20,
16,
69,
21,
16,
72,
4672,
3536,
225,
3536,
619,
16,
677,
273,
2285,
62,
12,
69,
20,
3631,
2285,
62,
12,
69,
21,
13,
417,
273,
365,
6315,
79,
2824,
619... |
return prTable.get(pt) | return prTable.get(pt, hex(pt)) | def GetPropTagName(pt): if not prTable: for name, value in mapitags.__dict__.items(): if name[:3] == 'PR_': prTable[value] = name return prTable.get(pt) | eebd3e3fe576395063de6d49876e68c52703358b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/eebd3e3fe576395063de6d49876e68c52703358b/mapiutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4658,
8520,
12,
337,
4672,
309,
486,
846,
1388,
30,
364,
508,
16,
460,
316,
852,
305,
1341,
16186,
1576,
25648,
3319,
13332,
309,
508,
10531,
23,
65,
422,
296,
8025,
67,
4278,
846... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4658,
8520,
12,
337,
4672,
309,
486,
846,
1388,
30,
364,
508,
16,
460,
316,
852,
305,
1341,
16186,
1576,
25648,
3319,
13332,
309,
508,
10531,
23,
65,
422,
296,
8025,
67,
4278,
846... |
gsr.reset() | gsr.clear() gsr.clearSearchForm() | def goButtonClicked(self): uri = widgets.get_widget('urlInput').get_text() if (uri != ''): gsr.reset() gsr.messageBar( 'query on ' + uri) gsr.drawTree(gsr.getPosts(uri)) | 23d9b7907883190ae00fc628f4381ee6ba3f3477 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5712/23d9b7907883190ae00fc628f4381ee6ba3f3477/gsr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
3616,
27633,
12,
2890,
4672,
2003,
273,
10965,
18,
588,
67,
6587,
2668,
718,
1210,
16063,
588,
67,
955,
1435,
309,
261,
1650,
480,
875,
4672,
10763,
86,
18,
8507,
1435,
10763,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
3616,
27633,
12,
2890,
4672,
2003,
273,
10965,
18,
588,
67,
6587,
2668,
718,
1210,
16063,
588,
67,
955,
1435,
309,
261,
1650,
480,
875,
4672,
10763,
86,
18,
8507,
1435,
10763,
86,
... |
C{r.Requires('soname: %(libdir)/kde3/kgreet_classic.so', '%(bindir)/kdm') | C{r.Requires('soname: %(libdir)/kde3/kgreet_classic.so', '%(bindir)/kdm')} | def _markProvides(self, path, fullpath, provision, pkg, m, f): if path not in pkg.providesMap: # BuildPackage only fills in providesMap for ELF files; we may # need to create a few more DependencySets. pkg.providesMap[path] = deps.DependencySet() | 4c1bda59fd9462766cd62711ac4b3042686a9e98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4c1bda59fd9462766cd62711ac4b3042686a9e98/packagepolicy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3355,
17727,
12,
2890,
16,
589,
16,
15170,
16,
10595,
16,
3475,
16,
312,
16,
284,
4672,
309,
589,
486,
316,
3475,
18,
685,
13427,
863,
30,
468,
3998,
2261,
1338,
21652,
316,
8121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3355,
17727,
12,
2890,
16,
589,
16,
15170,
16,
10595,
16,
3475,
16,
312,
16,
284,
4672,
309,
589,
486,
316,
3475,
18,
685,
13427,
863,
30,
468,
3998,
2261,
1338,
21652,
316,
8121,... |
debug = Debug(eventHandler, bKillOnExit = options.kill) | debug = Debug(eventHandler, bKillOnExit = not options.autodetach, bHostileCode = options.hostile) | def main(args): (parser, options, args) = parse_cmdline(args) if options.verbose: print DebugLog.log_text("Crash logger started, %s" % time.ctime()) # Create the event handler oldCrashCount = 0 eventHandler = LoggingEventHandler(options) # Create the debug object debug = Debug(eventHandler, bKillOnExit = options.ki... | 4f88f3a1c3d50dd176e69920eeec788023d4f9b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/4f88f3a1c3d50dd176e69920eeec788023d4f9b2/crash_logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
261,
4288,
16,
702,
16,
833,
13,
273,
1109,
67,
4172,
1369,
12,
1968,
13,
225,
309,
702,
18,
11369,
30,
1172,
4015,
1343,
18,
1330,
67,
955,
2932,
12893,
961,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
261,
4288,
16,
702,
16,
833,
13,
273,
1109,
67,
4172,
1369,
12,
1968,
13,
225,
309,
702,
18,
11369,
30,
1172,
4015,
1343,
18,
1330,
67,
955,
2932,
12893,
961,
1... |
task.SetEnvironmentVariable("TEMP", self._conf["user_dir"]) task.SetEnvironmentVariable("TMP", self._conf["user_dir"]) | task.SetEnvironmentVariable("TEMP", self._conf["node_project"]) task.SetEnvironmentVariable("TMP", self._conf["node_project"]) | def SetJobEnv(self,task): task.SetEnvironmentVariable("MAYA_APP_DIR", self._conf["user_dir"]) task.SetEnvironmentVariable("TEMP", self._conf["user_dir"]) task.SetEnvironmentVariable("TMP", self._conf["user_dir"]) task.SetEnvironmentVariable("OWNER", getpass.getuser()) task.SetEnvironmentVariable("USER_DIR", self._conf[... | 7acec180fb7968b7bbd59b6053d46aa5f5bf56d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14622/7acec180fb7968b7bbd59b6053d46aa5f5bf56d7/hpc-spool-script.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
2278,
3491,
12,
2890,
16,
4146,
4672,
1562,
18,
694,
5494,
3092,
2932,
49,
5255,
37,
67,
7215,
67,
4537,
3113,
365,
6315,
3923,
9614,
1355,
67,
1214,
6,
5717,
1562,
18,
694,
5494... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
2278,
3491,
12,
2890,
16,
4146,
4672,
1562,
18,
694,
5494,
3092,
2932,
49,
5255,
37,
67,
7215,
67,
4537,
3113,
365,
6315,
3923,
9614,
1355,
67,
1214,
6,
5717,
1562,
18,
694,
5494... |
return "%s/%02d/%s/%s/%s" % (recipe.recipeset.queue_time.year, int(str(job.id)[-2:]), job.id, recipe.id, self.id) | return "%s/%02d/%s/%s/%s/%s" % (recipe.recipeset.queue_time.year, recipe.recipeset.queue_time.month, job.id // Log.MAX_ENTRIES_PER_DIRECTORY, job.id, recipe.id, self.id) | def filepath(self): """ Return file path for this task """ job = self.recipe.recipeset.job recipe = self.recipe return "%s/%02d/%s/%s/%s" % (recipe.recipeset.queue_time.year, int(str(job.id)[-2:]), job.id, recipe.id, self.id) | 2f4e71b6f3eec5660dbee52456df3ca9fa388f41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/2f4e71b6f3eec5660dbee52456df3ca9fa388f41/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3608,
12,
2890,
4672,
3536,
2000,
585,
589,
364,
333,
1562,
3536,
1719,
565,
273,
365,
18,
3927,
3151,
18,
266,
3449,
281,
278,
18,
4688,
16100,
273,
365,
18,
3927,
3151,
327,
2213,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3608,
12,
2890,
4672,
3536,
2000,
585,
589,
364,
333,
1562,
3536,
1719,
565,
273,
365,
18,
3927,
3151,
18,
266,
3449,
281,
278,
18,
4688,
16100,
273,
365,
18,
3927,
3151,
327,
2213,
87... |
if 'latex' in node.get('format', '').split(): self.out.append(node.astext()) raise nodes.SkipNode | if not 'latex' in node.get('format', '').split(): raise nodes.SkipNode if node['classes']: self.visit_inline(node) self.verbatim = True def depart_raw(self, node): self.verbatim = False if node['classes']: self.depart_inline(node) | def visit_raw(self, node): if 'latex' in node.get('format', '').split(): self.out.append(node.astext()) raise nodes.SkipNode | d37e632395c3a7f2b6d5a2234ac913f70ee48827 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/d37e632395c3a7f2b6d5a2234ac913f70ee48827/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1899,
12,
2890,
16,
756,
4672,
309,
296,
26264,
11,
316,
756,
18,
588,
2668,
2139,
2187,
875,
2934,
4939,
13332,
365,
18,
659,
18,
6923,
12,
2159,
18,
689,
408,
10756,
1002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1899,
12,
2890,
16,
756,
4672,
309,
296,
26264,
11,
316,
756,
18,
588,
2668,
2139,
2187,
875,
2934,
4939,
13332,
365,
18,
659,
18,
6923,
12,
2159,
18,
689,
408,
10756,
1002,
... |
return scipy.integrate.quad(self._pdf, self.a, x, args=args)[0] | return self.veccdf(x,*args) | def _cdf(self, x, *args): return scipy.integrate.quad(self._pdf, self.a, x, args=args)[0] | 6db89fd66aa882d8bb85d064d95c26c6ce2fcc55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/6db89fd66aa882d8bb85d064d95c26c6ce2fcc55/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
12,
2890,
16,
619,
16,
380,
1968,
4672,
327,
10966,
18,
14970,
5141,
18,
21733,
12,
2890,
6315,
7699,
16,
365,
18,
69,
16,
619,
16,
833,
33,
1968,
25146,
20,
65,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24799,
12,
2890,
16,
619,
16,
380,
1968,
4672,
327,
10966,
18,
14970,
5141,
18,
21733,
12,
2890,
6315,
7699,
16,
365,
18,
69,
16,
619,
16,
833,
33,
1968,
25146,
20,
65,
2,
-100,... |
s = '' | s = [] | def _safe_read(self, amt): """Read the number of bytes requested, compensating for partial reads. | e44e6f8d0905df90ccdbc34eea46d10061c401d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e44e6f8d0905df90ccdbc34eea46d10061c401d1/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
896,
12,
2890,
16,
25123,
4672,
3536,
1994,
326,
1300,
434,
1731,
3764,
16,
1161,
773,
1776,
364,
4702,
6838,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
4626,
67,
896,
12,
2890,
16,
25123,
4672,
3536,
1994,
326,
1300,
434,
1731,
3764,
16,
1161,
773,
1776,
364,
4702,
6838,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Checkbutton(frame["Tests"], text=test_name, state=getStatus(status), anchor=W, variable = getattr(vart, test_name), \ command=(lambda row=row: onPress(tabs['Tests'], row-1, 1))).grid(row=row, column=0, sticky=W) | Checkbutton(frame[menu[2]], text=test_name, state=getStatus(status), anchor=W, variable = getattr(vart, test_name), \ command=(lambda row=row: onPress(tabs[menu[2]], row-1, 1))).grid(row=row, column=0, sticky=W) | def main(): global root, info_line, menu_frame root = Tkinter.Tk() root.title(tabs['Common']['Title']) #-- Create the menu frame, and add menus to the menu frame menu_frame = Tkinter.Frame(root) menu_frame.pack(fill=Tkinter.X, side=Tkinter.TOP) menu_frame.tk_menuBar(file_menu(), help_menu()) #-- Create the info frame... | dacad817a6c80c16abe6d085d389452e80f65113 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2128/dacad817a6c80c16abe6d085d389452e80f65113/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
1365,
16,
1123,
67,
1369,
16,
3824,
67,
3789,
1365,
273,
399,
79,
2761,
18,
56,
79,
1435,
1365,
18,
2649,
12,
16056,
3292,
6517,
21712,
4247,
19486,
225,
468,
413,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
1365,
16,
1123,
67,
1369,
16,
3824,
67,
3789,
1365,
273,
399,
79,
2761,
18,
56,
79,
1435,
1365,
18,
2649,
12,
16056,
3292,
6517,
21712,
4247,
19486,
225,
468,
413,
1... |
if os.path.isfile(os.path.normpath(build.Opt.DSCFILE)) == True: | if os.path.isfile(os.path.normpath(build.Opt.DSCFILE)) == False: | def main(): | 87339cc103a7bc83322940c24a2e47808cef5c46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/87339cc103a7bc83322940c24a2e47808cef5c46/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
minval=1e9, maxval=40e9, units='Hz') | minval=1e9, maxval=40e9, units='Hz', format='%.04e', tags=['sweep']) | def __init__(self, name, address, reset=False): ''' Initializes the RS_SMR40, and communicates with the wrapper. | 92ad4920e2825937901b90754a0377431ec51f79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/92ad4920e2825937901b90754a0377431ec51f79/RS_SMR40.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1758,
16,
2715,
33,
8381,
4672,
9163,
10188,
3128,
326,
14746,
67,
7303,
54,
7132,
16,
471,
8391,
8242,
598,
326,
4053,
18,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1758,
16,
2715,
33,
8381,
4672,
9163,
10188,
3128,
326,
14746,
67,
7303,
54,
7132,
16,
471,
8391,
8242,
598,
326,
4053,
18,
2,
-100,
-100,
-100,... |
for c in Component.select(self.__env): | for c in Component.select(self.env_open()): | def _do_component_list(self): data = [] for c in Component.select(self.__env): data.append((c.name, c.owner)) self.print_listing(['Name', 'Owner'], data) | 8bfd000da40b8168bc7c6543227d6aa794adcb52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/8bfd000da40b8168bc7c6543227d6aa794adcb52/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
4652,
67,
1098,
12,
2890,
4672,
501,
273,
5378,
364,
276,
316,
5435,
18,
4025,
12,
2890,
18,
3074,
67,
3190,
1435,
4672,
501,
18,
6923,
12443,
71,
18,
529,
16,
276,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
4652,
67,
1098,
12,
2890,
4672,
501,
273,
5378,
364,
276,
316,
5435,
18,
4025,
12,
2890,
18,
3074,
67,
3190,
1435,
4672,
501,
18,
6923,
12443,
71,
18,
529,
16,
276,
18... |
return gst.event_new_any(st) | return createCustom(st) | def subpicture(physical): """Create and return a new subpicture event for the specified physical stream.""" st = gst.Structure('application/x-gst-dvd'); st.set_value('event', 'dvd-spu-stream-change') st.set_value('physical', physical, 'int') return gst.event_new_any(st) | 473dc8e598b7381c585def115d0d76dc79e52f54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/473dc8e598b7381c585def115d0d76dc79e52f54/events.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
21126,
12,
20441,
4672,
3536,
1684,
471,
327,
279,
394,
720,
21126,
871,
364,
326,
1269,
11640,
1407,
12123,
384,
273,
314,
334,
18,
6999,
2668,
3685,
19,
92,
17,
75,
334,
17,
156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
21126,
12,
20441,
4672,
3536,
1684,
471,
327,
279,
394,
720,
21126,
871,
364,
326,
1269,
11640,
1407,
12123,
384,
273,
314,
334,
18,
6999,
2668,
3685,
19,
92,
17,
75,
334,
17,
156... |
self.errno = errno | OSError.__init__(self, errno, strerror(errno)) | def __init__(self, errno): self.errno = errno | a84a2929a18f9791e9b3c2a51556bedfe767a67c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4811/a84a2929a18f9791e9b3c2a51556bedfe767a67c/clfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8402,
4672,
365,
18,
19088,
273,
8402,
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,
8402,
4672,
365,
18,
19088,
273,
8402,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(self.password[self.profile_num]) > 0: self.conn.do.password(self.password[self.profile_num]) | password = self.password[self.profile_num] if os.environ.has_key('MPD_HOST'): if '@' in os.environ['MPD_HOST']: password, host = os.environ['MPD_HOST'].split('@') if len(password) > 0: self.conn.do.password(password) | def connect2(self, blocking, force_connection): if self.trying_connection: return self.trying_connection = True if self.user_connect or force_connection: try: self.conn = Connection(self) if len(self.password[self.profile_num]) > 0: self.conn.do.password(self.password[self.profile_num]) except (mpdclient3.socket.error,... | 91a55633cf73fceeb0df367bca30124e8e13110e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/91a55633cf73fceeb0df367bca30124e8e13110e/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
22,
12,
2890,
16,
9445,
16,
2944,
67,
4071,
4672,
309,
365,
18,
698,
310,
67,
4071,
30,
327,
365,
18,
698,
310,
67,
4071,
273,
1053,
309,
365,
18,
1355,
67,
3612,
578,
2944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
22,
12,
2890,
16,
9445,
16,
2944,
67,
4071,
4672,
309,
365,
18,
698,
310,
67,
4071,
30,
327,
365,
18,
698,
310,
67,
4071,
273,
1053,
309,
365,
18,
1355,
67,
3612,
578,
2944,
... |
url = '%s/%s' % (self.context.absolute_url(), context_state.view_template_id()) | url = context_state.view_url() | def __call__(self): """Perform the update and redirect if necessary, or render the page """ postback = True form = self.request.form submitted = form.get('form.submitted', False) save_button = form.get('form.button.Save', None) is not None cancel_button = form.get('form.button.Cancel', None) is not None if submitte... | 9357b0189bb2039ded8ab40f3fa447e6d2e77365 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12187/9357b0189bb2039ded8ab40f3fa447e6d2e77365/sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
3536,
4990,
326,
1089,
471,
3136,
309,
4573,
16,
578,
1743,
326,
1363,
3536,
225,
1603,
823,
273,
1053,
225,
646,
273,
365,
18,
2293,
18,
687,
9638,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
3536,
4990,
326,
1089,
471,
3136,
309,
4573,
16,
578,
1743,
326,
1363,
3536,
225,
1603,
823,
273,
1053,
225,
646,
273,
365,
18,
2293,
18,
687,
9638,
27... |
EXEC="%s\java -server -Xmx%sM -jar \"%ssunflow.jar\"" % (javadir, memory, sfdir) | EXEC="%s\java -Xmx%sM -jar \"%ssunflow.jar\"" % (javadir, memory, sfdir) | def render(): # TODO: # 1- Make compatible with animations global COMMAND, memory, threads, sfpath, trial, javapath, fname, destname, STARTFRAME, ENDFRAME exportfile(fname) destname = fname.replace(".sc", "") STARTFRAME = SCENE.getRenderingContext().startFrame() ENDFRAME = SCENE.getRenderingContext().endFrame() # Get ... | e7849285f9ca5d1ae7335fc8413cd748e4dc091a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/e7849285f9ca5d1ae7335fc8413cd748e4dc091a/sunflow_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
13332,
468,
2660,
30,
468,
404,
17,
4344,
7318,
598,
25536,
2552,
17266,
16,
3778,
16,
7403,
16,
9033,
803,
16,
12950,
16,
5152,
438,
421,
16,
5299,
16,
1570,
529,
16,
10485,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
13332,
468,
2660,
30,
468,
404,
17,
4344,
7318,
598,
25536,
2552,
17266,
16,
3778,
16,
7403,
16,
9033,
803,
16,
12950,
16,
5152,
438,
421,
16,
5299,
16,
1570,
529,
16,
10485,
150... |
should be the indentation of the doctest block. Any warnings | should be the indentation of the doctest block. Any errors | def _tokenize_doctest(lines, start, block_indent, tokens, errors): """ Construct a L{Token} containing the doctest block starting at C{lines[start]}, and append it to C{tokens}. C{block_indent} should be the indentation of the doctest block. Any warnings generated while tokenizing the doctest block will be appended t... | 36ace726c8fc4e9c1a450d16c75087d594ead7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36ace726c8fc4e9c1a450d16c75087d594ead7cf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
67,
2896,
299,
395,
12,
3548,
16,
787,
16,
1203,
67,
9355,
16,
2430,
16,
1334,
4672,
3536,
14291,
279,
511,
95,
1345,
97,
4191,
326,
31263,
395,
1203,
5023,
622,
385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2316,
554,
67,
2896,
299,
395,
12,
3548,
16,
787,
16,
1203,
67,
9355,
16,
2430,
16,
1334,
4672,
3536,
14291,
279,
511,
95,
1345,
97,
4191,
326,
31263,
395,
1203,
5023,
622,
385,
... |
print x, y, list | if debug: print x, y, list | def whoosh(x, y, dx, dy, func): print "%.10f - %.10f: whoosh (%d,%d) +(%d,%d):" % (func(0), func(1), x, y, dx, dy) # Forward infinite sequence compressed into [0,0.5]. i = 0 X, Y = x+dx, y+dy while X >= -limit and X <= limit and Y >= -limit: bounce(X, Y, dx, dy, func(g(i+0.5)/2)) X, Y = X+dx*2, Y+dy*2 i = i + 1 # Backw... | 24177aacc9f08a5a0b4ded54d6ddcccd691baad0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7420/24177aacc9f08a5a0b4ded54d6ddcccd691baad0/solarmy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10354,
17636,
12,
92,
16,
677,
16,
6633,
16,
7732,
16,
1326,
4672,
1172,
26209,
2163,
74,
300,
12639,
2163,
74,
30,
10354,
17636,
6142,
72,
15529,
72,
13,
397,
9275,
72,
15529,
72,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10354,
17636,
12,
92,
16,
677,
16,
6633,
16,
7732,
16,
1326,
4672,
1172,
26209,
2163,
74,
300,
12639,
2163,
74,
30,
10354,
17636,
6142,
72,
15529,
72,
13,
397,
9275,
72,
15529,
72,
13,... |
self.PossibleIndexes.Append("0x%04X\t%s"%(index, self.IndexDictionary[index][0])) | self.PossibleIndexes.Append("0x%04X %s"%(index, self.IndexDictionary[index][0])) | def RefreshLists(self): self.PossibleIndexes.Clear() self.CurrentIndexes.Clear() self.AllList = [] for index in self.IndexDictionary.iterkeys(): if index not in self.CurrentList: self.AllList.append(index) self.AllList.sort() for index in self.AllList: self.PossibleIndexes.Append("0x%04X\t%s"%(index, self.IndexDictiona... | c9eea8ad6a980294d0f9a8a96b05e2690eab4c47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/116/c9eea8ad6a980294d0f9a8a96b05e2690eab4c47/objdictedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
7432,
12,
2890,
4672,
365,
18,
13576,
8639,
18,
9094,
1435,
365,
18,
3935,
8639,
18,
9094,
1435,
365,
18,
1595,
682,
273,
5378,
364,
770,
316,
365,
18,
1016,
10905,
18,
2165,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7432,
12,
2890,
4672,
365,
18,
13576,
8639,
18,
9094,
1435,
365,
18,
3935,
8639,
18,
9094,
1435,
365,
18,
1595,
682,
273,
5378,
364,
770,
316,
365,
18,
1016,
10905,
18,
2165,
24... |
(ticket_id, field_name.encode('utf-8'), field_value.encode('utf-8'))) | (ticket_id, field_name, field_value)) | def addTicketCustomField(self, ticket_id, field_name, field_value): c = self.db().cursor() | 3c880bacc20a99c1c09f23abe68ea43a4bd475ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/3c880bacc20a99c1c09f23abe68ea43a4bd475ab/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13614,
3802,
974,
12,
2890,
16,
9322,
67,
350,
16,
652,
67,
529,
16,
652,
67,
1132,
4672,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
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,
527,
13614,
3802,
974,
12,
2890,
16,
9322,
67,
350,
16,
652,
67,
529,
16,
652,
67,
1132,
4672,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
references[name] = ItemRef(copyItem, name, self._other(item), | references[name] = ItemRef(copyItem, name, self.other(item), | def _copy(self, references, item, copyItem, name, policy, copies): | 70e09f6e97eada432bfe11d1a51fa694ca57fe37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/70e09f6e97eada432bfe11d1a51fa694ca57fe37/ItemRef.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
5351,
16,
761,
16,
1610,
1180,
16,
508,
16,
3329,
16,
13200,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
5351,
16,
761,
16,
1610,
1180,
16,
508,
16,
3329,
16,
13200,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
expect = test.wrap_stdout(read_str = "%s: yes\n" % a_boost_hpp, | expect = test.wrap_stdout(read_str = "%s: yes\n" % re.escape(a_boost_hpp), | def _check(context): for dir in ['a', 'b']: inc = os.path.join('..', dir, 'boost.hpp') result = context.TryRun(''' #include "%s" int main() { return 0; } ''' % inc, '.cpp')[0] if result: import sys sys.stdout.write('%s: ' % inc) break context.Result(result) return result | 3d93c99bc6bbf91c3a140cd23dd39423bf61d0f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/3d93c99bc6bbf91c3a140cd23dd39423bf61d0f1/build-fail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
12,
2472,
4672,
364,
1577,
316,
10228,
69,
2187,
296,
70,
3546,
30,
7290,
273,
1140,
18,
803,
18,
5701,
2668,
838,
2187,
1577,
16,
296,
25018,
18,
76,
11858,
6134,
563,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
12,
2472,
4672,
364,
1577,
316,
10228,
69,
2187,
296,
70,
3546,
30,
7290,
273,
1140,
18,
803,
18,
5701,
2668,
838,
2187,
1577,
16,
296,
25018,
18,
76,
11858,
6134,
563,
273,... |
deps.append((p.id,dep.depname,dep.depvcmp)) | else: for p in pkgs: deps.append((p.id,dep.depname,dep.depvcmp)) | def get_depends(self): """ Returns a list of tuples(3). | 54c30baf0be93d601930cc4f6112327efdf66b7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11256/54c30baf0be93d601930cc4f6112327efdf66b7d/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
27360,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
10384,
12,
23,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
27360,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
10384,
12,
23,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
new_mode = self.commandSequencer.prevMode if new_mode: | new_mode = self.commandSequencer.prevMode if new_mode and not self.command_has_its_own_gui: | def Done(self, new_mode = None, suspend_old_mode = False, exit_using_done_or_cancel_button = True, **new_mode_options): """ Called by the slot method for the Done tool in the dashboard; also called internally (in _f_userEnterCommand and elsewhere) if user asks to start a new command (new_mode) and the current command h... | 3d43e9c99d31628fa5802fa8659577a6fbba1740 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/3d43e9c99d31628fa5802fa8659577a6fbba1740/Command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8677,
12,
2890,
16,
394,
67,
3188,
273,
599,
16,
20413,
67,
1673,
67,
3188,
273,
1083,
16,
2427,
67,
9940,
67,
8734,
67,
280,
67,
10996,
67,
5391,
273,
1053,
16,
2826,
2704,
67,
3188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8677,
12,
2890,
16,
394,
67,
3188,
273,
599,
16,
20413,
67,
1673,
67,
3188,
273,
1083,
16,
2427,
67,
9940,
67,
8734,
67,
280,
67,
10996,
67,
5391,
273,
1053,
16,
2826,
2704,
67,
3188... |
COMMAND = "svn commit --quiet %(logfile)s %(entries)s" | COMMAND = "svn commit --quiet --file %(logfile)s %(entries)s" | def __call__(self, output=None, dry_run=False, **kwargs): quiet = kwargs.get('quiet', True) if quiet == True: kwargs['quiet'] = '--quiet' elif quiet == False: kwargs['quiet'] = '' xml = kwargs.get('xml', False) if xml: kwargs['xml'] = '--xml' output = True else: kwargs['xml'] = '' | 81807b806e12be40708ce3ed934a91ece3ef4251 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/81807b806e12be40708ce3ed934a91ece3ef4251/svn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
876,
33,
7036,
16,
10299,
67,
2681,
33,
8381,
16,
2826,
4333,
4672,
10902,
273,
1205,
18,
588,
2668,
20380,
2187,
1053,
13,
309,
10902,
422,
1053,
30,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
876,
33,
7036,
16,
10299,
67,
2681,
33,
8381,
16,
2826,
4333,
4672,
10902,
273,
1205,
18,
588,
2668,
20380,
2187,
1053,
13,
309,
10902,
422,
1053,
30,
12... |
other = findClass(self.foreignKey) | other = findClass(self.foreignKey, self.soClass.sqlmeta.registry) | def maxdbCreateSQL(self): other = findClass(self.foreignKey) fidName = self.dbName #I assume that foreign key name is identical to the id of the reference table sql = ' '.join([fidName, self._maxdbType()]) tName = other.sqlmeta.table idName = other.sqlmeta.idName sql=sql + ',' + '\n' sql=sql + 'FOREIGN KEY (%s) REFERE... | 9c571fdbb812a451876ef83dada801541bee9a7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8798/9c571fdbb812a451876ef83dada801541bee9a7d/col.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
1966,
1684,
3997,
12,
2890,
4672,
1308,
273,
1104,
797,
12,
2890,
18,
12774,
653,
16,
365,
18,
2048,
797,
18,
4669,
3901,
18,
9893,
13,
13444,
461,
273,
365,
18,
1966,
461,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
1966,
1684,
3997,
12,
2890,
4672,
1308,
273,
1104,
797,
12,
2890,
18,
12774,
653,
16,
365,
18,
2048,
797,
18,
4669,
3901,
18,
9893,
13,
13444,
461,
273,
365,
18,
1966,
461,
468,
... |
if not self.req or (self.req._req != _req): self.req = Request(_req) | if not _req._Request: req = Request(_req) else: req = _req._Request | def Dispatch(self, _req, htype): """ This is the handler dispatcher. """ | fdd71b344ede9208ec00d46a670c093560cf0070 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/fdd71b344ede9208ec00d46a670c093560cf0070/apache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
12,
2890,
16,
389,
3658,
16,
366,
723,
4672,
3536,
1220,
353,
326,
1838,
7393,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
12,
2890,
16,
389,
3658,
16,
366,
723,
4672,
3536,
1220,
353,
326,
1838,
7393,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
gLogger.info('ReplicaManger.putAndRegister: Sending accounting took %.1f seconds' % (time.time()-startTime)) gLogger.error(errStr,"%s: %s" % (file,res['Message'])) return S_ERROR("%s %s" % (errStr,res['Message'])) | gLogger.info( 'ReplicaManger.putAndRegister: Sending accounting took %.1f seconds' % ( time.time() - startTime ) ) gLogger.error( errStr, "%s: %s" % ( file, res['Message'] ) ) return S_ERROR( "%s %s" % ( errStr, res['Message'] ) ) | def putAndRegister(self,lfn,file,diracSE,guid=None,path=None,checksum=None,catalog=None): """ Put a local file to a Storage Element and register in the File Catalogues | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
... |
return not os.path.exists('/usr/share/untangle/registration.info') | return not os.path.exists('/usr/share/untangle/conf/registration.info') | def is_not_setup(): return not os.path.exists('/usr/share/untangle/registration.info') | 5894820ac0e33223f906e8da5736703872c12a1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/88/5894820ac0e33223f906e8da5736703872c12a1a/uvmlogin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
902,
67,
8401,
13332,
327,
486,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
14419,
19,
10032,
4341,
19,
3923,
19,
14170,
18,
1376,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
902,
67,
8401,
13332,
327,
486,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
14419,
19,
10032,
4341,
19,
3923,
19,
14170,
18,
1376,
6134,
225,
2,
-100,
-100,
-100,
-100,
-100... |
elif os.name == 'windows': if verbose: print string.join (cmd, ' ') if not dry_run: os.spawnv (os.P_WAIT, cmd[0], cmd[1:]) | elif os.name in ( 'nt', 'windows' ): _spawn_nt (cmd, search_path, verbose, dry_run) | def spawn (cmd, search_path=1, verbose=0, dry_run=0): """Run another program, specified as a command list 'cmd', in a new process. 'cmd' is just the argument list for the new process, ie. cmd[0] is the program to run and cmd[1:] are the rest of its arguments. There is no way to run a program with a name different fr... | a16b7aada25fb789cb16aa36ac5e27f2b6f0533d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a16b7aada25fb789cb16aa36ac5e27f2b6f0533d/spawn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
261,
4172,
16,
1623,
67,
803,
33,
21,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
225,
3536,
1997,
4042,
5402,
16,
1269,
487,
279,
1296,
666,
296,
4172,
2187,
316,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
261,
4172,
16,
1623,
67,
803,
33,
21,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
225,
3536,
1997,
4042,
5402,
16,
1269,
487,
279,
1296,
666,
296,
4172,
2187,
316,
27... |
def startTagOther(self, token): self.parser.phases["inTable"].processStartTag(token) def endTagTr(self, token): if not self.ignoreEndTagTr(): self.clearStackToTableRowContext() self.tree.openElements.pop() self.parser.phase = self.parser.phases["inTableBody"] else: assert self.parser.innerHTML self.parser.parseError(... | def processEndTag(self, token): self.parser.parseError("expected-eof-but-got-end-tag", {"name": token["name"]}) self.parser.phase = self.parser.phases["inBody"] | def startTagOther(self, token): self.parser.phases["inTable"].processStartTag(token) | d34b631d2e45870e85a6b7e5f824aa96f5632111 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/d34b631d2e45870e85a6b7e5f824aa96f5632111/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
8290,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
844,
3304,
9614,
267,
1388,
6,
8009,
2567,
30512,
12,
2316,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
8290,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
844,
3304,
9614,
267,
1388,
6,
8009,
2567,
30512,
12,
2316,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
reactor.spawnProcess(protocol.ProcessProtocol(), cmd, args) | reactor.spawnProcess(protocol.ProcessProtocol(), cmdname, args) | def acceptCall(self, call): log.msg("dialog is %r"%(call.dialog)) if self._audio is None: self.openAudioDevice() cookie = self.getCookie() self._calls[cookie] = call d = self._createRTP(cookie, call.getLocalSIPAddress()[0], call.getSTUNState()) self.ui.callStarted(cookie) calltype = call.dialog.getDirection() if callty... | afc00844cb3ce08d9ea47eaa16740e7a4b383b13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/afc00844cb3ce08d9ea47eaa16740e7a4b383b13/phone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
1477,
12,
2890,
16,
745,
4672,
613,
18,
3576,
2932,
12730,
353,
738,
86,
6,
17105,
1991,
18,
12730,
3719,
309,
365,
6315,
11509,
353,
599,
30,
365,
18,
3190,
12719,
3654,
1435,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
1477,
12,
2890,
16,
745,
4672,
613,
18,
3576,
2932,
12730,
353,
738,
86,
6,
17105,
1991,
18,
12730,
3719,
309,
365,
6315,
11509,
353,
599,
30,
365,
18,
3190,
12719,
3654,
1435,
3... |
lines = bytes.split(u'\n') | lines = bytes.splitlines(True) | def doFileSubstitution(aFile, encoding, translator): _tempFile = tempfile.TemporaryFile() # do the translation debug('encoding is: %s', encoding) inFile = codecs.getreader(encoding)(file(aFile, "rb")) outFile = codecs.getwriter(encoding)(_tempFile) try: for line in inFile: tline = translator(line) outFile.write(tline)... | b6e5074f4c6128a4009be73bb572556666294b22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/b6e5074f4c6128a4009be73bb572556666294b22/clean.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
812,
23798,
12,
69,
812,
16,
2688,
16,
8333,
4672,
389,
5814,
812,
273,
13275,
18,
23808,
1435,
225,
468,
741,
326,
4794,
1198,
2668,
5999,
353,
30,
738,
87,
2187,
2688,
13,
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,
741,
812,
23798,
12,
69,
812,
16,
2688,
16,
8333,
4672,
389,
5814,
812,
273,
13275,
18,
23808,
1435,
225,
468,
741,
326,
4794,
1198,
2668,
5999,
353,
30,
738,
87,
2187,
2688,
13,
316,
... |
os.execv(swig_bin, [swig_bin] + sys.argv[1:]) | args = [swig_bin, platform_flags[sys.platform]] + sys.argv[1:] args = [x.replace('/', os.sep) for x in args] print "Executing", args sys.exit(subprocess.call(args)) | def main(): swig_dir = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir, 'third_party', 'swig')) lib_dir = os.path.join(swig_dir, "Lib") os.putenv("SWIG_LIB", lib_dir) dir_map = { 'darwin': 'mac', 'linux2': 'linux', 'win32': 'win', 'cygwin': 'win', } swig_bin = os.path.join(swig_dir, dir... | 2e981ac35da47f84ee5a197e4a54a9f69a3b825d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/2e981ac35da47f84ee5a197e4a54a9f69a3b825d/swig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1352,
360,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
65,
3631,
1140,
18,
84,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1352,
360,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
65,
3631,
1140,
18,
84,
1... |
if not id.startswith('index-'): self.body.append(self.hypertarget(id)) | if id.startswith('index-'): return anchor = not self.in_title self.body.append(self.hypertarget(id, anchor=anchor)) | def add_target(id): # indexing uses standard LaTeX index markup, so the targets # will be generated differently if not id.startswith('index-'): self.body.append(self.hypertarget(id)) | 425a0512dd3239dbfd6f6ee533d534da2c03c916 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/425a0512dd3239dbfd6f6ee533d534da2c03c916/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3299,
12,
350,
4672,
468,
14403,
4692,
4529,
21072,
21575,
60,
770,
9813,
16,
1427,
326,
5774,
468,
903,
506,
4374,
23621,
309,
486,
612,
18,
17514,
1918,
2668,
1615,
6627,
4672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3299,
12,
350,
4672,
468,
14403,
4692,
4529,
21072,
21575,
60,
770,
9813,
16,
1427,
326,
5774,
468,
903,
506,
4374,
23621,
309,
486,
612,
18,
17514,
1918,
2668,
1615,
6627,
4672... |
x/2 | x//2 | >>> def f(x): | 2e82ad9791c9029bfa44ef39f6c4cd1b786cef51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2e82ad9791c9029bfa44ef39f6c4cd1b786cef51/test_doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def __init__(self, test_case, verbose=False, revision=None): | def __init__(self, verbose=False, revision=None): | def __init__(self, test_case, verbose=False, revision=None): self.verbose = verbose self.revision = revision self.manually_grab_svn_rev = True self.deps_os = None self.force = False self.reset = False self.nohooks = False self.stdout = gclient_scm.sys.stdout | 339457094ffe95a6b58793c8cbe6eb03d7c6a1dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/339457094ffe95a6b58793c8cbe6eb03d7c6a1dd/gclient_scm_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3988,
33,
8381,
16,
6350,
33,
7036,
4672,
365,
18,
11369,
273,
3988,
365,
18,
13057,
273,
6350,
365,
18,
4728,
3452,
67,
2752,
70,
67,
31505,
67,
9083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3988,
33,
8381,
16,
6350,
33,
7036,
4672,
365,
18,
11369,
273,
3988,
365,
18,
13057,
273,
6350,
365,
18,
4728,
3452,
67,
2752,
70,
67,
31505,
67,
9083,
... |
if isinstance(handler, logging.StreamHandler) and os.name != 'nt': | if handler is logging.StreamHandler and os.name != 'nt': | def init_logger(): import os logger = logging.getLogger() # create a format for log messages and dates formatter = logging.Formatter('[%(asctime)s] %(levelname)s:%(name)s:%(message)s', '%a %b %d %Y %H:%M:%S') if tools.config['syslog']: # SysLog Handler if os.name == 'nt': handler = logging.handlers.NTEventLogHandler(... | 8a3a776bbdec771e1f39814bbea57d2a62176485 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/8a3a776bbdec771e1f39814bbea57d2a62176485/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
4901,
13332,
1930,
1140,
225,
1194,
273,
2907,
18,
588,
3328,
1435,
468,
752,
279,
740,
364,
613,
2743,
471,
7811,
4453,
273,
2907,
18,
5074,
2668,
14451,
12,
345,
21261,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
4901,
13332,
1930,
1140,
225,
1194,
273,
2907,
18,
588,
3328,
1435,
468,
752,
279,
740,
364,
613,
2743,
471,
7811,
4453,
273,
2907,
18,
5074,
2668,
14451,
12,
345,
21261,
13,
... |
self.intro = 'something' if self.intro == '<br /><br />' else self.intro | self.intro = '' if self.intro == '<br /><br />' else self.intro | def _load(self): self.name = self.xml.find('.//assessment').attrib['title'] | 8d1e76a58a4de18b380207d8ffba9d95e7b7720d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/8d1e76a58a4de18b380207d8ffba9d95e7b7720d/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
4672,
365,
18,
529,
273,
365,
18,
2902,
18,
4720,
2668,
18,
759,
18222,
16063,
14588,
3292,
2649,
3546,
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,
389,
945,
12,
2890,
4672,
365,
18,
529,
273,
365,
18,
2902,
18,
4720,
2668,
18,
759,
18222,
16063,
14588,
3292,
2649,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
model = widgets.sorted song = model[model.get_iter(indices)][0] | iter = widgets.sorted.get_iter(indices) iter = widgets.sorted.convert_iter_to_child_iter(None, iter) iter = widgets.filter.convert_iter_to_child_iter(iter) song = widgets.songs.get_value(iter, 0) | def select_song(tree, indices, col): model = widgets.sorted song = model[model.get_iter(indices)][0] title = ", ".join(song.get("title", "Unknown").split("\n")) | 1d196f7d1fa4c2797fb6dc380cc629c36e123459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/1d196f7d1fa4c2797fb6dc380cc629c36e123459/quodlibet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
816,
75,
12,
3413,
16,
4295,
16,
645,
4672,
1400,
273,
10965,
18,
10350,
18,
588,
67,
2165,
12,
6836,
13,
1400,
273,
10965,
18,
10350,
18,
6283,
67,
2165,
67,
869,
67,
3624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
816,
75,
12,
3413,
16,
4295,
16,
645,
4672,
1400,
273,
10965,
18,
10350,
18,
588,
67,
2165,
12,
6836,
13,
1400,
273,
10965,
18,
10350,
18,
6283,
67,
2165,
67,
869,
67,
3624... |
return ssl_method_wrapper class SSL_fileobject(socket._fileobject): """Faux file object attached to a socket object.""" ssl_timeout = 3 ssl_retry = .01 close = _ssl_wrap_method(socket._fileobject.close) flush = _ssl_wrap_method(socket._fileobject.flush) write = _ssl_wrap_method(socket._fileobject.write) writelines =... | def recv(self, *args, **kwargs): return self._safe_call(True, super(SSL_fileobject, self).recv, *args, **kwargs) def sendall(self, *args, **kwargs): return self._safe_call(False, super(SSL_fileobject, self).sendall, *args, **kwargs) def send(self, *args, **kwargs): return self._safe_call(False, super(SSL_fileobject,... | def ssl_method_wrapper(self, *args, **kwargs): | 5f3e0259216934148ab0d25b96b34f0b2a5a0805 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/5f3e0259216934148ab0d25b96b34f0b2a5a0805/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5832,
67,
2039,
67,
8376,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5832,
67,
2039,
67,
8376,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.povray_checkbox.setText(QString.null) QToolTip.add(self.povray_checkbox,self.__tr("Enable POV-Ray")) self.povray_lbl.setText(self.__tr("POV-Ray :")) QToolTip.add(self.povray_lbl,self.__tr("Enable POV-Ray")) self.nanohive_lbl.setText(self.__tr("Nano-Hive :")) QToolTip.add(self.nanohive_lbl,self.__tr("Enable Nano-Hi... | def languageChange(self): self.setCaption(self.__tr("Preferences")) self.ok_btn.setText(self.__tr("OK")) self.groupBox7_2.setTitle(self.__tr("Axes")) self.display_origin_axis_checkbox.setText(self.__tr("Display Origin Axis")) QToolTip.add(self.display_origin_axis_checkbox,self.__tr("Show/Hide Origin Axis")) self.displa... | 7cc18611a6df93ebc9707a8878e31fb8451f8ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7cc18611a6df93ebc9707a8878e31fb8451f8ff6/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
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,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
365,
18,... | |
print "in create menu\n" | def create_apod_menu(self, arg=None, menuw=None): print "in create menu\n" apodmenuitems = [] | 3e452d0b8f59b9113e95379c03223f8a9874edb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3e452d0b8f59b9113e95379c03223f8a9874edb4/apod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
438,
369,
67,
5414,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
513,
369,
5414,
3319,
273,
5378,
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,
752,
67,
438,
369,
67,
5414,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
513,
369,
5414,
3319,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
'Requirements':None | 'Test_method':None | def __init__(self): self.attr = { | 08e4c95267b2490d8ad400cc6c685442327a1a9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/08e4c95267b2490d8ad400cc6c685442327a1a9a/LSCfileAdd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1747,
273,
288,
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,... | [
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1747,
273,
288,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
read_and_call_while(uhandle, consumer.description, blank=0, start='<a') | read_and_call_while(uhandle, consumer.description, blank=0, contains='<a') | def _scan_descriptions(self, uhandle, consumer): consumer.start_descriptions() | 9dfc0536c9d01a7863d5ac0eeb911a4e513609bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/9dfc0536c9d01a7863d5ac0eeb911a4e513609bd/NCBIWWW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
67,
30288,
12,
2890,
16,
582,
4110,
16,
4765,
4672,
4765,
18,
1937,
67,
30288,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
67,
30288,
12,
2890,
16,
582,
4110,
16,
4765,
4672,
4765,
18,
1937,
67,
30288,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self._err_check("player_get_slot()", self, -1, "Invalid player id") | if slot < 0: self._err_check("player_get_slot()", self, -1, "Invalid player id") | def player_get_slot(self, player_id): """Get the conference port ID for the specified player. | defe47e0a934c450cd7ef2bbd7d26b68a8e4f043 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1375/defe47e0a934c450cd7ef2bbd7d26b68a8e4f043/pjsua.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7291,
67,
588,
67,
14194,
12,
2890,
16,
7291,
67,
350,
4672,
3536,
967,
326,
356,
1134,
1756,
1599,
364,
326,
1269,
7291,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7291,
67,
588,
67,
14194,
12,
2890,
16,
7291,
67,
350,
4672,
3536,
967,
326,
356,
1134,
1756,
1599,
364,
326,
1269,
7291,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
logger.notifyChannel('init', netsvc.LOG_ERROR, "the columns %s on object must be set as ondelete='cascasde'" % (self._name, self._parent_name)) | logger.notifyChannel('orm', netsvc.LOG_ERROR, "the columns %s on object must be set as ondelete='cascasde'" % (self._name, self._parent_name)) | def _auto_init(self, cr, context={}): store_compute = False logger = netsvc.Logger() create = False todo_end = [] self._field_create(cr, context=context) if not hasattr(self, "_auto") or self._auto: cr.execute("SELECT relname FROM pg_class WHERE relkind in ('r','v') AND relname='%s'" % self._table) if not cr.rowcount:... | 9af9e363d0be0a398773712ed8b721eb1cdb0fe2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/9af9e363d0be0a398773712ed8b721eb1cdb0fe2/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6079,
67,
2738,
12,
2890,
16,
4422,
16,
819,
12938,
4672,
1707,
67,
9200,
273,
225,
1083,
1194,
273,
21954,
4227,
18,
3328,
1435,
752,
273,
1083,
10621,
67,
409,
273,
5378,
365,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6079,
67,
2738,
12,
2890,
16,
4422,
16,
819,
12938,
4672,
1707,
67,
9200,
273,
225,
1083,
1194,
273,
21954,
4227,
18,
3328,
1435,
752,
273,
1083,
10621,
67,
409,
273,
5378,
365,
6... |
if not item_info.item_watched: | if not item_info.item_viewed: | def _select_current(self): item_info = self.playlist[self.position] if not app.config.get(prefs.PLAY_IN_MIRO): if self.is_playing: self.stop(save_resume_time=False) # FIXME - do this to avoid "currently playing green thing. # should be a better way. self.playlist = None app.widgetapp.open_file(item_info.video_path) if ... | 46368d723eba04e89790a4288b05d97bef143d89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/46368d723eba04e89790a4288b05d97bef143d89/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4025,
67,
2972,
12,
2890,
4672,
761,
67,
1376,
273,
365,
18,
1601,
1098,
63,
2890,
18,
3276,
65,
309,
486,
595,
18,
1425,
18,
588,
12,
1484,
2556,
18,
52,
7868,
67,
706,
67,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4025,
67,
2972,
12,
2890,
4672,
761,
67,
1376,
273,
365,
18,
1601,
1098,
63,
2890,
18,
3276,
65,
309,
486,
595,
18,
1425,
18,
588,
12,
1484,
2556,
18,
52,
7868,
67,
706,
67,
7... |
return 'FG:'+str(fgname)+'|'+str(VS.getFactionIndex(faction)) | return 'FG:'+str(fgname)+'|'+str(VS.GetFactionIndex(faction)) | def MakeFGKey (fgname,faction): return 'FG:'+str(fgname)+'|'+str(VS.getFactionIndex(faction)) | 5b054a3d1fad7d64c5584b7671dfbf0e4ef5f32a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/5b054a3d1fad7d64c5584b7671dfbf0e4ef5f32a/fg_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
42,
43,
653,
261,
2137,
529,
16,
507,
349,
4672,
327,
296,
42,
43,
2497,
15,
701,
12,
2137,
529,
13,
6797,
16637,
15,
701,
12,
14640,
18,
588,
42,
1128,
1016,
12,
507,
349,
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,
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,
4344,
42,
43,
653,
261,
2137,
529,
16,
507,
349,
4672,
327,
296,
42,
43,
2497,
15,
701,
12,
2137,
529,
13,
6797,
16637,
15,
701,
12,
14640,
18,
588,
42,
1128,
1016,
12,
507,
349,
3... |
if listType.upper() == "FL": | listType = listIDToCode[listType].upper() if listType == "FL": | def remContact(self, listType, userHandle, groupID=0): """ used to remove a contact from the desired list. | 9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
849,
6567,
12,
2890,
16,
666,
559,
16,
729,
3259,
16,
30365,
33,
20,
4672,
3536,
1399,
358,
1206,
279,
5388,
628,
326,
6049,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
849,
6567,
12,
2890,
16,
666,
559,
16,
729,
3259,
16,
30365,
33,
20,
4672,
3536,
1399,
358,
1206,
279,
5388,
628,
326,
6049,
666,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return None | return rows | def cmdWithInput(self, concretename): """Return a list of cmdids that have inputid as one of their input""" cur = self.cursor() # first find the affected commands cur.execute("""select (taskrow,linenum) from cmdFileRelation where (output=0, concretename='%s'""" % (concretename)) rows = cur.fetchall() ## FIXME: still ne... | 3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7/ssdap_dbutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
1190,
1210,
12,
2890,
16,
20570,
1349,
1069,
4672,
3536,
990,
279,
666,
434,
1797,
2232,
716,
1240,
810,
350,
487,
1245,
434,
3675,
810,
8395,
662,
273,
365,
18,
9216,
1435,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
1190,
1210,
12,
2890,
16,
20570,
1349,
1069,
4672,
3536,
990,
279,
666,
434,
1797,
2232,
716,
1240,
810,
350,
487,
1245,
434,
3675,
810,
8395,
662,
273,
365,
18,
9216,
1435,
468,
... |
if text: | if plain: | def handle(self, info=None): info = info or sys.exc_info() self.file.write(reset()) | 35c9237519480e78e0a3a92c1dc640de53e1dcc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/35c9237519480e78e0a3a92c1dc640de53e1dcc1/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
1123,
33,
7036,
4672,
1123,
273,
1123,
578,
2589,
18,
10075,
67,
1376,
1435,
365,
18,
768,
18,
2626,
12,
6208,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
1123,
33,
7036,
4672,
1123,
273,
1123,
578,
2589,
18,
10075,
67,
1376,
1435,
365,
18,
768,
18,
2626,
12,
6208,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if len(full_text) > length: | if len(full_text) > contextLength: | def move_to_category(self, article, original_cat, current_cat): ''' Given an article which is in category original_cat, ask the user if it should be moved to one of original_cat's subcategories. Recursively run through subcategories' subcategories. NOTE: current_cat is only used for internal recursion. You should alway... | c155583c16bb5574b722d20b9144d99630aae92f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c155583c16bb5574b722d20b9144d99630aae92f/category.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
869,
67,
4743,
12,
2890,
16,
7559,
16,
2282,
67,
2574,
16,
783,
67,
2574,
4672,
9163,
16803,
392,
7559,
1492,
353,
316,
3150,
2282,
67,
2574,
16,
6827,
326,
729,
309,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4743,
12,
2890,
16,
7559,
16,
2282,
67,
2574,
16,
783,
67,
2574,
4672,
9163,
16803,
392,
7559,
1492,
353,
316,
3150,
2282,
67,
2574,
16,
6827,
326,
729,
309,
518,
... |
self.controller = None self.videoView = videoView self.previousSuperview = videoView.superview() if self.previousSuperview is not nil: self.videoView.retain() self.videoView.removeFromSuperviewWithoutNeedingDisplay() self.videoView.setFrameSize_(frame.size) self.contentView().addSubview_(self.videoView) | self.previousMovieView = previousMovieView self.movieView = QTMovieView.alloc().initWithFrame_(frame) self.movieView.setControllerVisible_(NO) self.movieView.setPreservesAspectRatio_(YES) self.movieView.setMovie_(previousMovieView.movie()) self.setContentView_(self.movieView) | def init(self, videoView): frame = NSScreen.mainScreen().frame() | bcb8555ae164fb36b5e6d87623581ab40406072f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/bcb8555ae164fb36b5e6d87623581ab40406072f/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
6191,
1767,
4672,
2623,
273,
423,
1260,
8780,
18,
5254,
7956,
7675,
3789,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
6191,
1767,
4672,
2623,
273,
423,
1260,
8780,
18,
5254,
7956,
7675,
3789,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
@type tree: C{xml.dom.minidom.Element} | @type tree: L{xml.dom.minidom.Element} | def _dom_to_html_helper(self, tree, container, indent, seclevel): """ Helper function for L{_dom_to_html}, that does the real work of converting a DOM tree for an epytext string to HTML. @param tree: The DOM tree for an epytext string. @type tree: C{xml.dom.minidom.Element} @param container: The container in which to ... | 36aef14a0edb4bd18076686105d0e4e6c7c10c23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36aef14a0edb4bd18076686105d0e4e6c7c10c23/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
869,
67,
2620,
67,
4759,
12,
2890,
16,
2151,
16,
1478,
16,
3504,
16,
1428,
2815,
4672,
3536,
9705,
445,
364,
511,
95,
67,
9859,
67,
869,
67,
2620,
5779,
716,
1552,
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,
389,
9859,
67,
869,
67,
2620,
67,
4759,
12,
2890,
16,
2151,
16,
1478,
16,
3504,
16,
1428,
2815,
4672,
3536,
9705,
445,
364,
511,
95,
67,
9859,
67,
869,
67,
2620,
5779,
716,
1552,
326... |
print "Caught expected exception:", e | pass | def expect_parse_error(exctype, src): cf = ConfigParser.ConfigParser() sio = StringIO.StringIO(src) try: cf.readfp(sio) except exctype, e: print "Caught expected exception:", e else: print "Failed to catch expected", exctype.__name__ | 0e2e6d4a7110b251ed7f8e7e8919a5e6d67290cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0e2e6d4a7110b251ed7f8e7e8919a5e6d67290cf/test_cfgparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
67,
2670,
67,
1636,
12,
338,
12387,
16,
1705,
4672,
6080,
273,
25076,
18,
809,
2678,
1435,
272,
1594,
273,
15777,
18,
780,
4294,
12,
4816,
13,
775,
30,
6080,
18,
896,
7944,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
67,
2670,
67,
1636,
12,
338,
12387,
16,
1705,
4672,
6080,
273,
25076,
18,
809,
2678,
1435,
272,
1594,
273,
15777,
18,
780,
4294,
12,
4816,
13,
775,
30,
6080,
18,
896,
7944,
12,
... |
if callable(value): | if callable(value) and not isinstance(value, ModelBase): | def get_value(field, descriptor): """ Gets an attribute value from a Field instance and formats it. """ attrname, options = descriptor value = get_attribute(field, attrname) # Lazy-eval functions get eval'd. # Annoyingly, we can't do an isinstance() test if isinstance(value, Promise): value = unicode(value) # If the va... | 3a2a19b8f213e75c984e6d21f2c86f138f1c9881 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/3a2a19b8f213e75c984e6d21f2c86f138f1c9881/modelsinspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
12,
1518,
16,
4950,
4672,
3536,
11881,
392,
1566,
460,
628,
279,
2286,
791,
471,
6449,
518,
18,
3536,
1604,
529,
16,
702,
273,
4950,
460,
273,
336,
67,
4589,
12,
1518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1132,
12,
1518,
16,
4950,
4672,
3536,
11881,
392,
1566,
460,
628,
279,
2286,
791,
471,
6449,
518,
18,
3536,
1604,
529,
16,
702,
273,
4950,
460,
273,
336,
67,
4589,
12,
1518,
... |
def snapToView(self, q2, s2, p2, z2, update_duration = False): '''Snap to the destination view defined by quat q2, scale s2, pov p2, and zoom factor z2. ''' self.quat = Q(q2) self.pov = V(p2[0], p2[1], p2[2]) self.zoomFactor = z2 self.scale = s2 if update_duration: self.gl_update_duration() else: self.gl_update() de... | def snapToCsys(self, csys): '''Snap to the destination view defined by csys. ''' self.snapToView(csys.quat, csys.scale, csys.pov, csys.zoomFactor) | 4575279b93379b46416b6e02162c6b529715327f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/4575279b93379b46416b6e02162c6b529715327f/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10915,
774,
39,
9499,
12,
2890,
16,
2873,
1900,
4672,
9163,
24063,
358,
326,
2929,
1476,
2553,
635,
2873,
1900,
18,
9163,
365,
18,
28449,
774,
1767,
12,
2143,
1900,
18,
372,
270,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10915,
774,
39,
9499,
12,
2890,
16,
2873,
1900,
4672,
9163,
24063,
358,
326,
2929,
1476,
2553,
635,
2873,
1900,
18,
9163,
365,
18,
28449,
774,
1767,
12,
2143,
1900,
18,
372,
270,
16,
2... | |
self.assertEqual([[self.deps_c['0005_c'], self.deps_b['0005_b'], self.deps_b['0004_b'], self.deps_a['0005_a'], self.deps_a['0004_a'], self.deps_b['0003_b'], self.deps_b['0002_b'], self.deps_a['0003_a'], self.deps_a['0002_a'], self.deps_a['0001_a']], [self.deps_c['0005_c'], self.deps_b['0005_b'], self.deps_b['0004_b'], ... | self.assertEqual([ [ self.deps_c['0005_c'], self.deps_b['0005_b'], self.deps_b['0004_b'], self.deps_a['0005_a'], self.deps_a['0004_a'], self.deps_b['0003_b'], self.deps_b['0002_b'], self.deps_a['0003_a'], self.deps_a['0002_a'], self.deps_a['0001_a'], ], [ self.deps_c['0005_c'], self.deps_b['0005_b'], self.deps_b['0004_... | def test_backwards_plan(self): self.assertEqual([[self.deps_c['0005_c'], self.deps_b['0005_b'], self.deps_b['0004_b'], self.deps_a['0005_a'], self.deps_a['0004_a'], self.deps_b['0003_b'], self.deps_b['0002_b'], self.deps_a['0003_a'], self.deps_a['0002_a'], self.deps_a['0001_a']], [self.deps_c['0005_c'], self.deps_b['00... | 0c0f340bc8be175e12f8ac3631b51f8ab31c3f45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/0c0f340bc8be175e12f8ac3631b51f8ab31c3f45/logic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
823,
6397,
67,
7088,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
63,
2890,
18,
14877,
67,
71,
3292,
3784,
25,
67,
71,
17337,
365,
18,
14877,
67,
70,
3292,
3784,
25,
67,
70,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
823,
6397,
67,
7088,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
63,
2890,
18,
14877,
67,
71,
3292,
3784,
25,
67,
71,
17337,
365,
18,
14877,
67,
70,
3292,
3784,
25,
67,
70,... |
Aassumes that the line does *not* end with \r\n. | Assumes that the line does *not* end with \\r\\n. | def _output(self, s): """Add a line of output to the current request buffer. Aassumes that the line does *not* end with \r\n. """ self._buffer.append(s) | 049734ef66732b96f43ce2a484c322b6fedc8428 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/049734ef66732b96f43ce2a484c322b6fedc8428/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2844,
12,
2890,
16,
272,
4672,
3536,
986,
279,
980,
434,
876,
358,
326,
783,
590,
1613,
18,
225,
25374,
716,
326,
980,
1552,
380,
902,
14,
679,
598,
1736,
86,
1695,
82,
18,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2844,
12,
2890,
16,
272,
4672,
3536,
986,
279,
980,
434,
876,
358,
326,
783,
590,
1613,
18,
225,
25374,
716,
326,
980,
1552,
380,
902,
14,
679,
598,
1736,
86,
1695,
82,
18,
3536... |
if name in blacklist: continue | def list_headers(root): modules = [] support_macros = None blacklist = ["init.if", "inetd.if", "uml.if", "thunderbird.if"] for dirpath, dirnames, filenames in os.walk(root): for name in filenames: # FIXME: these make the parser barf in various unrecoverable ways, so we must skip # them. if name in blacklist: continue ... | 52f9d9f2ad3225e44f9fd55722b49231f060e2f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7147/52f9d9f2ad3225e44f9fd55722b49231f060e2f3/refparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2485,
12,
3085,
4672,
4381,
273,
5378,
2865,
67,
5821,
6973,
273,
599,
11709,
273,
8247,
2738,
18,
430,
3113,
315,
23864,
72,
18,
430,
3113,
315,
22192,
18,
430,
3113,
315,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2485,
12,
3085,
4672,
4381,
273,
5378,
2865,
67,
5821,
6973,
273,
599,
11709,
273,
8247,
2738,
18,
430,
3113,
315,
23864,
72,
18,
430,
3113,
315,
22192,
18,
430,
3113,
315,
45... | |
return _("Permissions updated") | return unicode(_("Permissions updated")) | def POST(self): settings = self.parseData(self.request.bodyFile.read()) manager = IPrincipalPermissionManager(self.context) # XXX: alga: the view permission checking does not work! # I'll rely on the IPrincipalPermissionManager security for now. # # this view is protected by schooltool.controlAccess # manager = removeS... | 3adf66e14eee2de9c98707cd209f4ccee1be638d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/3adf66e14eee2de9c98707cd209f4ccee1be638d/acl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
4672,
1947,
273,
365,
18,
2670,
751,
12,
2890,
18,
2293,
18,
3432,
812,
18,
896,
10756,
3301,
273,
467,
9155,
5041,
1318,
12,
2890,
18,
2472,
13,
468,
11329,
30,
11989,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
4672,
1947,
273,
365,
18,
2670,
751,
12,
2890,
18,
2293,
18,
3432,
812,
18,
896,
10756,
3301,
273,
467,
9155,
5041,
1318,
12,
2890,
18,
2472,
13,
468,
11329,
30,
11989,... |
initaudio(audiofilename, buffer) | audiodone = thread.allocate_lock() audiodone.acquire_lock() audiostop = [] initaudio(audiofilename, audiostop, audiodone) | def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' ... | 15728b345d96a6162fd564e1c123ee9961ee23dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15728b345d96a6162fd564e1c123ee9961ee23dc/Vrec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,... |
self.hide() | def fade_out(self): """ fade out layer and hide them """ if not self.visible: return a = animation.Fade(self.layer, self.frames_per_fade, 255, 0) a.start() a.wait() self.hide() | e5003564ebb5e7136c0a28201f71609ff1130898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e5003564ebb5e7136c0a28201f71609ff1130898/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24444,
67,
659,
12,
2890,
4672,
3536,
24444,
596,
3018,
471,
6853,
2182,
3536,
309,
486,
365,
18,
8613,
30,
327,
279,
273,
8794,
18,
42,
2486,
12,
2890,
18,
6363,
16,
365,
18,
10278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24444,
67,
659,
12,
2890,
4672,
3536,
24444,
596,
3018,
471,
6853,
2182,
3536,
309,
486,
365,
18,
8613,
30,
327,
279,
273,
8794,
18,
42,
2486,
12,
2890,
18,
6363,
16,
365,
18,
10278,
... | |
random.shuffle(tests) | try: random.shuffle(tests) except AttributeError: pass | def prog(i, goomethod, goolibprefix, goolibsuffix, foomethod, foolibprefix, foolibsuffix): '''Build a program The program links against a shared library foo which itself links against a shared library goo. The libraries foo and goo can use arbitrary library prefixes and suffixes.''' goo_name = goolibprefix+'goo'+str... | f481be8570e5b09df5d7254b573d4d757cafce0c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/f481be8570e5b09df5d7254b573d4d757cafce0c/SharedLibraryIxes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11243,
12,
77,
16,
1960,
362,
572,
16,
314,
1371,
495,
3239,
16,
314,
1371,
495,
8477,
16,
284,
4252,
572,
16,
284,
1371,
495,
3239,
16,
284,
1371,
495,
8477,
4672,
9163,
3116,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11243,
12,
77,
16,
1960,
362,
572,
16,
314,
1371,
495,
3239,
16,
314,
1371,
495,
8477,
16,
284,
4252,
572,
16,
284,
1371,
495,
3239,
16,
284,
1371,
495,
8477,
4672,
9163,
3116,
279,
... |
SyncProgress.Show(wx.GetApp().mainFrame, view=self.view, | SyncProgress.Show(wx.GetApp().mainFrame, rv=self.view, | def OnManageDone(self, evt): self._saveClassFilterState() | ab4caf61203090254245da61309a138f48e964c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ab4caf61203090254245da61309a138f48e964c2/PublishCollection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
21258,
7387,
12,
2890,
16,
6324,
4672,
365,
6315,
5688,
797,
1586,
1119,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
21258,
7387,
12,
2890,
16,
6324,
4672,
365,
6315,
5688,
797,
1586,
1119,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.slave_cleanup(walname) | self.slave_cleanup(lstname) | def slave_xrestore_unsafe(self, srcname, dstpath, parent_pid): srcdir = self.cf.get("completed_wals") partdir = self.cf.get("partial_wals") pausefile = os.path.join(srcdir, "PAUSE") stopfile = os.path.join(srcdir, "STOP") prgrfile = os.path.join(srcdir, "PROGRESS") srcfile = os.path.join(srcdir, srcname) partfile = os.... | 5c30a274a6945a32dc53e7725ba74053bda74e5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/5c30a274a6945a32dc53e7725ba74053bda74e5e/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
92,
13991,
67,
318,
4626,
12,
2890,
16,
1705,
529,
16,
3046,
803,
16,
982,
67,
6610,
4672,
1705,
1214,
273,
365,
18,
8522,
18,
588,
2932,
13615,
67,
91,
1031,
7923,
1087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
92,
13991,
67,
318,
4626,
12,
2890,
16,
1705,
529,
16,
3046,
803,
16,
982,
67,
6610,
4672,
1705,
1214,
273,
365,
18,
8522,
18,
588,
2932,
13615,
67,
91,
1031,
7923,
1087,
... |
def list(self, conductors): | def list_optimal(self, conductors): | def list(self, conductors): """ Returns a list of all optimal curves with conductor between Nmin and Nmax-1, inclusive, in the database. INPUT: conductors -- list or generator of ints OUTPUT: list of EllipticCurve objects. """ return list(self.iter_optimal(conductors)) | 4bf04cbd6d936c3b8ca7845c2d1af6ac9231093b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4bf04cbd6d936c3b8ca7845c2d1af6ac9231093b/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
3838,
2840,
12,
2890,
16,
356,
1828,
1383,
4672,
3536,
2860,
279,
666,
434,
777,
16413,
24106,
598,
356,
1828,
280,
3086,
423,
1154,
471,
423,
1896,
17,
21,
16,
13562,
16,
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,
666,
67,
3838,
2840,
12,
2890,
16,
356,
1828,
1383,
4672,
3536,
2860,
279,
666,
434,
777,
16413,
24106,
598,
356,
1828,
280,
3086,
423,
1154,
471,
423,
1896,
17,
21,
16,
13562,
16,
316... |
morsel[a]=v+time.time() | morsel[a]=Cookie._getdate(v) | def _add_usertracking_cookie(conn, sessionDict): if Configuration.usertrackingOn: cookiename=Configuration.usertrackingCookieName if not _verify_cookie(conn, cookiename): f=Configuration.usertrackingGenUIDFunc if f is None: conn.responseCookie[cookiename]=uuid() else: conn.responseCookie[cookiename]=f(conn) morsel=conn... | 9278cfd3f70f64c2ceb5495404fdfcdb71926bf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/9278cfd3f70f64c2ceb5495404fdfcdb71926bf7/usertracking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
1355,
6440,
67,
8417,
12,
4646,
16,
1339,
5014,
4672,
309,
4659,
18,
1355,
6440,
1398,
30,
15860,
77,
1069,
33,
1750,
18,
1355,
6440,
6151,
461,
309,
486,
389,
8705,
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,
1289,
67,
1355,
6440,
67,
8417,
12,
4646,
16,
1339,
5014,
4672,
309,
4659,
18,
1355,
6440,
1398,
30,
15860,
77,
1069,
33,
1750,
18,
1355,
6440,
6151,
461,
309,
486,
389,
8705,
67,... |
def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') header = input.read(AS_HEADER_LENGTH) try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg if verbose: print 'Magic: 0x%8.8x'%magic pr... | class AppleSingle(object): datafork = None resourcefork = None def __init__(self, fileobj, verbose=False): header = fileobj.read(AS_HEADER_LENGTH) | def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') # Should we also test for FSSpecs or FSRefs? header = input.read(AS_HEADER_LENGTH) try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg i... | 3997f58a0c147cee83203ef731e2541c10557335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3997f58a0c147cee83203ef731e2541c10557335/applesingle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2630,
16,
876,
16,
400,
3700,
33,
20,
4672,
309,
618,
12,
2630,
13,
422,
618,
2668,
11,
4672,
810,
273,
1696,
12,
2630,
16,
296,
6731,
6134,
468,
9363,
732,
2546,
1842,
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,
2495,
12,
2630,
16,
876,
16,
400,
3700,
33,
20,
4672,
309,
618,
12,
2630,
13,
422,
618,
2668,
11,
4672,
810,
273,
1696,
12,
2630,
16,
296,
6731,
6134,
468,
9363,
732,
2546,
1842,
364... |
self.removeButton .set_sensitive (FALSE) self.upButton .set_sensitive (FALSE) self.downButton .set_sensitive (FALSE) self.propertiesButton.set_sensitive (FALSE) | self.removeButton .set_sensitive (False) self.upButton .set_sensitive (False) self.downButton .set_sensitive (False) self.propertiesButton.set_sensitive (False) | def activateConfigButtons (self, config): writable = config.writable modified = config.isModified self.saveButton .set_sensitive (writable and modified) self.reloadButton .set_sensitive (TRUE) self.newButton .set_sensitive (writable) self.removeButton .set_sensitive (FALSE) self.upButton .set_se... | ab8126074d7036807d1d842171687cc01617a181 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ab8126074d7036807d1d842171687cc01617a181/driconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
809,
14388,
261,
2890,
16,
642,
4672,
9691,
273,
642,
18,
15699,
4358,
273,
642,
18,
291,
4575,
365,
18,
5688,
3616,
1377,
263,
542,
67,
23481,
261,
15699,
471,
4358,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
809,
14388,
261,
2890,
16,
642,
4672,
9691,
273,
642,
18,
15699,
4358,
273,
642,
18,
291,
4575,
365,
18,
5688,
3616,
1377,
263,
542,
67,
23481,
261,
15699,
471,
4358,
13,
365,
1... |
description=_(u"These tags are stripped when saving or rendering," | description=_(u"These tags are stripped when saving or rendering, " | def __init__(self, tags='', attributes=''): self.tags = tags self.attributes = attributes | 41dcfa2ee9d62033f01f0471ac408e71168d2c62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12189/41dcfa2ee9d62033f01f0471ac408e71168d2c62/filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2342,
2218,
2187,
1677,
2218,
11,
4672,
365,
18,
4156,
273,
2342,
365,
18,
4350,
273,
1677,
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,
2342,
2218,
2187,
1677,
2218,
11,
4672,
365,
18,
4156,
273,
2342,
365,
18,
4350,
273,
1677,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.thePile = urwid.Pile([('fixed',1,self.wlessH),self.wlessLB] ) | self.thePile = urwid.Pile([('fixed',2,self.wlessH),self.wlessLB] ) | def update_netlist(self,state=None, x=None, force_check=False,firstrun=False): # Run focus-collecting code if we are not running this for the first time if not firstrun: self.update_focusloc() self.list_header.set_text(gen_list_header()) """ Updates the overall network list.""" if not state: state, x = daemon.GetConnec... | 19804f75ebc642fca14da4f1915ba20fd3cf7b78 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/19804f75ebc642fca14da4f1915ba20fd3cf7b78/wicd-curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2758,
1098,
12,
2890,
16,
2019,
33,
7036,
16,
619,
33,
7036,
16,
2944,
67,
1893,
33,
8381,
16,
74,
481,
701,
318,
33,
8381,
4672,
468,
1939,
7155,
17,
14676,
310,
981,
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,
1089,
67,
2758,
1098,
12,
2890,
16,
2019,
33,
7036,
16,
619,
33,
7036,
16,
2944,
67,
1893,
33,
8381,
16,
74,
481,
701,
318,
33,
8381,
4672,
468,
1939,
7155,
17,
14676,
310,
981,
309,... |
self.__order = Integer(self._gap_().Order()) | try: self.__order = Integer(self._gap_().Order()) except TypeError: self.__order = Infinity | def order(self): """ Return the order of this group element, which is the smallest positive integer $n$ such that $g^n = 1$. | d954c20980234b90217f30b562d0909d1ff7ff0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d954c20980234b90217f30b562d0909d1ff7ff0e/matrix_group_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1041,
930,
16,
1492,
353,
326,
13541,
6895,
3571,
271,
82,
8,
4123,
716,
271,
75,
66,
82,
273,
404,
8,
18,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1041,
930,
16,
1492,
353,
326,
13541,
6895,
3571,
271,
82,
8,
4123,
716,
271,
75,
66,
82,
273,
404,
8,
18,
2,
-100,
-100,
-100,... |
model = self.get_model(record.model) record_dict = self._create_record(model, fields) id = self.pool.get('ir.model.data')._update(self.cr, self.uid, record.model, \ self.module, record_dict, record.id, mode=self.mode) self.id_map[record.id] = int(id) if config.get('import_partial', False): self.cr.commit() | if self.isnoupdate(record) and self.mode != 'init': model = self.get_model(record.model) record_dict = self._create_record(model, fields) id = self.pool.get('ir.model.data')._update(self.cr, self.uid, record.model, \ self.module, record_dict, record.id, noupdate=self.isnoupdate(node), mode=self.mode) self.id_map[record... | def process_record(self, node): record, fields = node.items()[0] | 84419e2509a89c4ae5e7503f4d22f44434009e0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/84419e2509a89c4ae5e7503f4d22f44434009e0c/yaml_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3366,
12,
2890,
16,
756,
4672,
1409,
16,
1466,
273,
756,
18,
3319,
1435,
63,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1207,
67,
3366,
12,
2890,
16,
756,
4672,
1409,
16,
1466,
273,
756,
18,
3319,
1435,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
debug.logger & debug.flagSM and debug.logger('processIncomingMsg: read timeline snmpEngineBoots %s snmpEngineTime %s for msgAuthoritativeEngineID %s' % (snmpEngineBoots, snmpEngineTime, msgAuthoritativeEngineID)) | idleTime = int(time.time())-latestUpdateTimestamp debug.logger & debug.flagSM and debug.logger('processIncomingMsg: read timeline snmpEngineBoots %s snmpEngineTime %s for msgAuthoritativeEngineID %s, idle time %s secs' % (snmpEngineBoots, snmpEngineTime, msgAuthoritativeEngineID, idleTime)) | def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn... | ed8bedac8cbcc84339511222025bfba2f8167ab9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/ed8bedac8cbcc84339511222025bfba2f8167ab9/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
20370,
3332,
12,
365,
16,
15366,
4410,
16,
883,
7798,
1488,
16,
943,
1079,
1225,
16,
4373,
2402,
16,
4373,
1488,
16,
4373,
2355,
16,
7339,
3332,
16,
1234,
225,
468,
11329,
262,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
20370,
3332,
12,
365,
16,
15366,
4410,
16,
883,
7798,
1488,
16,
943,
1079,
1225,
16,
4373,
2402,
16,
4373,
1488,
16,
4373,
2355,
16,
7339,
3332,
16,
1234,
225,
468,
11329,
262,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.