rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
dlg = ChangeMasterPasswordDialog(changing=prefs.masterPassword,
|
dlg = ChangeMasterPasswordDialog(parent, changing=prefs.masterPassword,
|
def change(view, parent=None): """ Set or change the master password. Safe to call from from a background thread. @param view: Repository view. @return: deferred """ if _timer is not None: _timer.cancel() prefs = schema.ns("osaf.framework.MasterPassword", view).masterPasswordPrefs view.refresh() ret = False while True: dlg = ChangeMasterPasswordDialog(changing=prefs.masterPassword, view=view) try: if dlg.ShowModal() == wx.ID_OK: oldMaster, newMaster = dlg.getMasterPasswords() if not _change(oldMaster, newMaster, view, prefs): if parent is None: parent = wx.GetApp().mainFrame wx.MessageBox(_(u'Old password was incorrect, please try again.'), _(u'Incorrect password'), parent=parent) continue ret = True finally: dlg.Destroy() break return ret
|
0d17a55566be18e8cb3792cc44821a177b2bb8f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/0d17a55566be18e8cb3792cc44821a177b2bb8f9/MasterPassword.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12,
1945,
16,
982,
33,
7036,
4672,
3536,
1000,
578,
2549,
326,
4171,
2201,
18,
225,
14060,
358,
745,
628,
628,
279,
5412,
2650,
18,
225,
632,
891,
1476,
30,
282,
6281,
1476,
18,
632,
2463,
30,
4202,
7045,
3536,
309,
389,
12542,
353,
486,
599,
30,
389,
12542,
18,
10996,
1435,
225,
15503,
273,
1963,
18,
2387,
2932,
538,
1727,
18,
12303,
18,
7786,
3913,
3113,
1476,
2934,
7525,
3913,
1386,
2556,
225,
1476,
18,
9144,
1435,
225,
325,
273,
1083,
225,
1323,
1053,
30,
25840,
273,
7576,
7786,
3913,
6353,
12,
2938,
16,
12770,
33,
1484,
2556,
18,
7525,
3913,
16,
1476,
33,
1945,
13,
775,
30,
309,
25840,
18,
5706,
20191,
1435,
422,
7075,
18,
734,
67,
3141,
30,
1592,
7786,
16,
394,
7786,
273,
25840,
18,
588,
7786,
3913,
87,
1435,
225,
309,
486,
389,
3427,
12,
1673,
7786,
16,
394,
7786,
16,
1476,
16,
15503,
4672,
309,
982,
353,
599,
30,
982,
273,
7075,
18,
967,
3371,
7675,
5254,
3219,
225,
7075,
18,
27647,
24899,
12,
89,
11,
7617,
2201,
1703,
11332,
16,
9582,
775,
3382,
1093,
3631,
389,
12,
89,
11,
16268,
2201,
19899,
982,
33,
2938,
13,
1324,
225,
325,
273,
1053,
225,
3095,
30,
25840,
18,
10740,
1435,
225,
898,
225,
327,
325,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12,
1945,
16,
982,
33,
7036,
4672,
3536,
1000,
578,
2549,
326,
4171,
2201,
18,
225,
14060,
358,
745,
628,
628,
279,
5412,
2650,
18,
225,
632,
891,
1476,
30,
282,
6281,
1476,
18,
632,
2463,
30,
4202,
7045,
3536,
309,
389,
12542,
353,
486,
599,
30,
389,
12542,
18,
10996,
1435,
225,
15503,
273,
1963,
18,
2387,
2932,
538,
1727,
18,
12303,
18,
7786,
3913,
3113,
1476,
2934,
7525,
3913,
1386,
2556,
225,
1476,
18,
9144,
1435,
225,
325,
273,
1083,
225,
1323,
1053,
30,
25840,
273,
7576,
7786,
3913,
6353,
12,
2938,
16,
12770,
33,
1484,
2556,
18,
7525,
3913,
16,
1476,
33,
1945,
13,
775,
30,
309,
25840,
18,
5706,
20191,
1435,
422,
7075,
2
] |
f.text('last modified: %(time)s' % page.page.lastEditInfo()),
|
f.text('last modified: %s' % page.page.mtime_printable(request)),
|
def formatHitInfoBar(self, page): f = self.formatter _ = self.request.getText
|
2a68691be7d649d514bb0f386e8abd6b9635021d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/2a68691be7d649d514bb0f386e8abd6b9635021d/results.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
13616,
966,
5190,
12,
2890,
16,
1363,
4672,
284,
273,
365,
18,
12354,
389,
273,
365,
18,
2293,
18,
588,
1528,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
740,
13616,
966,
5190,
12,
2890,
16,
1363,
4672,
284,
273,
365,
18,
12354,
389,
273,
365,
18,
2293,
18,
588,
1528,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not IFinderUploadCapable.providedBy(self.scope) :
|
if not IFinderUploadCapable.providedBy(self.data['scope']) :
|
def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) # use self.rootpath or rootpath in request or session to change browser root self.rootpath = request.get('rootpath', self.rootpath) # use self.browse=False (or browse=False in request) to disallow browsing globally self.browse = request.get('browse', self.browse) self.showbreadcrumbs = request.get('showbreadcrumbs', self.showbreadcrumbs) if not self.browse : self.showbreadcrumbs = False self.setScopeInfos(context, request, self.showbreadcrumbs) # use self.multiselect = False (or multiselect = False in request) # when multiselect is False window is closed on insert self.multiselect = request.get('multiselect', self.multiselect) # to force close on insert even in multiselect mode self.forcecloseoninsert = request.get('forcecloseoninsert', self.forcecloseoninsert) if not self.multiselect : self.forcecloseoninsert = 1 # use self.types (or types in request) to specify portal_types in catalog request self.types = request.get('types', self.types) # use self.typeupload (or typeupload in request) to specify portal_type for upload self.typeupload = request.get('typeupload', self.typeupload) # use self.typefolder (or typefolder in request) to specify portal_type used to create folder self.typefolder = request.get('typefolder', self.typefolder) # use self.typeview (or typeview in request) to specify typeview ('file' or 'image' for now, 'selection' in future) self.typeview = request.get('typeview', self.typeview) if self.typeview == 'image' : self.typecss = 'float'
|
347e94cd476fff654d676c70d876655150dcb18b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/347e94cd476fff654d676c70d876655150dcb18b/finder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
2187,
599,
13,
468,
999,
365,
18,
3085,
803,
578,
1365,
803,
316,
590,
578,
1339,
358,
2549,
4748,
1365,
365,
18,
3085,
803,
273,
590,
18,
588,
2668,
3085,
803,
2187,
365,
18,
3085,
803,
13,
468,
999,
365,
18,
25731,
33,
8381,
261,
280,
21670,
33,
8381,
316,
590,
13,
358,
29176,
324,
492,
2470,
25654,
365,
18,
25731,
273,
590,
18,
588,
2668,
25731,
2187,
365,
18,
25731,
13,
365,
18,
4500,
31603,
273,
225,
590,
18,
588,
2668,
4500,
31603,
2187,
365,
18,
4500,
31603,
13,
309,
486,
365,
18,
25731,
294,
365,
18,
4500,
31603,
273,
1083,
225,
365,
18,
542,
3876,
7655,
12,
2472,
16,
590,
16,
365,
18,
4500,
31603,
13,
225,
468,
999,
365,
18,
23978,
13759,
273,
1083,
261,
280,
22945,
13759,
273,
1083,
316,
590,
13,
468,
1347,
22945,
13759,
353,
1083,
2742,
353,
4375,
603,
2243,
365,
18,
23978,
13759,
273,
590,
18,
588,
2668,
23978,
13759,
2187,
365,
18,
23978,
13759,
13,
468,
358,
2944,
1746,
603,
2243,
5456,
316,
22945,
13759,
1965,
365,
18,
5734,
4412,
265,
6387,
273,
590,
18,
588,
2668,
5734,
4412,
265,
6387,
2187,
365,
18,
5734,
4412,
265,
6387,
13,
225,
309,
486,
365,
18,
23978,
13759,
294,
365,
18,
5734,
4412,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
2187,
599,
13,
468,
999,
365,
18,
3085,
803,
578,
1365,
803,
316,
590,
578,
1339,
358,
2549,
4748,
1365,
365,
18,
3085,
803,
273,
590,
18,
588,
2668,
3085,
803,
2187,
365,
18,
3085,
803,
13,
468,
999,
365,
18,
25731,
33,
8381,
261,
280,
21670,
33,
8381,
316,
590,
13,
358,
29176,
324,
492,
2470,
25654,
365,
18,
25731,
273,
590,
18,
588,
2668,
25731,
2187,
365,
18,
25731,
13,
365,
18,
4500,
31603,
273,
225,
590,
18,
588,
2668,
2
] |
classInfo, cacheModTime = self._getClassCache() deps = classInfo[cacheId] if cacheId in classInfo else None
|
deps, cacheModTime = cache.readmulti(cacheId, self.path)
|
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._classesObj[dep.name] if cacheModTime < classObj.m_time(): console.debug("Invalidating dep cache for %s, as %s is newer" % (self.id, classObj.id)) return False return True
|
1abc907797564cd97d808fe122ba7fb63a6ebc45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/1abc907797564cd97d808fe122ba7fb63a6ebc45/Class.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30442,
14430,
4704,
42,
1955,
12,
14877,
3823,
16,
1247,
1739,
950,
4672,
309,
1247,
1739,
950,
353,
599,
30,
225,
468,
2660,
30,
333,
848,
4551,
1338,
3334,
598,
279,
4379,
18,
3917,
2493,
563,
327,
1083,
364,
5993,
316,
8740,
3823,
9614,
945,
11929,
30,
309,
5993,
18,
2293,
280,
480,
365,
18,
350,
30,
468,
333,
1703,
5849,
3059,
279,
5904,
15940,
309,
5993,
18,
529,
316,
365,
6315,
4701,
2675,
30,
667,
2675,
273,
365,
6315,
4701,
2675,
63,
15037,
18,
529,
65,
309,
1247,
1739,
950,
411,
667,
2675,
18,
81,
67,
957,
13332,
2983,
18,
4148,
2932,
1941,
1776,
5993,
1247,
364,
738,
87,
16,
487,
738,
87,
353,
16069,
6,
738,
261,
2890,
18,
350,
16,
667,
2675,
18,
350,
3719,
327,
1083,
225,
327,
1053,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30442,
14430,
4704,
42,
1955,
12,
14877,
3823,
16,
1247,
1739,
950,
4672,
309,
1247,
1739,
950,
353,
599,
30,
225,
468,
2660,
30,
333,
848,
4551,
1338,
3334,
598,
279,
4379,
18,
3917,
2493,
563,
327,
1083,
364,
5993,
316,
8740,
3823,
9614,
945,
11929,
30,
309,
5993,
18,
2293,
280,
480,
365,
18,
350,
30,
468,
333,
1703,
5849,
3059,
279,
5904,
15940,
309,
5993,
18,
529,
316,
365,
6315,
4701,
2675,
30,
667,
2675,
273,
365,
6315,
4701,
2675,
63,
15037,
18,
529,
65,
309,
1247,
1739,
950,
411,
667,
2675,
18,
81,
67,
957,
13332,
2983,
18,
4148,
2932,
1941,
1776,
5993,
1247,
364,
738,
87,
16,
487,
738,
87,
353,
16069,
6,
738,
2
] |
return data.encode('utf-8')
|
return data.encode('ascii', 'xmlcharrefreplace')
|
def encode(data): #return data.encode('ascii', 'xmlcharrefreplace') return data.encode('utf-8')
|
35320295f8c6ffbc7a430117696da434c8b3f2fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/35320295f8c6ffbc7a430117696da434c8b3f2fc/writer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
892,
4672,
468,
2463,
501,
18,
3015,
2668,
9184,
2187,
296,
2902,
3001,
1734,
2079,
6134,
225,
327,
501,
18,
3015,
2668,
9184,
2187,
296,
2902,
3001,
1734,
2079,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2017,
12,
892,
4672,
468,
2463,
501,
18,
3015,
2668,
9184,
2187,
296,
2902,
3001,
1734,
2079,
6134,
225,
327,
501,
18,
3015,
2668,
9184,
2187,
296,
2902,
3001,
1734,
2079,
6134,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-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,
-100,
-100,
-100,
-100
] |
" be added to the python path on script startup"),
|
" be added to the python path on script startup"),
|
def initialize_options(self): self.paths = None self.default_config = None return _install.initialize_options(self)
|
82bf642178d9bbed43f5e4f85d6a2e14f77b4e29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/82bf642178d9bbed43f5e4f85d6a2e14f77b4e29/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
2116,
12,
2890,
4672,
365,
18,
4481,
273,
599,
365,
18,
1886,
67,
1425,
273,
599,
327,
389,
5425,
18,
11160,
67,
2116,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
67,
2116,
12,
2890,
4672,
365,
18,
4481,
273,
599,
365,
18,
1886,
67,
1425,
273,
599,
327,
389,
5425,
18,
11160,
67,
2116,
12,
2890,
13,
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,
-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,
-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,
-100,
-100,
-100
] |
computingElement = self.computingElements[self.computingElement] result = computingElement.available( pilotRequirements )
|
result = self.computingElement.available( pilotRequirements )
|
def _listQueues( self, pilotRequirements ): """ For each defined CE return the list of Queues with available, running and waiting slots, matching the requirements of the pilots. Currently only CPU time is considered """ availableQueues = [] computingElement = self.computingElements[self.computingElement] result = computingElement.available( pilotRequirements ) if not result['OK']: self.log.error( 'Can not determine available queues', result['Message'] ) return False return result['Value']
|
eece7f82aa4bf7bef3f9e8cb3f06a5d9125ef708 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/eece7f82aa4bf7bef3f9e8cb3f06a5d9125ef708/DIRACPilotDirector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
17428,
12,
365,
16,
293,
22797,
15465,
262,
30,
3536,
2457,
1517,
2553,
29538,
327,
326,
666,
434,
27949,
3610,
598,
2319,
16,
3549,
471,
7336,
12169,
16,
3607,
326,
8433,
434,
326,
24970,
6968,
18,
15212,
1338,
12154,
813,
353,
7399,
3536,
2319,
17428,
273,
5378,
563,
273,
365,
18,
13406,
310,
1046,
18,
5699,
12,
293,
22797,
15465,
262,
309,
486,
563,
3292,
3141,
3546,
30,
365,
18,
1330,
18,
1636,
12,
296,
2568,
486,
4199,
2319,
11897,
2187,
563,
3292,
1079,
3546,
262,
327,
1083,
327,
563,
3292,
620,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1098,
17428,
12,
365,
16,
293,
22797,
15465,
262,
30,
3536,
2457,
1517,
2553,
29538,
327,
326,
666,
434,
27949,
3610,
598,
2319,
16,
3549,
471,
7336,
12169,
16,
3607,
326,
8433,
434,
326,
24970,
6968,
18,
15212,
1338,
12154,
813,
353,
7399,
3536,
2319,
17428,
273,
5378,
563,
273,
365,
18,
13406,
310,
1046,
18,
5699,
12,
293,
22797,
15465,
262,
309,
486,
563,
3292,
3141,
3546,
30,
365,
18,
1330,
18,
1636,
12,
296,
2568,
486,
4199,
2319,
11897,
2187,
563,
3292,
1079,
3546,
262,
327,
1083,
327,
563,
3292,
620,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for values in CoincDatabaseConnection.cursor().execute("SELECT * FROM coinc_event WHERE coinc_def_id == ?", (coinc_def_id,)):
|
for values in self.connection.cursor().execute("SELECT * FROM coinc_event WHERE coinc_def_id == ?", (coinc_def_id,)):
|
def selectByDefID(self, coinc_def_id): for values in CoincDatabaseConnection.cursor().execute("SELECT * FROM coinc_event WHERE coinc_def_id == ?", (coinc_def_id,)): yield self._row_from_cols(values)
|
bda9934b4450fe05001a0bec22c8b186ac2c3c12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/bda9934b4450fe05001a0bec22c8b186ac2c3c12/SnglBurstUtils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
858,
3262,
734,
12,
2890,
16,
13170,
71,
67,
536,
67,
350,
4672,
364,
924,
316,
365,
18,
4071,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2027,
858,
3262,
734,
12,
2890,
16,
13170,
71,
67,
536,
67,
350,
4672,
364,
924,
316,
365,
18,
4071,
18,
9216,
7675,
8837,
2932,
4803,
380,
4571,
13170,
71,
67,
2575,
4852,
13170,
71,
67,
536,
67,
350,
422,
692,
3113,
261,
12645,
71,
67,
536,
67,
350,
16,
3719,
30,
2824,
365,
6315,
492,
67,
2080,
67,
6842,
12,
2372,
13,
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,
-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
] |
Valid resource names: anchor, background, bd, bg, bitmap, borderwidth, cursor, fg, font, foreground, height, highlightbackground, highlightcolor, highlightthickness, image, justify, padx, pady, relief, takefocus, text, textvariable, underline, width, wraplength."""
|
STANDARD OPTIONS activebackground, activeforeground, anchor, background, bitmap, borderwidth, cursor, disabledforeground, font, foreground, highlightbackground, highlightcolor, highlightthickness, image, justify, padx, pady, relief, takefocus, text, textvariable, underline, wraplength WIDGET-SPECIFIC OPTIONS height, state, width """
|
def __init__(self, master=None, cnf={}, **kw): """Construct a label widget with the parent MASTER.
|
229e0d7ad116b4e3a662d43339dca92ea19cb0d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/229e0d7ad116b4e3a662d43339dca92ea19cb0d3/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
23118,
28793,
2826,
9987,
4672,
3536,
7249,
279,
1433,
3604,
598,
326,
982,
27312,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4171,
33,
7036,
16,
23118,
28793,
2826,
9987,
4672,
3536,
7249,
279,
1433,
3604,
598,
326,
982,
27312,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100
] |
r""" The sequence of Uppuluri-Carpenter numbers. The Uppuluri-Carpenter number $C_n$ counts the imbalance in the number of ways to put $n$ distinguishable things into an even number of indistinguishable boxes versus into an odd number of indistinguishable boxes, such that no box is empty. Let $S(n, k)$ denote the Stirling number of the second kind. Then $$C_n = \sum{k=0}^{n} (-1)^k S(n, k) .$$ INPUT: n -- integer >= 0 OUTPUT: integer -- $C_n$ EXAMPLES: sage: a = sloane.A000587; a Sequence of Uppuluri-Carpenter numbers sage: a.offset 0 sage: a(0) 1 sage: a(100) 397577026456518507969762382254187048845620355238545130875069912944235105204434466095862371032124545552161 sage: a.list(10) [1, -1, 0, 1, 1, -2, -9, -9, 50, 267] AUTHOR: -- Nick Alexander """ def __init__(self):
|
def __init__(self): r""" The sequence of Uppuluri-Carpenter numbers. The Uppuluri-Carpenter number $C_n$ counts the imbalance in the number of ways to put $n$ distinguishable things into an even number of indistinguishable boxes versus into an odd number of indistinguishable boxes, such that no box is empty. Let $S(n, k)$ denote the Stirling number of the second kind. Then $$C_n = \sum{k=0}^{n} (-1)^k S(n, k) .$$ INPUT: n -- integer >= 0 OUTPUT: integer -- $C_n$ EXAMPLES: sage: a = sloane.A000587; a Sequence of Uppuluri-Carpenter numbers sage: a.offset 0 sage: a(0) 1 sage: a(100) 397577026456518507969762382254187048845620355238545130875069912944235105204434466095862371032124545552161 sage: a.list(10) [1, -1, 0, 1, 1, -2, -9, -9, 50, 267] AUTHOR: -- Nick Alexander """
|
def _repr_(self): return "Sequence of Bell numbers"
|
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
4021,
434,
605,
1165,
5600,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
67,
12,
2890,
4672,
327,
315,
4021,
434,
605,
1165,
5600,
6,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logging.debug("Got unexpected login prompt") return False
|
if login_prompt_count == 0: logging.debug("Got username prompt; sending '%s'" % username) session.sendline(username) login_prompt_count += 1 continue else: logging.debug("Got username prompt again") return False
|
def _remote_login(session, password, prompt, timeout=10): """ Log into a remote host (guest) using SSH or Telnet. Wait for questions and provide answers. If timeout expires while waiting for output from the child (e.g. a password prompt or a shell prompt) -- fail. @brief: Log into a remote host (guest) using SSH or Telnet. @param session: A kvm_expect or kvm_shell_session instance to operate on @param password: The password to send in reply to a password prompt @param prompt: The shell prompt that indicates a successful login @param timeout: The maximal time duration (in seconds) to wait for each step of the login procedure (i.e. the "Are you sure" prompt, the password prompt, the shell prompt, etc) @return: True on success and False otherwise. """ password_prompt_count = 0 while True: (match, text) = session.read_until_last_line_matches( [r"[Aa]re you sure", r"[Pp]assword:\s*$", r"^\s*[Ll]ogin:\s*$", r"[Cc]onnection.*closed", r"[Cc]onnection.*refused", r"[Pp]lease wait", prompt], timeout=timeout, internal_timeout=0.5) if match == 0: # "Are you sure you want to continue connecting" logging.debug("Got 'Are you sure...'; sending 'yes'") session.sendline("yes") continue elif match == 1: # "password:" if password_prompt_count == 0: logging.debug("Got password prompt; sending '%s'" % password) session.sendline(password) password_prompt_count += 1 continue else: logging.debug("Got password prompt again") return False elif match == 2: # "login:" logging.debug("Got unexpected login prompt") return False elif match == 3: # "Connection closed" logging.debug("Got 'Connection closed'") return False elif match == 4: # "Connection refused" logging.debug("Got 'Connection refused'") return False elif match == 5: # "Please wait" logging.debug("Got 'Please wait'") timeout = 30 continue elif match == 6: # prompt logging.debug("Got shell prompt -- logged in") return session else: # match == None logging.debug("Timeout elapsed or process terminated") return False
|
674d89d59d98f9c46de67a37c104d3cd5f42c9c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/674d89d59d98f9c46de67a37c104d3cd5f42c9c7/kvm_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7222,
67,
5819,
12,
3184,
16,
2201,
16,
6866,
16,
2021,
33,
2163,
4672,
3536,
1827,
1368,
279,
2632,
1479,
261,
18908,
13,
1450,
9892,
578,
399,
292,
2758,
18,
225,
5838,
364,
13494,
471,
5615,
12415,
18,
225,
971,
2021,
7368,
1323,
7336,
364,
876,
628,
326,
1151,
261,
73,
18,
75,
18,
279,
2201,
6866,
578,
279,
5972,
6866,
13,
1493,
2321,
18,
225,
632,
25888,
30,
1827,
1368,
279,
2632,
1479,
261,
18908,
13,
1450,
9892,
578,
399,
292,
2758,
18,
225,
632,
891,
1339,
30,
432,
417,
3489,
67,
12339,
578,
417,
3489,
67,
10304,
67,
3184,
791,
358,
20829,
603,
632,
891,
2201,
30,
1021,
2201,
358,
1366,
316,
4332,
358,
279,
2201,
6866,
632,
891,
6866,
30,
1021,
5972,
6866,
716,
8527,
279,
6873,
3925,
632,
891,
2021,
30,
1021,
943,
2840,
813,
3734,
261,
267,
3974,
13,
358,
2529,
364,
1517,
2235,
434,
326,
3925,
12131,
261,
77,
18,
73,
18,
326,
315,
4704,
1846,
3071,
6,
6866,
16,
326,
2201,
6866,
16,
326,
5972,
6866,
16,
5527,
13,
225,
632,
2463,
30,
1053,
603,
2216,
471,
1083,
3541,
18,
3536,
2201,
67,
13325,
67,
1883,
273,
374,
225,
1323,
1053,
30,
261,
1916,
16,
977,
13,
273,
1339,
18,
896,
67,
12198,
67,
2722,
67,
1369,
67,
8436,
12,
306,
86,
6,
63,
37,
69,
65,
266,
1846,
3071,
3113,
436,
6,
63,
52,
84,
65,
2234,
5581,
87,
26788,
3113,
436,
6,
17134,
87,
26625,
48,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7222,
67,
5819,
12,
3184,
16,
2201,
16,
6866,
16,
2021,
33,
2163,
4672,
3536,
1827,
1368,
279,
2632,
1479,
261,
18908,
13,
1450,
9892,
578,
399,
292,
2758,
18,
225,
5838,
364,
13494,
471,
5615,
12415,
18,
225,
971,
2021,
7368,
1323,
7336,
364,
876,
628,
326,
1151,
261,
73,
18,
75,
18,
279,
2201,
6866,
578,
279,
5972,
6866,
13,
1493,
2321,
18,
225,
632,
25888,
30,
1827,
1368,
279,
2632,
1479,
261,
18908,
13,
1450,
9892,
578,
399,
292,
2758,
18,
225,
632,
891,
1339,
30,
432,
417,
3489,
67,
12339,
578,
417,
3489,
67,
10304,
67,
3184,
791,
358,
20829,
603,
632,
891,
2201,
30,
1021,
2201,
358,
1366,
316,
4332,
358,
279,
2
] |
open(directory+'term_index.html', 'w').write(str)
|
open(directory+'epydoc-index.html', 'w').write(str) self._show_private = 'both' if self._show_private == 'both': self._show_both = 1 self._show_private = 0 self._write_docs(directory, verbose) self._show_private = 1 self._cssfile = '../'+self._cssfile self._write_docs(os.path.join(directory, 'private'), verbose) else: self._write_docs(directory, verbose) self._show_private = 0 self._write_css(directory) self._write_help(directory) def _write_docs(self, directory, verbose): if directory[-1] != '/': directory = directory + '/' if not os.path.isdir(directory): if os.path.exists(directory): raise ValueError('%r is not a directory' % directory) os.mkdir(directory)
|
def write(self, directory, verbose=1): """## Write the documentation to the given directory.""" if directory in ('', None): directory = './' if directory[-1] != '/': directory = directory + '/'
|
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
16,
3988,
33,
21,
4672,
3536,
1189,
2598,
326,
7323,
358,
326,
864,
1867,
12123,
309,
1867,
316,
7707,
2187,
599,
4672,
1867,
273,
26544,
309,
1867,
18919,
21,
65,
480,
2023,
30,
1867,
273,
1867,
397,
2023,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1045,
12,
2890,
16,
1867,
16,
3988,
33,
21,
4672,
3536,
1189,
2598,
326,
7323,
358,
326,
864,
1867,
12123,
309,
1867,
316,
7707,
2187,
599,
4672,
1867,
273,
26544,
309,
1867,
18919,
21,
65,
480,
2023,
30,
1867,
273,
1867,
397,
2023,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
visitor.save()
|
try: visitor.save() except DatabaseError: pass
|
def process_request(self, request): # don't process AJAX requests if request.is_ajax(): return
|
7c74163196be738174e70d9f121da680cf9cdf66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7421/7c74163196be738174e70d9f121da680cf9cdf66/middleware.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
4672,
468,
2727,
1404,
1207,
22355,
3285,
309,
590,
18,
291,
67,
12813,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2293,
12,
2890,
16,
590,
4672,
468,
2727,
1404,
1207,
22355,
3285,
309,
590,
18,
291,
67,
12813,
13332,
327,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if size <= i: i = size - 1 self._unread(c[i+1:]) return bufs + c[:i+1] else: if len(c) > size: i = size - 1 bufs = bufs + c size = size - len(c) readsize = min(size, int(readsize * 1.1)) if readsize > self.min_readsize: self.min_readsize = readsize
|
bufs.append(c[:i+1]) self._unread(c[i+1:]) return ''.join(bufs) bufs.append(c) size = size - len(c) readsize = min(size, readsize * 2)
|
def readline(self, size=-1): if size < 0: size = sys.maxint # Line can be as long as maxint readsize = self.min_readsize # Read from file in small chunks else: readsize = size # Only read in as much as specified
|
b97597316b1176e62d538c812b9e468ff3372b6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b97597316b1176e62d538c812b9e468ff3372b6b/gzip.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
2868,
468,
5377,
848,
506,
487,
1525,
487,
943,
474,
855,
1467,
273,
365,
18,
1154,
67,
896,
1467,
282,
468,
2720,
628,
585,
316,
5264,
6055,
469,
30,
855,
1467,
273,
963,
7734,
468,
5098,
855,
316,
487,
9816,
487,
1269,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
2868,
468,
5377,
848,
506,
487,
1525,
487,
943,
474,
855,
1467,
273,
365,
18,
1154,
67,
896,
1467,
282,
468,
2720,
628,
585,
316,
5264,
6055,
469,
30,
855,
1467,
273,
963,
7734,
468,
5098,
855,
316,
487,
9816,
487,
1269,
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,
-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
] |
return Time(ctx.eval(self.time))
|
compiling(self.loc) return Time(self.loc, ctx.eval(self.time))
|
def compile(self, ctx): return Time(ctx.eval(self.time))
|
94506ad601e8639d16184a6d5789d5fc03754d55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/94506ad601e8639d16184a6d5789d5fc03754d55/atl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
1103,
4672,
327,
2647,
12,
5900,
18,
8622,
12,
2890,
18,
957,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4074,
12,
2890,
16,
1103,
4672,
327,
2647,
12,
5900,
18,
8622,
12,
2890,
18,
957,
3719,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
instanceName == "%s%s%d" % (instanceName, tl, len(self._moduleDict))
|
instanceName = "%s%s%d" % (instanceName, tl, len(self._moduleDict))
|
def _makeUniqueInstanceName(self, instanceName=None): """Ensure that instanceName is unique or create a new unique instanceName.
|
12fefabeae68613cf461cc39a3f87554f4b76ecc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/12fefabeae68613cf461cc39a3f87554f4b76ecc/moduleManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
6303,
22520,
12,
2890,
16,
21090,
33,
7036,
4672,
3536,
12512,
716,
21090,
353,
3089,
578,
752,
279,
394,
3089,
21090,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
6303,
22520,
12,
2890,
16,
21090,
33,
7036,
4672,
3536,
12512,
716,
21090,
353,
3089,
578,
752,
279,
394,
3089,
21090,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return False
|
return False return True
|
def can_handle(cls, device_info, debug=False): USBMS.can_handle(device_info, debug) if islinux: if device_info[3] == 'Bookeen' and device_info[4] == 'Cybook Gen3': return True return False
|
288b64529c4caf5472d532fedf3abaf04c86ec35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/288b64529c4caf5472d532fedf3abaf04c86ec35/driver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
4110,
12,
6429,
16,
2346,
67,
1376,
16,
1198,
33,
8381,
4672,
11836,
38,
3537,
18,
4169,
67,
4110,
12,
5964,
67,
1376,
16,
1198,
13,
309,
353,
20132,
30,
309,
2346,
67,
1376,
63,
23,
65,
422,
296,
9084,
73,
275,
11,
471,
2346,
67,
1376,
63,
24,
65,
422,
296,
17992,
3618,
10938,
23,
4278,
327,
1053,
327,
1083,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
848,
67,
4110,
12,
6429,
16,
2346,
67,
1376,
16,
1198,
33,
8381,
4672,
11836,
38,
3537,
18,
4169,
67,
4110,
12,
5964,
67,
1376,
16,
1198,
13,
309,
353,
20132,
30,
309,
2346,
67,
1376,
63,
23,
65,
422,
296,
9084,
73,
275,
11,
471,
2346,
67,
1376,
63,
24,
65,
422,
296,
17992,
3618,
10938,
23,
4278,
327,
1053,
327,
1083,
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,
-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
] |
return self.context.getProperty('location', '')
|
return self._getProperty('location')
|
def get_location(self): return self.context.getProperty('location', '')
|
16abf2ea76793957c39dc00347fc2883d161d2f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12186/16abf2ea76793957c39dc00347fc2883d161d2f4/personalpreferences.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3562,
12,
2890,
4672,
327,
365,
18,
2472,
18,
588,
1396,
2668,
3562,
2187,
28707,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3562,
12,
2890,
4672,
327,
365,
18,
2472,
18,
588,
1396,
2668,
3562,
2187,
28707,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
argv0 = quote_arg(argv[0])
|
def _exec_command( command, use_shell=None, **env ): log.debug('_exec_command(...)') if use_shell is None: use_shell = os.name=='posix' using_command = 0 if use_shell: # We use shell (unless use_shell==0) so that wildcards can be # used. sh = os.environ.get('SHELL','/bin/sh') if type(command) is type([]): argv = [sh,'-c',' '.join(command)] else: argv = [sh,'-c',command] else: # On NT, DOS we avoid using command.com as it's exit status is # not related to the exit status of a command. if type(command) is type([]): argv = command[:] else: argv = splitcmdline(command) if hasattr(os,'spawnvpe'): spawn_command = os.spawnvpe else: spawn_command = os.spawnve argv[0] = find_executable(argv[0]) if not os.path.isfile(argv[0]): log.warn('Executable %s does not exist' % (argv[0])) if os.name in ['nt','dos']: # argv[0] might be internal command argv = [os.environ['COMSPEC'],'/C']+argv using_command = 1 # sys.__std*__ is used instead of sys.std* because environments # like IDLE, PyCrust, etc overwrite sys.std* commands. so_fileno = sys.__stdout__.fileno() se_fileno = sys.__stderr__.fileno() so_flush = sys.__stdout__.flush se_flush = sys.__stderr__.flush so_dup = os.dup(so_fileno) se_dup = os.dup(se_fileno) outfile = tempfile.mktemp() fout = open(outfile,'w') if using_command: errfile = tempfile.mktemp() ferr = open(errfile,'w') log.debug('Running %s(%s,%r,%r,os.environ)' \ % (spawn_command.__name__,os.P_WAIT,argv[0],argv)) so_flush() se_flush() os.dup2(fout.fileno(),so_fileno) if using_command: os.dup2(ferr.fileno(),se_fileno) else: os.dup2(fout.fileno(),se_fileno) argv0 = quote_arg(argv[0]) try: status = spawn_command(os.P_WAIT,argv0,argv,os.environ) except OSError,errmess: status = 999 sys.stderr.write('%s: %s'%(errmess,argv[0])) so_flush() se_flush() os.dup2(so_dup,so_fileno) os.dup2(se_dup,se_fileno) fout.close() fout = open(outfile,'r') text = fout.read() fout.close() os.remove(outfile) if using_command: ferr.close() ferr = open(errfile,'r') errmess = ferr.read() ferr.close() os.remove(errfile) if errmess and not status: status = 998 if text: text = text + '\n' text = '%sCOMMAND %r FAILED: %s' %(text,command,errmess) if text[-1:]=='\n': text = text[:-1] if status is None: status = 0 return status, text
|
b51513377fd4619784f1fa1748037bb7318c81a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/b51513377fd4619784f1fa1748037bb7318c81a1/exec_command.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
67,
3076,
12,
1296,
16,
999,
67,
10304,
33,
7036,
16,
2826,
3074,
262,
30,
613,
18,
4148,
2668,
67,
4177,
67,
3076,
5825,
2506,
13,
225,
309,
999,
67,
10304,
353,
599,
30,
999,
67,
10304,
273,
1140,
18,
529,
18920,
24463,
11,
225,
1450,
67,
3076,
273,
374,
309,
999,
67,
10304,
30,
468,
1660,
999,
5972,
261,
28502,
999,
67,
10304,
631,
20,
13,
1427,
716,
21170,
848,
506,
468,
1399,
18,
699,
273,
1140,
18,
28684,
18,
588,
2668,
2664,
21943,
17023,
19,
4757,
19,
674,
6134,
309,
618,
12,
3076,
13,
353,
618,
3816,
65,
4672,
5261,
273,
306,
674,
11189,
17,
71,
17023,
2418,
5701,
12,
3076,
25887,
469,
30,
5261,
273,
306,
674,
11189,
17,
71,
2187,
3076,
65,
469,
30,
468,
2755,
20064,
16,
463,
4618,
732,
4543,
1450,
1296,
18,
832,
487,
518,
1807,
2427,
1267,
353,
468,
486,
3746,
358,
326,
2427,
1267,
434,
279,
1296,
18,
309,
618,
12,
3076,
13,
353,
618,
3816,
65,
4672,
5261,
273,
1296,
10531,
65,
469,
30,
5261,
273,
1416,
4172,
1369,
12,
3076,
13,
225,
309,
3859,
12,
538,
11189,
1752,
9533,
90,
347,
11,
4672,
12560,
67,
3076,
273,
1140,
18,
1752,
9533,
90,
347,
469,
30,
12560,
67,
3076,
273,
1140,
18,
1752,
9533,
537,
5261,
63,
20,
65,
273,
1104,
67,
17751,
12,
19485,
63,
20,
5717,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
19485,
63,
20,
65,
4672,
613,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4177,
67,
3076,
12,
1296,
16,
999,
67,
10304,
33,
7036,
16,
2826,
3074,
262,
30,
613,
18,
4148,
2668,
67,
4177,
67,
3076,
5825,
2506,
13,
225,
309,
999,
67,
10304,
353,
599,
30,
999,
67,
10304,
273,
1140,
18,
529,
18920,
24463,
11,
225,
1450,
67,
3076,
273,
374,
309,
999,
67,
10304,
30,
468,
1660,
999,
5972,
261,
28502,
999,
67,
10304,
631,
20,
13,
1427,
716,
21170,
848,
506,
468,
1399,
18,
699,
273,
1140,
18,
28684,
18,
588,
2668,
2664,
21943,
17023,
19,
4757,
19,
674,
6134,
309,
618,
12,
3076,
13,
353,
618,
3816,
65,
4672,
5261,
273,
306,
674,
11189,
17,
71,
17023,
2418,
5701,
12,
3076,
25887,
469,
30,
2
] |
|
cmd_solink = $(LD) -shared $(LDFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LIBS)
|
cmd_solink = $(LD) -shared $(LDFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group
|
ifdef V quiet=
|
33fe67cb2be7bc93b3820f3805f84fd521c8455c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/33fe67cb2be7bc93b3820f3805f84fd521c8455c/make.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
536,
776,
10902,
33,
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,
-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,
-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,
-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
] |
raise RegionLengthError, ('Range specified does not match'+
|
raise RegionLengthError, ('Range specified does not match '
|
def __init__(self, start, end, data): ''' Initializer. Can raise InvalidRegionSpecifiedError and RegionDoesNotMatchLengthError. '''
|
a7ece18aead8cb0c13d0a8e5054f36442f8132f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/a7ece18aead8cb0c13d0a8e5054f36442f8132f8/dataregion.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
787,
16,
679,
16,
501,
4672,
9163,
4378,
3926,
18,
4480,
1002,
1962,
5165,
17068,
668,
471,
9164,
10154,
1248,
2060,
1782,
668,
18,
9163,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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501,
4672,
9163,
4378,
3926,
18,
4480,
1002,
1962,
5165,
17068,
668,
471,
9164,
10154,
1248,
2060,
1782,
668,
18,
9163,
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,
-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,
-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
] |
times = windows_api.process_times(pid)
|
times = process_times(pid)
|
def get_process_cpu_time(pid): """ <Purpose> See process_times <Arguments> See process_times <Exceptions> See process_times <Returns> The amount of CPU time used by the kernel and user in seconds. """ # Get the times times = windows_api.process_times(pid) # Add kernel and user time together... It's in units of 100ns so divide # by 10,000,000 total_time = (times['KernelTime'] + times['UserTime'] ) / 10000000.0 return total_time
|
ca634464fbe1c9cd3de6c128109f725e1024341f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7272/ca634464fbe1c9cd3de6c128109f725e1024341f/windows_api.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2567,
67,
11447,
67,
957,
12,
6610,
4672,
3536,
411,
10262,
4150,
34,
2164,
1207,
67,
8293,
225,
411,
4628,
34,
2164,
1207,
67,
8293,
225,
411,
11416,
34,
2164,
1207,
67,
8293,
225,
411,
1356,
34,
1021,
3844,
434,
12154,
813,
1399,
635,
326,
5536,
471,
729,
316,
3974,
18,
3536,
468,
968,
326,
4124,
4124,
273,
1207,
67,
8293,
12,
6610,
13,
225,
468,
1436,
5536,
471,
729,
813,
9475,
2777,
282,
2597,
1807,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2567,
67,
11447,
67,
957,
12,
6610,
4672,
3536,
411,
10262,
4150,
34,
2164,
1207,
67,
8293,
225,
411,
4628,
34,
2164,
1207,
67,
8293,
225,
411,
11416,
34,
2164,
1207,
67,
8293,
225,
411,
1356,
34,
1021,
3844,
434,
12154,
813,
1399,
635,
326,
5536,
471,
729,
316,
3974,
18,
3536,
468,
968,
326,
4124,
4124,
273,
1207,
67,
8293,
12,
6610,
13,
225,
468,
1436,
5536,
471,
729,
813,
9475,
2777,
282,
2597,
1807,
316,
4971,
434,
2130,
2387,
1427,
12326,
468,
635,
1728,
16,
3784,
16,
3784,
2078,
67,
957,
273,
261,
8293,
3292,
11286,
950,
3546,
397,
4124,
3292,
1299,
950,
3546,
262,
342,
2130,
11706,
18,
20,
225,
327,
2078,
67,
2
] |
return '%s?batch_start%s=%s&batch_size.%s=%s%s' % (
|
return '%s?batch_start%s=%s&batch_size%s=%s%s' % (
|
def next_url(self): start = self.size + self.start if self.full_size > start: return '%s?batch_start%s=%s&batch_size.%s=%s%s' % ( self.base_url, self.name, start, self.name, self.size, self.extra_url)
|
17ed56e108ee254f159167909ccc32a79c319922 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/17ed56e108ee254f159167909ccc32a79c319922/batch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
718,
12,
2890,
4672,
787,
273,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1024,
67,
718,
12,
2890,
4672,
787,
273,
365,
18,
1467,
397,
365,
18,
1937,
309,
365,
18,
2854,
67,
1467,
405,
787,
30,
327,
1995,
87,
35,
5303,
67,
1937,
9,
87,
5095,
87,
10,
5303,
67,
1467,
9,
87,
5095,
87,
9,
87,
11,
738,
261,
365,
18,
1969,
67,
718,
16,
365,
18,
529,
16,
787,
16,
365,
18,
529,
16,
365,
18,
1467,
16,
365,
18,
7763,
67,
718,
13,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, request, queryset, title): DataGrid.__init__(self, request, queryset, title)
|
def __init__(self, *args, **kwargs): DataGrid.__init__(self, *args, **kwargs)
|
def __init__(self, request, queryset, title): DataGrid.__init__(self, request, queryset, title) self.listview_template = 'reviews/review_request_listview.html' self.profile_sort_field = 'sort_review_request_columns' self.profile_columns_field = 'review_request_columns' self.show_submitted = True self.submitter_url_name = "user" self.default_sort = ["-last_updated"] self.default_columns = [ "star", "summary", "submitter", "time_added", "last_updated_since" ]
|
e7cb1323f636e18c35febbc49e306ce1ae2bfb16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/e7cb1323f636e18c35febbc49e306ce1ae2bfb16/datagrids.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
1910,
6313,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
1098,
1945,
67,
3202,
273,
296,
266,
7061,
19,
16041,
67,
2293,
67,
1098,
1945,
18,
2620,
11,
365,
18,
5040,
67,
3804,
67,
1518,
273,
296,
3804,
67,
16041,
67,
2293,
67,
5112,
11,
365,
18,
5040,
67,
5112,
67,
1518,
273,
296,
16041,
67,
2293,
67,
5112,
11,
365,
18,
4500,
67,
31575,
273,
1053,
365,
18,
9297,
387,
67,
718,
67,
529,
273,
315,
1355,
6,
365,
18,
1886,
67,
3804,
273,
8247,
17,
2722,
67,
7007,
11929,
365,
18,
1886,
67,
5112,
273,
306,
315,
10983,
3113,
315,
7687,
3113,
315,
9297,
387,
3113,
315,
957,
67,
9665,
3113,
315,
2722,
67,
7007,
67,
9256,
6,
308,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
1098,
1945,
18,
2620,
11,
365,
18,
5040,
67,
3804,
67,
1518,
273,
296,
3804,
67,
16041,
67,
2293,
67,
5112,
11,
365,
18,
5040,
67,
5112,
67,
1518,
273,
296,
16041,
67,
2293,
67,
5112,
11,
365,
18,
4500,
67,
31575,
273,
1053,
365,
18,
9297,
387,
67,
718,
67,
529,
273,
315,
1355,
6,
365,
18,
1886,
67,
3804,
273,
8247,
17,
2722,
67,
7007,
11929,
365,
18,
1886,
67,
5112,
273,
306,
315,
10983,
2
] |
valids = self._valid_dict for name in self.list_inputs():
|
self.parent.update_inputs(self.name, invalid_ins) for name in invalid_ins:
|
def _pre_execute (self, force=False): """Prepares for execution by calling *tree_rooted()* and *check_config()* if their "dirty" flags are set, and by requesting that the parent Assembly update this Component's invalid inputs. Overrides of this function must call this version. """ if self._call_tree_rooted: self.tree_rooted() if self._call_check_config: self.check_config() self._call_check_config = False if force: outs = self.invalidate_deps() if (outs is None) or outs: if self.parent: self.parent.child_invalidated(self.name) else: if not self.is_valid(): self._call_execute = True elif self._num_input_caseiters > 0: self._call_execute = True # we're valid, but we're running anyway because of our input CaseIterators, # so we need to notify downstream comps so they grab our new outputs self.invalidate_deps() if self.parent is None: # if parent is None, we're not part of an Assembly # so Variable validity doesn't apply. Just execute. self._call_execute = True valids = self._valid_dict for name in self.list_inputs(): valids[name] = True else: valids = self._valid_dict invalid_ins = [inp for inp in self.list_inputs(connected=True) if valids.get(inp) is False] if invalid_ins: self._call_execute = True self.parent.update_inputs(self.name, invalid_ins) for name in invalid_ins: valids[name] = True elif self._call_execute == False and len(self.list_outputs(valid=False)): self._call_execute = True
|
f8b40b2169faff3f9d5cb7ff514ab5c5f0ccf45a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/f8b40b2169faff3f9d5cb7ff514ab5c5f0ccf45a/component.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1484,
67,
8837,
261,
2890,
16,
2944,
33,
8381,
4672,
3536,
18486,
364,
4588,
635,
4440,
380,
3413,
67,
3085,
329,
1435,
14,
471,
380,
1893,
67,
1425,
1435,
14,
309,
3675,
315,
18013,
6,
2943,
854,
444,
16,
471,
635,
18709,
716,
326,
982,
2970,
11534,
1089,
333,
5435,
1807,
2057,
4540,
18,
225,
531,
9857,
434,
333,
445,
1297,
745,
333,
1177,
18,
3536,
309,
365,
6315,
1991,
67,
3413,
67,
3085,
329,
30,
365,
18,
3413,
67,
3085,
329,
1435,
225,
309,
365,
6315,
1991,
67,
1893,
67,
1425,
30,
365,
18,
1893,
67,
1425,
1435,
365,
6315,
1991,
67,
1893,
67,
1425,
273,
1083,
225,
309,
2944,
30,
28266,
273,
365,
18,
5387,
340,
67,
14877,
1435,
309,
261,
20125,
353,
599,
13,
578,
28266,
30,
309,
365,
18,
2938,
30,
365,
18,
2938,
18,
3624,
67,
5387,
690,
12,
2890,
18,
529,
13,
469,
30,
309,
486,
365,
18,
291,
67,
877,
13332,
365,
6315,
1991,
67,
8837,
273,
1053,
1327,
365,
6315,
2107,
67,
2630,
67,
3593,
27270,
405,
374,
30,
365,
6315,
1991,
67,
8837,
273,
1053,
468,
732,
4565,
923,
16,
1496,
732,
4565,
3549,
13466,
2724,
434,
3134,
810,
12605,
2360,
3062,
16,
468,
1427,
732,
1608,
358,
5066,
18186,
13979,
1427,
2898,
11086,
3134,
394,
6729,
365,
18,
5387,
340,
67,
14877,
1435,
225,
309,
365,
18,
2938,
353,
599,
30,
468,
309,
982,
353,
599,
16,
732,
4565,
486,
1087,
434,
392,
2970,
11534,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1484,
67,
8837,
261,
2890,
16,
2944,
33,
8381,
4672,
3536,
18486,
364,
4588,
635,
4440,
380,
3413,
67,
3085,
329,
1435,
14,
471,
380,
1893,
67,
1425,
1435,
14,
309,
3675,
315,
18013,
6,
2943,
854,
444,
16,
471,
635,
18709,
716,
326,
982,
2970,
11534,
1089,
333,
5435,
1807,
2057,
4540,
18,
225,
531,
9857,
434,
333,
445,
1297,
745,
333,
1177,
18,
3536,
309,
365,
6315,
1991,
67,
3413,
67,
3085,
329,
30,
365,
18,
3413,
67,
3085,
329,
1435,
225,
309,
365,
6315,
1991,
67,
1893,
67,
1425,
30,
365,
18,
1893,
67,
1425,
1435,
365,
6315,
1991,
67,
1893,
67,
1425,
273,
1083,
225,
309,
2944,
30,
28266,
273,
365,
18,
5387,
2
] |
def runsource(self, source, filename='<input>', symbol='single'): source = ' source.encode(self.encoding))
|
def runsource(self, source, filename='<input>', symbol='single', encode=True): if encode: source = ' source.encode(self.encoding))
|
def runsource(self, source, filename='<input>', symbol='single'): source = '# coding: %s\n%s' % (self.encoding, source.encode(self.encoding)) return code.InteractiveInterpreter.runsource(self, source, filename, symbol)
|
54f5835ce2bcad2b0db6e1ff7f75caf78d4f8c21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/54f5835ce2bcad2b0db6e1ff7f75caf78d4f8c21/repl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3168,
12,
2890,
16,
1084,
16,
1544,
2218,
32,
2630,
1870,
16,
3273,
2218,
7526,
11,
4672,
1084,
273,
2946,
14848,
30,
738,
87,
64,
82,
9,
87,
11,
738,
261,
2890,
18,
5999,
16,
1084,
18,
3015,
12,
2890,
18,
5999,
3719,
327,
981,
18,
26442,
30010,
18,
2681,
3168,
12,
2890,
16,
1084,
16,
1544,
16,
3273,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3168,
12,
2890,
16,
1084,
16,
1544,
2218,
32,
2630,
1870,
16,
3273,
2218,
7526,
11,
4672,
1084,
273,
2946,
14848,
30,
738,
87,
64,
82,
9,
87,
11,
738,
261,
2890,
18,
5999,
16,
1084,
18,
3015,
12,
2890,
18,
5999,
3719,
327,
981,
18,
26442,
30010,
18,
2681,
3168,
12,
2890,
16,
1084,
16,
1544,
16,
3273,
13,
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,
-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
] |
v['fcshlib_FCFLAGS'] = ['-fpic'] v['fcshlib_LINKFLAGS'] = ['-shared']
|
v['FCFLAGS_fcshlib'] = ['-fpic'] v['LINKFLAGS_fcshlib'] = ['-shared']
|
def fc_flags(conf): v = conf.env v['FC_SRC_F'] = '' v['FC_TGT_F'] = ['-c', '-o', ''] v['FCINCPATH_ST'] = '-I%s' v['FCDEFINES_ST'] = '-D%s' if not v['LINK_FC']: v['LINK_FC'] = v['FC'] v['FCLNK_SRC_F'] = '' v['FCLNK_TGT_F'] = ['-o', ''] v['fcshlib_FCFLAGS'] = ['-fpic'] v['fcshlib_LINKFLAGS'] = ['-shared'] v['fcshlib_PATTERN'] = 'lib%s.so' v['fcstlib_PATTERN'] = 'lib%s.a'
|
ed52d6dad6bae794da483232dafcd1b94eaf3518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/ed52d6dad6bae794da483232dafcd1b94eaf3518/fc_config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
67,
7133,
12,
3923,
4672,
331,
273,
2195,
18,
3074,
225,
331,
3292,
4488,
67,
28413,
67,
42,
3546,
565,
273,
875,
331,
3292,
4488,
67,
56,
16506,
67,
42,
3546,
565,
273,
10228,
17,
71,
2187,
2400,
83,
2187,
875,
65,
331,
3292,
4488,
23213,
4211,
67,
882,
3546,
225,
273,
2400,
45,
9,
87,
11,
331,
3292,
4488,
12904,
3740,
55,
67,
882,
3546,
225,
273,
2400,
40,
9,
87,
11,
225,
309,
486,
331,
3292,
10554,
67,
4488,
3546,
30,
331,
3292,
10554,
67,
4488,
3546,
273,
331,
3292,
4488,
3546,
331,
3292,
4488,
48,
50,
47,
67,
28413,
67,
42,
3546,
273,
875,
331,
3292,
4488,
48,
50,
47,
67,
56,
16506,
67,
42,
3546,
273,
10228,
17,
83,
2187,
875,
65,
225,
331,
3292,
4488,
17836,
67,
7142,
674,
2941,
3546,
282,
273,
10228,
17,
7944,
335,
3546,
331,
3292,
10554,
17836,
67,
7142,
674,
2941,
3546,
273,
10228,
17,
11574,
3546,
331,
3292,
7142,
674,
2941,
67,
10831,
3546,
282,
273,
296,
2941,
9,
87,
18,
2048,
11,
225,
331,
3292,
7142,
334,
2941,
67,
10831,
3546,
282,
273,
296,
2941,
9,
87,
18,
69,
11,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
67,
7133,
12,
3923,
4672,
331,
273,
2195,
18,
3074,
225,
331,
3292,
4488,
67,
28413,
67,
42,
3546,
565,
273,
875,
331,
3292,
4488,
67,
56,
16506,
67,
42,
3546,
565,
273,
10228,
17,
71,
2187,
2400,
83,
2187,
875,
65,
331,
3292,
4488,
23213,
4211,
67,
882,
3546,
225,
273,
2400,
45,
9,
87,
11,
331,
3292,
4488,
12904,
3740,
55,
67,
882,
3546,
225,
273,
2400,
40,
9,
87,
11,
225,
309,
486,
331,
3292,
10554,
67,
4488,
3546,
30,
331,
3292,
10554,
67,
4488,
3546,
273,
331,
3292,
4488,
3546,
331,
3292,
4488,
48,
50,
47,
67,
28413,
67,
42,
3546,
273,
875,
331,
3292,
4488,
48,
50,
47,
67,
56,
16506,
67,
2
] |
elif len(oper_cells) > self.options.get('max_operations', 15):
|
elif len(oper_cells) > max_operations:
|
def _get_html_label(self): # Get the class name & contextualize it. classname = self.class_doc.canonical_name classname = classname.contextualize(self.context.canonical_name) # If we're collapsed, display the node as a single box. if self.collapsed: return self._COLLAPSED_LABEL % (self.bgcolor, classname) # Construct the attribute list. (If it's too long, truncate) attrib_cells = [self._attribute_cell(a) for a in self.attributes] if len(attrib_cells) == 0: attrib_cells = ['<TR><TD></TD></TR>'] elif len(attrib_cells) > self.options.get('max_attributes', 15): attrib_cells[max_attributes-2:-1] = ['<TR><TD>...</TD></TR>'] attributes = ''.join(attrib_cells) # Construct the operation list. (If it's too long, truncate) oper_cells = [self._operation_cell(a) for a in self.operations] if len(oper_cells) == 0: oper_cells = ['<TR><TD></TD></TR>'] elif len(oper_cells) > self.options.get('max_operations', 15): oper_cells[max_operations-2:-1] = ['<TR><TD>...</TD></TR>'] operations = ''.join(oper_cells)
|
690188d9e8599bbb6e43471bc184695c43959ebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/690188d9e8599bbb6e43471bc184695c43959ebd/dotgraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2620,
67,
1925,
12,
2890,
4672,
468,
968,
326,
667,
508,
473,
22724,
554,
518,
18,
7479,
273,
365,
18,
1106,
67,
2434,
18,
18288,
67,
529,
7479,
273,
7479,
18,
2472,
1462,
554,
12,
2890,
18,
2472,
18,
18288,
67,
529,
13,
225,
468,
971,
732,
4565,
17027,
16,
2562,
326,
756,
487,
279,
2202,
3919,
18,
309,
365,
18,
1293,
13886,
30,
327,
365,
6315,
4935,
48,
2203,
18204,
67,
13545,
738,
261,
2890,
18,
12370,
3266,
16,
7479,
13,
225,
468,
14291,
326,
1566,
666,
18,
225,
261,
2047,
518,
1807,
4885,
1525,
16,
10310,
13,
5885,
67,
14741,
273,
306,
2890,
6315,
4589,
67,
3855,
12,
69,
13,
364,
279,
316,
365,
18,
4350,
65,
309,
562,
12,
14588,
67,
14741,
13,
422,
374,
30,
5885,
67,
14741,
273,
10228,
32,
4349,
4438,
23409,
4695,
23409,
4695,
4349,
1870,
65,
1327,
562,
12,
14588,
67,
14741,
13,
405,
365,
18,
2116,
18,
588,
2668,
1896,
67,
4350,
2187,
4711,
4672,
5885,
67,
14741,
63,
1896,
67,
4350,
17,
22,
30,
17,
21,
65,
273,
10228,
32,
4349,
4438,
23409,
34,
2777,
1757,
23409,
4695,
4349,
1870,
65,
1677,
273,
875,
18,
5701,
12,
14588,
67,
14741,
13,
225,
468,
14291,
326,
1674,
666,
18,
225,
261,
2047,
518,
1807,
4885,
1525,
16,
10310,
13,
2255,
67,
14741,
273,
306,
2890,
6315,
7624,
67,
3855,
12,
69,
13,
364,
279,
316,
365,
18,
17542,
65,
309,
562,
12,
4063,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2620,
67,
1925,
12,
2890,
4672,
468,
968,
326,
667,
508,
473,
22724,
554,
518,
18,
7479,
273,
365,
18,
1106,
67,
2434,
18,
18288,
67,
529,
7479,
273,
7479,
18,
2472,
1462,
554,
12,
2890,
18,
2472,
18,
18288,
67,
529,
13,
225,
468,
971,
732,
4565,
17027,
16,
2562,
326,
756,
487,
279,
2202,
3919,
18,
309,
365,
18,
1293,
13886,
30,
327,
365,
6315,
4935,
48,
2203,
18204,
67,
13545,
738,
261,
2890,
18,
12370,
3266,
16,
7479,
13,
225,
468,
14291,
326,
1566,
666,
18,
225,
261,
2047,
518,
1807,
4885,
1525,
16,
10310,
13,
5885,
67,
14741,
273,
306,
2890,
6315,
4589,
67,
3855,
12,
69,
13,
364,
279,
316,
2
] |
self.assertEqual(keys, self._dkeys)
|
dkeys = self._dict.keys() dkeys.sort() self.assertEqual(keys, dkeys)
|
def keys_helper(self, f): keys = f.keys() keys.sort() self.assertEqual(keys, self._dkeys) return keys
|
c08fe82b32386d2621f4c6c17cc334c7a3a924b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c08fe82b32386d2621f4c6c17cc334c7a3a924b9/test_dumbdbm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
67,
4759,
12,
2890,
16,
284,
4672,
1311,
273,
284,
18,
2452,
1435,
1311,
18,
3804,
1435,
302,
2452,
273,
365,
6315,
1576,
18,
2452,
1435,
302,
2452,
18,
3804,
1435,
365,
18,
11231,
5812,
12,
2452,
16,
302,
2452,
13,
327,
1311,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
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,
1311,
67,
4759,
12,
2890,
16,
284,
4672,
1311,
273,
284,
18,
2452,
1435,
1311,
18,
3804,
1435,
302,
2452,
273,
365,
6315,
1576,
18,
2452,
1435,
302,
2452,
18,
3804,
1435,
365,
18,
11231,
5812,
12,
2452,
16,
302,
2452,
13,
327,
1311,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rows = model.read(cr, uid, datas['ids'], result['fields'].keys(), context) ids2 = map(itemgetter('id'), rows) if datas['ids'] != ids2: rows_new = [] for id in datas['ids']: rows_new += [elem for elem in rows if elem['id'] == id] rows = rows_new
|
rows = model.read(cr, uid, datas['ids'], result['fields'].keys(), context) ids2 = map(itemgetter('id'), rows) if datas['ids'] != ids2: rows_new = [] for id in datas['ids']: rows_new += [elem for elem in rows if elem['id'] == id] rows = rows_new
|
def get_groupby_data(groupby = [], domain = []): records = model.read_group(cr, uid, domain, fields_order, groupby , 0, None, context) for rec in records: rec['__group'] = True rec['__no_leaf'] = self.groupby_no_leaf rec['__grouped_by'] = groupby[0] if (isinstance(groupby, list) and groupby) else groupby for f in fields_order: if f not in rec: rec.update({f:False}) elif isinstance(rec[f], tuple): rec[f] = rec[f][1] rows.append(rec) inner_groupby = (rec.get('__context', {})).get('group_by',[]) inner_domain = rec.get('__domain', []) if inner_groupby: get_groupby_data(inner_groupby, inner_domain) else: if self.groupby_no_leaf: continue child_ids = model.search(cr, uid, inner_domain) res = model.read(cr, uid, child_ids, result['fields'].keys(), context) res.sort(lambda x,y: cmp(ids.index(x['id']), ids.index(y['id']))) rows.extend(res)
|
19bf88b997406a3e45052934a78e76801c9ec277 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/19bf88b997406a3e45052934a78e76801c9ec277/ps_list.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1655,
1637,
67,
892,
12,
1655,
1637,
273,
5378,
16,
2461,
273,
5378,
4672,
3853,
273,
225,
938,
18,
896,
67,
1655,
12,
3353,
16,
4555,
16,
2461,
16,
1466,
67,
1019,
16,
13126,
269,
374,
16,
599,
16,
819,
13,
364,
1950,
316,
3853,
30,
1950,
3292,
972,
1655,
3546,
273,
1053,
1950,
3292,
972,
2135,
67,
12070,
3546,
273,
365,
18,
1655,
1637,
67,
2135,
67,
12070,
1950,
3292,
972,
25472,
67,
1637,
3546,
273,
13126,
63,
20,
65,
309,
261,
291,
1336,
12,
1655,
1637,
16,
666,
13,
471,
13126,
13,
469,
13126,
364,
284,
316,
1466,
67,
1019,
30,
309,
284,
486,
316,
1950,
30,
1950,
18,
2725,
12590,
74,
30,
8381,
6792,
1327,
1549,
12,
3927,
63,
74,
6487,
3193,
4672,
1950,
63,
74,
65,
273,
1950,
63,
74,
6362,
21,
65,
2595,
18,
6923,
12,
3927,
13,
3443,
67,
1655,
1637,
273,
261,
3927,
18,
588,
2668,
972,
2472,
2187,
2618,
13,
2934,
588,
2668,
1655,
67,
1637,
2187,
63,
5717,
3443,
67,
4308,
273,
1950,
18,
588,
2668,
972,
4308,
2187,
5378,
13,
309,
3443,
67,
1655,
1637,
30,
336,
67,
1655,
1637,
67,
892,
12,
7872,
67,
1655,
1637,
16,
3443,
67,
4308,
13,
469,
30,
309,
365,
18,
1655,
1637,
67,
2135,
67,
12070,
30,
1324,
1151,
67,
2232,
273,
938,
18,
3072,
12,
3353,
16,
4555,
16,
3443,
67,
4308,
13,
400,
273,
938,
18,
896,
12,
3353,
16,
4555,
16,
1151,
67,
2232,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1655,
1637,
67,
892,
12,
1655,
1637,
273,
5378,
16,
2461,
273,
5378,
4672,
3853,
273,
225,
938,
18,
896,
67,
1655,
12,
3353,
16,
4555,
16,
2461,
16,
1466,
67,
1019,
16,
13126,
269,
374,
16,
599,
16,
819,
13,
364,
1950,
316,
3853,
30,
1950,
3292,
972,
1655,
3546,
273,
1053,
1950,
3292,
972,
2135,
67,
12070,
3546,
273,
365,
18,
1655,
1637,
67,
2135,
67,
12070,
1950,
3292,
972,
25472,
67,
1637,
3546,
273,
13126,
63,
20,
65,
309,
261,
291,
1336,
12,
1655,
1637,
16,
666,
13,
471,
13126,
13,
469,
13126,
364,
284,
316,
1466,
67,
1019,
30,
309,
284,
486,
316,
1950,
30,
1950,
18,
2725,
12590,
74,
30,
8381,
2
] |
dictDate = self.formatDate(dict[field])
|
dictDate = self.formatDate(value)
|
def Check_Object(self, dict): """ Check expected value by comparison to the data contained in the object attributes @type dict : dictionary @param dict : dictionary with expected item attributes values for checking {"attributeName":"expected value",...} """ if self.logger: self.logger.SetChecked(True) # check the changing values for field in dict.keys(): if field == "displayName": # display name checking if self.isMailMessage: d_name = "%s" %self.item.subject else: d_name = "%s" %self.item.displayName if not dict[field] == d_name : if self.logger: self.logger.ReportFailure("(On display name Checking) || object title = %s ; expected title = %s" %(d_name, dict[field])) else: if self.logger: self.logger.ReportPass("(On display name Checking)") elif field == "startDate": # start date checking startTime = self.item.startTime s_date = self.formatDate("%s/%s/%s" %(startTime.month, startTime.day, startTime.year) ) dictDate = self.formatDate(dict[field]) if not dictDate == s_date : if self.logger: self.logger.ReportFailure("(On start date Checking) || object start date = %s ; expected start date = %s" %(s_date, dictDate)) else: if self.logger: self.logger.ReportPass("(On start date Checking)") elif field == "startTime": # start time checking startTime = self.item.startTime s_time = getTime(startTime) if not dict[field] == s_time : if self.logger: self.logger.ReportFailure("(On start time Checking) || object start time = %s ; expected start time = %s" %(s_time, dict[field])) else: if self.logger: self.logger.ReportPass("(On start time Checking)") elif field == "endDate": # end date checking endTime = self.item.endTime e_date = self.formatDate("%s/%s/%s" %(endTime.month, endTime.day, endTime.year)) dictDate = self.formatDate(dict[field]) if not dictDate == e_date : if self.logger: self.logger.ReportFailure("(On end date Checking) || object end date = %s ; expected end date = %s" %(e_date, dictDate)) else: if self.logger: self.logger.ReportPass("(On end date Checking)") elif field == "endTime": # end time checking endTime = self.item.endTime e_time = getTime(endTime) if not dict[field] == e_time : if self.logger: self.logger.ReportFailure("(On end time Checking) || object end time = %s ; expected end time = %s" %(e_time, dict[field])) else: if self.logger: self.logger.ReportPass("(On end time Checking)") elif field == "location": # location checking loc = "%s" %self.item.location if not dict[field] == loc : if self.logger: self.logger.ReportFailure("(On location Checking) || object location = %s ; expected location = %s" %(loc, dict[field])) else: if self.logger: self.logger.ReportPass("(On location Checking)") elif field == "body": # body checking body = "%s" %self.item.body if not dict[field] == body : if self.logger: self.logger.ReportFailure("(On body Checking) || object body = %s ; expected body = %s" %(body, dict[field])) else: if self.logger: self.logger.ReportPass("(On body Checking)") elif field == "fromAddress": # from address checking f = "%s" %self.item.fromAddress if not dict[field] == f : if self.logger: self.logger.ReportFailure("(On from address Checking) || object from address = %s ; expected from address = %s" %(f, dict[field])) else: if self.logger: self.logger.ReportPass("(On from address Checking)") elif field == "toAddress": # to address checking t = "%s" %self.item.toAddress if not dict[field] == t : if self.logger: self.logger.ReportFailure("(On to address Checking) || object to address = %s ; expected to address = %s" %(t, dict[field])) else: if self.logger: self.logger.ReportPass("(On to address Checking)") elif field == "status": # status checking status = "%s" %string.upper(self.item.transparency) if not dict[field] == status : if self.logger: self.logger.ReportFailure("(On status Checking) || object status = %s ; expected status = %s" %(status, dict[field])) else: if self.logger: self.logger.ReportPass("(On status Checking)") elif field == "timeZone": # time zone checking timeZone = "%s" %self.item.startTime.tzname() if not dict[field] == timeZone : if self.logger: self.logger.ReportFailure("(On time zone Checking) || object time zone = %s ; expected time zone = %s" %(timeZone, dict[field])) else: if self.logger: self.logger.ReportPass("(On time zone Checking)") elif field == "alarm": # status checking alarm = self.item.startTime - self.item.reminderTime field = timedelta(minutes = string.atoi(dict[field])) if not field == alarm : if self.logger: self.logger.ReportFailure("(On alarm Checking) || object alarm = %s ; expected alarm = %s" %(alarm, field)) else: if self.logger: self.logger.ReportPass("(On alarm Checking)") elif field == "allDay": # status checking allDay = self.item.allDay if not dict[field] == allDay : if self.logger: self.logger.ReportFailure("(On all Day Checking) || object all day = %s ; expected all day = %s" %(allDay, dict[field])) else: if self.logger: self.logger.ReportPass("(On all Day Checking)") elif field == "stampMail": # Mail stamp checking kind = "%s" %self.item.getKind() if not string.find(kind, "MailMessage") == -1: stampMail = True else: stampMail = False if not dict[field] == stampMail : if self.logger: self.logger.ReportFailure("(On Mail Stamp Checking) || object Mail Stamp = %s ; expected Mail Stamp = %s" %(stampMail, dict[field])) else: if self.logger: self.logger.ReportPass("(On Mail Stamp Checking)") elif field == "stampTask": # Task stamp checking kind = "%s" %self.item.getKind() if not string.find(kind, "Task") == -1: stampTask = True else: stampTask = False if not dict[field] == stampTask : if self.logger: self.logger.ReportFailure("(On Task Stamp Checking) || object Task Stamp = %s ; expected Task Stamp = %s" %(stampTask, dict[field])) else: if self.logger: self.logger.ReportPass("(On Task Stamp Checking)") elif field == "stampEvent": # Event stamp checking kind = "%s" %self.item.getKind() if not string.find(kind, "CalendarEvent") == -1: stampEvent = True else: stampEvent = False if not dict[field] == stampEvent : if self.logger: self.logger.ReportFailure("(On Event Stamp Checking) || object Event Stamp = %s ; expected Event Stamp = %s" %(stampEvent, dict[field])) else: if self.logger: self.logger.ReportPass("(On Event Stamp Checking)") else: # Wrong check => set the report state to unchecked if self.logger: self.logger.SetChecked(False) #report the checkings if self.logger: self.logger.Report("Object state")
|
5c6ba404b99947f3210082287c79a9b81a402c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c6ba404b99947f3210082287c79a9b81a402c26/QAUITestAppLib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
67,
921,
12,
2890,
16,
2065,
4672,
3536,
2073,
2665,
460,
635,
5826,
358,
326,
501,
7542,
316,
326,
733,
1677,
632,
723,
2065,
294,
3880,
632,
891,
2065,
294,
3880,
598,
2665,
761,
1677,
924,
364,
6728,
12528,
4589,
461,
15563,
3825,
460,
3113,
2777,
97,
3536,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
694,
11454,
12,
5510,
13,
468,
866,
326,
12770,
924,
364,
652,
316,
2065,
18,
2452,
13332,
309,
652,
422,
315,
5417,
461,
6877,
468,
2562,
508,
6728,
309,
365,
18,
291,
6759,
1079,
30,
302,
67,
529,
273,
2213,
87,
6,
738,
2890,
18,
1726,
18,
7857,
469,
30,
302,
67,
529,
273,
2213,
87,
6,
738,
2890,
18,
1726,
18,
5417,
461,
309,
486,
2065,
63,
1518,
65,
422,
302,
67,
529,
294,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
4820,
5247,
2932,
12,
1398,
2562,
508,
24471,
13,
225,
747,
733,
2077,
273,
738,
87,
274,
2665,
2077,
273,
738,
87,
6,
8975,
72,
67,
529,
16,
2065,
63,
1518,
22643,
469,
30,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
4820,
6433,
2932,
12,
1398,
2562,
508,
24471,
2225,
13,
1327,
652,
422,
315,
1937,
1626,
6877,
468,
787,
1509,
6728,
8657,
273,
365,
18,
1726,
18,
1937,
950,
272,
67,
712,
273,
365,
18,
2139,
1626,
27188,
87,
5258,
87,
5258,
87,
6,
8975,
1937,
950,
18,
7496,
16,
8657,
18,
2881,
16,
8657,
18,
6874,
13,
262,
2065,
1626,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
67,
921,
12,
2890,
16,
2065,
4672,
3536,
2073,
2665,
460,
635,
5826,
358,
326,
501,
7542,
316,
326,
733,
1677,
632,
723,
2065,
294,
3880,
632,
891,
2065,
294,
3880,
598,
2665,
761,
1677,
924,
364,
6728,
12528,
4589,
461,
15563,
3825,
460,
3113,
2777,
97,
3536,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
694,
11454,
12,
5510,
13,
468,
866,
326,
12770,
924,
364,
652,
316,
2065,
18,
2452,
13332,
309,
652,
422,
315,
5417,
461,
6877,
468,
2562,
508,
6728,
309,
365,
18,
291,
6759,
1079,
30,
302,
67,
529,
273,
2213,
87,
6,
738,
2890,
18,
1726,
18,
7857,
469,
30,
302,
67,
529,
273,
2213,
87,
6,
738,
2890,
18,
2
] |
self._implicitNameOp('DELETE', append)
|
self._implicitNameOp('DELETE', tmpname)
|
def visitListComp(self, node): self.set_lineno(node) # setup list append = "$append%d" % self.__list_count self.__list_count = self.__list_count + 1 self.emit('BUILD_LIST', 0) self.emit('DUP_TOP') self.emit('LOAD_ATTR', 'append') self._implicitNameOp('STORE', append)
|
2baa123081849da33ef8ac1c37b56d04252d77cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2baa123081849da33ef8ac1c37b56d04252d77cc/pycodegen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
682,
2945,
12,
2890,
16,
756,
4672,
365,
18,
542,
67,
17782,
12,
2159,
13,
468,
3875,
666,
714,
273,
4662,
6923,
9,
72,
6,
738,
365,
16186,
1098,
67,
1883,
365,
16186,
1098,
67,
1883,
273,
365,
16186,
1098,
67,
1883,
397,
404,
365,
18,
18356,
2668,
20215,
67,
7085,
2187,
374,
13,
365,
18,
18356,
2668,
30387,
67,
10462,
6134,
365,
18,
18356,
2668,
7783,
67,
12043,
2187,
296,
6923,
6134,
365,
6315,
24357,
461,
3817,
2668,
13651,
2187,
714,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3757,
682,
2945,
12,
2890,
16,
756,
4672,
365,
18,
542,
67,
17782,
12,
2159,
13,
468,
3875,
666,
714,
273,
4662,
6923,
9,
72,
6,
738,
365,
16186,
1098,
67,
1883,
365,
16186,
1098,
67,
1883,
273,
365,
16186,
1098,
67,
1883,
397,
404,
365,
18,
18356,
2668,
20215,
67,
7085,
2187,
374,
13,
365,
18,
18356,
2668,
30387,
67,
10462,
6134,
365,
18,
18356,
2668,
7783,
67,
12043,
2187,
296,
6923,
6134,
365,
6315,
24357,
461,
3817,
2668,
13651,
2187,
714,
13,
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,
-100,
-100,
-100,
-100,
-100
] |
'description' : ('\n', ''),
|
def __init__(self, document): nodes.NodeVisitor.__init__(self, document) self.settings = settings = document.settings lcode = settings.language_code self.language = languages.get_language(lcode) self.head = [] self.body = [] self.foot = [] self.section_level = 0 self.context = [] self.topic_class = '' self.colspecs = [] self.compact_p = 1 self.compact_simple = None # the list style "*" bullet or "#" numbered self._list_char = [] # writing the header .TH and .SH NAME is postboned after # docinfo. self._docinfo = { "title" : "", "subtitle" : "", "manual_section" : "", "manual_group" : "", "author" : "", "date" : "", "copyright" : "", "version" : "", } self._in_docinfo = None self._active_table = None self._in_entry = None self.header_written = 0 self.authors = [] self.section_level = 0 # central definition of simple processing rules # what to output on : visit, depart self.defs = { 'definition' : ('', ''), 'definition_list' : ('', '.TP 0\n'), 'definition_list_item' : ('\n.TP', ''), 'description' : ('\n', ''), 'field_name' : ('\n.TP\n.B ', '\n'), 'literal' : ('\\fB', '\\fP'), 'literal_block' : ('\n.nf\n', '\n.fi\n'), 'option_list' : ('', '.TP 0\n'), 'option_list_item' : ('\n.TP', ''), 'reference' : (r'\fI\%', r'\fP'), #'target' : (r'\fI\%', r'\fP'), 'emphasis': ('\\fI', '\\fP'), 'strong' : ('\\fB', '\\fP'), 'term' : ('\n.B ', '\n'), 'title_reference' : ('\\fI', '\\fP'), } # TODO dont specify the newline before a dot-command, but ensure # check it is there.
|
2e86202953f5508878f482543956d988e25d6f8f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/2e86202953f5508878f482543956d988e25d6f8f/manpage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1668,
4672,
2199,
18,
907,
7413,
16186,
2738,
972,
12,
2890,
16,
1668,
13,
365,
18,
4272,
273,
1947,
273,
1668,
18,
4272,
328,
710,
273,
1947,
18,
4923,
67,
710,
365,
18,
4923,
273,
8191,
18,
588,
67,
4923,
12,
80,
710,
13,
365,
18,
1978,
273,
5378,
365,
18,
3432,
273,
5378,
365,
18,
10923,
273,
5378,
365,
18,
3464,
67,
2815,
273,
374,
365,
18,
2472,
273,
5378,
365,
18,
10476,
67,
1106,
273,
875,
365,
18,
1293,
15115,
273,
5378,
365,
18,
21038,
67,
84,
273,
404,
365,
18,
21038,
67,
9647,
273,
599,
468,
326,
666,
2154,
10971,
31650,
578,
13092,
1300,
329,
365,
6315,
1098,
67,
3001,
273,
5378,
468,
7410,
326,
1446,
263,
2455,
471,
263,
2664,
6048,
353,
1603,
70,
8184,
1839,
468,
997,
1376,
18,
365,
6315,
2434,
1376,
273,
288,
315,
2649,
6,
294,
23453,
315,
1717,
2649,
6,
294,
23453,
315,
19840,
67,
3464,
6,
294,
23453,
315,
19840,
67,
1655,
6,
294,
23453,
315,
4161,
6,
294,
23453,
315,
712,
6,
294,
23453,
315,
29187,
6,
294,
23453,
315,
1589,
6,
294,
23453,
289,
365,
6315,
267,
67,
2434,
1376,
273,
599,
365,
6315,
3535,
67,
2121,
273,
599,
365,
6315,
267,
67,
4099,
273,
599,
365,
18,
3374,
67,
9748,
273,
374,
365,
18,
19368,
273,
5378,
365,
18,
3464,
67,
2815,
273,
374,
468,
18291,
2379,
434,
4143,
4929,
2931,
468,
4121,
358,
876,
603,
294,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1668,
4672,
2199,
18,
907,
7413,
16186,
2738,
972,
12,
2890,
16,
1668,
13,
365,
18,
4272,
273,
1947,
273,
1668,
18,
4272,
328,
710,
273,
1947,
18,
4923,
67,
710,
365,
18,
4923,
273,
8191,
18,
588,
67,
4923,
12,
80,
710,
13,
365,
18,
1978,
273,
5378,
365,
18,
3432,
273,
5378,
365,
18,
10923,
273,
5378,
365,
18,
3464,
67,
2815,
273,
374,
365,
18,
2472,
273,
5378,
365,
18,
10476,
67,
1106,
273,
875,
365,
18,
1293,
15115,
273,
5378,
365,
18,
21038,
67,
84,
273,
404,
365,
18,
21038,
67,
9647,
273,
599,
468,
326,
666,
2154,
10971,
31650,
578,
13092,
1300,
329,
365,
6315,
1098,
67,
2
] |
|
add_error_message(doc, _('Authentication failed.'))
|
doc.addError(_('Authentication failed.'))
|
def main(): doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) parts = Utils.GetPathPieces() lenparts = parts and len(parts) if not parts or lenparts < 1: title = _('CGI script error') doc.SetTitle(title) doc.AddItem(Header(2, title)) add_error_message(doc, _('Invalid options to CGI script.')) doc.AddItem('<hr>') doc.AddItem(MailmanLogo()) print doc.Format() return # get the list and user's name listname = parts[0].lower() # open list try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: # Avoid cross-site scripting attacks safelistname = cgi.escape(listname) title = _('CGI script error') doc.SetTitle(title) doc.AddItem(Header(2, title)) add_error_message(doc, _('No such list <em>%(safelistname)s</em>')) doc.AddItem('<hr>') doc.AddItem(MailmanLogo()) print doc.Format() syslog('error', 'No such list "%s": %s\n', listname, e) return # The total contents of the user's response cgidata = cgi.FieldStorage(keep_blank_values=1) # Set the language for the page. If we're coming from the listinfo cgi, # we might have a 'language' key in the cgi data. That was an explicit # preference to view the page in, so we should honor that here. If that's # not available, use the list's default language. language = cgidata.getvalue('language', mlist.preferred_language) i18n.set_language(language) doc.set_language(language) if lenparts < 2: user = cgidata.getvalue('email') if not user: loginpage(mlist, doc, None, cgidata) print doc.Format() return else: user = Utils.LCDomain(Utils.UnobscureEmail(SLASH.join(parts[1:]))) # Sanity check the user, but be careful about leaking membership # information when we're using private rosters. if not mlist.isMember(user) and mlist.private_roster == 0: # Avoid cross-site scripting attacks safeuser = cgi.escape(user) add_error_message(doc, _('No such member: %(safeuser)s.')) loginpage(mlist, doc, None, cgidata) print doc.Format() return # Find the case preserved email address (the one the user subscribed with) lcuser = user.lower() try: cpuser = mlist.getMemberCPAddress(lcuser) except Errors.NotAMemberError: # This happens if the user isn't a member but we've got private rosters cpuser = None if lcuser == cpuser: cpuser = None # And now we know the user making the request, so set things up to for the # user's stored preferred language, overridden by any form settings for # their new language preference. userlang = cgidata.getvalue('language', mlist.getMemberLanguage(user)) doc.set_language(userlang) i18n.set_language(userlang) # See if this is VARHELP on topics. varhelp = None if cgidata.has_key('VARHELP'): varhelp = cgidata['VARHELP'].value elif os.environ.get('QUERY_STRING'): # POST methods, even if their actions have a query string, don't get # put into FieldStorage's keys :-( qs = cgi.parse_qs(os.environ['QUERY_STRING']).get('VARHELP') if qs and type(qs) == types.ListType: varhelp = qs[0] if varhelp: topic_details(mlist, doc, user, cpuser, userlang, varhelp) return # Are we processing an unsubscription request from the login screen? if cgidata.has_key('login-unsub'): # Because they can't supply a password for unsubscribing, we'll need # to do the confirmation dance. if mlist.isMember(user): mlist.ConfirmUnsubscription(user, userlang) else: syslog('mischief', 'Unsubscribe attempt of non-member w/ private rosters: %s', user) add_error_message( doc, _('The confirmation email has been sent.'), tag='') loginpage(mlist, doc, user, cgidata) print doc.Format() return # Are we processing a password reminder from the login screen? if cgidata.has_key('login-remind'): if mlist.isMember(user): mlist.MailUserPassword(user) else: syslog('mischief', 'Reminder attempt of non-member w/ private rosters: %s', user) add_error_message( doc, _('A reminder of your password has been emailed to you.'), tag='') loginpage(mlist, doc, user, cgidata) print doc.Format() return # Authenticate, possibly using the password supplied in the login page password = cgidata.getvalue('password', '').strip() if not mlist.WebAuthenticate((mm_cfg.AuthUser, mm_cfg.AuthListAdmin, mm_cfg.AuthSiteAdmin), password, user): # Not authenticated, so throw up the login page again. If they tried # to authenticate via cgi (instead of cookie), then print an error # message. if cgidata.has_key('password'): add_error_message(doc, _('Authentication failed.')) # So as not to allow membership leakage, prompt for the email # address and the password here. if mlist.private_roster <> 0: syslog('mischief', 'Login failure with private rosters: %s', user) user = None loginpage(mlist, doc, user, cgidata) print doc.Format() return # From here on out, the user is okay to view and modify their membership # options. The first set of checks does not require the list to be # locked. if cgidata.has_key('logout'): print mlist.ZapCookie(mm_cfg.AuthUser, user) loginpage(mlist, doc, user, cgidata) print doc.Format() return if cgidata.has_key('emailpw'): mlist.MailUserPassword(user) options_page( mlist, doc, user, cpuser, userlang, _('A reminder of your password has been emailed to you.')) print doc.Format() return if cgidata.has_key('othersubs'): hostname = mlist.host_name title = _('List subscriptions for %(user)s on %(hostname)s') doc.SetTitle(title) doc.AddItem(Header(2, title)) doc.AddItem(_('''Click on a link to visit your options page for the requested mailing list.''')) # Troll through all the mailing lists that match host_name and see if # the user is a member. If so, add it to the list. onlists = [] for gmlist in lists_of_member(mlist, user) + [mlist]: url = gmlist.GetOptionsURL(user) link = Link(url, gmlist.real_name) onlists.append((gmlist.real_name, link)) onlists.sort() items = OrderedList(*[link for name, link in onlists]) doc.AddItem(items) print doc.Format() return if cgidata.has_key('change-of-address'): # We could be changing the user's full name, email address, or both membername = cgidata.getvalue('fullname') newaddr = cgidata.getvalue('new-address') confirmaddr = cgidata.getvalue('confirm-address') oldname = mlist.getMemberName(user) set_address = set_membername = 0 # We will change the member's name under the following conditions: # - membername has a value # - membername has no value, but they /used/ to have a membername if membername and membername <> oldname: # Setting it to a new value set_membername = 1 if not membername and oldname: # Unsetting it set_membername = 1 # We will change the user's address if both newaddr and confirmaddr # are non-blank, have the same value, and aren't the currently # subscribed email address (when compared case-sensitively). If both # are blank, but membername is set, we ignore it, otherwise we print # an error. if newaddr and confirmaddr: if newaddr <> confirmaddr: options_page(mlist, doc, user, cpuser, userlang, _('Addresses did not match!')) print doc.Format() return if newaddr == user: options_page(mlist, doc, user, cpuser, userlang, _('You are already using that email address')) print doc.Format() return set_address = 1 elif (newaddr or confirmaddr) and not set_membername: options_page(mlist, doc, user, cpuser, userlang, _('Addresses may not be blank')) print doc.Format() return # See if the user wants to change their email address globally globally = cgidata.getvalue('changeaddr-globally') # Standard sigterm handler. def sigterm_handler(signum, frame, mlist=mlist): mlist.Unlock() sys.exit(0) signal.signal(signal.SIGTERM, sigterm_handler) msg = '' if set_address: # Register the pending change after the list is locked msg = _('A confirmation message has been sent to %(newaddr)s') mlist.Lock() try: try: mlist.ChangeMemberAddress(user, newaddr, globally) mlist.Save() finally: mlist.Unlock() except Errors.MMBadEmailError: msg = _('Bad email address provided') except Errors.MMHostileAddress: msg = _('Illegal email address provided') except Errors.MMAlreadyAMember: msg = _('%(newaddr)s is already a member of the list.') if set_membername: mlist.Lock() try: mlist.ChangeMemberName(user, membername, globally) mlist.Save() finally: mlist.Unlock() msg += _('Member name successfully changed.') options_page(mlist, doc, user, cpuser, userlang, msg) print doc.Format() return if cgidata.has_key('changepw'): newpw = cgidata.getvalue('newpw') confirmpw = cgidata.getvalue('confpw') if not newpw or not confirmpw: options_page(mlist, doc, user, cpuser, userlang, _('Passwords may not be blank')) print doc.Format() return if newpw <> confirmpw: options_page(mlist, doc, user, cpuser, userlang, _('Passwords did not match!')) print doc.Format() return # See if the user wants to change their passwords globally mlists = [mlist] if cgidata.getvalue('pw-globally'): mlists.extend(lists_of_member(mlist, user)) for gmlist in mlists: change_password(gmlist, user, newpw, confirmpw) # Regenerate the cookie so a re-authorization isn't necessary print mlist.MakeCookie(mm_cfg.AuthUser, user) options_page(mlist, doc, user, cpuser, userlang, _('Password successfully changed.')) print doc.Format() return if cgidata.has_key('unsub'): # Was the confirming check box turned on? if not cgidata.getvalue('unsubconfirm'): options_page( mlist, doc, user, cpuser, userlang, _('''You must confirm your unsubscription request by turning on the checkbox below the <em>Unsubscribe</em> button. You have not been unsubscribed!''')) print doc.Format() return # Standard signal handler def sigterm_handler(signum, frame, mlist=mlist): mlist.Unlock() sys.exit(0) # Okay, zap them. Leave them sitting at the list's listinfo page. We # must own the list lock, and we want to make sure the user (BAW: and # list admin?) is informed of the removal. signal.signal(signal.SIGTERM, sigterm_handler) mlist.Lock() needapproval = 0 try: try: mlist.DeleteMember( user, _('via the member options page'), userack=1) except Errors.MMNeedApproval: needapproval = 1 mlist.Save() finally: mlist.Unlock() # Now throw up some results page, with appropriate links. We can't # drop them back into their options page, because that's gone now! fqdn_listname = mlist.GetListEmail() owneraddr = mlist.GetOwnerEmail() url = mlist.GetScriptURL('listinfo', absolute=1) title = _('Unsubscription results') doc.SetTitle(title) doc.AddItem(Header(2, title)) if needapproval: doc.AddItem(_("""Your unsubscription request has been received and forwarded on to the list moderators for approval. You will receive notification once the list moderators have made their decision.""")) else: doc.AddItem(_("""You have been successfully unsubscribed from the mailing list %(fqdn_listname)s. If you were receiving digest deliveries you may get one more digest. If you have any questions about your unsubscription, please contact the list owners at %(owneraddr)s.""")) doc.AddItem(mlist.GetMailmanFooter()) print doc.Format() return if cgidata.has_key('options-submit'): # Digest action flags digestwarn = 0 cantdigest = 0 mustdigest = 0 newvals = [] # First figure out which options have changed. The item names come # from FormatOptionButton() in HTMLFormatter.py for item, flag in (('digest', mm_cfg.Digests), ('mime', mm_cfg.DisableMime), ('dontreceive', mm_cfg.DontReceiveOwnPosts), ('ackposts', mm_cfg.AcknowledgePosts), ('disablemail', mm_cfg.DisableDelivery), ('conceal', mm_cfg.ConcealSubscription), ('remind', mm_cfg.SuppressPasswordReminder), ('rcvtopic', mm_cfg.ReceiveNonmatchingTopics), ): try: newval = int(cgidata.getvalue(item)) except (TypeError, ValueError): newval = None # Skip this option if there was a problem or it wasn't changed. # Note that delivery status is handled separate from the options # flags. if newval is None: continue elif flag == mm_cfg.DisableDelivery: status = mlist.getDeliveryStatus(user) # Here, newval == 0 means enable, newval == 1 means disable if not newval and status <> MemberAdaptor.ENABLED: newval = MemberAdaptor.ENABLED elif newval and status == MemberAdaptor.ENABLED: newval = MemberAdaptor.BYUSER else: continue elif newval == mlist.getMemberOption(user, flag): continue newvals.append((flag, newval)) # The user language is handled a little differently if userlang not in mlist.GetAvailableLanguages(): newvals.append((SETLANGUAGE, mlist.preferred_language)) else: newvals.append((SETLANGUAGE, userlang)) # Process user selected topics, but don't make the changes to the # MailList object; we must do that down below when the list is # locked. topicnames = cgidata.getvalue('usertopic') if topicnames: # Some topics were selected. topicnames can actually be a string # or a list of strings depending on whether more than one topic # was selected or not. if not isinstance(topicnames, ListType): # Assume it was a bare string, so listify it topicnames = [topicnames] # unquote the topic names topicnames = [urllib.unquote_plus(n) for n in topicnames] # The standard sigterm handler (see above) def sigterm_handler(signum, frame, mlist=mlist): mlist.Unlock() sys.exit(0) # Now, lock the list and perform the changes mlist.Lock() try: signal.signal(signal.SIGTERM, sigterm_handler) # `values' is a tuple of flags and the web values for flag, newval in newvals: # Handle language settings differently if flag == SETLANGUAGE: mlist.setMemberLanguage(user, newval) # Handle delivery status separately elif flag == mm_cfg.DisableDelivery: mlist.setDeliveryStatus(user, newval) else: mlist.setMemberOption(user, flag, newval) # Set the topics information. mlist.setMemberTopics(user, topicnames) mlist.Save() finally: mlist.Unlock() # The enable/disable option and the password remind option may have # their global flags sets. global_enable = None if cgidata.getvalue('deliver-globally'): # Yes, this is inefficient, but the list is so small it shouldn't # make much of a difference. for flag, newval in newvals: if flag == mm_cfg.DisableDelivery: global_enable = newval break global_remind = None if cgidata.getvalue('remind-globally'): for flag, newval in newvals: if flag == mm_cfg.SuppressPasswordReminder: global_remind = newval break if global_enable is not None or global_remind is not None: for gmlist in lists_of_member(mlist, user): global_options(gmlist, user, global_enable, global_remind) # Now print the results if cantdigest: msg = _('''The list administrator has disabled digest delivery for this list, so your delivery option has not been set. However your other options have been set successfully.''') elif mustdigest: msg = _('''The list administrator has disabled non-digest delivery for this list, so your delivery option has not been set. However your other options have been set successfully.''') else: msg = _('You have successfully set your options.') if digestwarn: msg += _('You may get one last digest.') options_page(mlist, doc, user, cpuser, userlang, msg) print doc.Format() return options_page(mlist, doc, user, cpuser, userlang) print doc.Format()
|
1b0a7186ef948b504ed35356bdee74957c65566d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/1b0a7186ef948b504ed35356bdee74957c65566d/options.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
997,
273,
4319,
1435,
997,
18,
542,
67,
4923,
12,
7020,
67,
7066,
18,
5280,
67,
4370,
67,
15547,
13,
225,
2140,
273,
6091,
18,
967,
743,
16539,
8610,
1435,
562,
6019,
273,
2140,
471,
562,
12,
6019,
13,
309,
486,
2140,
578,
562,
6019,
411,
404,
30,
2077,
273,
389,
2668,
39,
13797,
2728,
555,
6134,
997,
18,
694,
4247,
12,
2649,
13,
997,
18,
986,
1180,
12,
1864,
12,
22,
16,
2077,
3719,
527,
67,
1636,
67,
2150,
12,
2434,
16,
389,
2668,
1941,
702,
358,
385,
13797,
2728,
1093,
3719,
997,
18,
986,
1180,
2668,
32,
7256,
1870,
13,
997,
18,
986,
1180,
12,
6759,
4728,
26604,
10756,
1172,
997,
18,
1630,
1435,
327,
225,
468,
336,
326,
666,
471,
729,
1807,
508,
666,
529,
273,
2140,
63,
20,
8009,
8167,
1435,
468,
1696,
666,
775,
30,
312,
1098,
273,
11542,
682,
18,
6759,
682,
12,
1098,
529,
16,
2176,
33,
20,
13,
1335,
9372,
18,
8206,
682,
668,
16,
425,
30,
468,
17843,
6828,
17,
4256,
2728,
310,
28444,
11029,
5449,
529,
273,
276,
10052,
18,
6939,
12,
1098,
529,
13,
2077,
273,
389,
2668,
39,
13797,
2728,
555,
6134,
997,
18,
694,
4247,
12,
2649,
13,
997,
18,
986,
1180,
12,
1864,
12,
22,
16,
2077,
3719,
527,
67,
1636,
67,
2150,
12,
2434,
16,
389,
2668,
2279,
4123,
666,
411,
351,
9822,
12,
87,
1727,
5449,
529,
13,
87,
1757,
351,
1870,
3719,
997,
18,
986,
1180,
2668,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
273,
4319,
1435,
997,
18,
542,
67,
4923,
12,
7020,
67,
7066,
18,
5280,
67,
4370,
67,
15547,
13,
225,
2140,
273,
6091,
18,
967,
743,
16539,
8610,
1435,
562,
6019,
273,
2140,
471,
562,
12,
6019,
13,
309,
486,
2140,
578,
562,
6019,
411,
404,
30,
2077,
273,
389,
2668,
39,
13797,
2728,
555,
6134,
997,
18,
694,
4247,
12,
2649,
13,
997,
18,
986,
1180,
12,
1864,
12,
22,
16,
2077,
3719,
527,
67,
1636,
67,
2150,
12,
2434,
16,
389,
2668,
1941,
702,
358,
385,
13797,
2728,
1093,
3719,
997,
18,
986,
1180,
2668,
32,
7256,
1870,
13,
997,
18,
986,
1180,
12,
6759,
4728,
26604,
10756,
1172,
997,
18,
1630,
1435,
2
] |
:param date: :param persistent: ``True`` to store the job in a persistent job store
|
:param date: the date/time to run the job at :param name: name of the job :param persistent: ``True`` to store the job in any persistent job store
|
def add_date_job(self, func, date, args=None, kwargs=None, **options): """ Adds a job to be completed on a specific date and time.
|
6dd2e2b8f529c53f3b95282212a8546d72aaec81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/6dd2e2b8f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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
712,
67,
4688,
12,
2890,
16,
1326,
16,
1509,
16,
833,
33,
7036,
16,
1205,
33,
7036,
16,
2826,
2116,
4672,
3536,
15605,
279,
1719,
358,
506,
5951,
603,
279,
2923,
1509,
471,
813,
18,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nc = netCDF3.Dataset(make_fp(lts))
|
fp = make_fp(lts) if not os.path.isfile(fp): continue nc = netCDF3.Dataset( fp )
|
def doit(ts, hours): """ Create a plot of precipitation stage4 estimates for some day """ # Mod the minute down remain = ts.minute % 5 ts -= mx.DateTime.RelativeDateTime(minutes=(ts.minute%5)) lons = numpy.arange(-110., -89.99, 0.01) lats = numpy.arange(55.0, 39.99, -0.01) limit = 20 while not os.path.isfile(make_fp(ts)): ts -= mx.DateTime.RelativeDateTime(minutes=5) if limit == 0: print "NO Q2 Files Found!" return limit -= 1 total = None for hr in range(hours): lts = ts - mx.DateTime.RelativeDateTime(hours=hr) nc = netCDF3.Dataset(make_fp(lts)) if hr == 0: total = nc.variables["rad_hsr_1h"][:] else: total += nc.variables["rad_hsr_1h"][:] nc.close() # Put some bad values in just to make the plot happy total[1350,1610] = 100.0 total[1410,1675] = 15. # Now we dance cfg = { 'cnLevelSelectionMode': "ExplicitLevels", 'cnLevels' : [0.01,0.05,0.1,0.25,0.5,0.75,1,1.25,1.5,2.0,3,4,5,7,10], 'wkColorMap': 'BlAqGrYeOrRe', 'nglSpreadColorStart': -1, 'nglSpreadColorEnd' : 2, '_MaskZero' : True, 'lbTitleString' : "[inch]", '_valid' : ' %s Hour Period Ending at %s' % (hours, ts.localtime().strftime("%d %B %Y %I:%M %p %Z"),), '_title' : "NMQ Q2 %s Hour Precipitation" % (hours,), } # Scale factor is 10 routes = "c" if ts.minute == 0: routes = "ac" tmpfp = iemplot.simple_grid_fill(lons, lats, total / 254.0, cfg) pqstr = "plot %s %s iowa_q2_%sh.png q2/iowa_q2_%sh_%s00.png png" % ( routes, ts.strftime("%Y%m%d%H%M"), hours, hours, ts.strftime("%H")) thumbpqstr = "plot c 000000000000 iowa_q2_%sh_thumb.png bogus png" % ( hours,) iemplot.postprocess(tmpfp, pqstr, thumb=True, thumbpqstr=thumbpqstr)
|
ab17b2200e407367442f04e994212b2485086635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/ab17b2200e407367442f04e994212b2485086635/q2_Xhour.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
305,
12,
3428,
16,
7507,
4672,
3536,
1788,
279,
3207,
434,
675,
3449,
8773,
6009,
24,
27585,
364,
2690,
2548,
3536,
468,
3431,
326,
8044,
2588,
7232,
273,
3742,
18,
17637,
738,
1381,
3742,
3947,
7938,
18,
5096,
18,
8574,
5096,
12,
17916,
28657,
3428,
18,
17637,
9,
25,
3719,
225,
23532,
273,
3972,
18,
297,
726,
19236,
17506,
12990,
300,
6675,
18,
2733,
16,
374,
18,
1611,
13,
24535,
273,
3972,
18,
297,
726,
12,
2539,
18,
20,
16,
16977,
18,
2733,
16,
300,
20,
18,
1611,
13,
225,
1800,
273,
4200,
1323,
486,
1140,
18,
803,
18,
291,
768,
12,
6540,
67,
7944,
12,
3428,
3719,
30,
3742,
3947,
7938,
18,
5096,
18,
8574,
5096,
12,
17916,
33,
25,
13,
309,
1800,
422,
374,
30,
1172,
315,
3417,
2238,
22,
6471,
10750,
4442,
327,
1800,
3947,
404,
2078,
273,
599,
364,
15407,
316,
1048,
12,
16814,
4672,
328,
3428,
273,
3742,
300,
7938,
18,
5096,
18,
8574,
5096,
12,
16814,
33,
7256,
13,
4253,
273,
1221,
67,
7944,
12,
80,
3428,
13,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
7944,
4672,
1324,
8194,
273,
2901,
39,
4577,
23,
18,
10656,
12,
4253,
262,
309,
15407,
422,
374,
30,
2078,
273,
8194,
18,
7528,
9614,
6012,
67,
4487,
86,
67,
21,
76,
6,
6362,
26894,
469,
30,
2078,
1011,
8194,
18,
7528,
9614,
6012,
67,
4487,
86,
67,
21,
76,
6,
6362,
26894,
8194,
18,
4412,
1435,
468,
4399,
2690,
5570,
924,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
305,
12,
3428,
16,
7507,
4672,
3536,
1788,
279,
3207,
434,
675,
3449,
8773,
6009,
24,
27585,
364,
2690,
2548,
3536,
468,
3431,
326,
8044,
2588,
7232,
273,
3742,
18,
17637,
738,
1381,
3742,
3947,
7938,
18,
5096,
18,
8574,
5096,
12,
17916,
28657,
3428,
18,
17637,
9,
25,
3719,
225,
23532,
273,
3972,
18,
297,
726,
19236,
17506,
12990,
300,
6675,
18,
2733,
16,
374,
18,
1611,
13,
24535,
273,
3972,
18,
297,
726,
12,
2539,
18,
20,
16,
16977,
18,
2733,
16,
300,
20,
18,
1611,
13,
225,
1800,
273,
4200,
1323,
486,
1140,
18,
803,
18,
291,
768,
12,
6540,
67,
7944,
12,
3428,
3719,
30,
3742,
3947,
7938,
18,
5096,
18,
8574,
5096,
2
] |
log.warning("%d markup error(s) were found while processing " "docstrings. Use the verbose switch (-v) to " "display markup errors." % logger.supressed_docstring_warning)
|
if logger.supressed_docstring_warning == 1: prefix = '1 markup error was found' else: prefix = ('%d markup errors were found' % logger.supressed_docstring_warning) log.warning("%s while processing docstrings. Use the verbose " "switch (-v) to display markup errors." % prefix)
|
def main(options, names): if options.action == 'text': if options.parse and options.introspect: options.parse = False # Set up the logger if options.action == 'text': logger = None # no logger for text output. elif options.verbosity > 1: logger = ConsoleLogger(options.verbosity) log.register_logger(logger) else: # Each number is a rough approximation of how long we spend on # that task, used to divide up the unified progress bar. stages = [40, # Building documentation 7, # Merging parsed & introspected information 1, # Linking imported variables 3, # Indexing documentation 30, # Parsing Docstrings 1, # Inheriting documentation 2, # Sorting & Grouping 100] # Generating output if options.parse and not options.introspect: del stages[1] # no merging if options.introspect and not options.parse: del stages[1:3] # no merging or linking logger = UnifiedProgressConsoleLogger(options.verbosity, stages) log.register_logger(logger) # create the output directory. if options.action != 'text': if os.path.exists(options.target): if not os.path.isdir(options.target): return log.error("%s is not a directory" % options.target) else: try: os.mkdir(options.target) except Exception, e: return log.error(e) # Set the default docformat docstringparser.DEFAULT_DOCFORMAT = options.docformat # Build docs for the named values. docindex = build_doc_index(names, options.introspect, options.parse, add_submodules=(options.action!='text')) # Perform the specified action. if options.action == 'html': html_writer = HTMLWriter(docindex, **options.__dict__) if options.verbose > 0: log.start_progress('Writing HTML docs to %r' % options.target) else: log.start_progress('Writing HTML docs') html_writer.write(options.target) log.end_progress() elif options.action == 'text': # hmm log.start_progress('Writing output') plaintext_writer = PlaintextWriter() s = '' for apidoc in docindex.root: s += plaintext_writer.write(apidoc) log.end_progress() print s else: print >>sys.stderr, '\nUnsupported action %s!' % options.action # If we supressed docstring warnings, then let the user know. if logger is not None and logger.supressed_docstring_warning: log.warning("%d markup error(s) were found while processing " "docstrings. Use the verbose switch (-v) to " "display markup errors." % logger.supressed_docstring_warning) # Basic timing breakdown: if options.verbosity >= 2 and logger is not None: logger.print_times()
|
62447e868cef72dccdfe774828c735c067c90674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/62447e868cef72dccdfe774828c735c067c90674/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
1257,
4672,
309,
702,
18,
1128,
422,
296,
955,
4278,
309,
702,
18,
2670,
471,
702,
18,
474,
26170,
30,
702,
18,
2670,
273,
1083,
225,
468,
1000,
731,
326,
1194,
309,
702,
18,
1128,
422,
296,
955,
4278,
1194,
273,
599,
468,
1158,
1194,
364,
977,
876,
18,
1327,
702,
18,
16629,
8807,
405,
404,
30,
1194,
273,
9657,
3328,
12,
2116,
18,
16629,
8807,
13,
613,
18,
4861,
67,
4901,
12,
4901,
13,
469,
30,
468,
8315,
1300,
353,
279,
23909,
24769,
434,
3661,
1525,
732,
17571,
603,
468,
716,
1562,
16,
1399,
358,
12326,
731,
326,
27136,
4007,
4653,
18,
20298,
273,
306,
7132,
16,
225,
468,
3998,
310,
7323,
2371,
16,
282,
468,
14940,
1998,
2707,
473,
18446,
1789,
1779,
404,
16,
282,
468,
4048,
310,
9101,
3152,
890,
16,
282,
468,
3340,
310,
7323,
5196,
16,
225,
468,
19761,
3521,
10219,
404,
16,
282,
468,
25953,
310,
7323,
576,
16,
282,
468,
5928,
310,
473,
3756,
310,
2130,
65,
468,
3055,
1776,
876,
309,
702,
18,
2670,
471,
486,
702,
18,
474,
26170,
30,
1464,
20298,
63,
21,
65,
468,
1158,
17256,
309,
702,
18,
474,
26170,
471,
486,
702,
18,
2670,
30,
1464,
20298,
63,
21,
30,
23,
65,
468,
1158,
17256,
578,
27651,
1194,
273,
1351,
939,
5491,
10215,
3328,
12,
2116,
18,
16629,
8807,
16,
20298,
13,
613,
18,
4861,
67,
4901,
12,
4901,
13,
225,
468,
752,
326,
876,
1867,
18,
309,
702,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2116,
16,
1257,
4672,
309,
702,
18,
1128,
422,
296,
955,
4278,
309,
702,
18,
2670,
471,
702,
18,
474,
26170,
30,
702,
18,
2670,
273,
1083,
225,
468,
1000,
731,
326,
1194,
309,
702,
18,
1128,
422,
296,
955,
4278,
1194,
273,
599,
468,
1158,
1194,
364,
977,
876,
18,
1327,
702,
18,
16629,
8807,
405,
404,
30,
1194,
273,
9657,
3328,
12,
2116,
18,
16629,
8807,
13,
613,
18,
4861,
67,
4901,
12,
4901,
13,
469,
30,
468,
8315,
1300,
353,
279,
23909,
24769,
434,
3661,
1525,
732,
17571,
603,
468,
716,
1562,
16,
1399,
358,
12326,
731,
326,
27136,
4007,
4653,
18,
20298,
273,
306,
7132,
16,
225,
468,
3998,
310,
7323,
2371,
2
] |
print "Exp Data Labels:\n", exp_scatter_data_labels print "Mod Data Labels:\n", mod_scatter_data_labels combined_scatter_data = [exp_scatter_data_labels,mod_scatter_data_labels]
|
combined_scatter_data_labels = [exp_scatter_data_labels,mod_scatter_data_labels]
|
def extract_comp_data(comp_file_info): ## Read in d line dict from config file and Process data from source .csv files. exp_data = [] mod_data = [] exp_data_dict = {} mod_data_dict = {} exp_scatter_data_labels = [] mod_scatter_data_labels = [] #List of variables from configuration file column names. exp_data_filename = comp_file_info['Exp_Filename'] #String of filename exp_column_name_row_index = int(comp_file_info['Exp_Col_Name_Row'])-1 #Experimental Data Column Name Row Number exp_data_row_index = int(comp_file_info['Exp_Data_Row'])-1 #Experimental Data Starting Row Number exp_start_time_data_val = comp_file_info['Exp_Start_(min.)'] #String in minutes to start exp plot data exp_stop_time_data_val = comp_file_info['Exp_End_(min.)'] #String in minutes to stop exp plot data exp_start_time_comp_val = comp_file_info['Exp_Comp_Start_(min.)'] #String in minutes to start exp compare data exp_stop_time_comp_val = comp_file_info['Exp_Comp_End_(min.)'] #String in minutes to start exp compare data exp_initial_value = comp_file_info['Exp_Intitial_Value'] #Initial Value for Quantity exp_column_name_value = comp_file_info['Exp_Col_Name'].strip() #Experimental Data Column Name mod_data_filename = comp_file_info['Mod_Filename'] #String of filename mod_column_name_row_index = int(comp_file_info['Mod_Col_Name_Row'])-1 #Modeling Data Column Name Row Number mod_data_row_index = int(comp_file_info['Mod_Data_Row'])-1 #Modeling Data Starting Row Number mod_start_time_data_val = comp_file_info['Mod_Start_(min.)'] #String in minutes to start mod plot data mod_stop_time_data_val = comp_file_info['Mod_End_(min.)'] #String in minutes to stop mod plot data mod_start_time_comp_val = comp_file_info['Mod_Comp_Start_(min.)'] #String in minutes to start mod compare data mod_stop_time_comp_val = comp_file_info['Mod_Comp_End_(min.)'] #String in minutes to start mod compare data mod_initial_value = comp_file_info['Mod_Intitial_Value'] #Initial Value for Quantity mod_column_name_value = comp_file_info['Mod_Col_Name'].strip() #Modeling Data Column Name # Create Scatter Data Labels for the comparison results. if exp_column_name_value[0] == '[': print "Exp Column Name List Detected" exp_compound_col_names = eval(exp_column_name_value) print "Exp Compound Column Names:", exp_compound_col_names for name in exp_compound_col_names: print "Exp Sub-Column Name:", name exp_scatter_data_labels.append(comp_file_info['Quantity']+"~"+comp_file_info['Group']+"~"+comp_file_info['Dataname']+"~"+name) else: print "Single Exp. Column Name:", exp_column_name_value exp_scatter_data_labels.append(comp_file_info['Quantity']+"~"+comp_file_info['Group']+"~"+comp_file_info['Dataname']+"~"+exp_column_name_value) if mod_column_name_value[0] == '[': print "Mod Column Name List Detected" mod_compound_col_names = eval(mod_column_name_value) for name in mod_compound_col_names: print "Mod Sub-Column Name:", name mod_scatter_data_labels.append(comp_file_info['Quantity']+"~"+comp_file_info['Group']+"~"+comp_file_info['Dataname']+"~"+name) else: print "Single Mod. Column Name:", mod_column_name_value mod_scatter_data_labels.append(comp_file_info['Quantity']+"~"+comp_file_info['Group']+"~"+comp_file_info['Dataname']+"~"+mod_column_name_value) print "Exp Data Labels:\n", exp_scatter_data_labels print "Mod Data Labels:\n", mod_scatter_data_labels combined_scatter_data = [exp_scatter_data_labels,mod_scatter_data_labels] #print "Combined Scatter Data:",combined_scatter_data min_max = comp_file_info['max/min'] #String indicating if min or max value is required. group_value = int(comp_file_info['Group']) try: exp_file_object = open(data_directory+exp_data_filename, "U") except: print "!!! Experimental "+exp_data_filename+" Data File will not open. !!!" exit() try: mod_file_object = open(data_directory+mod_data_filename, "U") except: print "!!! Modeling "+mod_data_filename+" Data File will not open. !!!" exit() ## Start File Processing #Read in experimental data and flip lists from rows to columns. print "Reading in:", exp_data_filename exp_data_cols = zip(*csv.reader(exp_file_object)) #Convert tuples to lists. exp_data_list = [list(sublist) for sublist in exp_data_cols] #Pull the Time column name out and strip whitespace. Assumes that Time is in first column. exp_time_col_name = exp_data_list[0][exp_column_name_row_index].strip() #Build Experimental Data Dictionary. #Catch errors if conversion of data from string to float fails. for exp_list in exp_data_list: try: temp_list = [] for x in exp_list[exp_data_row_index:]: if x == 'Null' or x == '' or x == 'NaN' or x == 'inf' or x == '-inf': list_value = 'Null' else: list_value = float(x) temp_list.append(list_value) exp_data_dict[exp_list[exp_column_name_row_index].strip()] = temp_list except: print "!!! Exp Data Conversion in Column Name "+exp_list[exp_column_name_row_index].strip()+". !!!" exit() #Read in model data and flip lists from rows to columns. print "Reading in:", mod_data_filename mod_data_cols = zip(*csv.reader(mod_file_object)) #Convert tuples to lists. mod_data_list = [list(sublist) for sublist in mod_data_cols] #Pull the Time column name out and strip whitespace from ends of string. mod_time_col_name = mod_data_list[0][mod_column_name_row_index].strip() #Build Prediction/Model Data Dictionary #Catch errors if conversion of data from string to float fails. for mod_list in mod_data_list: try: temp_list = [] for x in mod_list[mod_data_row_index:]: if x == 'Null' or x == '' or x == 'NaN' or x == 'inf' or x == '-inf': list_value = 'Null' else: list_value = float(x) temp_list.append(list_value) mod_data_dict[mod_list[mod_column_name_row_index].strip()] = temp_list except: print "!!! Mod Data Conversion in Column Name "+mod_list[mod_column_name_row_index].strip()+". !!!" exit() # Assuming that all column time ranges are the same. Passing in the first Column Name. exp_comp_ranges = find_start_stop_index(exp_data_dict,exp_time_col_name,exp_start_time_data_val,exp_stop_time_data_val,exp_start_time_comp_val,exp_stop_time_comp_val) mod_comp_ranges = find_start_stop_index(mod_data_dict,mod_time_col_name,mod_start_time_data_val,mod_stop_time_data_val,mod_start_time_comp_val,mod_stop_time_comp_val) #print exp_comp_ranges #print mod_comp_ranges #### Begin Column specific operations. scatter_counter = 0 for scatter_label in combined_scatter_data[0]: exp_label_temp = split("~",combined_scatter_data[0][scatter_counter]) mod_label_temp = split("~",combined_scatter_data[1][scatter_counter]) ##Find max or min values. exp_data_values_comp = exp_data_dict[exp_label_temp[3]][exp_comp_ranges[2]:exp_comp_ranges[3]] mod_data_values_comp = mod_data_dict[mod_label_temp[3]][mod_comp_ranges[2]:mod_comp_ranges[3]] # This allows the d line Quantity value to be set to 0 when either model or experimental data is missing. if comp_file_info['Quantity'] == str(0): print "Quantity set to 0, no comparison made." else: if min_max == 'max': print "*** Rise Computed ***" temp_exp_data_values = [x for x in exp_data_values_comp if x != 'Null'] exp_rise_value = max(temp_exp_data_values) - float(exp_initial_value) temp_mod_data_values = [x for x in mod_data_values_comp if x != 'Null'] mod_rise_value = max(temp_mod_data_values) - float(mod_initial_value) print "Experimental Initial Value is:", exp_initial_value print "Experimental Rise Value is:", exp_rise_value print "Model Initial Value is:", mod_initial_value print "Model Rise Value is:", mod_rise_value print "\n*** Computing Relative Difference ***" try: relative_difference = ((mod_rise_value-exp_rise_value)/exp_rise_value) print "Relative Difference is:", relative_difference #Append Rise Values to Global Scatter Data Dictionary. scatter_data_dict[combined_scatter_data[0][scatter_counter]] = [exp_rise_value,mod_rise_value,relative_difference] except: print "!!! Computation of relative_difference failed. !!!\nCheck source data for columns listed above." exit() elif min_max == 'min': print "*** Drop Computed ***" temp_exp_data_values = [x for x in exp_data_values_comp if x != 'Null'] exp_drop_value = float(exp_initial_value) - min(temp_exp_data_values) temp_mod_data_values = [x for x in mod_data_values_comp if x != 'Null'] mod_drop_value = float(mod_initial_value) - min(temp_mod_data_values) print "Experimental Initial Value is:", exp_initial_value print "Experimental Drop Value is:", exp_drop_value print "Model Initial Value is:", mod_initial_value print "Model Drop Value is:", mod_drop_value print "\n*** Computing Relative Difference ***" try: relative_difference = ((mod_drop_value-exp_drop_value)/exp_drop_value) print "Relative Difference is:", relative_difference #Append Drop Values to Global Scatter Data Dictionary. scatter_data_dict[combined_scatter_data[0][scatter_counter]] = [exp_drop_value,mod_drop_value,relative_difference] except: print "!!! Computation of relative_difference failed. !!!\nCheck source data for columns listed above." exit() else: print "!!! Min or Max is undefined in the input file. !!!" exit() #Create data lists based on specified ranges exp_data_seconds = zip(exp_data_dict[exp_time_col_name][exp_comp_ranges[0]:exp_comp_ranges[1]], exp_data_dict[exp_label_temp[3]][exp_comp_ranges[0]:exp_comp_ranges[1]]) #print exp_data_seconds mod_data_seconds = zip(mod_data_dict[mod_time_col_name][mod_comp_ranges[0]:mod_comp_ranges[1]], mod_data_dict[mod_label_temp[3]][mod_comp_ranges[0]:mod_comp_ranges[1]]) #print mod_data_seconds #Convert time to minutes from seconds. exp_data.append([[x[0] / 60, x[1]] for x in exp_data_seconds]) #print exp_data mod_data.append([[x[0] / 60, x[1]] for x in mod_data_seconds]) #print mod_data scatter_counter =+ 1 # Close files exp_file_object.close() mod_file_object.close() return [exp_data,mod_data]
|
8b29e6ed42f5e5e45bcb0f60f033670da998a673 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/8b29e6ed42f5e5e45bcb0f60f033670da998a673/Validation_Data_Processor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5378,
681,
67,
892,
273,
5378,
1329,
67,
892,
67,
1576,
273,
2618,
681,
67,
892,
67,
1576,
273,
2618,
1329,
67,
31320,
67,
892,
67,
5336,
273,
5378,
681,
67,
31320,
67,
892,
67,
5336,
273,
5378,
225,
468,
682,
434,
3152,
628,
1664,
585,
1057,
1257,
18,
225,
1329,
67,
892,
67,
3459,
273,
1161,
67,
768,
67,
1376,
3292,
2966,
67,
5359,
3546,
468,
780,
434,
1544,
1329,
67,
2827,
67,
529,
67,
492,
67,
1615,
273,
509,
12,
2919,
67,
768,
67,
1376,
3292,
2966,
67,
914,
67,
461,
67,
1999,
19486,
17,
21,
468,
22338,
287,
1910,
4753,
1770,
6556,
3588,
1329,
67,
892,
67,
492,
67,
1615,
273,
509,
12,
2919,
67,
768,
67,
1376,
3292,
2966,
67,
751,
67,
1999,
19486,
17,
21,
468,
22338,
287,
1910,
24591,
6556,
3588,
1329,
67,
1937,
67,
957,
67,
892,
67,
1125,
273,
1161,
67,
768,
67,
1376,
3292,
2966,
67,
1685,
67,
12,
1154,
18,
2506,
65,
468,
780,
316,
6824,
358,
787,
1329,
3207,
501,
1329,
67,
5681,
67,
957,
67,
892,
67,
1125,
273,
1161,
67,
768,
67,
1376,
3292,
2966,
67,
1638,
67,
12,
1154,
18,
2506,
65,
468,
780,
316,
6824,
358,
2132,
1329,
3207,
501,
1329,
67,
1937,
67,
957,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5378,
681,
67,
892,
273,
5378,
1329,
67,
892,
67,
1576,
273,
2618,
681,
67,
892,
67,
1576,
273,
2618,
1329,
67,
31320,
67,
892,
67,
5336,
273,
5378,
681,
67,
31320,
67,
892,
67,
5336,
273,
5378,
225,
468,
682,
434,
3152,
628,
1664,
585,
1057,
1257,
18,
225,
1329,
67,
892,
67,
3459,
273,
1161,
67,
768,
67,
1376,
3292,
2966,
67,
5359,
3546,
468,
780,
434,
1544,
1329,
67,
2827,
67,
529,
67,
492,
67,
1615,
273,
509,
12,
2919,
2
] |
Note that the provided `doc` is required to have a `_rev` field. Thus, if the `doc` is based on a view row, the view row would need to include the `_rev` field.
|
Note that the provided `doc` is required to have a ``_rev`` field. Thus, if the `doc` is based on a view row, the view row would need to include the ``_rev`` field.
|
def delete_attachment(self, doc, filename): """Delete the specified attachment. Note that the provided `doc` is required to have a `_rev` field. Thus, if the `doc` is based on a view row, the view row would need to include the `_rev` field.
|
93269836c6d213105109d7b095e3405e4cd8a9ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9373/93269836c6d213105109d7b095e3405e4cd8a9ff/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
11461,
12,
2890,
16,
997,
16,
1544,
4672,
3536,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
11461,
12,
2890,
16,
997,
16,
1544,
4672,
3536,
2613,
326,
1269,
6042,
18,
225,
3609,
716,
326,
2112,
1375,
2434,
68,
353,
1931,
358,
1240,
279,
1375,
67,
9083,
68,
652,
18,
22073,
16,
309,
326,
1375,
2434,
68,
353,
2511,
603,
279,
1476,
1027,
16,
326,
1476,
1027,
4102,
1608,
358,
2341,
326,
1375,
67,
9083,
68,
652,
18,
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,
-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
] |
old_param = self.pipeline.db_get_object(pType,pId)
|
old_param = function.params[pId]
|
def collectParameterActions(self): """ collectParameterActions() -> list Return a list of action lists corresponding to each dimension """ if not self.pipeline: return None parameterValues = [[], [], [], []] typeCast = {'Integer': int, 'Float': float, 'String': str} counts = self.label.getCounts() for i in xrange(self.layout().count()): pEditor = self.layout().itemAt(i).widget() if pEditor and type(pEditor)==QParameterSetEditor: for paramWidget in pEditor.paramWidgets: editor = paramWidget.editor interpolator = editor.stackedEditors.currentWidget() paramInfo = paramWidget.param realType = typeCast[paramInfo[0]] dim = paramWidget.getDimension() if dim in [0, 1, 2, 3]: count = counts[dim] if type(interpolator)==QLinearInterpolationEditor: values = interpolator.getValues(count) if type(interpolator)==QListInterpolationEditor: values = interpolator.getValues() if (len(values)!=count): show_warning('Inconsistent Size', 'One of the <i>%s</i>\'s list ' 'interpolated ' 'values has a different ' 'size from the step count. ' 'Parameter Exploration aborted.' % pEditor.info[0]) return None if type(interpolator)==QUserFunctionEditor: values = interpolator.getValues() if [True for v in values if type(v)!=realType]: show_warning('Inconsistent Type', 'One of the <i>%s</i>\'s user defined ' 'functions has generated ' 'a value of type different ' 'than that specified by the ' 'parameter. Parameter Exploration ' 'aborted.' % pEditor.info[0]) return None (pId, pType, parentType, parentId) = tuple(paramInfo[2:6]) #function = self.pipeline.modules[mId].functions[fId] function = self.pipeline.db_get_object(parentType, parentId) fName = function.name #old_param = function.params[pId] old_param = self.pipeline.db_get_object(pType,pId) pName = old_param.name pAlias = old_param.alias actions = [] for v in values: new_param = ModuleParam(id=-1, pos=old_param.pos, name=pName, alias=pAlias, val=str(v), type=paramInfo[0] ) #FIXME: check if this work action_spec = ('change', old_param, new_param, parentType, function.real_id) action = \ db.services.action.create_action([action_spec]) # FIXME: this should go to dbservices Action.convert(action) actions.append(action)
|
2dbc1b9fab8bd7642528d64f8595a8939a7444fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/2dbc1b9fab8bd7642528d64f8595a8939a7444fb/pe_table.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
1662,
6100,
12,
2890,
4672,
3536,
3274,
1662,
6100,
1435,
317,
666,
2000,
279,
666,
434,
1301,
6035,
4656,
358,
1517,
4968,
225,
3536,
309,
486,
365,
18,
14511,
30,
327,
599,
1569,
1972,
273,
12167,
6487,
5378,
16,
5378,
16,
5378,
65,
618,
9735,
273,
13666,
4522,
4278,
509,
16,
296,
4723,
4278,
1431,
16,
296,
780,
4278,
609,
97,
6880,
273,
365,
18,
1925,
18,
588,
9211,
1435,
364,
277,
316,
12314,
12,
2890,
18,
6741,
7675,
1883,
1435,
4672,
293,
6946,
273,
365,
18,
6741,
7675,
1726,
861,
12,
77,
2934,
6587,
1435,
309,
293,
6946,
471,
618,
12,
84,
6946,
13,
631,
53,
1662,
694,
6946,
30,
364,
579,
4609,
316,
293,
6946,
18,
891,
16166,
30,
4858,
273,
579,
4609,
18,
9177,
7326,
639,
273,
4858,
18,
3772,
329,
4666,
1383,
18,
2972,
4609,
1435,
579,
966,
273,
579,
4609,
18,
891,
2863,
559,
273,
618,
9735,
63,
891,
966,
63,
20,
13563,
2464,
273,
579,
4609,
18,
588,
8611,
1435,
309,
2464,
316,
306,
20,
16,
404,
16,
576,
16,
890,
14542,
1056,
273,
6880,
63,
3509,
65,
309,
618,
12,
18676,
639,
13,
631,
53,
15982,
31516,
6946,
30,
924,
273,
7326,
639,
18,
588,
1972,
12,
1883,
13,
309,
618,
12,
18676,
639,
13,
631,
53,
682,
31516,
6946,
30,
924,
273,
7326,
639,
18,
588,
1972,
1435,
309,
261,
1897,
12,
2372,
13,
5,
33,
1883,
4672,
2405,
67,
8551,
2668,
382,
16952,
6321,
2187,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
1662,
6100,
12,
2890,
4672,
3536,
3274,
1662,
6100,
1435,
317,
666,
2000,
279,
666,
434,
1301,
6035,
4656,
358,
1517,
4968,
225,
3536,
309,
486,
365,
18,
14511,
30,
327,
599,
1569,
1972,
273,
12167,
6487,
5378,
16,
5378,
16,
5378,
65,
618,
9735,
273,
13666,
4522,
4278,
509,
16,
296,
4723,
4278,
1431,
16,
296,
780,
4278,
609,
97,
6880,
273,
365,
18,
1925,
18,
588,
9211,
1435,
364,
277,
316,
12314,
12,
2890,
18,
6741,
7675,
1883,
1435,
4672,
293,
6946,
273,
365,
18,
6741,
7675,
1726,
861,
12,
77,
2934,
6587,
1435,
309,
293,
6946,
471,
618,
12,
84,
6946,
13,
631,
53,
1662,
694,
6946,
30,
364,
579,
4609,
316,
293,
6946,
2
] |
virtualHardwareSection = Ovf.getElementsByTagName(ovfNode,
|
virtualHardwareSection = Ovf.getElementsByTagName(virtualSys,
|
def getOvfDomain(ovf, virtualSys, ovfId, configId=None): """ Returns a libvirt domain object for a specific virtual system, based on the id and configuration, from the ovf. @param ovf: Ovf file @type ovf: DOM Document @param ovfId: VirtualSystem(Collection) identifier @type ovfId: String @param configId: configuration name @type configId: String @todo: needs work, very basic, assumes hypervisor type """ # Get VirtualHardwareSection virtualHardwareSection = Ovf.getElementsByTagName(ovfNode, 'VirtualHardwareSection') if virtualHardwareSection == []: raise NotImplementedError("OvfLibvirt.getOvfDomain: No " + \ "VirtualHardwareSection in VirtualSystem.") else: virtualHardware = virtualHardwareSection[0] #metadata name = nameElement(ovfId) #resources memory = memoryElement(getOvfMemory(virtualHardware, configId)) vcpu = vcpuElement(getOvfVcpu(virtualHardware, configId)) #boot bootDict = dict(type='hvm', loader='/usr/lib/xen/boot/hvmloader', devices=['hd']) boot = bootElement(bootDict)[0] #time clock = clockElement('utc') #features features = featuresElement(acpi=True) #life cycle onPowerOff = onPowerOffElement('destroy') onReboot = onRebootElement('restart') onCrash = onCrashElement('destroy') #disks diskDict = getOvfDisks(ovf, virtualHardware, configId)[0] disk = diskElement(diskDict) #network #networkType = 'bridge' #networkSource = 'br1' #network = networkElement(networkType, networkSource) #devices = addDevice(deviceSection, networkSection) #devices - graphics graphics = graphicsElement('vnc', 'localhost', '-1') #devices - console console = consoleElement('pty', '0') #devices devices = devicesElement(disk, graphics, console) #domain domain = domainElement('kqemu') #document document = libvirtDocument(domain, name, memory, vcpu, boot, clock, features, onPowerOff, onReboot, onCrash, devices) return Ovf.xmlString(document)
|
4e4f044c0f1172401ad35891822f58d22b6948b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/4e4f044c0f1172401ad35891822f58d22b6948b3/OvfLibvirt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17971,
90,
74,
3748,
12,
1527,
74,
16,
5024,
12712,
16,
23094,
74,
548,
16,
642,
548,
33,
7036,
4672,
3536,
2860,
279,
16388,
2461,
733,
364,
279,
2923,
5024,
2619,
16,
2511,
603,
326,
612,
471,
1664,
16,
628,
326,
23094,
74,
18,
225,
632,
891,
23094,
74,
30,
531,
90,
74,
585,
632,
723,
23094,
74,
30,
4703,
4319,
225,
632,
891,
23094,
74,
548,
30,
7269,
3163,
12,
2532,
13,
2756,
632,
723,
23094,
74,
548,
30,
514,
225,
632,
891,
642,
548,
30,
1664,
508,
632,
723,
642,
548,
30,
514,
225,
632,
9012,
30,
4260,
1440,
16,
8572,
5337,
16,
13041,
9512,
10227,
618,
3536,
468,
968,
7269,
44,
14519,
5285,
5024,
44,
14519,
5285,
273,
531,
90,
74,
18,
588,
3471,
10401,
12,
12384,
12712,
16,
296,
6466,
44,
14519,
5285,
6134,
225,
309,
5024,
44,
14519,
5285,
422,
5378,
30,
1002,
11206,
2932,
51,
90,
74,
5664,
14035,
18,
588,
51,
90,
74,
3748,
30,
2631,
315,
397,
521,
315,
6466,
44,
14519,
5285,
316,
7269,
3163,
1199,
13,
469,
30,
5024,
44,
14519,
273,
5024,
44,
14519,
5285,
63,
20,
65,
225,
468,
4165,
508,
273,
508,
1046,
12,
1527,
74,
548,
13,
225,
468,
4683,
3778,
273,
3778,
1046,
12,
588,
51,
90,
74,
6031,
12,
12384,
44,
14519,
16,
642,
548,
3719,
331,
11447,
273,
331,
11447,
1046,
12,
588,
51,
90,
74,
58,
11447,
12,
12384,
44,
14519,
16,
642,
548,
3719,
225,
468,
7137,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17971,
90,
74,
3748,
12,
1527,
74,
16,
5024,
12712,
16,
23094,
74,
548,
16,
642,
548,
33,
7036,
4672,
3536,
2860,
279,
16388,
2461,
733,
364,
279,
2923,
5024,
2619,
16,
2511,
603,
326,
612,
471,
1664,
16,
628,
326,
23094,
74,
18,
225,
632,
891,
23094,
74,
30,
531,
90,
74,
585,
632,
723,
23094,
74,
30,
4703,
4319,
225,
632,
891,
23094,
74,
548,
30,
7269,
3163,
12,
2532,
13,
2756,
632,
723,
23094,
74,
548,
30,
514,
225,
632,
891,
642,
548,
30,
1664,
508,
632,
723,
642,
548,
30,
514,
225,
632,
9012,
30,
4260,
1440,
16,
8572,
5337,
16,
13041,
9512,
10227,
618,
3536,
468,
968,
7269,
44,
14519,
5285,
5024,
44,
2
] |
self.parentWidget._lastGroupBox.VSpacerWidget.changeSize(
|
self.parentWidget._lastGroupBox.verticalSpacer.changeSize(
|
def _addBottomSpacer(self): """ Add a vertical spacer below this groupbox <self>. Assume <self> is going to be the last groupbox in this PropMgr, so set its spacer's vertical sizePolicy to MinimumExpanding. We then set the vertical sizePolicy of the last groupbox's spacer to Fixed and set its height to pmGroupBoxSpacing. """ # Spacers are only added to groupboxes in the PropMgr, not # nested groupboxes. from PM_Dialog import PM_Dialog if not isinstance(self.parentWidget, PM_Dialog): self.VSpacerWidget = None return if self.parentWidget._lastGroupBox: # _lastGroupBox is no longer the last one. <self> will be the # _lastGroupBox, so we must change the VSpacerWidget height # and sizePolicy of _lastGroupBox to be a fixed # spacer between it and <self>. defaultHeight = pmGroupBoxSpacing self.parentWidget._lastGroupBox.VSpacerWidget.changeSize( 10, defaultHeight, QSizePolicy.Fixed, QSizePolicy.Fixed) self.parentWidget._lastGroupBox.VSpacerWidget.defaultHeight = defaultHeight # Add a 1 pixel high, MinimumExpanding VSpacer below this group box. # This keeps all group boxes in the PM layout squeezed together as # group boxes are expanded, collapsed, hidden and shown again. defaultHeight = 1 self.VSpacerWidget = QSpacerItem(10, defaultHeight, QSizePolicy.Fixed, QSizePolicy.MinimumExpanding) self.VSpacerWidget.defaultHeight = defaultHeight self.parentWidget.vBoxLayout.addItem(self.VSpacerWidget) # This groupbox is now the last one in the PropMgr. self.parentWidget._lastGroupBox = self
|
2c693e515c1d7f66b30f5a604a259df854e709ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/2c693e515c1d7f66b30f5a604a259df854e709ab/PM_GroupBox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
10393,
3389,
10598,
12,
2890,
4672,
3536,
1436,
279,
9768,
31896,
5712,
333,
1041,
2147,
411,
2890,
18652,
15983,
411,
2890,
34,
353,
8554,
358,
506,
326,
1142,
1041,
2147,
316,
333,
10484,
9455,
16,
1427,
444,
2097,
31896,
1807,
9768,
963,
2582,
358,
23456,
12271,
310,
18,
1660,
1508,
444,
326,
9768,
963,
2582,
434,
326,
1142,
1041,
2147,
1807,
31896,
358,
15038,
471,
444,
2097,
2072,
358,
7430,
1114,
3514,
18006,
18,
3536,
468,
5878,
1077,
414,
854,
1338,
3096,
358,
1041,
15918,
316,
326,
10484,
9455,
16,
486,
468,
4764,
1041,
15918,
18,
628,
23544,
67,
6353,
1930,
23544,
67,
6353,
309,
486,
1549,
12,
2890,
18,
2938,
4609,
16,
23544,
67,
6353,
4672,
365,
18,
58,
3389,
10598,
4609,
273,
599,
327,
225,
309,
365,
18,
2938,
4609,
6315,
2722,
1114,
3514,
30,
468,
389,
2722,
1114,
3514,
353,
1158,
7144,
326,
1142,
1245,
18,
411,
2890,
34,
903,
506,
326,
468,
389,
2722,
1114,
3514,
16,
1427,
732,
1297,
2549,
326,
776,
3389,
10598,
4609,
2072,
468,
471,
963,
2582,
434,
389,
2722,
1114,
3514,
358,
506,
279,
5499,
468,
31896,
3086,
518,
471,
411,
2890,
18652,
805,
2686,
273,
7430,
1114,
3514,
18006,
365,
18,
2938,
4609,
6315,
2722,
1114,
3514,
18,
17824,
3389,
10598,
18,
3427,
1225,
12,
1728,
16,
805,
2686,
16,
2238,
1225,
2582,
18,
7505,
16,
2238,
1225,
2582,
18,
7505,
13,
365,
18,
2938,
4609,
6315,
2722,
1114,
3514,
18,
58,
3389,
10598,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10393,
3389,
10598,
12,
2890,
4672,
3536,
1436,
279,
9768,
31896,
5712,
333,
1041,
2147,
411,
2890,
18652,
15983,
411,
2890,
34,
353,
8554,
358,
506,
326,
1142,
1041,
2147,
316,
333,
10484,
9455,
16,
1427,
444,
2097,
31896,
1807,
9768,
963,
2582,
358,
23456,
12271,
310,
18,
1660,
1508,
444,
326,
9768,
963,
2582,
434,
326,
1142,
1041,
2147,
1807,
31896,
358,
15038,
471,
444,
2097,
2072,
358,
7430,
1114,
3514,
18006,
18,
3536,
468,
5878,
1077,
414,
854,
1338,
3096,
358,
1041,
15918,
316,
326,
10484,
9455,
16,
486,
468,
4764,
1041,
15918,
18,
628,
23544,
67,
6353,
1930,
23544,
67,
6353,
309,
486,
1549,
12,
2890,
18,
2938,
4609,
16,
23544,
67,
6353,
2
] |
row_header = " ".join(map(rowstr, self.rows)) row_header += " ".join(map(colstr, self.cols)) lines.append(row_header)
|
table_header = "" if isinstance(self.rows, str): table_header += "%%%ds" % self.row_label_width % self.rows else: table_header += " ".join(map(rowstr, self.rows)) table_header += " ".join(map(colstr, self.cols)) lines.append(table_header)
|
def __str__(self): rowstr = lambda x: '%%%ds' % self.row_label_width % x colstr = lambda x: '%%%ds' % self.width % x
|
6ebe3615cb9faaca7b3b1f08a54867e14c2a4f69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2781/6ebe3615cb9faaca7b3b1f08a54867e14c2a4f69/psi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
1027,
701,
273,
3195,
619,
30,
1995,
11438,
2377,
11,
738,
365,
18,
492,
67,
1925,
67,
2819,
738,
619,
645,
701,
273,
3195,
619,
30,
1995,
11438,
2377,
11,
738,
365,
18,
2819,
738,
619,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
701,
972,
12,
2890,
4672,
1027,
701,
273,
3195,
619,
30,
1995,
11438,
2377,
11,
738,
365,
18,
492,
67,
1925,
67,
2819,
738,
619,
645,
701,
273,
3195,
619,
30,
1995,
11438,
2377,
11,
738,
365,
18,
2819,
738,
619,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if overwrite:
|
if not overwrite:
|
def reassembly(request, pagename, filename, chunkSize, digests, overwrite=True): _ = request.getText # Using the same access controls as in MoinMoin's xmlrpc_putPage # as defined in MoinMoin/wikirpc.py if (request.cfg.xmlrpc_putpage_trusted_only and not request.user.trusted): return xmlrpclib.Fault(1, _("You are not allowed to attach a "+ "file to this page")) # Also check ACLs if not request.user.may.write(pagename): return xmlrpclib.Fault(1, _("You are not allowed to attach a "+ "file to this page")) # Check whether the file already exists. If it does, check the hashes. fpath, exists = check_attachfile(request, pagename, filename) if chunkSize is not None and exists: try: stream = open(fpath, "rb") except: pass else: for digest in digests: data = stream.read(chunkSize) other = md5.new(data).hexdigest() if other != digest: break else: data = stream.read(chunkSize) if not data: stream.close() return list() stream.close() # Fail if the file doesn't match and we don't want to overwrite. if overwrite: return xmlrpclib.Fault(2, _("Attachment not saved, file exists")) # If there are missing chunks, just return them. result = list_attachments(request, pagename) missing = [digest for digest in digests if digest not in result] if missing: return missing # Reassembly the file from the chunks into a temp file. tmpDir = mkdtemp() tmpPath = os.path.join(tmpDir, filename) try: tmp = file(tmpPath, 'wb') except: return xmlrpclib.Fault(3, _("Could not create temp file")) try: for bite in digests: data = load_attachfile(request, pagename, bite) if not data: return xmlrpclib.Fault(2, "%s: %s" % (_("Nonexisting "+ "attachment"), filename)) tmp.write(data) except: tmp.close() return xmlrpclib.Fault(3, _("Unknown error")) tmp.close() # Attach the decoded file. success = save_attachfile(request, pagename, tmpPath, filename, overwrite) rmtree(tmpDir) # FIXME: What should we do when the cleanup fails? for bite in digests: delete_attachfile(request, pagename, bite) # On success signal that there were no missing chunks. if success is True: return list() if overwrite == False: return xmlrpclib.Fault(2, _("Attachment not saved, file exists")) return xmlrpclib.Fault(3, _("Unknown error while attaching file"))
|
f2fa7cbc4e1d5cb19ae698edb6bc8e23482a867e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/f2fa7cbc4e1d5cb19ae698edb6bc8e23482a867e/ChunkedAttachFile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
28050,
12,
2293,
16,
4262,
1069,
16,
1544,
16,
17791,
16,
5403,
87,
16,
6156,
33,
5510,
4672,
389,
273,
590,
18,
588,
1528,
225,
468,
11637,
326,
1967,
2006,
11022,
487,
316,
490,
885,
49,
885,
1807,
31811,
67,
458,
1964,
468,
487,
2553,
316,
490,
885,
49,
885,
19,
11999,
481,
2436,
18,
2074,
309,
261,
2293,
18,
7066,
18,
2902,
7452,
67,
458,
2433,
67,
25247,
67,
3700,
471,
486,
590,
18,
1355,
18,
25247,
4672,
327,
2025,
13832,
830,
495,
18,
7083,
12,
21,
16,
389,
2932,
6225,
854,
486,
2935,
358,
3306,
279,
13773,
315,
768,
358,
333,
1363,
6,
3719,
225,
468,
8080,
866,
10098,
87,
309,
486,
590,
18,
1355,
18,
24877,
18,
2626,
12,
9095,
1069,
4672,
327,
2025,
13832,
830,
495,
18,
7083,
12,
21,
16,
389,
2932,
6225,
854,
486,
2935,
358,
3306,
279,
13773,
315,
768,
358,
333,
1363,
6,
3719,
225,
468,
2073,
2856,
326,
585,
1818,
1704,
18,
971,
518,
1552,
16,
866,
326,
9869,
18,
13543,
16,
1704,
273,
866,
67,
7331,
768,
12,
2293,
16,
4262,
1069,
16,
1544,
13,
309,
17791,
353,
486,
599,
471,
1704,
30,
775,
30,
1407,
273,
1696,
12,
28900,
16,
315,
6731,
7923,
1335,
30,
1342,
469,
30,
364,
5403,
316,
5403,
87,
30,
501,
273,
1407,
18,
896,
12,
6551,
1225,
13,
1308,
273,
3481,
25,
18,
2704,
12,
892,
2934,
7118,
10171,
1435,
309,
1308,
480,
5403,
30,
898,
469,
30,
501,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
28050,
12,
2293,
16,
4262,
1069,
16,
1544,
16,
17791,
16,
5403,
87,
16,
6156,
33,
5510,
4672,
389,
273,
590,
18,
588,
1528,
225,
468,
11637,
326,
1967,
2006,
11022,
487,
316,
490,
885,
49,
885,
1807,
31811,
67,
458,
1964,
468,
487,
2553,
316,
490,
885,
49,
885,
19,
11999,
481,
2436,
18,
2074,
309,
261,
2293,
18,
7066,
18,
2902,
7452,
67,
458,
2433,
67,
25247,
67,
3700,
471,
486,
590,
18,
1355,
18,
25247,
4672,
327,
2025,
13832,
830,
495,
18,
7083,
12,
21,
16,
389,
2932,
6225,
854,
486,
2935,
358,
3306,
279,
13773,
315,
768,
358,
333,
1363,
6,
3719,
225,
468,
8080,
866,
10098,
87,
309,
486,
590,
18,
1355,
2
] |
@keyword axis: This is the axis one wishes to manipulate. If no argument is given the default value is I{y}. @type axis: C{string}=<y or x> @keyword axis_pos: This is position of the axis in the axis array. If no argument is given, the default value is I{0}. @type axis_pos: C{int}
|
def integrate_axis(obj, **kwargs): """ This function takes a spectrum and integrates the given axis. The function assumes that the incoming data is in the histogram form. @param obj: Spectrum to be integrated @type obj: C{SOM.SOM} or C{SOM.SO} @param kwargs: A list of keyword arguments that the function accepts: @keyword start: Value for the start range of the integration. @type start: C{float} @keyword end: Value for the end range of the integration. @type end: C{float} @keyword axis: This is the axis one wishes to manipulate. If no argument is given the default value is I{y}. @type axis: C{string}=<y or x> @keyword axis_pos: This is position of the axis in the axis array. If no argument is given, the default value is I{0}. @type axis_pos: C{int} @keyword width: This is a flag to turn on the multiplication of the individual bin contents with the bins corresponding width. @type width: C{boolean} @keyword width_pos: This is position of the x-axis in the axis array from which to calculate the bin widths in support of the width flag. If no argument is given, the default value is I{0}. @type width_pos: C{int} @return: The integration value and its associated error @rtype: C{tuple} @raise RuntimError: A C{SOM} or C{SO} is not given to the function. @raise RuntimeError: The width keyword is used with x-axis integration. """ # import the helper functions import hlr_utils # set up for working through data o_descr = hlr_utils.get_descr(obj) if o_descr == "number" or o_descr == "list": raise RuntimeError("Must provide a SOM of a SO to the function.") # Go on else: pass # Check for starting bin try: start = kwargs["start"] except KeyError: start = 0 # Check for ending bin try: end = kwargs["end"] if end != -1: end += 1 else: pass except KeyError: end = -1 # Check for axis keyword argument try: axis = kwargs["axis"] except KeyError: axis = "y" # Check for axis_pos keyword argument try: axis_pos = kwargs["axis_pos"] except KeyError: axis_pos = 0 # Check for avg keyword argument try: avg = kwargs["avg"] except KeyError: avg = False # Check for width keyword argument try: width = kwargs["width"] except KeyError: width = False # Check for width_pos keyword argument try: width_pos = kwargs["width_pos"] except KeyError: width_pos = 0 integration = float(0) integration_error2 = float(0) import itertools if width: import utils bad_values = ["nan", "inf", "-inf"] for i in xrange(hlr_utils.get_length(obj)): counter = 0 value = hlr_utils.get_value(obj, i, o_descr, axis, axis_pos) error = hlr_utils.get_err2(obj, i, o_descr, axis, axis_pos) if end == -1: value = value[start:] error = error[start:] else: value = value[start:end] error = error[start:end] if not width: for val, err2 in itertools.izip(value, error): if str(val) in bad_values or str(err2) in bad_values: continue else: integration += val integration_error2 += err2 counter += 1 else: if axis == "y": x_axis = hlr_utils.get_value(obj, i, o_descr, "x", width_pos) x_err2 = hlr_utils.get_err2(obj, i, o_descr, "x", width_pos) elif axis == "x": raise RuntimeError("Cannot use width flag with x-axis "\ +"integration") bin_widths = utils.calc_bin_widths(x_axis, x_err2) for val, err2, delta in itertools.izip(value, error, bin_widths[0]): if str(val) in bad_values or str(err2) in bad_values: continue else: integration += (delta * val) integration_error2 += (delta * delta * err2) counter += 1 if avg: return (integration / float(counter), integration_error2 / float(counter)) else: return (integration, integration_error2)
|
053aac520160dc049a55963169d8a79cee672e6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/053aac520160dc049a55963169d8a79cee672e6a/hlr_integrate_axis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23367,
67,
4890,
12,
2603,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
279,
17970,
471,
11301,
815,
326,
864,
2654,
18,
1021,
445,
13041,
716,
326,
6935,
501,
353,
316,
326,
8892,
646,
18,
225,
632,
891,
1081,
30,
348,
13324,
358,
506,
31121,
632,
723,
1081,
30,
385,
95,
55,
1872,
18,
55,
1872,
97,
578,
385,
95,
55,
1872,
18,
3584,
97,
225,
632,
891,
1205,
30,
432,
666,
434,
4932,
1775,
716,
326,
445,
8104,
30,
225,
632,
11041,
787,
30,
1445,
364,
326,
787,
1048,
434,
326,
12040,
18,
632,
723,
787,
30,
385,
95,
5659,
97,
225,
632,
11041,
679,
30,
1445,
364,
326,
679,
1048,
434,
326,
12040,
18,
632,
723,
679,
30,
385,
95,
5659,
97,
225,
632,
11041,
1835,
30,
1220,
353,
279,
2982,
358,
7005,
603,
326,
23066,
434,
326,
7327,
4158,
2939,
598,
326,
8963,
4656,
1835,
18,
632,
723,
1835,
30,
385,
95,
6494,
97,
225,
632,
11041,
1835,
67,
917,
30,
1220,
353,
1754,
434,
326,
619,
17,
4890,
316,
326,
2654,
526,
628,
1492,
358,
4604,
326,
4158,
15801,
316,
2865,
434,
326,
1835,
2982,
18,
971,
1158,
1237,
353,
864,
16,
326,
805,
460,
353,
467,
95,
20,
5496,
632,
723,
1835,
67,
917,
30,
385,
95,
474,
97,
282,
632,
2463,
30,
1021,
12040,
460,
471,
2097,
3627,
555,
632,
86,
723,
30,
385,
95,
8052,
97,
282,
632,
11628,
1939,
8584,
668,
30,
432,
385,
95,
55,
1872,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23367,
67,
4890,
12,
2603,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
279,
17970,
471,
11301,
815,
326,
864,
2654,
18,
1021,
445,
13041,
716,
326,
6935,
501,
353,
316,
326,
8892,
646,
18,
225,
632,
891,
1081,
30,
348,
13324,
358,
506,
31121,
632,
723,
1081,
30,
385,
95,
55,
1872,
18,
55,
1872,
97,
578,
385,
95,
55,
1872,
18,
3584,
97,
225,
632,
891,
1205,
30,
432,
666,
434,
4932,
1775,
716,
326,
445,
8104,
30,
225,
632,
11041,
787,
30,
1445,
364,
326,
787,
1048,
434,
326,
12040,
18,
632,
723,
787,
30,
385,
95,
5659,
97,
225,
632,
11041,
679,
30,
1445,
364,
326,
679,
1048,
434,
326,
12040,
18,
632,
723,
2
] |
|
-- There are even faster ways to do this; for some coefficient
|
\begin{itemize} \item There are even faster ways to do this; for some coefficient
|
def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision.
|
46ea401e33b29612fe0c39b8964723eeb03ff038 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/46ea401e33b29612fe0c39b8964723eeb03ff038/power_series_ring_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
12,
2890,
16,
13382,
273,
27272,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1329,
12,
2890,
16,
13382,
273,
27272,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'nueva listaaa: ',sml_x_pd_id
|
def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[prod_id] sml_x_pd_id = product['sml'] no_cump = product['no_cump'] total = product['total'] avg = product['avg'] qda = product['qda'] cont = product['cont'] seq = product['seq'] def_code = self.pool.get('product.product').browse(cr,uid,prod_id).default_code.strip() if pending: print '@'*10 print 'procesando: ',self.pool.get('product.product').browse(cr,uid,prod_id).name #~ time.sleep(10) while sml_x_pd_id: sml_id = sml_x_pd_id.pop(0) value={} if not cont: cont = True q = 0.0 subtotal = 0.0 qda = 0.0 #se debe buscar el costo inicial cr.execute('SELECT standard_price,product_qty FROM lst_cost ' \ 'WHERE default_code=%s', (def_code,)) res = cr.fetchall() if res and res[0][1]: print 'encontre costo inicccc' avg,q = res[0] else: rpp = rpp_obj.browse(cr,uid,sml_id) if rpp.location_dest_id.id == loc_ids and rpp.invoice_id.type == 'in_invoice': q = rpp.picking_qty print 'cantidad inicialxxxxx: ',q avg = rpp.invoice_price_unit else: no_cump.append(sml_id) continue #avg = 1430.96 #q = 5.0 print 'cantidad inicial: ',q print 'costo inicial: ',avg total = avg*q subtotal = avg*q qda = q seq += 1 value = { 'subtotal':subtotal, 'total':total, 'avg':avg, 'stk_bef_cor':0.0, 'stk_aft_cor':qda, 'sequence':seq } scl_id = sc_line_obj.search(cr, uid, [('stk_mov_id','=',sml_id)]) sc_line_obj.write(cr, uid, scl_id, value) print 'q inicial: ',q print 'avg: ',avg print 'qda inicial: ',qda print 'seq inicial: ',seq else: rpp = rpp_obj.browse(cr,uid,sml_id) q = rpp.picking_qty scl_id = sc_line_obj.search(cr, uid, [('stk_mov_id','=',sml_id)]) scl = sc_line_obj.browse(cr,uid,scl_id)[0] print 'viene operac: ',sml_id print 'packing: ',rpp.picking_id.name print 'seq antes operac: ',seq #VENTA if rpp.location_id.id == loc_ids and rpp.invoice_id.type == 'out_invoice': print 'validando VENTA:' qda,total,avg,no_cump,seq= \ self.validate_venta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq #NC COMPRA if rpp.location_id.id == loc_ids and (rpp.invoice_id.type == 'in_refund' or rpp.invoice_id.type == 'in_invoice'): print 'validando NC compra:' qda,total,avg,no_cump,seq= \ self.validate_nc_compra(cr,uid,ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq #COMPRA if rpp.location_dest_id.id == loc_ids and rpp.invoice_id.type == 'in_invoice': print 'procesooo compra:' q_bef = qda qda,subtotal,total,avg = self.compute_compra(cr, uid, ids,scl,q,total,avg,qda) #REALIZAR EL WRITE DE LA LINEA value = { 'subtotal':subtotal, 'total':total, 'avg':avg, 'stk_bef_cor':q_bef, 'stk_aft_cor':qda } seq=self.write_data(cr, uid, ids, scl.id, value, seq) print 'seq despues operac: ',seq if no_cump: print 'agregando nuevamente las vta:' #no_cump.append(sml_id) no_cump.extend(sml_x_pd_id) print 'no cumplioooo: ',no_cump sml_x_pd_id = no_cump print 'nueva listaaa: ',sml_x_pd_id no_cump = [] #NC VENTA if rpp.location_dest_id.id == loc_ids and rpp.invoice_id.type == 'out_refund': print 'validando NC VENTA:' qda,total,avg,no_cump,seq= \ self.validate_nc_vta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq if no_cump and not scl.parent_id: print 'agregando nuevamente los movimientos:' #no_cump.append(sml_id) no_cump.extend(sml_x_pd_id) print 'no cumplioooo: ',no_cump sml_x_pd_id = no_cump print 'nueva listaaa: ',sml_x_pd_id no_cump = [] #DESTINO USO INTERNO if rpp.location_id.id == loc_ids and rpp.location_dest_id.id == inter_loc_ids: print 'validando USO INTERNO:' #fixme blanquear la variables de cuenta #acc_src = None #acc_dest = None qda,total,avg,no_cump,seq= \ self.validate_venta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq valores = {} if not (rpp.aml_cost_id or rpp.aml_inv_id): move = scl.stk_mov_id acc_src = move.product_id.product_tmpl_id.\ property_stock_account_output.id if move.location_dest_id.account_id: acc_dest = move.location_dest_id.account_id.id acc_mov_id = self.write_aml(cr, uid, ids, scl, q, avg, acc_src, acc_dest) acc_mov_obj = self.pool.get('account.move').browse(cr,uid,acc_mov_id) for aml in acc_mov_obj.line_id: valores.update({ 'aml_cost_qty':aml.quantity or 0.0, 'aml_cost_price_unit':avg, 'aml_inv_qty':aml.quantity or 0.0, 'aml_inv_price_unit':avg}) if aml.debit: valores.update({'aml_cost_id':aml.id}) if aml.credit: valores.update({'aml_inv_id':aml.id}) sc_line_obj.write(cr, uid, scl.id, valores) #~ else: #~ id1=scl.aml_cost_id.id #~ id2=scl.aml_inv_id.id #~ if not scl.aml_cost_id.credit: #~ valores.update({'aml_cost_id':id2, 'aml_inv_id':id1}) #~ sc_line_obj.write(cr, uid, scl.id, valores) #~ #DESTINO PROCESAMIENTO if rpp.location_id.id == loc_ids and rpp.location_dest_id.id == prod_loc_ids: print 'validando PROCESAMIENTO:' #fixme blanquear la variables de cuenta #acc_src = None #acc_dest = None qda,total,avg,no_cump,seq= \ self.validate_venta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq valores = {} if not (rpp.aml_cost_id or rpp.aml_inv_id): move = scl.stk_mov_id acc_src = move.product_id.product_tmpl_id.\ property_stock_account_output.id if move.location_dest_id.account_id: acc_dest = move.location_dest_id.account_id.id
|
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
764,
297,
67,
5896,
83,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
9696,
16,
1515,
67,
2232,
16,
1554,
67,
1829,
67,
2232,
16,
10791,
67,
1829,
67,
2232,
16,
4634,
33,
8381,
4672,
9163,
27842,
83,
443,
846,
344,
12124,
443,
670,
1226,
869,
432,
303,
8838,
12602,
450,
764,
301,
1979,
83,
283,
2789,
20593,
443,
443,
12480,
5270,
980,
9163,
8715,
84,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
6006,
18,
685,
7216,
18,
11503,
310,
6134,
888,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3327,
18,
1369,
6134,
3017,
273,
9696,
63,
17672,
67,
350,
65,
272,
781,
67,
92,
67,
22353,
67,
350,
273,
3017,
3292,
87,
781,
3546,
1158,
67,
71,
2801,
273,
3017,
3292,
2135,
67,
71,
2801,
3546,
2078,
273,
3017,
3292,
4963,
3546,
11152,
273,
3017,
3292,
14141,
3546,
1043,
2414,
273,
3017,
3292,
85,
2414,
3546,
466,
273,
3017,
3292,
1213,
3546,
3833,
273,
3017,
3292,
5436,
3546,
1652,
67,
710,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
16063,
25731,
12,
3353,
16,
1911,
16,
17672,
67,
350,
2934,
1886,
67,
710,
18,
6406,
1435,
225,
309,
4634,
30,
1172,
9175,
14,
2163,
1172,
296,
685,
764,
28630,
30,
2265,
2890,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
16063,
25731,
12,
3353,
16,
1911,
16,
17672,
67,
350,
2934,
529,
468,
98,
813,
18,
19607,
12,
2163,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
764,
297,
67,
5896,
83,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
9696,
16,
1515,
67,
2232,
16,
1554,
67,
1829,
67,
2232,
16,
10791,
67,
1829,
67,
2232,
16,
4634,
33,
8381,
4672,
9163,
27842,
83,
443,
846,
344,
12124,
443,
670,
1226,
869,
432,
303,
8838,
12602,
450,
764,
301,
1979,
83,
283,
2789,
20593,
443,
443,
12480,
5270,
980,
9163,
8715,
84,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
6006,
18,
685,
7216,
18,
11503,
310,
6134,
888,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3327,
18,
1369,
6134,
3017,
273,
9696,
63,
17672,
67,
350,
65,
272,
781,
67,
2
] |
|
carry += a._getshort(i) z._setshort(i, carry & MASK)
|
carry += a.digits[i] z.digits[i] = carry & MASK
|
def _x_add(a, b): """ Add the absolute values of two long integers. """ size_a = len(a.digits) * 2 size_b = len(b.digits) * 2 # Ensure a is the larger of the two: if size_a < size_b: a, b = b, a size_a, size_b = size_b, size_a z = W_LongObject(a.space, [r_uint(0)] * (len(a.digits) + 1), 1) i = 0 carry = r_uint(0) while i < size_b: carry += a._getshort(i) + b._getshort(i) z._setshort(i, carry & MASK) carry >>= SHIFT i += 1 while i < size_a: carry += a._getshort(i) z._setshort(i, carry & MASK) carry >>= SHIFT i += 1 z._setshort(i, carry) z._normalize() return z
|
ad929a678777d2ef2df66adef7cd3564d723bca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ad929a678777d2ef2df66adef7cd3564d723bca6/longobject.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
92,
67,
1289,
12,
69,
16,
324,
4672,
3536,
1436,
326,
4967,
924,
434,
2795,
1525,
12321,
18,
3536,
963,
67,
69,
273,
562,
12,
69,
18,
16649,
13,
380,
576,
963,
67,
70,
273,
562,
12,
70,
18,
16649,
13,
380,
576,
225,
468,
7693,
279,
353,
326,
10974,
434,
326,
2795,
30,
309,
963,
67,
69,
411,
963,
67,
70,
30,
279,
16,
324,
273,
324,
16,
279,
963,
67,
69,
16,
963,
67,
70,
273,
963,
67,
70,
16,
963,
67,
69,
998,
273,
678,
67,
3708,
921,
12,
69,
18,
2981,
16,
306,
86,
67,
11890,
12,
20,
25887,
380,
261,
1897,
12,
69,
18,
16649,
13,
397,
404,
3631,
404,
13,
277,
273,
374,
9331,
273,
436,
67,
11890,
12,
20,
13,
1323,
277,
411,
963,
67,
70,
30,
9331,
1011,
279,
6315,
588,
6620,
12,
77,
13,
397,
324,
6315,
588,
6620,
12,
77,
13,
998,
6315,
542,
6620,
12,
77,
16,
9331,
473,
23888,
13,
9331,
23359,
6122,
17925,
277,
1011,
404,
1323,
277,
411,
963,
67,
69,
30,
9331,
1011,
279,
18,
16649,
63,
77,
65,
998,
18,
16649,
63,
77,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1436,
326,
4967,
924,
434,
2795,
1525,
12321,
18,
3536,
963,
67,
69,
273,
562,
12,
69,
18,
16649,
13,
380,
576,
963,
67,
70,
273,
562,
12,
70,
18,
16649,
13,
380,
576,
225,
468,
7693,
279,
353,
326,
10974,
434,
326,
2795,
30,
309,
963,
67,
69,
411,
963,
67,
70,
30,
279,
16,
324,
273,
324,
16,
279,
963,
67,
69,
16,
963,
67,
70,
273,
963,
67,
70,
16,
963,
67,
69,
998,
273,
678,
67,
3708,
921,
12,
69,
18,
2981,
16,
306,
86,
67,
11890,
12,
20,
25887,
380,
261,
1897,
12,
69,
18,
16649,
13,
397,
404,
3631,
404,
13,
277,
2
] |
res = os.popen("file --brief --mime-type '%s'" % filename).read().strip()
|
res = os.popen(file_cmd % filename).read().strip()
|
def get_file_mimetype(filename): res = os.popen("file --brief --mime-type '%s'" % filename).read().strip() assert res, "Cannot get mime type using `file' command" return res
|
fe896447cf1494e613734ee3bbf84c287399e0c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/fe896447cf1494e613734ee3bbf84c287399e0c0/sip_im_send_file.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
22571,
12,
3459,
4672,
400,
273,
1140,
18,
84,
3190,
12,
768,
67,
4172,
738,
1544,
2934,
896,
7675,
6406,
1435,
1815,
400,
16,
315,
4515,
336,
4892,
618,
1450,
1375,
768,
11,
1296,
6,
327,
400,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
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,
768,
67,
22571,
12,
3459,
4672,
400,
273,
1140,
18,
84,
3190,
12,
768,
67,
4172,
738,
1544,
2934,
896,
7675,
6406,
1435,
1815,
400,
16,
315,
4515,
336,
4892,
618,
1450,
1375,
768,
11,
1296,
6,
327,
400,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"deprecated, use useUpdateCallback() instead")
|
"deprecated, use setUpdateCallback() instead")
|
def updateChangeSet(self, itemList, keepExisting = False, recurse = True, resolveDeps = True, test = False, updateByDefault = True, callback=None, split = True, sync = False, fromChangesets = [], checkPathConflicts = True, checkPrimaryPins = True, resolveRepos = True, syncChildren = False, updateOnly = False, resolveGroupList=None, installMissing = False, removeNotByDefault = False, keepRequired = False, migrate = False, criticalUpdateInfo=None, resolveSource = None): """ Creates a changeset to update the system based on a set of trove update and erase operations. If self.cfg.autoResolve is set, dependencies within the job are automatically closed.
|
a6fffb0700ec02169a9a444ce26c52d55e686eba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/a6fffb0700ec02169a9a444ce26c52d55e686eba/update.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
21565,
12,
2890,
16,
761,
682,
16,
3455,
9895,
273,
1083,
16,
11502,
273,
1053,
16,
2245,
14430,
273,
1053,
16,
1842,
273,
1083,
16,
1089,
858,
1868,
273,
1053,
16,
1348,
33,
7036,
16,
1416,
273,
1053,
16,
3792,
273,
1083,
16,
628,
7173,
2413,
273,
5378,
16,
866,
743,
30897,
273,
1053,
16,
866,
6793,
52,
2679,
273,
1053,
16,
2245,
28453,
273,
1053,
16,
3792,
4212,
273,
1083,
16,
1089,
3386,
273,
1083,
16,
2245,
1114,
682,
33,
7036,
16,
3799,
4841,
273,
1083,
16,
1206,
1248,
858,
1868,
273,
1083,
16,
3455,
3705,
273,
1083,
16,
13187,
273,
1083,
16,
11239,
1891,
966,
33,
7036,
16,
2245,
1830,
273,
599,
4672,
3536,
10210,
279,
22463,
358,
1089,
326,
2619,
2511,
603,
279,
444,
434,
23432,
537,
1089,
471,
22038,
5295,
18,
971,
365,
18,
7066,
18,
6079,
8460,
353,
444,
16,
5030,
3470,
326,
1719,
854,
6635,
4375,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
21565,
12,
2890,
16,
761,
682,
16,
3455,
9895,
273,
1083,
16,
11502,
273,
1053,
16,
2245,
14430,
273,
1053,
16,
1842,
273,
1083,
16,
1089,
858,
1868,
273,
1053,
16,
1348,
33,
7036,
16,
1416,
273,
1053,
16,
3792,
273,
1083,
16,
628,
7173,
2413,
273,
5378,
16,
866,
743,
30897,
273,
1053,
16,
866,
6793,
52,
2679,
273,
1053,
16,
2245,
28453,
273,
1053,
16,
3792,
4212,
273,
1083,
16,
1089,
3386,
273,
1083,
16,
2245,
1114,
682,
33,
7036,
16,
3799,
4841,
273,
1083,
16,
1206,
1248,
858,
1868,
273,
1083,
16,
3455,
3705,
273,
1083,
16,
13187,
273,
1083,
16,
11239,
1891,
966,
33,
7036,
16,
2245,
1830,
273,
599,
4672,
3536,
10210,
2
] |
self.assert_(isinstance(an_entry, gspreadsheet.GSpreadsheetsSpreadsheet))
|
self.assert_(isinstance(an_entry, gspreadsheet.SpreadsheetsSpreadsheet))
|
def testToAndFromString(self): self.assert_(len(self.feed.entry) == 1) for an_entry in self.feed.entry: self.assert_(isinstance(an_entry, gspreadsheet.GSpreadsheetsSpreadsheet)) new_feed = gspreadsheet.GSpreadsheetsSpreadsheetsFeedFromString( str(self.feed)) for an_entry in new_feed.entry: self.assert_(isinstance(an_entry, gspreadsheet.GSpreadsheetsSpreadsheet))
|
50afc41651ef00ab4626fbe905c8ac1304fb3b37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/50afc41651ef00ab4626fbe905c8ac1304fb3b37/gspreadsheet_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
774,
1876,
9193,
12,
2890,
4672,
365,
18,
11231,
67,
12,
1897,
12,
2890,
18,
7848,
18,
4099,
13,
422,
404,
13,
364,
392,
67,
4099,
316,
365,
18,
7848,
18,
4099,
30,
365,
18,
11231,
67,
12,
291,
1336,
12,
304,
67,
4099,
16,
314,
26007,
8118,
18,
3389,
11904,
10245,
28719,
8118,
3719,
394,
67,
7848,
273,
314,
26007,
8118,
18,
43,
3389,
11904,
10245,
3389,
11904,
10245,
8141,
9193,
12,
609,
12,
2890,
18,
7848,
3719,
364,
392,
67,
4099,
316,
394,
67,
7848,
18,
4099,
30,
365,
18,
11231,
67,
12,
291,
1336,
12,
304,
67,
4099,
16,
314,
26007,
8118,
18,
3389,
11904,
10245,
28719,
8118,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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404,
13,
364,
392,
67,
4099,
316,
365,
18,
7848,
18,
4099,
30,
365,
18,
11231,
67,
12,
291,
1336,
12,
304,
67,
4099,
16,
314,
26007,
8118,
18,
3389,
11904,
10245,
28719,
8118,
3719,
394,
67,
7848,
273,
314,
26007,
8118,
18,
43,
3389,
11904,
10245,
3389,
11904,
10245,
8141,
9193,
12,
609,
12,
2890,
18,
7848,
3719,
364,
392,
67,
4099,
316,
394,
67,
7848,
18,
4099,
30,
365,
18,
11231,
67,
12,
291,
1336,
12,
304,
67,
4099,
16,
314,
26007,
8118,
18,
3389,
11904,
10245,
28719,
8118,
3719,
225,
2,
-100,
-100,
-100,
-100
] |
if sys.platform.startswith("win"): lookfor = " denied"
|
if sys.platform == 'win32': expected_exit_code = 2
|
def test_directories(self): # Does this test make sense? The message for "< ." may depend on # the command shell, and the message for "." depends on the OS. if sys.platform.startswith("win"): # On WinXP w/ cmd.exe, # "< ." gives "Access is denied.\n" # "." gives "C:\\Code\\python\\PCbuild\\python.exe: " + # "can't open file '.':" + # "[Errno 13] Permission denied\n" lookfor = " denied" # common to both cases else: # This is what the test looked for originally, on all platforms. lookfor = "is a directory" self.assertTrue(lookfor in self.start_python('.')) self.assertTrue(lookfor in self.start_python('< .'))
|
bc1646a846c494d093af945ba5d70215d8fb2af5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc1646a846c494d093af945ba5d70215d8fb2af5/test_cmd_line.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15121,
12,
2890,
4672,
468,
9637,
333,
1842,
1221,
12764,
35,
225,
1021,
883,
364,
3532,
263,
6,
225,
2026,
2447,
603,
468,
326,
1296,
5972,
16,
471,
326,
883,
364,
4585,
10935,
603,
326,
5932,
18,
309,
2589,
18,
9898,
18,
17514,
1918,
2932,
8082,
6,
4672,
468,
2755,
21628,
60,
52,
341,
19,
1797,
18,
14880,
16,
468,
565,
3532,
263,
6,
14758,
315,
1862,
353,
15338,
8403,
82,
6,
468,
565,
4585,
282,
14758,
315,
39,
31027,
1085,
1695,
8103,
1695,
3513,
3510,
1695,
8103,
18,
14880,
30,
315,
397,
468,
7734,
315,
4169,
1404,
1696,
585,
2611,
2773,
397,
468,
7734,
5158,
2524,
2135,
5958,
65,
8509,
15338,
64,
82,
6,
2324,
1884,
273,
315,
15338,
6,
225,
468,
2975,
358,
3937,
6088,
469,
30,
468,
1220,
353,
4121,
326,
1842,
27321,
364,
24000,
16,
603,
777,
17422,
18,
2324,
1884,
273,
315,
291,
279,
1867,
6,
365,
18,
11231,
5510,
12,
7330,
1884,
316,
365,
18,
1937,
67,
8103,
2668,
1093,
3719,
365,
18,
11231,
5510,
12,
7330,
1884,
316,
365,
18,
1937,
67,
8103,
2668,
32,
263,
26112,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1842,
67,
15121,
12,
2890,
4672,
468,
9637,
333,
1842,
1221,
12764,
35,
225,
1021,
883,
364,
3532,
263,
6,
225,
2026,
2447,
603,
468,
326,
1296,
5972,
16,
471,
326,
883,
364,
4585,
10935,
603,
326,
5932,
18,
309,
2589,
18,
9898,
18,
17514,
1918,
2932,
8082,
6,
4672,
468,
2755,
21628,
60,
52,
341,
19,
1797,
18,
14880,
16,
468,
565,
3532,
263,
6,
14758,
315,
1862,
353,
15338,
8403,
82,
6,
468,
565,
4585,
282,
14758,
315,
39,
31027,
1085,
1695,
8103,
1695,
3513,
3510,
1695,
8103,
18,
14880,
30,
315,
397,
468,
7734,
315,
4169,
1404,
1696,
585,
2611,
2773,
397,
468,
7734,
5158,
2524,
2135,
5958,
65,
8509,
15338,
64,
82,
6,
2324,
2
] |
pass
|
pass
|
def file_dialog(self):
|
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
12730,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
585,
67,
12730,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-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,
-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
] |
return u"<Poll(%d,%s,%s,%s)>" % (self.id,
|
return u"<Poll(%s,%s,%s,%s)>" % (self.id,
|
def __repr__(self): return u"<Poll(%d,%s,%s,%s)>" % (self.id, self.motion_id, self.begin_time, self.end_time)
|
bc48e2131081eb487311586471d9d41d6c137642 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/bc48e2131081eb487311586471d9d41d6c137642/poll.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
582,
6,
32,
19085,
9275,
87,
15529,
87,
15529,
87,
15529,
87,
13,
2984,
738,
261,
2890,
18,
350,
16,
365,
18,
81,
8240,
67,
350,
16,
365,
18,
10086,
67,
957,
16,
365,
18,
409,
67,
957,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
327,
582,
6,
32,
19085,
9275,
87,
15529,
87,
15529,
87,
15529,
87,
13,
2984,
738,
261,
2890,
18,
350,
16,
365,
18,
81,
8240,
67,
350,
16,
365,
18,
10086,
67,
957,
16,
365,
18,
409,
67,
957,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
env={key: value})
|
env=env)
|
def test_undecodable_env(self): for key, value in (('test', 'abc\uDCFF'), ('test\uDCFF', '42')): value_repr = repr(value).encode("ascii")
|
2c251e40f93cfea5ba536a21955ca18012cebccc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/2c251e40f93cfea5ba536a21955ca18012cebccc/test_subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
318,
323,
1559,
429,
67,
3074,
12,
2890,
4672,
364,
498,
16,
460,
316,
261,
2668,
3813,
2187,
296,
18947,
64,
89,
5528,
2246,
19899,
7707,
3813,
64,
89,
5528,
2246,
2187,
296,
9452,
26112,
30,
460,
67,
12715,
273,
8480,
12,
1132,
2934,
3015,
2932,
9184,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
67,
318,
323,
1559,
429,
67,
3074,
12,
2890,
4672,
364,
498,
16,
460,
316,
261,
2668,
3813,
2187,
296,
18947,
64,
89,
5528,
2246,
19899,
7707,
3813,
64,
89,
5528,
2246,
2187,
296,
9452,
26112,
30,
460,
67,
12715,
273,
8480,
12,
1132,
2934,
3015,
2932,
9184,
7923,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.symlink(item['source'], path)
|
source = item['source'] logging.info('%s -> %s', path, source) if os.path.exists(path): os.unlink(path) os.symlink(source, path) self.restore_stat(path, item, call_utime=False) elif item['type'] == 'HARDLINK': if not os.path.exists(os.path.dirname(path)): os.makedirs(os.path.dirname(path)) source = os.path.join(dest, item['source']) logging.info('%s => %s', path, source) if os.path.exists(path): os.unlink(path) os.link(source, path)
|
def extract(self, dest=None): dest = dest or os.getcwdu() for item in self.items: assert item['path'][0] not in ('/', '\\', ':') path = os.path.join(dest, item['path'].decode('utf-8')) if item['type'] == 'DIRECTORY': logging.info(path) if not os.path.exists(path): os.makedirs(path) elif item['type'] == 'SYMLINK': logging.info('%s => %s', path, item['source']) if not os.path.exists(os.path.dirname(path)): os.makedirs(os.path.dirname(path)) os.symlink(item['source'], path) elif item['type'] == 'FILE': logging.info(path) if not os.path.exists(os.path.dirname(path)): os.makedirs(os.path.dirname(path)) with open(path, 'wb') as fd: for chunk in item['chunks']: id = self.chunk_idx[chunk] data = self.store.get(NS_CHUNKS, id) cid = data[:32] data = data[32:] if hashlib.sha256(data).digest() != cid: raise Exception('Invalid chunk checksum') data = zlib.decompress(data) fd.write(data) os.chmod(path, item['mode']) uid = user2uid(item['user']) or item['uid'] gid = group2gid(item['group']) or item['gid'] try: os.chown(path, uid, gid) except OSError: pass os.utime(path, (item['ctime'], item['mtime']))
|
afdabb623a59791b47f636e1a523011992cb3fde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3863/afdabb623a59791b47f636e1a523011992cb3fde/archive.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12,
2890,
16,
1570,
33,
7036,
4672,
1570,
273,
1570,
578,
1140,
18,
588,
71,
91,
2544,
1435,
364,
761,
316,
365,
18,
3319,
30,
1815,
761,
3292,
803,
3546,
63,
20,
65,
486,
316,
7707,
19,
2187,
3718,
2187,
3921,
13,
589,
273,
1140,
18,
803,
18,
5701,
12,
10488,
16,
761,
3292,
803,
29489,
3922,
2668,
3158,
17,
28,
26112,
309,
761,
3292,
723,
3546,
422,
296,
17229,
4278,
2907,
18,
1376,
12,
803,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1140,
18,
81,
9477,
10539,
12,
803,
13,
1327,
761,
3292,
723,
3546,
422,
296,
7474,
1495,
8476,
4278,
2907,
18,
1376,
29909,
87,
516,
738,
87,
2187,
589,
16,
761,
3292,
3168,
19486,
309,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
12287,
12,
803,
3719,
30,
1140,
18,
81,
9477,
10539,
12,
538,
18,
803,
18,
12287,
12,
803,
3719,
1084,
273,
761,
3292,
3168,
3546,
2907,
18,
1376,
29909,
87,
317,
738,
87,
2187,
589,
16,
1084,
13,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1140,
18,
318,
1232,
12,
803,
13,
1140,
18,
21278,
12,
3168,
16,
589,
13,
365,
18,
13991,
67,
5642,
12,
803,
16,
761,
16,
745,
67,
322,
494,
33,
8381,
13,
1327,
761,
3292,
723,
3546,
422,
296,
44,
8085,
10554,
4278,
309,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
12287,
12,
803,
3719,
30,
1140,
18,
81,
9477,
10539,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12,
2890,
16,
1570,
33,
7036,
4672,
1570,
273,
1570,
578,
1140,
18,
588,
71,
91,
2544,
1435,
364,
761,
316,
365,
18,
3319,
30,
1815,
761,
3292,
803,
3546,
63,
20,
65,
486,
316,
7707,
19,
2187,
3718,
2187,
3921,
13,
589,
273,
1140,
18,
803,
18,
5701,
12,
10488,
16,
761,
3292,
803,
29489,
3922,
2668,
3158,
17,
28,
26112,
309,
761,
3292,
723,
3546,
422,
296,
17229,
4278,
2907,
18,
1376,
12,
803,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1140,
18,
81,
9477,
10539,
12,
803,
13,
1327,
761,
3292,
723,
3546,
422,
296,
7474,
1495,
8476,
4278,
2907,
18,
1376,
29909,
87,
516,
738,
87,
2187,
589,
16,
2
] |
elif self.clean_data.get('use_repository'):
|
elif use_repository:
|
def apply(self, cset, request, repos): if cset.asset.repos and cset.asset.repos.is_active and not self.clean_data.get('use_repository'): # Deactivate repository
|
1bd84fd46c8dd3338087e5bf23c93073ece705f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6757/1bd84fd46c8dd3338087e5bf23c93073ece705f8/assets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
276,
542,
16,
590,
16,
13686,
4672,
309,
276,
542,
18,
9406,
18,
15564,
471,
276,
542,
18,
9406,
18,
15564,
18,
291,
67,
3535,
471,
486,
365,
18,
6200,
67,
892,
18,
588,
2668,
1202,
67,
9071,
11,
4672,
468,
1505,
10014,
3352,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2230,
12,
2890,
16,
276,
542,
16,
590,
16,
13686,
4672,
309,
276,
542,
18,
9406,
18,
15564,
471,
276,
542,
18,
9406,
18,
15564,
18,
291,
67,
3535,
471,
486,
365,
18,
6200,
67,
892,
18,
588,
2668,
1202,
67,
9071,
11,
4672,
468,
1505,
10014,
3352,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import ImageEnhance
|
def ReduceOpacity(im, opacity): """ Returns an image with reduced opacity. Taken from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362879 """ import ImageEnhance assert opacity >= 0 and opacity <= 1 if im.mode != 'RGBA': im = im.convert('RGBA') else: im = im.copy() alpha = im.split()[3] alpha = ImageEnhance.Brightness(alpha).enhance(opacity) im.putalpha(alpha) return im
|
86aab786ac935ad7bedbaf0a1d31cac905e1574e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5402/86aab786ac935ad7bedbaf0a1d31cac905e1574e/pwm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24614,
21379,
12,
381,
16,
12636,
4672,
3536,
2860,
392,
1316,
598,
13162,
12636,
18,
399,
7940,
628,
1062,
2207,
345,
7449,
18,
11422,
395,
340,
18,
832,
19,
3033,
15124,
19,
39,
1184,
3618,
19,
15774,
19,
5650,
3151,
19,
5718,
6030,
7235,
3536,
225,
1815,
12636,
1545,
374,
471,
12636,
1648,
404,
309,
709,
18,
3188,
480,
296,
23263,
4278,
709,
273,
709,
18,
6283,
2668,
23263,
6134,
469,
30,
709,
273,
709,
18,
3530,
1435,
4190,
273,
709,
18,
4939,
1435,
63,
23,
65,
4190,
273,
3421,
664,
12207,
18,
38,
4083,
4496,
12,
5429,
2934,
275,
12207,
12,
19515,
13,
709,
18,
458,
5429,
12,
5429,
13,
327,
709,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24614,
21379,
12,
381,
16,
12636,
4672,
3536,
2860,
392,
1316,
598,
13162,
12636,
18,
399,
7940,
628,
1062,
2207,
345,
7449,
18,
11422,
395,
340,
18,
832,
19,
3033,
15124,
19,
39,
1184,
3618,
19,
15774,
19,
5650,
3151,
19,
5718,
6030,
7235,
3536,
225,
1815,
12636,
1545,
374,
471,
12636,
1648,
404,
309,
709,
18,
3188,
480,
296,
23263,
4278,
709,
273,
709,
18,
6283,
2668,
23263,
6134,
469,
30,
709,
273,
709,
18,
3530,
1435,
4190,
273,
709,
18,
4939,
1435,
63,
23,
65,
4190,
273,
3421,
664,
12207,
18,
38,
4083,
4496,
12,
5429,
2934,
275,
12207,
12,
19515,
13,
709,
18,
458,
5429,
12,
5429,
13,
327,
709,
225,
2,
-100,
-100,
-100,
-100
] |
|
def findSuffix(self, regex): """ Try to find a common prefix of two string regex, returns: - None if there is no common prefix - (regexa, regexb, suffix) otherwise => (regexa|regexb) + suffix >>> RegexString('dark color').findSuffix(RegexString('deep color')) (<RegexString 'dark'>, <RegexString 'deep'>, <RegexString ' color'>) """ if regex.__class__ != RegexString: return None texta = self._text textb = regex._text common = None for length in xrange(1, min(len(texta),len(textb))+1): if textb.endswith(texta[-length:]): common = length else: break if not common: return None return ( createString(texta[:-common]), createString(textb[:-common]), createString(texta[-common:]))
|
def _str(self, **kw): return escapeRegex(self._text)
|
4a8d93e059c3f6a04f35567f0126ed487a6490e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/4a8d93e059c3f6a04f35567f0126ed487a6490e6/regex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
701,
12,
2890,
16,
2826,
9987,
4672,
327,
4114,
6628,
12,
2890,
6315,
955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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
701,
12,
2890,
16,
2826,
9987,
4672,
327,
4114,
6628,
12,
2890,
6315,
955,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
from Numeric import array, Float
|
def get_wannier_localization_matrix(self, nbands, dirG, kpoint, nextkpoint, G_I, spin): from Numeric import array, Float return npy.array(self.calc.GetWannierLocalizationMatrix( array(G_I, Float), nbands, array(dirG, Float), kpoint, nextkpoint, spin))
|
60533436451e6b9578b6353231e45ab960e34dcb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/60533436451e6b9578b6353231e45ab960e34dcb/old.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
91,
1072,
2453,
67,
3729,
1588,
67,
5667,
12,
2890,
16,
4264,
5708,
16,
1577,
43,
16,
417,
1153,
16,
1024,
79,
1153,
16,
611,
67,
45,
16,
12490,
4672,
327,
1130,
93,
18,
1126,
12,
2890,
18,
12448,
18,
967,
59,
1072,
2453,
19157,
4635,
12,
526,
12,
43,
67,
45,
16,
5450,
3631,
4264,
5708,
16,
526,
12,
1214,
43,
16,
5450,
3631,
417,
1153,
16,
1024,
79,
1153,
16,
12490,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
91,
1072,
2453,
67,
3729,
1588,
67,
5667,
12,
2890,
16,
4264,
5708,
16,
1577,
43,
16,
417,
1153,
16,
1024,
79,
1153,
16,
611,
67,
45,
16,
12490,
4672,
327,
1130,
93,
18,
1126,
12,
2890,
18,
12448,
18,
967,
59,
1072,
2453,
19157,
4635,
12,
526,
12,
43,
67,
45,
16,
5450,
3631,
4264,
5708,
16,
526,
12,
1214,
43,
16,
5450,
3631,
417,
1153,
16,
1024,
79,
1153,
16,
12490,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
filename = "%s/%s"%(self.famID[event.requestID], event.filename)
|
filename = "%s/%s" % (self.famID[event.requestID], event.filename)
|
def HandleEvent(self, event): action = event.code2str() if event.filename[0] != '/': filename = "%s/%s"%(self.famID[event.requestID], event.filename) else: filename = event.filename if action == 'exists': if filename != self.name: self.AddEntry(filename) elif action == 'created': self.AddEntry(filename) elif action == 'changed': # pass the event down the chain to the ConfigFileEntry configfile = filename[len(self.name):-(len(event.filename)+1)] if event.filename == ':info': event.filename = filename self.entries[configfile].HandleEvent(event) elif action == 'deleted': configfile = filename[len(self.name):-(len(event.filename)+1)] self.entries[configfile].HandleEvent(event) elif action in ['endExist']: pass else: print "Got unknown event %s %s %s"%(event.requestID, event.code2str(), event.filename)
|
853220b7567cb814567d38bf7d0924fd4ebd2d1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/853220b7567cb814567d38bf7d0924fd4ebd2d1c/cfg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1133,
12,
2890,
16,
871,
4672,
1301,
273,
871,
18,
710,
22,
701,
1435,
309,
871,
18,
3459,
63,
20,
65,
480,
2023,
30,
1544,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
74,
301,
734,
63,
2575,
18,
2293,
734,
6487,
871,
18,
3459,
13,
469,
30,
1544,
273,
871,
18,
3459,
309,
1301,
422,
296,
1808,
4278,
309,
1544,
480,
365,
18,
529,
30,
365,
18,
986,
1622,
12,
3459,
13,
1327,
1301,
422,
296,
4824,
4278,
365,
18,
986,
1622,
12,
3459,
13,
1327,
1301,
422,
296,
6703,
4278,
468,
1342,
326,
871,
2588,
326,
2687,
358,
326,
1903,
20110,
642,
768,
273,
1544,
63,
1897,
12,
2890,
18,
529,
4672,
17,
12,
1897,
12,
2575,
18,
3459,
27921,
21,
25887,
309,
871,
18,
3459,
422,
4290,
1376,
4278,
871,
18,
3459,
273,
1544,
365,
18,
8219,
63,
1425,
768,
8009,
3259,
1133,
12,
2575,
13,
1327,
1301,
422,
296,
8600,
4278,
642,
768,
273,
1544,
63,
1897,
12,
2890,
18,
529,
4672,
17,
12,
1897,
12,
2575,
18,
3459,
27921,
21,
25887,
365,
18,
8219,
63,
1425,
768,
8009,
3259,
1133,
12,
2575,
13,
1327,
1301,
316,
10228,
409,
4786,
3546,
30,
1342,
469,
30,
1172,
315,
15617,
5917,
871,
738,
87,
738,
87,
738,
87,
6,
17105,
2575,
18,
2293,
734,
16,
871,
18,
710,
22,
701,
9334,
871,
18,
3459,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1133,
12,
2890,
16,
871,
4672,
1301,
273,
871,
18,
710,
22,
701,
1435,
309,
871,
18,
3459,
63,
20,
65,
480,
2023,
30,
1544,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
74,
301,
734,
63,
2575,
18,
2293,
734,
6487,
871,
18,
3459,
13,
469,
30,
1544,
273,
871,
18,
3459,
309,
1301,
422,
296,
1808,
4278,
309,
1544,
480,
365,
18,
529,
30,
365,
18,
986,
1622,
12,
3459,
13,
1327,
1301,
422,
296,
4824,
4278,
365,
18,
986,
1622,
12,
3459,
13,
1327,
1301,
422,
296,
6703,
4278,
468,
1342,
326,
871,
2588,
326,
2687,
358,
326,
1903,
20110,
642,
768,
273,
1544,
63,
1897,
12,
2890,
18,
529,
4672,
17,
2
] |
self.nim_slots.append(NIM(slot = id, description = entry["name"], type = entry["type"], has_outputs = entry["has_outputs"], internally_connectable = entry["internally_connectable"], multi_type = entry["multi_type"], frontend_id = entry["frontend_device"]))
|
self.nim_slots.append(NIM(slot = id, description = entry["name"], type = entry["type"], has_outputs = entry["has_outputs"], internally_connectable = entry["internally_connectable"], multi_type = entry["multi_type"], frontend_id = entry["frontend_device"], is_empty = entry["isempty"]))
|
def enumerateNIMs(self): # enum available NIMs. This is currently very dreambox-centric and uses the /proc/bus/nim_sockets interface. # the result will be stored into nim_slots. # the content of /proc/bus/nim_sockets looks like: # NIM Socket 0: # Type: DVB-S # Name: BCM4501 DVB-S2 NIM (internal) # NIM Socket 1: # Type: DVB-S # Name: BCM4501 DVB-S2 NIM (internal) # NIM Socket 2: # Type: DVB-T # Name: Philips TU1216 # NIM Socket 3: # Type: DVB-S # Name: Alps BSBE1 702A # # Type will be either "DVB-S", "DVB-S2", "DVB-T", "DVB-C" or None.
|
d21824019fe93603f1c05c7263ef7570aa60e135 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/d21824019fe93603f1c05c7263ef7570aa60e135/NimManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4241,
50,
3445,
87,
12,
2890,
4672,
468,
2792,
2319,
423,
3445,
87,
18,
1220,
353,
4551,
8572,
302,
793,
2147,
17,
71,
18395,
471,
4692,
326,
342,
9381,
19,
9274,
19,
82,
381,
67,
7814,
87,
1560,
18,
468,
326,
563,
903,
506,
4041,
1368,
290,
381,
67,
18875,
18,
468,
326,
913,
434,
342,
9381,
19,
9274,
19,
82,
381,
67,
7814,
87,
10192,
3007,
30,
468,
423,
3445,
8758,
374,
30,
468,
1850,
1412,
30,
463,
58,
38,
17,
55,
468,
1850,
1770,
30,
605,
9611,
7950,
1611,
463,
58,
38,
17,
55,
22,
423,
3445,
261,
7236,
13,
468,
423,
3445,
8758,
404,
30,
468,
1850,
1412,
30,
463,
58,
38,
17,
55,
468,
1850,
1770,
30,
605,
9611,
7950,
1611,
463,
58,
38,
17,
55,
22,
423,
3445,
261,
7236,
13,
468,
423,
3445,
8758,
576,
30,
468,
1850,
1412,
30,
463,
58,
38,
17,
56,
468,
1850,
1770,
30,
4360,
330,
7146,
399,
57,
2138,
2313,
468,
423,
3445,
8758,
890,
30,
468,
1850,
1412,
30,
463,
58,
38,
17,
55,
468,
1850,
1770,
30,
2262,
1121,
605,
55,
5948,
21,
2371,
3103,
37,
225,
468,
468,
1412,
903,
506,
3344,
315,
30199,
38,
17,
55,
3113,
315,
30199,
38,
17,
55,
22,
3113,
315,
30199,
38,
17,
56,
3113,
315,
30199,
38,
17,
39,
6,
578,
599,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4241,
50,
3445,
87,
12,
2890,
4672,
468,
2792,
2319,
423,
3445,
87,
18,
1220,
353,
4551,
8572,
302,
793,
2147,
17,
71,
18395,
471,
4692,
326,
342,
9381,
19,
9274,
19,
82,
381,
67,
7814,
87,
1560,
18,
468,
326,
563,
903,
506,
4041,
1368,
290,
381,
67,
18875,
18,
468,
326,
913,
434,
342,
9381,
19,
9274,
19,
82,
381,
67,
7814,
87,
10192,
3007,
30,
468,
423,
3445,
8758,
374,
30,
468,
1850,
1412,
30,
463,
58,
38,
17,
55,
468,
1850,
1770,
30,
605,
9611,
7950,
1611,
463,
58,
38,
17,
55,
22,
423,
3445,
261,
7236,
13,
468,
423,
3445,
8758,
404,
30,
468,
1850,
1412,
30,
463,
58,
38,
17,
55,
468,
2
] |
self._beacon_media = self
|
self._beacon_media = weakref(self)
|
def update(self, prop): self.prop = prop # FIXME: could str() crash? self.device = str(prop.get('block.device')) self.mountpoint = str(prop.get('volume.mount_point')) if not self.mountpoint: self.mountpoint = self.device if not self.mountpoint.endswith('/'): self.mountpoint += '/' self.overlay = os.path.join(self._db.dbdir, self.id) # FIXME: gc doesn't like that self._beacon_media = self # get basic information from database media, self._beacon_id, self.root = \ self._db.query_media(self.id, self) prop['beacon.content'] = media['content'] self._beacon_isdir = False if media['content'] == 'file': self._beacon_isdir = True self.thumbnails = os.path.join(self.overlay, '.thumbnails') if self.mountpoint == '/': self.thumbnails = os.path.join(os.environ['HOME'], '.thumbnails') if self.root.get('title'): self.label = self.root.get('title') elif prop.get('volume.label'): self.label = utils.get_title(prop.get('volume.label')) elif prop.get('info.parent'): self.label = u'' parent = prop.get('info.parent') if parent.get('storage.vendor'): self.label += parent.get('storage.vendor') + u' ' if parent.get('info.product'): self.label += parent.get('info.product') self.label.strip() if not self.label: self.label = self.id else: self.label = self.id
|
7e57df70c271add1c72992a1978c891d7307e7a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11703/7e57df70c271add1c72992a1978c891d7307e7a9/media.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
2270,
4672,
365,
18,
5986,
273,
2270,
468,
9852,
30,
3377,
609,
1435,
17053,
35,
365,
18,
5964,
273,
609,
12,
5986,
18,
588,
2668,
2629,
18,
5964,
26112,
365,
18,
4778,
1153,
273,
609,
12,
5986,
18,
588,
2668,
9491,
18,
4778,
67,
1153,
26112,
309,
486,
365,
18,
4778,
1153,
30,
365,
18,
4778,
1153,
273,
365,
18,
5964,
309,
486,
365,
18,
4778,
1153,
18,
5839,
1918,
2668,
2473,
4672,
365,
18,
4778,
1153,
1011,
2023,
365,
18,
17312,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
1966,
18,
1966,
1214,
16,
365,
18,
350,
13,
468,
9852,
30,
8859,
3302,
1404,
3007,
716,
2890,
6315,
2196,
16329,
67,
5829,
273,
16046,
1734,
12,
2890,
13,
468,
336,
5337,
1779,
628,
2063,
3539,
16,
365,
6315,
2196,
16329,
67,
350,
16,
365,
18,
3085,
273,
521,
365,
6315,
1966,
18,
2271,
67,
5829,
12,
2890,
18,
350,
16,
365,
13,
2270,
3292,
2196,
16329,
18,
1745,
3546,
273,
3539,
3292,
1745,
3546,
365,
6315,
2196,
16329,
67,
291,
1214,
273,
1083,
309,
3539,
3292,
1745,
3546,
422,
296,
768,
4278,
365,
6315,
2196,
16329,
67,
291,
1214,
273,
1053,
365,
18,
14904,
87,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
17312,
16,
2418,
14904,
87,
6134,
309,
365,
18,
4778,
1153,
422,
2023,
30,
365,
18,
14904,
87,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
14209,
17337,
2418,
14904,
87,
6134,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
2270,
4672,
365,
18,
5986,
273,
2270,
468,
9852,
30,
3377,
609,
1435,
17053,
35,
365,
18,
5964,
273,
609,
12,
5986,
18,
588,
2668,
2629,
18,
5964,
26112,
365,
18,
4778,
1153,
273,
609,
12,
5986,
18,
588,
2668,
9491,
18,
4778,
67,
1153,
26112,
309,
486,
365,
18,
4778,
1153,
30,
365,
18,
4778,
1153,
273,
365,
18,
5964,
309,
486,
365,
18,
4778,
1153,
18,
5839,
1918,
2668,
2473,
4672,
365,
18,
4778,
1153,
1011,
2023,
365,
18,
17312,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
1966,
18,
1966,
1214,
16,
365,
18,
350,
13,
468,
9852,
30,
8859,
3302,
1404,
3007,
716,
2890,
6315,
2196,
16329,
67,
5829,
2
] |
fdel=lambda self: delattr(self, "_up"))
|
fdel=lambda self: setattr(self, "_up", None))
|
def _getGroups(self): """create the groups object that will store the comps metadata finds the repos with groups, gets their comps data and merge it into the group object""" if self._comps: return self._comps self.verbose_logger.debug('Getting group metadata') reposWithGroups = [] for repo in self.repos.listGroupsEnabled(): if repo.groups_added: # already added the groups from this repo reposWithGroups.append(repo) continue if not repo.ready(): raise Errors.RepoError, "Repository '%s' not yet setup" % repo try: groupremote = repo.getGroupLocation() except Errors.RepoMDError, e: pass else: reposWithGroups.append(repo) # now we know which repos actually have groups files. overwrite = self.conf.overwrite_groups self._comps = comps.Comps(overwrite_groups = overwrite)
|
8b5338bcd619ce0be5d3762af0205cbe071e8881 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/8b5338bcd619ce0be5d3762af0205cbe071e8881/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3621,
12,
2890,
4672,
3536,
2640,
326,
3252,
733,
716,
903,
1707,
326,
13979,
1982,
13094,
326,
13686,
598,
3252,
16,
5571,
3675,
13979,
501,
471,
2691,
518,
1368,
326,
1041,
733,
8395,
225,
309,
365,
6315,
31532,
30,
327,
365,
6315,
31532,
225,
365,
18,
11369,
67,
4901,
18,
4148,
2668,
19213,
1041,
1982,
6134,
13686,
1190,
3621,
273,
5378,
364,
3538,
316,
365,
18,
15564,
18,
1098,
3621,
1526,
13332,
309,
3538,
18,
4650,
67,
9665,
30,
468,
1818,
3096,
326,
3252,
628,
333,
3538,
13686,
1190,
3621,
18,
6923,
12,
7422,
13,
1324,
225,
309,
486,
3538,
18,
1672,
13332,
1002,
9372,
18,
8791,
668,
16,
315,
3305,
1995,
87,
11,
486,
4671,
3875,
6,
738,
3538,
775,
30,
1041,
7222,
273,
3538,
18,
588,
1114,
2735,
1435,
1335,
9372,
18,
8791,
6188,
668,
16,
425,
30,
1342,
469,
30,
13686,
1190,
3621,
18,
6923,
12,
7422,
13,
225,
468,
2037,
732,
5055,
1492,
13686,
6013,
1240,
3252,
1390,
18,
6156,
273,
365,
18,
3923,
18,
19274,
67,
4650,
365,
6315,
31532,
273,
13979,
18,
799,
1121,
12,
19274,
67,
4650,
273,
6156,
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
903,
1707,
326,
13979,
1982,
13094,
326,
13686,
598,
3252,
16,
5571,
3675,
13979,
501,
471,
2691,
518,
1368,
326,
1041,
733,
8395,
225,
309,
365,
6315,
31532,
30,
327,
365,
6315,
31532,
225,
365,
18,
11369,
67,
4901,
18,
4148,
2668,
19213,
1041,
1982,
6134,
13686,
1190,
3621,
273,
5378,
364,
3538,
316,
365,
18,
15564,
18,
1098,
3621,
1526,
13332,
309,
3538,
18,
4650,
67,
9665,
30,
468,
1818,
3096,
326,
3252,
628,
333,
3538,
13686,
1190,
3621,
18,
6923,
12,
7422,
13,
1324,
225,
309,
486,
3538,
18,
1672,
13332,
1002,
9372,
18,
8791,
668,
16,
315,
3305,
1995,
87,
11,
486,
4671,
2
] |
Type : None; Priority: 10
|
Type : Subversion; Priority: 10
|
def __str__(self): ''' >>> here = os.path.dirname(os.path.realpath(__file__)) >>> import xml.etree.ElementTree as ET # Python 2.5 >>> document = ET.parse(here + '/../tests/testfiles/global-overlays.xml') >>> overlays = document.findall('overlay') + document.findall('repo') >>> a = Overlay(overlays[0], dict()) >>> print str(a) wrobel ~~~~~~ Source : https://overlays.gentoo.org/svn/dev/wrobel Contact : nobody@gentoo.org Type : None; Priority: 10 <BLANKLINE> Description: Test <BLANKLINE> '''
|
54a53d5aa0302d6c97a25de21c797cbc607770de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7305/54a53d5aa0302d6c97a25de21c797cbc607770de/overlay.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
9163,
4080,
2674,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
7688,
803,
12,
972,
768,
972,
3719,
4080,
1930,
2025,
18,
31303,
18,
1046,
2471,
487,
4518,
468,
6600,
576,
18,
25,
4080,
1668,
273,
4518,
18,
2670,
12,
14852,
397,
10440,
16341,
19,
3813,
2354,
19,
6347,
17,
17312,
87,
18,
2902,
6134,
4080,
9218,
87,
273,
1668,
18,
4720,
454,
2668,
17312,
6134,
397,
1668,
18,
4720,
454,
2668,
7422,
6134,
4080,
279,
273,
26834,
12,
17312,
87,
63,
20,
6487,
2065,
10756,
4080,
1172,
609,
12,
69,
13,
341,
303,
13285,
4871,
12485,
98,
4998,
225,
294,
2333,
2207,
17312,
87,
18,
75,
319,
5161,
18,
3341,
19,
31505,
19,
5206,
19,
91,
303,
13285,
13329,
294,
290,
947,
973,
36,
75,
319,
5161,
18,
3341,
1412,
565,
294,
2592,
1589,
31,
13354,
30,
1728,
411,
38,
24307,
5997,
34,
6507,
30,
7766,
411,
38,
24307,
5997,
34,
9163,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
701,
972,
12,
2890,
4672,
9163,
4080,
2674,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
7688,
803,
12,
972,
768,
972,
3719,
4080,
1930,
2025,
18,
31303,
18,
1046,
2471,
487,
4518,
468,
6600,
576,
18,
25,
4080,
1668,
273,
4518,
18,
2670,
12,
14852,
397,
10440,
16341,
19,
3813,
2354,
19,
6347,
17,
17312,
87,
18,
2902,
6134,
4080,
9218,
87,
273,
1668,
18,
4720,
454,
2668,
17312,
6134,
397,
1668,
18,
4720,
454,
2668,
7422,
6134,
4080,
279,
273,
26834,
12,
17312,
87,
63,
20,
6487,
2065,
10756,
4080,
1172,
609,
12,
69,
13,
341,
303,
13285,
4871,
12485,
98,
4998,
225,
294,
2333,
2207,
17312,
87,
18,
75,
319,
5161,
2
] |
% test.name, tests_msg)
|
% (test.name, tests_msg))
|
def check_suite_contains_tests(self, suite, *expected_names): actual_tests = [ test for test in self.get_tests_from_suite(suite) ] tests_msg = """
|
613d096bee90d0e4dd1db6bc7d23b591661ab4ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/613d096bee90d0e4dd1db6bc7d23b591661ab4ae/TestCheckerLibrary.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
30676,
67,
12298,
67,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
67,
30676,
67,
12298,
67,
16341,
12,
2890,
16,
11371,
16,
380,
3825,
67,
1973,
4672,
3214,
67,
16341,
273,
306,
1842,
364,
1842,
316,
365,
18,
588,
67,
16341,
67,
2080,
67,
30676,
12,
30676,
13,
308,
7434,
67,
3576,
225,
273,
3536,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def exersize_enforce_positive_amplitudes():
|
def exercise_enforce_positive_amplitudes():
|
def exersize_enforce_positive_amplitudes(): from cctbx.xray import observation_types xs = crystal.symmetry((3,4,5), "P 2 2 2") mi = flex.miller_index(((1,-2,3), (0,0,-4))) data = flex.double((-1,-2)) sigmas = flex.double((1,2)) ms = miller.set(xs, mi) ma = miller.array(ms) ma = miller.array(ms, data=data, sigmas=sigmas).set_observation_type( observation_types.intensity() ) new_ma = ma.enforce_positive_amplitudes() assert new_ma.data()[0]>0 assert new_ma.data()[1]>0
|
0aabe41ae68526f240ae22ea53f585aacd58b5d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/0aabe41ae68526f240ae22ea53f585aacd58b5d3/tst_miller.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
275,
5734,
67,
21094,
67,
301,
1127,
6500,
13332,
628,
276,
299,
70,
92,
18,
92,
435,
1930,
13853,
67,
2352,
9280,
273,
4422,
31365,
18,
8117,
18042,
12443,
23,
16,
24,
16,
25,
3631,
315,
52,
576,
576,
576,
7923,
12837,
273,
16600,
18,
81,
24462,
67,
1615,
12443,
12,
21,
16,
17,
22,
16,
23,
3631,
261,
20,
16,
20,
16,
17,
24,
20349,
501,
273,
16600,
18,
9056,
12443,
17,
21,
16,
17,
22,
3719,
3553,
15260,
273,
16600,
18,
9056,
12443,
21,
16,
22,
3719,
4086,
273,
312,
24462,
18,
542,
12,
13713,
16,
12837,
13,
10843,
273,
312,
24462,
18,
1126,
12,
959,
13,
10843,
273,
312,
24462,
18,
1126,
12,
959,
16,
501,
33,
892,
16,
3553,
15260,
33,
7340,
15260,
2934,
542,
67,
31743,
67,
723,
12,
13853,
67,
2352,
18,
474,
6318,
1435,
262,
394,
67,
2540,
273,
10843,
18,
275,
5734,
67,
21094,
67,
301,
1127,
6500,
1435,
1815,
394,
67,
2540,
18,
892,
1435,
63,
20,
65,
34,
20,
1815,
394,
67,
2540,
18,
892,
1435,
63,
21,
65,
34,
20,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
2352,
9280,
273,
4422,
31365,
18,
8117,
18042,
12443,
23,
16,
24,
16,
25,
3631,
315,
52,
576,
576,
576,
7923,
12837,
273,
16600,
18,
81,
24462,
67,
1615,
12443,
12,
21,
16,
17,
22,
16,
23,
3631,
261,
20,
16,
20,
16,
17,
24,
20349,
501,
273,
16600,
18,
9056,
12443,
17,
21,
16,
17,
22,
3719,
3553,
15260,
273,
16600,
18,
9056,
12443,
21,
16,
22,
3719,
4086,
273,
312,
24462,
18,
542,
12,
13713,
16,
12837,
13,
10843,
273,
312,
24462,
18,
1126,
12,
959,
13,
10843,
273,
312,
24462,
18,
1126,
12,
2
] |
_OP_REQP = ["instance_name", "disks", "disk_template",
|
_OP_REQP = ["instance_name", "disks",
|
def _CheckHVParams(lu, nodenames, hvname, hvparams): """Hypervisor parameter validation. This function abstract the hypervisor parameter validation to be used in both instance create and instance modify. @type lu: L{LogicalUnit} @param lu: the logical unit for which we check @type nodenames: list @param nodenames: the list of nodes on which we should check @type hvname: string @param hvname: the name of the hypervisor we should use @type hvparams: dict @param hvparams: the parameters which we need to check @raise errors.OpPrereqError: if the parameters are not valid """ hvinfo = lu.rpc.call_hypervisor_validate_params(nodenames, hvname, hvparams) for node in nodenames: info = hvinfo[node] if info.offline: continue info.Raise("Hypervisor parameter validation failed on node %s" % node)
|
f276c4b5558338ba7832b5a92b822f0695a5ac6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/f276c4b5558338ba7832b5a92b822f0695a5ac6c/cmdlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1564,
44,
58,
1370,
12,
28832,
16,
14003,
6809,
16,
366,
90,
529,
16,
366,
90,
2010,
4672,
3536,
15996,
10227,
1569,
3379,
18,
225,
1220,
445,
8770,
326,
9512,
10227,
1569,
3379,
358,
506,
1399,
316,
3937,
791,
752,
471,
791,
5612,
18,
225,
632,
723,
20072,
30,
511,
95,
17955,
2802,
97,
632,
891,
20072,
30,
326,
6374,
2836,
364,
1492,
732,
866,
632,
723,
14003,
6809,
30,
666,
632,
891,
14003,
6809,
30,
326,
666,
434,
2199,
603,
1492,
732,
1410,
866,
632,
723,
366,
90,
529,
30,
533,
632,
891,
366,
90,
529,
30,
326,
508,
434,
326,
9512,
10227,
732,
1410,
999,
632,
723,
366,
90,
2010,
30,
2065,
632,
891,
366,
90,
2010,
30,
326,
1472,
1492,
732,
1608,
358,
866,
632,
11628,
1334,
18,
3817,
2050,
822,
85,
668,
30,
309,
326,
1472,
854,
486,
923,
225,
3536,
366,
90,
1376,
273,
20072,
18,
7452,
18,
1991,
67,
17203,
10227,
67,
5662,
67,
2010,
12,
19888,
6809,
16,
366,
90,
529,
16,
366,
90,
2010,
13,
364,
756,
316,
14003,
6809,
30,
1123,
273,
366,
90,
1376,
63,
2159,
65,
309,
1123,
18,
23787,
30,
1324,
1123,
18,
30570,
2932,
15996,
10227,
1569,
3379,
2535,
603,
756,
738,
87,
6,
738,
756,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1564,
44,
58,
1370,
12,
28832,
16,
14003,
6809,
16,
366,
90,
529,
16,
366,
90,
2010,
4672,
3536,
15996,
10227,
1569,
3379,
18,
225,
1220,
445,
8770,
326,
9512,
10227,
1569,
3379,
358,
506,
1399,
316,
3937,
791,
752,
471,
791,
5612,
18,
225,
632,
723,
20072,
30,
511,
95,
17955,
2802,
97,
632,
891,
20072,
30,
326,
6374,
2836,
364,
1492,
732,
866,
632,
723,
14003,
6809,
30,
666,
632,
891,
14003,
6809,
30,
326,
666,
434,
2199,
603,
1492,
732,
1410,
866,
632,
723,
366,
90,
529,
30,
533,
632,
891,
366,
90,
529,
30,
326,
508,
434,
326,
9512,
10227,
732,
1410,
999,
632,
723,
366,
90,
2010,
30,
2065,
632,
891,
366,
2
] |
for key in self.getLongWeekdays().keys(): if self.getLongWeekdays()[key] == p_day: return int(key)
|
for key in self.LongWeekdays.keys(): if self.LongWeekdays[key] == p_day: return int(key)
|
def getDayIndex(self, p_day): """ return the day index """ for key in self.getLongWeekdays().keys(): if self.getLongWeekdays()[key] == p_day: return int(key)
|
68189515448f495568529d491c3625d49d18e053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/68189515448f495568529d491c3625d49d18e053/DateFunctions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20444,
1016,
12,
2890,
16,
293,
67,
2881,
4672,
3536,
327,
326,
2548,
770,
3536,
364,
498,
316,
365,
18,
588,
3708,
6630,
9810,
7675,
2452,
13332,
309,
365,
18,
588,
3708,
6630,
9810,
1435,
63,
856,
65,
422,
293,
67,
2881,
30,
225,
327,
509,
12,
856,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20444,
1016,
12,
2890,
16,
293,
67,
2881,
4672,
3536,
327,
326,
2548,
770,
3536,
364,
498,
316,
365,
18,
588,
3708,
6630,
9810,
7675,
2452,
13332,
309,
365,
18,
588,
3708,
6630,
9810,
1435,
63,
856,
65,
422,
293,
67,
2881,
30,
225,
327,
509,
12,
856,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "Something happened last time we tried to write file. Temp file found, using it as normal."
|
Log.debug("Something happened to the tags file. Using backup")
|
def openxmlfile(zefile,root ): tmpfile = zefile+'__' try: if os.path.exists(zefile): f = open(zefile, "r") elif os.path.exists(tmpfile): print "Something happened last time we tried to write file. Temp file found, using it as normal." os.rename(tmpfile, zefile) f = open(zefile, "r") else: # Creating empty file doc,xmlproject = emptydoc(root) newfile = savexml(zefile, doc) # use our function to save file if not newfile: sys.exit(1) return openxmlfile(zefile, root) # recursive call doc = xml.dom.minidom.parse(f) cleanDoc(doc,tab,enter) xmlproject = doc.getElementsByTagName(root)[0] f.close() return doc,xmlproject except IOError, msg: print msg sys.exit(1) except xml.parsers.expat.ExpatError, msg: f.close() print "Error parsing XML file %s: %s" %(zefile, msg) if os.path.exists(tmpfile): print "Something happened last time we tried to write file. Temp file found, using it as normal." os.rename(tmpfile, zefile) # Ok, try one more time now return openxmlfile(zefile, root) sys.exit(1)
|
8a60ae8dcd15aef600e0a1cdc966fc6196a85a48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/8a60ae8dcd15aef600e0a1cdc966fc6196a85a48/cleanxml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
2902,
768,
12,
8489,
768,
16,
3085,
262,
30,
25613,
273,
26637,
768,
6797,
7250,
225,
775,
30,
309,
1140,
18,
803,
18,
1808,
12,
8489,
768,
4672,
284,
273,
1696,
12,
8489,
768,
16,
315,
86,
7923,
1327,
1140,
18,
803,
18,
1808,
12,
5645,
768,
4672,
1827,
18,
4148,
2932,
24332,
17497,
358,
326,
2342,
585,
18,
11637,
5114,
7923,
1140,
18,
18539,
12,
5645,
768,
16,
26637,
768,
13,
284,
273,
1696,
12,
8489,
768,
16,
315,
86,
7923,
469,
30,
468,
21837,
1008,
585,
997,
16,
2902,
4406,
273,
1008,
2434,
12,
3085,
13,
394,
768,
273,
4087,
338,
781,
12,
8489,
768,
16,
997,
13,
468,
999,
3134,
445,
358,
1923,
585,
309,
486,
394,
768,
30,
2589,
18,
8593,
12,
21,
13,
327,
1696,
2902,
768,
12,
8489,
768,
16,
1365,
13,
468,
5904,
745,
225,
997,
273,
2025,
18,
9859,
18,
1154,
350,
362,
18,
2670,
12,
74,
13,
2721,
1759,
12,
2434,
16,
7032,
16,
2328,
13,
2025,
4406,
273,
997,
18,
588,
3471,
10401,
12,
3085,
25146,
20,
65,
284,
18,
4412,
1435,
327,
997,
16,
2902,
4406,
1335,
8340,
16,
1234,
30,
1172,
1234,
2589,
18,
8593,
12,
21,
13,
225,
1335,
2025,
18,
11104,
18,
2749,
270,
18,
2966,
270,
668,
16,
1234,
30,
284,
18,
4412,
1435,
1172,
315,
668,
5811,
3167,
585,
738,
87,
30,
738,
87,
6,
8975,
8489,
768,
16,
1234,
13,
309,
1140,
18,
803,
18,
1808,
12,
5645,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
2902,
768,
12,
8489,
768,
16,
3085,
262,
30,
25613,
273,
26637,
768,
6797,
7250,
225,
775,
30,
309,
1140,
18,
803,
18,
1808,
12,
8489,
768,
4672,
284,
273,
1696,
12,
8489,
768,
16,
315,
86,
7923,
1327,
1140,
18,
803,
18,
1808,
12,
5645,
768,
4672,
1827,
18,
4148,
2932,
24332,
17497,
358,
326,
2342,
585,
18,
11637,
5114,
7923,
1140,
18,
18539,
12,
5645,
768,
16,
26637,
768,
13,
284,
273,
1696,
12,
8489,
768,
16,
315,
86,
7923,
469,
30,
468,
21837,
1008,
585,
997,
16,
2902,
4406,
273,
1008,
2434,
12,
3085,
13,
394,
768,
273,
4087,
338,
781,
12,
8489,
768,
16,
997,
13,
468,
999,
3134,
445,
358,
1923,
585,
2
] |
del self.watches[self.selected] self.DeleteItem(self.selected)
|
selItems = self.getSelection() selItems.sort() selItems.reverse() for idx in selItems: del self.watches[idx] self.DeleteItem(idx)
|
def OnDelete(self, event): if self.selected != -1: del self.watches[self.selected] self.DeleteItem(self.selected)
|
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2613,
12,
2890,
16,
871,
4672,
309,
365,
18,
8109,
480,
300,
21,
30,
1464,
365,
18,
7585,
281,
63,
2890,
18,
8109,
65,
365,
18,
2613,
1180,
12,
2890,
18,
8109,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2613,
12,
2890,
16,
871,
4672,
309,
365,
18,
8109,
480,
300,
21,
30,
1464,
365,
18,
7585,
281,
63,
2890,
18,
8109,
65,
365,
18,
2613,
1180,
12,
2890,
18,
8109,
13,
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,
-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,
-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
] |
See :func:`carrot.utils.retry_over_time`.
|
See :func:`celery.utils.retry_over_time`.
|
def _open_connection(self): """Retries connecting to the AMQP broker over time.
|
af7bea2cc51599585d24ce6a80b894697ca7f684 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2024/af7bea2cc51599585d24ce6a80b894697ca7f684/__init__.py
|
[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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3190,
67,
4071,
12,
2890,
4672,
3536,
13656,
14244,
358,
326,
16953,
8625,
1879,
813,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"WSAECONNABORTED", "WSAECONNREFUSED", "WSAECONNRESET", "WSAENETRESET", "WSAETIMEDOUT")
|
)
|
def plat_specific_errors(*errnames): """Return error numbers for all errors in errnames on this platform. The 'errno' module contains different global constants depending on the specific platform (OS). This function will return the list of numeric values for a given list of potential names. """ errno_names = dir(errno) nums = [getattr(errno, k) for k in errnames if k in errno_names] # de-dupe the list return dict.fromkeys(nums).keys()
|
e1abad5c9bb062a456870c5332102c618e85b7c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/e1abad5c9bb062a456870c5332102c618e85b7c6/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29838,
67,
12524,
67,
4324,
30857,
370,
1973,
4672,
3536,
990,
555,
5600,
364,
777,
1334,
316,
393,
1973,
603,
333,
4072,
18,
225,
1021,
296,
19088,
11,
1605,
1914,
3775,
2552,
6810,
8353,
603,
326,
2923,
4072,
261,
4618,
2934,
1220,
445,
903,
327,
326,
666,
434,
6389,
924,
364,
279,
864,
666,
434,
8555,
1257,
18,
3536,
8402,
67,
1973,
273,
1577,
12,
19088,
13,
21060,
273,
306,
588,
1747,
12,
19088,
16,
417,
13,
364,
417,
316,
393,
1973,
309,
417,
316,
8402,
67,
1973,
65,
468,
443,
17,
2544,
347,
326,
666,
327,
2065,
18,
2080,
2452,
12,
21180,
2934,
2452,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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3775,
2552,
6810,
8353,
603,
326,
2923,
4072,
261,
4618,
2934,
1220,
445,
903,
327,
326,
666,
434,
6389,
924,
364,
279,
864,
666,
434,
8555,
1257,
18,
3536,
8402,
67,
1973,
273,
1577,
12,
19088,
13,
21060,
273,
306,
588,
1747,
12,
19088,
16,
417,
13,
364,
417,
316,
393,
1973,
309,
417,
316,
8402,
67,
1973,
65,
468,
443,
17,
2544,
347,
326,
666,
327,
2065,
18,
2080,
2452,
12,
21180,
2934,
2452,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.list.to_element(element)
|
self.list.to_element(element, namespace = self._xml_namespace)
|
def set_element(self, element): element.set('uri', self.uri) self.list.to_element(element) if self.packages: self.packages.to_element(element)
|
3a6f8ef591b8d187eeffafcb45f678e86136c6e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/3a6f8ef591b8d187eeffafcb45f678e86136c6e9/resourcelists.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2956,
12,
2890,
16,
930,
4672,
930,
18,
542,
2668,
1650,
2187,
365,
18,
1650,
13,
282,
365,
18,
1098,
18,
869,
67,
2956,
12,
2956,
16,
1981,
273,
365,
6315,
2902,
67,
4937,
13,
309,
365,
18,
10308,
30,
365,
18,
10308,
18,
869,
67,
2956,
12,
2956,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2956,
12,
2890,
16,
930,
4672,
930,
18,
542,
2668,
1650,
2187,
365,
18,
1650,
13,
282,
365,
18,
1098,
18,
869,
67,
2956,
12,
2956,
16,
1981,
273,
365,
6315,
2902,
67,
4937,
13,
309,
365,
18,
10308,
30,
365,
18,
10308,
18,
869,
67,
2956,
12,
2956,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
person_id = 'Null'
|
person_id = None
|
def log(self, fault_code, runtime, *args): """ Log the transaction """
|
cc57f76e1ebedb5d039bee5af483bce0ffa14fe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/cc57f76e1ebedb5d039bee5af483bce0ffa14fe4/Method.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
12530,
67,
710,
16,
3099,
16,
380,
1968,
4672,
3536,
1827,
326,
2492,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
613,
12,
2890,
16,
12530,
67,
710,
16,
3099,
16,
380,
1968,
4672,
3536,
1827,
326,
2492,
3536,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import sndhdr import unittest from test.support import findfile class TestFormats(unittest.TestCase): def test_data(self): for filename, expected in ( ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)), ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)), ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)), ('sndhdr.au', ('au', 44100, 2, 5.0, 16)), ('sndhdr.hcom', ('hcom', 22050.0, 1, -1, 8)), ('sndhdr.sndt', ('sndt', 44100, 1, 5, 8)), ('sndhdr.voc', ('voc', 0, 1, -1, 8)), ('sndhdr.wav', ('wav', 44100, 2, -1, 16)), ): filename = findfile(filename, subdir="sndhdrdata") what = sndhdr.what(filename) self.assertNotEqual(what, None, filename) self.assertSequenceEqual(what, expected) if __name__ == '__main__': unittest.main()
|
def test_data(self): for filename, expected in ( ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)), ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)), ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)), ('sndhdr.au', ('au', 44100, 2, 5.0, 16)), ('sndhdr.hcom', ('hcom', 22050.0, 1, -1, 8)), ('sndhdr.sndt', ('sndt', 44100, 1, 5, 8)), ('sndhdr.voc', ('voc', 0, 1, -1, 8)), ('sndhdr.wav', ('wav', 44100, 2, -1, 16)), ): filename = findfile(filename, subdir="sndhdrdata") what = sndhdr.what(filename) self.assertNotEqual(what, None, filename) self.assertSequenceEqual(what, expected)
|
834c3d46ce9cccb6b62ec880bf6ca63c068f3777 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/834c3d46ce9cccb6b62ec880bf6ca63c068f3777/test_sndhdr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
892,
12,
2890,
4672,
364,
1544,
16,
2665,
316,
261,
7707,
87,
4880,
16587,
18,
28,
5751,
92,
2187,
7707,
28,
5751,
92,
2187,
374,
16,
404,
16,
374,
16,
1725,
13,
3631,
7707,
87,
4880,
16587,
18,
69,
430,
71,
2187,
7707,
69,
430,
71,
2187,
13291,
6625,
16,
576,
16,
1381,
16,
2872,
13,
3631,
7707,
87,
4880,
16587,
18,
69,
3048,
2187,
7707,
69,
3048,
2187,
13291,
6625,
16,
576,
16,
1381,
16,
2872,
13,
3631,
7707,
87,
4880,
16587,
18,
8377,
2187,
7707,
8377,
2187,
13291,
6625,
16,
576,
16,
1381,
18,
20,
16,
2872,
13,
3631,
7707,
87,
4880,
16587,
18,
76,
832,
2187,
7707,
76,
832,
2187,
576,
3462,
3361,
18,
20,
16,
404,
16,
300,
21,
16,
1725,
13,
3631,
7707,
87,
4880,
16587,
18,
87,
4880,
88,
2187,
7707,
87,
4880,
88,
2187,
13291,
6625,
16,
404,
16,
1381,
16,
1725,
13,
3631,
7707,
87,
4880,
16587,
18,
90,
504,
2187,
7707,
90,
504,
2187,
374,
16,
404,
16,
300,
21,
16,
1725,
13,
3631,
7707,
87,
4880,
16587,
18,
24801,
2187,
7707,
24801,
2187,
13291,
6625,
16,
576,
16,
300,
21,
16,
2872,
13,
3631,
262,
30,
1544,
273,
1104,
768,
12,
3459,
16,
16921,
1546,
87,
4880,
16587,
892,
7923,
4121,
273,
31158,
16587,
18,
23770,
12,
3459,
13,
365,
18,
11231,
1248,
5812,
12,
23770,
16,
599,
16,
1544,
13,
365,
18,
11231,
4021,
5812,
12,
23770,
16,
2665,
13,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
892,
12,
2890,
4672,
364,
1544,
16,
2665,
316,
261,
7707,
87,
4880,
16587,
18,
28,
5751,
92,
2187,
7707,
28,
5751,
92,
2187,
374,
16,
404,
16,
374,
16,
1725,
13,
3631,
7707,
87,
4880,
16587,
18,
69,
430,
71,
2187,
7707,
69,
430,
71,
2187,
13291,
6625,
16,
576,
16,
1381,
16,
2872,
13,
3631,
7707,
87,
4880,
16587,
18,
69,
3048,
2187,
7707,
69,
3048,
2187,
13291,
6625,
16,
576,
16,
1381,
16,
2872,
13,
3631,
7707,
87,
4880,
16587,
18,
8377,
2187,
7707,
8377,
2187,
13291,
6625,
16,
576,
16,
1381,
18,
20,
16,
2872,
13,
3631,
7707,
87,
4880,
16587,
18,
76,
832,
2187,
7707,
76,
832,
2187,
576,
3462,
3361,
2
] |
|
if pruneByWeight and len(alternatives)==0: if getweight(changeset) > pruneweight: self.trace(2, "pruned downgrading _updown") raise Prune, _("Pruned downgrading of %s") % (pkg) if earlyAbort: dwnpkgs = dwnpkgs.keys() sortUpgrades(dwnpkgs) pw = trans.getPolicy().getPriorityWeights(dwnpkgs) _maxpw = None
|
dwnpkgs = dwnpkgs.keys() sortUpgrades(dwnpkgs)
|
def _updown(self, pkg, force): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth pruneweight = self._pruneweight self.trace(1, "_updown(%s, pw=%f, yw=%f, f=%d)", (pkg, pruneweight, self._yieldweight, force))
|
042a612ab48d4e7a226d8fbf3fe66ac496d3819e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/042a612ab48d4e7a226d8fbf3fe66ac496d3819e/transaction.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
416,
2378,
12,
2890,
16,
3475,
16,
2944,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
846,
318,
359,
1274,
273,
365,
6315,
683,
318,
359,
1274,
365,
18,
5129,
12,
21,
16,
4192,
416,
2378,
9275,
87,
16,
8772,
5095,
74,
16,
677,
91,
5095,
74,
16,
284,
5095,
72,
2225,
16,
261,
10657,
16,
846,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
16,
2944,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
416,
2378,
12,
2890,
16,
3475,
16,
2944,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
846,
318,
359,
1274,
273,
365,
6315,
683,
318,
359,
1274,
365,
18,
5129,
12,
21,
16,
4192,
416,
2378,
9275,
87,
16,
8772,
5095,
74,
16,
677,
91,
5095,
74,
16,
284,
5095,
72,
2225,
16,
261,
10657,
16,
846,
318,
359,
1274,
16,
365,
6315,
23604,
4865,
16,
2944,
3719,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
def python_tabledef_code(varname, map, comments=1):
|
def python_tabledef_code(varname, map, comments=1, key_precision=2):
|
def python_tabledef_code(varname, map, comments=1): l = [] append = l.append append('%s = (' % varname) # Analyze map and create table dict mappings = map.items() mappings.sort() table = {} maxkey = 0 if map.has_key('IDENTITY'): for key in range(256): table[key] = (key, '') maxkey = 255 del map['IDENTITY'] for mapkey, mapvalue in mappings: mapcomment = '' if isinstance(mapkey, tuple): (mapkey, mapcomment) = mapkey if isinstance(mapvalue, tuple): (mapvalue, mapcomment) = mapvalue if mapkey is None: continue table[mapkey] = (mapvalue, mapcomment) if mapkey > maxkey: maxkey = mapkey if maxkey > MAX_TABLE_SIZE: # Table too large return None # Create table code for key in range(maxkey + 1): if key not in table: mapvalue = None mapcomment = 'UNDEFINED' else: mapvalue, mapcomment = table[key] if mapvalue is None: mapchar = UNI_UNDEFINED else: if isinstance(mapvalue, tuple): # 1-n mappings not supported return None else: mapchar = unichr(mapvalue) if mapcomment and comments: append(' %r\t# %s -> %s' % (mapchar, hexrepr(key), mapcomment)) else: append(' %r' % mapchar) append(')') return l
|
88a416f24d864b5c6b03a1e6abf27f80832face9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/88a416f24d864b5c6b03a1e6abf27f80832face9/gencodec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
2121,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
16,
498,
67,
14548,
33,
22,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
714,
29909,
87,
273,
7707,
738,
15434,
13,
225,
468,
1922,
9508,
852,
471,
752,
1014,
2065,
7990,
273,
852,
18,
3319,
1435,
7990,
18,
3804,
1435,
1014,
273,
2618,
943,
856,
273,
374,
309,
852,
18,
5332,
67,
856,
2668,
29413,
11,
4672,
364,
498,
316,
1048,
12,
5034,
4672,
1014,
63,
856,
65,
273,
261,
856,
16,
28707,
943,
856,
273,
4561,
1464,
852,
3292,
29413,
3546,
364,
852,
856,
16,
852,
1132,
316,
7990,
30,
852,
3469,
273,
875,
309,
1549,
12,
1458,
856,
16,
3193,
4672,
261,
1458,
856,
16,
852,
3469,
13,
273,
852,
856,
309,
1549,
12,
1458,
1132,
16,
3193,
4672,
261,
1458,
1132,
16,
852,
3469,
13,
273,
852,
1132,
309,
852,
856,
353,
599,
30,
1324,
1014,
63,
1458,
856,
65,
273,
261,
1458,
1132,
16,
852,
3469,
13,
309,
852,
856,
405,
943,
856,
30,
943,
856,
273,
852,
856,
309,
943,
856,
405,
4552,
67,
7775,
67,
4574,
30,
468,
3555,
4885,
7876,
327,
599,
225,
468,
1788,
1014,
981,
364,
498,
316,
1048,
12,
1896,
856,
397,
404,
4672,
309,
498,
486,
316,
1014,
30,
852,
1132,
273,
599,
852,
3469,
273,
296,
2124,
15544,
11,
469,
30,
852,
1132,
16,
852,
3469,
273,
1014,
63,
856,
65,
309,
852,
1132,
353,
599,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
2121,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
16,
498,
67,
14548,
33,
22,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
714,
29909,
87,
273,
7707,
738,
15434,
13,
225,
468,
1922,
9508,
852,
471,
752,
1014,
2065,
7990,
273,
852,
18,
3319,
1435,
7990,
18,
3804,
1435,
1014,
273,
2618,
943,
856,
273,
374,
309,
852,
18,
5332,
67,
856,
2668,
29413,
11,
4672,
364,
498,
316,
1048,
12,
5034,
4672,
1014,
63,
856,
65,
273,
261,
856,
16,
28707,
943,
856,
273,
4561,
1464,
852,
3292,
29413,
3546,
364,
852,
856,
16,
852,
1132,
316,
7990,
30,
852,
3469,
273,
875,
309,
1549,
12,
1458,
856,
2
] |
rlog_options = 0
|
rlog_options = ""
|
def main(): import sys, getopt, time, string, regex, regsub try: opts, args = getopt.getopt(sys.argv[1:], "C:d:Hi:l:Mpr:v:", ["CVS_command", "date", "indent", "length", "Merge", "patches", #### not yet supported "rlog_options", #### not yet supported "version" ]) except getopt.error, msg: sys.stdout = sys.stderr print msg print "Usage: cvs2hist ...options..." print "Options: [-C CVS_command] [-d rcs_date] [-i indent] [-l length]" print " [-M] [-p] [-r rlog_options] [-v version]" sys.exit(2) # Set up defaults for all of the command line options. cvs_repository = GetCVSRepository() if not cvs_repository: print "cvs2hist must be executed in a working CVS directory" sys.exit(2) cvs_command = "cvs" date_option = "" indent = 0 length = 76 merge = 0 patches = 0 rlog_options = 0 version = None # override defaults if specified on the command line for o, a in opts: if o == '-C' : cvs_command = a elif o == '-d' : date_option = "'-d>" + a + "'" elif o == '-i' : indent = string.atoi(a) elif o == '-l' : length = string.atoi(a) elif o == '-M' : merge = 1 elif o == '-p' : patches = 1 elif o == '-r' : rlog_options = a elif o == '-v' : version = a else: print "getopt should have failed already" # set up the cvs log command arguments. log_date_command = cvs_command + ' -d ' + cvs_repository + ' -Q log ' + date_option # Acquire the log data. log = BuildLog(log_date_command) # By default, if no date option is specified, produce output for # changes since the most recent tagged version. To avoid a second # pass over the CVS repository, we do the filtering locally. min_date = '0000/00/00 00:00:00' if date_option == "": for date, author, text_lines, file, revision, tags in log: if len(tags) != 0 and date > min_date: min_date = date # Scan the makefiles to find source file names. sources = {} sources = ScanMakefileForSources('src/lib.mak', sources, "Library") for key in sources.keys(): if key[:5] == 'src/s': sources[key] = "Streams" sources = ScanMakefileForSources('src/devs.mak', sources, "Drivers") for key in sources.keys(): if key[:10] == 'src/gdevpd': sources[key] = "PDF writer" sources = ScanMakefileForSources('src/int.mak', sources, "Interpreter") sources = ScanMakefileForSources('src/contrib.mak', sources, "Drivers") # Sort the log by group, then by fix/non-fix, then by date, then by # description (to group logically connected files together). sorter = [] group_pattern = regex.compile("^(\([^)]+\))[ ]+") for date, author, text_lines, file, revision, tags in log: if date <= min_date: continue line = '' while len(text_lines) > 0: line = string.strip(text_lines[0]) if line != '': break text_lines[:1] = [] if merge: group = "(all)" elif group_pattern.match(text_lines[0]) > 0: group = group_pattern.group(1) text_lines[0] = text_lines[0][len(group_pattern.group(0)):] else: group = SourceFileGroup(file, sources) try: group_order = GroupOrder[group] except KeyError: group_order = 99 if line[:4] == "Fix:": text_lines[0] = line[4:] + '\n' section = 0 else: section = regex.match("^Fix", text_lines[0]) < 0 sorter.append(group_order, section, date, group, text_lines, author, file, revision, tags) sorter.sort() log = sorter # Print the HTML header. time_now = time.localtime(time.time()) version_date = time.strftime('%Y-%m-%d', time_now) version_time = time.strftime('%Y-%m-%d %H:%M:%S', time_now) if version != None: print "<html><head>" print "<title>Ghostscript " + version + " change history as of " + version_time + "</title>" print "</head><body>\n" last_group = None groups = [] for omit_group_order, section, date, group, description, author, rcs_file, revision, tags in log: if group != last_group: groups.append(group) last_group = group print VersionTOC(version, version_date, groups) else: print "Ghostscript change history as of " + version_time # Pass through the logs creating new entries based on changing # authors, groups, dates and descriptions. last_group = None last_section = None last_description = None last_author = None last_date = None rev_files = [] for omit_group_order, section, date, group, description, author, rcs_file, revision, tags in log: if group != last_group: if rev_files != []: print ChangeLogEntry(cvs_command, last_author, last_date, rev_files, last_description, prefix, indent, length, patches)[:-1] rev_files = [] print ChangeLogGroupHeader(group, last_group, version) last_group = group last_section = None last_description = None if section != last_section: if rev_files != []: print ChangeLogEntry(cvs_command, last_author, last_date, rev_files, last_description, prefix, indent, length, patches)[:-1] rev_files = [] (header, prefix) = ChangeLogSectionHeader(section, last_section, version) if header != None: print header last_section = section last_description = None if author != last_author or description != last_description or abs(RCSDateToSeconds(date) - RCSDateToSeconds(last_date)) >= 3: if rev_files != []: print ChangeLogEntry(cvs_command, last_author, last_date, rev_files, last_description, prefix, indent, length, patches)[:-1] rev_files = [] last_author = author last_date = date last_description = description # Accumulate the revisions and RCS files. rev_files.append(revision, rcs_file) # print the last entry if there is one (i.e. the last two entries # have the same author and date) if rev_files != []: print ChangeLogEntry(cvs_command, last_author, last_date, rev_files, last_description, prefix, indent, length, patches)[:-1] # Print the HTML trailer. if version != None: print "\n</pre></body></html>"
|
5cec93699e31f70d9b2a3f6b3887539a2e04680a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/5cec93699e31f70d9b2a3f6b3887539a2e04680a/cvs2hist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
2589,
16,
336,
3838,
16,
813,
16,
533,
16,
3936,
16,
17518,
373,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
39,
30,
72,
30,
25009,
30,
80,
30,
49,
683,
30,
90,
2773,
16,
8247,
39,
14640,
67,
3076,
3113,
315,
712,
3113,
315,
9355,
3113,
315,
2469,
3113,
315,
6786,
3113,
315,
30278,
3113,
377,
11849,
7,
486,
4671,
3260,
315,
86,
1330,
67,
2116,
3113,
11849,
7,
486,
4671,
3260,
315,
1589,
6,
308,
13,
225,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
2589,
18,
10283,
273,
2589,
18,
11241,
1172,
1234,
1172,
315,
5357,
30,
276,
6904,
22,
11488,
1372,
2116,
7070,
1172,
315,
1320,
30,
23059,
39,
385,
14640,
67,
3076,
65,
23059,
72,
436,
2143,
67,
712,
65,
23059,
77,
3504,
65,
23059,
80,
769,
4279,
1172,
315,
540,
23059,
49,
65,
23059,
84,
65,
23059,
86,
436,
1330,
67,
2116,
65,
23059,
90,
1177,
4279,
2589,
18,
8593,
12,
22,
13,
225,
468,
1000,
731,
3467,
364,
777,
434,
326,
1296,
980,
702,
18,
276,
6904,
67,
9071,
273,
968,
39,
14640,
3305,
1435,
309,
486,
276,
6904,
67,
9071,
30,
1172,
315,
71,
6904,
22,
11488,
1297,
506,
7120,
316,
279,
5960,
385,
14640,
1867,
6,
2589,
18,
8593,
12,
22,
13,
276,
6904,
67,
3076,
273,
315,
71,
6904,
6,
1509,
67,
3482,
273,
1408,
3504,
273,
374,
769,
273,
22997,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
2589,
16,
336,
3838,
16,
813,
16,
533,
16,
3936,
16,
17518,
373,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
39,
30,
72,
30,
25009,
30,
80,
30,
49,
683,
30,
90,
2773,
16,
8247,
39,
14640,
67,
3076,
3113,
315,
712,
3113,
315,
9355,
3113,
315,
2469,
3113,
315,
6786,
3113,
315,
30278,
3113,
377,
11849,
7,
486,
4671,
3260,
315,
86,
1330,
67,
2116,
3113,
11849,
7,
486,
4671,
3260,
315,
1589,
6,
308,
13,
225,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
2589,
18,
10283,
273,
2589,
18,
11241,
1172,
1234,
1172,
315,
5357,
30,
276,
6904,
22,
2
] |
msg= 'Insertion Failed!'
|
msg= _('Insertion Failed!')
|
fields_def = self.fields_get(cr, uid, context=context)
|
a4f26ab675d1e9985259806b27d349535c04d876 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/a4f26ab675d1e9985259806b27d349535c04d876/orm.py
|
[
1,
8585,
326,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
universe = sage.categories.all.Objects()) return self._decomp
|
universe = cat.Objects())
|
def decomposition(self): r""" Returns the Dirichlet groups of prime power modulus corresponding to primes dividing modulus.
|
80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26288,
12,
2890,
4672,
436,
8395,
2860,
326,
8446,
1354,
1810,
3252,
434,
17014,
7212,
24770,
4656,
358,
846,
4485,
3739,
10415,
24770,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26288,
12,
2890,
4672,
436,
8395,
2860,
326,
8446,
1354,
1810,
3252,
434,
17014,
7212,
24770,
4656,
358,
846,
4485,
3739,
10415,
24770,
18,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.opener('localtags', 'a').write('%s %s\n' % (hex(node), name)) self.hook('tag', node=hex(node), tag=name, local=local)
|
writetag(fp, name, None, prevtags)
|
def _tag(self, name, node, message, local, user, date, parent=None, extra={}): use_dirstate = parent is None
|
380f9ed1c72f4cd70997e95024ac8f6f85a00b40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/380f9ed1c72f4cd70997e95024ac8f6f85a00b40/localrepo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
12,
2890,
16,
508,
16,
756,
16,
883,
16,
1191,
16,
729,
16,
1509,
16,
982,
33,
7036,
16,
2870,
12938,
4672,
999,
67,
72,
920,
340,
273,
982,
353,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
1509,
16,
982,
33,
7036,
16,
2870,
12938,
4672,
999,
67,
72,
920,
340,
273,
982,
353,
599,
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,
-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,
-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
] |
if mouseActive: self.node.setEventHandler(avg.CURSORMOTION, avg.MOUSE, self.onCursorEvent) self.node.setEventHandler(avg.CURSORDOWN, avg.MOUSE, self.onCursorEvent) self.node.setEventHandler(avg.CURSORUP, avg.MOUSE, self.onCursorEvent) self.node.setEventHandler(avg.CURSORMOTION, avg.TOUCH, self.onCursorEvent) self.node.setEventHandler(avg.CURSORDOWN, avg.TOUCH, self.onCursorEvent) self.node.setEventHandler(avg.CURSORUP, avg.TOUCH, self.onCursorEvent)
|
self.node.setEventHandler(avg.CURSORDOWN, avg.TOUCH|avg.MOUSE, self.onCursorDown)
|
def __init__(self, parentNode, mouseActive): global g_Player, g_AudioInterface g_Player = avg.Player.get() self.parentNode=parentNode
|
8d0e6591341b9080daf0caea2de05c84bdd3b31c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7301/8d0e6591341b9080daf0caea2de05c84bdd3b31c/Game.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7234,
16,
7644,
3896,
4672,
2552,
314,
67,
12148,
16,
314,
67,
12719,
1358,
314,
67,
12148,
273,
11152,
18,
12148,
18,
588,
1435,
365,
18,
2938,
907,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7234,
16,
7644,
3896,
4672,
2552,
314,
67,
12148,
16,
314,
67,
12719,
1358,
314,
67,
12148,
273,
11152,
18,
12148,
18,
588,
1435,
365,
18,
2938,
907,
33,
2938,
907,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for l in xrange(Nbm): if l == 0: W[l:Nbm, offset_i:offset_i+K] = template offset_i += K else: if Kshared == 0: W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template[:-l, :] else: W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template[:-l, :-l*Kshared] offset_i += K-l*Kshared
|
for l in xrange(Nbm-1): template = generate_template(Nbm-l, K-l*Kshared, Kshared, wt) W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template offset_i += K-l*Kshared
|
def create_noise_connectivity_matrix_fixed_pairwise(Nbm, Nnoise, gamma, g, w, epsilon): NE = int(gamma * Nnoise) NI = int(Nnoise - NE) KE = int(epsilon * NE) KI = int(epsilon * NI) KEshared = 0 KIshared = 0 if NE > 0: KEshared = int(1. * KE**2 / NE) if NI > 0: KIshared = int(1. * KI**2 / NI) # check whether it is possible to realize desired connectivity; # this translate to (Nbm - 1 ) * epsilon <= 1 assert(KEshared * (Nbm - 1) <= KE), '[error] impossible parameter choices' assert(KIshared * (Nbm - 1) <= KI), '[error] impossible parameter choices' # the two next conditions are fullfilled if the two conditions # above are fullfilled; they are left in for documentation assert(Nbm*(KE-KEshared) <= NE) assert(Nbm*(KI-KIshared) <= NI) W = np.zeros((Nbm, NE+NI)) for k in xrange(2): K = [KE, KI][k] Kshared = [KEshared, KIshared][k] wt = [w, -g*w][k] if K > 0: template = np.zeros((Nbm, K)) l = 0 i = 0 Kshared_count = 0 while l < Nbm: if l == 0: template[l, i] = wt i += 1 if i == K: i = l l += 1 else: if Kshared_count < Kshared: template[l, i] = wt Kshared_count += 1 i += 1 if Kshared_count == Kshared: Kshared_count = 0 l += 1 offset_i = k*(KE-KEshared)*Nbm for l in xrange(Nbm): if l == 0: W[l:Nbm, offset_i:offset_i+K] = template offset_i += K else: if Kshared == 0: W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template[:-l, :] else: W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template[:-l, :-l*Kshared] offset_i += K-l*Kshared return W
|
94acedd481362f6804ae61c77b256e7fbbd7b771 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6301/94acedd481362f6804ae61c77b256e7fbbd7b771/helper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
17814,
67,
3612,
2818,
67,
5667,
67,
12429,
67,
6017,
2460,
12,
22816,
81,
16,
423,
17814,
16,
9601,
16,
314,
16,
341,
16,
12263,
4672,
12901,
273,
509,
12,
20589,
380,
423,
17814,
13,
423,
45,
273,
509,
12,
50,
17814,
300,
12901,
13,
1475,
41,
273,
509,
12,
13058,
10327,
380,
12901,
13,
1475,
45,
273,
509,
12,
13058,
10327,
380,
423,
45,
13,
1475,
41,
11574,
273,
374,
1475,
45,
11574,
273,
374,
309,
12901,
405,
374,
30,
1475,
41,
11574,
273,
509,
12,
21,
18,
380,
1475,
41,
636,
22,
342,
12901,
13,
309,
423,
45,
405,
374,
30,
1475,
45,
11574,
273,
509,
12,
21,
18,
380,
1475,
45,
636,
22,
342,
423,
45,
13,
468,
866,
2856,
518,
353,
3323,
358,
2863,
554,
6049,
20301,
31,
468,
333,
4204,
358,
261,
22816,
81,
300,
404,
262,
380,
12263,
1648,
404,
1815,
12,
6859,
11574,
380,
261,
22816,
81,
300,
404,
13,
1648,
1475,
41,
3631,
5271,
1636,
65,
23343,
1569,
7246,
11,
1815,
12,
47,
45,
11574,
380,
261,
22816,
81,
300,
404,
13,
1648,
1475,
45,
3631,
5271,
1636,
65,
23343,
1569,
7246,
11,
468,
326,
2795,
1024,
4636,
854,
1983,
13968,
309,
326,
2795,
4636,
468,
5721,
854,
1983,
13968,
31,
2898,
854,
2002,
316,
364,
7323,
1815,
12,
22816,
81,
21556,
6859,
17,
6859,
11574,
13,
1648,
12901,
13,
1815,
12,
22816,
81,
21556,
47,
45,
17,
47,
45,
11574,
13,
1648,
423,
45,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
17814,
67,
3612,
2818,
67,
5667,
67,
12429,
67,
6017,
2460,
12,
22816,
81,
16,
423,
17814,
16,
9601,
16,
314,
16,
341,
16,
12263,
4672,
12901,
273,
509,
12,
20589,
380,
423,
17814,
13,
423,
45,
273,
509,
12,
50,
17814,
300,
12901,
13,
1475,
41,
273,
509,
12,
13058,
10327,
380,
12901,
13,
1475,
45,
273,
509,
12,
13058,
10327,
380,
423,
45,
13,
1475,
41,
11574,
273,
374,
1475,
45,
11574,
273,
374,
309,
12901,
405,
374,
30,
1475,
41,
11574,
273,
509,
12,
21,
18,
380,
1475,
41,
636,
22,
342,
12901,
13,
309,
423,
45,
405,
374,
30,
1475,
45,
11574,
273,
509,
12,
21,
18,
380,
1475,
45,
636,
22,
2
] |
sched = d("scheduler").copy()
|
sched = jobargs["scheduler"].copy()
|
def _run(self, **kwargs): jobargs = util.DefaultDict(self.defaults.__getitem__, kwargs)
|
1382d8f6d0db7a1a702293444e014a4da88cc69b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/1382d8f6d0db7a1a702293444e014a4da88cc69b/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
2890,
16,
2826,
4333,
4672,
1719,
1968,
273,
1709,
18,
1868,
5014,
12,
2890,
18,
7606,
16186,
31571,
972,
16,
1205,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2681,
12,
2890,
16,
2826,
4333,
4672,
1719,
1968,
273,
1709,
18,
1868,
5014,
12,
2890,
18,
7606,
16186,
31571,
972,
16,
1205,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100
] |
if i:
|
if '=' in i:
|
def udev_daemon(self): start1=time.time() print_debug ("udev_daemon() starting...") udev=self.xmlrpc.GetDevicesInfo(device="", mode="--getudev").split('|') print_debug("udev_daemon GetDevicesInfo time=%f" %(time.time() - start1) ) if "error" in " ".join(udev): return udev=udev[:-1] if len(udev) < 1 or udev[0] == "unknow": return udev=self.remove_dupes(udev) for line in udev: data={} tmp=line.split('#') for i in tmp: if i: data[i.split("=")[0]]=i.split("=")[1] for event in self.udev_events: action_found=False #print_debug ( " UDEV=> checking for event %s" %event ) # check for all events for udev_var in self.udev_events[event]: #print_debug ( " UDEV=> checking for udev_var %s value=%s" %(udev_var, self.udev_events[event]["%s"%udev_var]) ) if not data.has_key(udev_var): action_found=False break if "*" in self.udev_events["%s"%event]["%s"%udev_var]: even=self.udev_events["%s"%event]["%s"%udev_var].replace('*','') if even in data["%s"%udev_var]: action_found=True else: action_found=False break else: if self.udev_events["%s"%event]["%s"%udev_var] == data["%s"%udev_var]: action_found=True else: action_found=False break if action_found: self.worker_running=False worker=shared.Workers(self, target=self.do_udev_event, args=[data], dog=False) worker.start() print_debug("end of udev_daemon time=%f" %(time.time() - start1) ) return
|
502e61d2909cae133aeeee71dfdfb9bd90190da1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13520/502e61d2909cae133aeeee71dfdfb9bd90190da1/tcos-devices-ng.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
582,
5206,
67,
21511,
12,
2890,
4672,
787,
21,
33,
957,
18,
957,
1435,
1172,
67,
4148,
7566,
1317,
90,
67,
21511,
1435,
5023,
7070,
13,
582,
5206,
33,
2890,
18,
2902,
7452,
18,
967,
10053,
966,
12,
5964,
1546,
3113,
1965,
1546,
413,
588,
1317,
90,
20387,
4939,
2668,
96,
6134,
1172,
67,
4148,
2932,
1317,
90,
67,
21511,
968,
10053,
966,
813,
5095,
74,
6,
8975,
957,
18,
957,
1435,
300,
787,
21,
13,
262,
309,
315,
1636,
6,
316,
315,
3552,
5701,
12,
1317,
90,
4672,
327,
582,
5206,
33,
1317,
90,
10531,
17,
21,
65,
309,
562,
12,
1317,
90,
13,
411,
404,
578,
582,
5206,
63,
20,
65,
422,
315,
1683,
3338,
6877,
327,
582,
5206,
33,
2890,
18,
4479,
67,
26427,
281,
12,
1317,
90,
13,
364,
980,
316,
582,
5206,
30,
501,
12938,
1853,
33,
1369,
18,
4939,
2668,
7,
6134,
364,
277,
316,
1853,
30,
309,
5214,
316,
277,
30,
501,
63,
77,
18,
4939,
2932,
1546,
25146,
20,
13563,
33,
77,
18,
4939,
2932,
1546,
25146,
21,
65,
364,
871,
316,
365,
18,
1317,
90,
67,
5989,
30,
1301,
67,
7015,
33,
8381,
468,
1188,
67,
4148,
261,
315,
587,
15301,
9207,
6728,
364,
871,
738,
87,
6,
738,
2575,
262,
468,
866,
364,
777,
2641,
364,
582,
5206,
67,
1401,
316,
365,
18,
1317,
90,
67,
5989,
63,
2575,
14542,
468,
1188,
67,
4148,
261,
315,
225,
587,
15301,
9207,
6728,
364,
582,
5206,
67,
1401,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
582,
5206,
67,
21511,
12,
2890,
4672,
787,
21,
33,
957,
18,
957,
1435,
1172,
67,
4148,
7566,
1317,
90,
67,
21511,
1435,
5023,
7070,
13,
582,
5206,
33,
2890,
18,
2902,
7452,
18,
967,
10053,
966,
12,
5964,
1546,
3113,
1965,
1546,
413,
588,
1317,
90,
20387,
4939,
2668,
96,
6134,
1172,
67,
4148,
2932,
1317,
90,
67,
21511,
968,
10053,
966,
813,
5095,
74,
6,
8975,
957,
18,
957,
1435,
300,
787,
21,
13,
262,
309,
315,
1636,
6,
316,
315,
3552,
5701,
12,
1317,
90,
4672,
327,
582,
5206,
33,
1317,
90,
10531,
17,
21,
65,
309,
562,
12,
1317,
90,
13,
411,
404,
578,
582,
5206,
63,
20,
65,
422,
315,
1683,
3338,
6877,
2
] |
def almostEqualF(a, b, rel_err=2e-15, abs_err = 5e-323): """Determine whether floating-point values a and b are equal to within a (small) rounding error. The default values for rel_err and abs_err are chosen to be suitable for platforms where a float is represented by an IEEE 754 double. They allow an error of between 9 and 19 ulps.""" if math.isnan(a): return math.isnan(b) if math.isinf(a): return a == b if not a and not b: return math.copysign(1., a) == math.copysign(1., b) try: absolute_error = abs(b-a) except OverflowError: return False else: return absolute_error <= max(abs_err, rel_err * abs(a))
|
def almostEqualF(a, b, rel_err=2e-15, abs_err = 5e-323): """Determine whether floating-point values a and b are equal to within a (small) rounding error. The default values for rel_err and abs_err are chosen to be suitable for platforms where a float is represented by an IEEE 754 double. They allow an error of between 9 and 19 ulps.""" # special values testing if math.isnan(a): return math.isnan(b) if math.isinf(a): return a == b # if both a and b are zero, check whether they have the same sign # (in theory there are examples where it would be legitimate for a # and b to have opposite signs; in practice these hardly ever # occur). if not a and not b: return math.copysign(1., a) == math.copysign(1., b) # if a-b overflows, or b is infinite, return False. Again, in # theory there are examples where a is within a few ulps of the # max representable float, and then b could legitimately be # infinite. In practice these examples are rare. try: absolute_error = abs(b-a) except OverflowError: return False else: return absolute_error <= max(abs_err, rel_err * abs(a))
|
12662f56d10475f3f84ee6aa6a188e5c4760a44b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/12662f56d10475f3f84ee6aa6a188e5c4760a44b/test_cmath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23889,
5812,
42,
12,
69,
16,
324,
16,
1279,
67,
370,
33,
22,
73,
17,
3600,
16,
2417,
67,
370,
273,
1381,
73,
17,
1578,
23,
4672,
3536,
8519,
2856,
13861,
17,
1153,
924,
279,
471,
324,
854,
3959,
358,
3470,
279,
261,
12019,
13,
13885,
555,
18,
225,
1021,
805,
924,
364,
1279,
67,
370,
471,
2417,
67,
370,
854,
10447,
358,
506,
10631,
364,
17422,
1625,
279,
1431,
353,
10584,
635,
392,
467,
9383,
41,
2371,
6564,
1645,
18,
225,
16448,
1699,
392,
555,
434,
3086,
2468,
471,
5342,
7493,
1121,
12123,
225,
468,
4582,
924,
7769,
309,
4233,
18,
291,
13569,
12,
69,
4672,
327,
4233,
18,
291,
13569,
12,
70,
13,
309,
4233,
18,
291,
10625,
12,
69,
4672,
327,
279,
422,
324,
225,
468,
309,
3937,
279,
471,
324,
854,
3634,
16,
866,
2856,
2898,
1240,
326,
1967,
1573,
468,
261,
267,
326,
630,
1915,
854,
10991,
1625,
518,
4102,
506,
4553,
305,
4988,
364,
279,
468,
471,
324,
358,
1240,
20759,
21588,
31,
316,
27164,
4259,
7877,
715,
14103,
468,
3334,
2934,
309,
486,
279,
471,
486,
324,
30,
327,
4233,
18,
3530,
2977,
12,
21,
12990,
279,
13,
422,
4233,
18,
3530,
2977,
12,
21,
12990,
324,
13,
225,
468,
309,
279,
17,
70,
9391,
87,
16,
578,
324,
353,
14853,
16,
327,
1083,
18,
225,
5495,
530,
16,
316,
468,
326,
630,
1915,
854,
10991,
1625,
279,
353,
3470,
279,
11315,
7493,
1121,
434,
326,
468,
943,
2406,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23889,
5812,
42,
12,
69,
16,
324,
16,
1279,
67,
370,
33,
22,
73,
17,
3600,
16,
2417,
67,
370,
273,
1381,
73,
17,
1578,
23,
4672,
3536,
8519,
2856,
13861,
17,
1153,
924,
279,
471,
324,
854,
3959,
358,
3470,
279,
261,
12019,
13,
13885,
555,
18,
225,
1021,
805,
924,
364,
1279,
67,
370,
471,
2417,
67,
370,
854,
10447,
358,
506,
10631,
364,
17422,
1625,
279,
1431,
353,
10584,
635,
392,
467,
9383,
41,
2371,
6564,
1645,
18,
225,
16448,
1699,
392,
555,
434,
3086,
2468,
471,
5342,
7493,
1121,
12123,
225,
468,
4582,
924,
7769,
309,
4233,
18,
291,
13569,
12,
69,
4672,
327,
4233,
18,
291,
13569,
12,
70,
13,
309,
4233,
18,
2
] |
|
self.assertEqual(stderr, "pineapple")
|
self.assert_(stderr.startswith("pineapple"))
|
def test_communicate_stderr(self): p = subprocess.Popen([sys.executable, "-c", 'import sys; sys.stderr.write("pineapple")'], stderr=subprocess.PIPE) (stdout, stderr) = p.communicate() self.assertEqual(stdout, None) self.assertEqual(stderr, "pineapple")
|
0823b11a55197cb09b555d7be494d63d4e6cba00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0823b11a55197cb09b555d7be494d63d4e6cba00/test_subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5702,
318,
2659,
67,
11241,
12,
2890,
4672,
293,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
3701,
71,
3113,
296,
5666,
2589,
31,
2589,
18,
11241,
18,
2626,
2932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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
67,
5702,
318,
2659,
67,
11241,
12,
2890,
4672,
293,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
3701,
71,
3113,
296,
5666,
2589,
31,
2589,
18,
11241,
18,
2626,
2932,
84,
558,
438,
1802,
31241,
6487,
4514,
33,
1717,
2567,
18,
27602,
13,
261,
10283,
16,
4514,
13,
273,
293,
18,
5702,
318,
2659,
1435,
365,
18,
11231,
5812,
12,
10283,
16,
599,
13,
365,
18,
11231,
5812,
12,
11241,
16,
315,
84,
558,
438,
1802,
7923,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
X = vander(x,N=None)
|
Generate the Vandermonde matrix of vector x.
|
def vander(x, N=None): """ X = vander(x,N=None) The Vandermonde matrix of vector x. The i-th column of X is the the i-th power of x. N is the maximum power to compute; if N is None it defaults to len(x). """ x = asarray(x) if N is None: N=len(x) X = ones( (len(x),N), x.dtype) for i in range(N-1): X[:,i] = x**(N-i-1) return X
|
7e0f986f1db836026348adadec555f32522008f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/7e0f986f1db836026348adadec555f32522008f5/twodim_base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
464,
264,
12,
92,
16,
423,
33,
7036,
4672,
3536,
6654,
326,
776,
464,
1035,
265,
323,
3148,
434,
3806,
619,
18,
225,
1021,
776,
464,
1035,
265,
323,
3148,
434,
3806,
619,
18,
225,
1021,
277,
17,
451,
1057,
434,
1139,
353,
326,
326,
277,
17,
451,
7212,
434,
619,
18,
225,
423,
353,
326,
4207,
7212,
358,
3671,
31,
309,
423,
353,
599,
518,
3467,
358,
562,
12,
92,
2934,
225,
3536,
619,
273,
10455,
12,
92,
13,
309,
423,
353,
599,
30,
423,
33,
1897,
12,
92,
13,
1139,
273,
5945,
12,
261,
1897,
12,
92,
3631,
50,
3631,
619,
18,
8972,
13,
364,
277,
316,
1048,
12,
50,
17,
21,
4672,
1139,
10531,
16,
77,
65,
273,
619,
636,
12,
50,
17,
77,
17,
21,
13,
327,
1139,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
331,
464,
264,
12,
92,
16,
423,
33,
7036,
4672,
3536,
6654,
326,
776,
464,
1035,
265,
323,
3148,
434,
3806,
619,
18,
225,
1021,
776,
464,
1035,
265,
323,
3148,
434,
3806,
619,
18,
225,
1021,
277,
17,
451,
1057,
434,
1139,
353,
326,
326,
277,
17,
451,
7212,
434,
619,
18,
225,
423,
353,
326,
4207,
7212,
358,
3671,
31,
309,
423,
353,
599,
518,
3467,
358,
562,
12,
92,
2934,
225,
3536,
619,
273,
10455,
12,
92,
13,
309,
423,
353,
599,
30,
423,
33,
1897,
12,
92,
13,
1139,
273,
5945,
12,
261,
1897,
12,
92,
3631,
50,
3631,
619,
18,
8972,
13,
364,
277,
316,
1048,
12,
50,
17,
21,
4672,
1139,
10531,
2
] |
out += """</table></form> """
|
out += """</form>"""
|
def create_search_box(cc, colls, p, f, rg, sf, so, sp, of, ot, as, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, d1y, d1m, d1d, d2y, d2m, d2d, action="SEARCH"): "Create search box for 'search again in the results page' functionality." out = "" # print search box prolog: out += """ <form action="%s/search.py" method="get"> <strong class="headline"><span class="h1">%s</span></strong> <input type="hidden" name="cc" value="%s"> <input type="hidden" name="as" value="%s"> """ % (weburl, cc, cc, as) if ot: out += """<input type="hidden" name="ot" value="%s">""" % ot if sp: out += """<input type="hidden" name="sp" value="%s">""" % sp # possibly print external search engines links (Google box): if cfg_google_box: out += create_google_box(p, f, p1, p2, p3) # decide upon leading text: leadingtext = "Search" if action == "Browse": leadingtext = "Browse" ## firstly, print Query box: if as==1: # print Advanced Search form: # define search box elements: cell_1_left = create_matchtype_box('m1', m1) + \ """<input type="text" name="p1" size="%d" value="%s">""" % (cfg_advancedsearch_pattern_box_width, cgi.escape(p1,1)) cell_1_right = create_searchwithin_selection_box('f1', f1) cell_1_moreright = create_andornot_box('op1', op1) cell_2_left = create_matchtype_box('m2', m2) + """<input type="text" name="p2" size="%d" value="%s">""" % (cfg_advancedsearch_pattern_box_width, cgi.escape(p2,1)) cell_2_right = create_searchwithin_selection_box('f2', f2) cell_2_moreright = create_andornot_box('op2', op2) cell_3_left = create_matchtype_box('m3', m3) + """<input type="text" name="p3" size="%d" value="%s">""" % (cfg_advancedsearch_pattern_box_width, cgi.escape(p3,1)) cell_3_right = create_searchwithin_selection_box('f3', f3) cell_3_moreright = """<input class="formbutton" type="submit" name="search" value="SEARCH"><input class="formbutton" type="submit" name="search" value="Browse"> """ cell_4 = """<small><a href="%s/help/search/tips.html">search tips</a> :: <a href="%s/search.py?p=%s&f=%s&cc=%s">simple search</a></small>""" % \ (weburl, weburl, urllib.quote(p1), urllib.quote(f1), urllib.quote(cc)) # print them: out += """ <table class="searchbox"> <thead> <tr> <th colspan="3" class="searchboxheader"> %s for: </th> </tr> </thead> <tbody> <tr valign="bottom"> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> </tr> <tr valign="bottom"> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> </tr> <tr valign="bottom"> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> </tr> <tr valign="bottom"> <td colspan="3" align="right" class="searchboxbody">%s</td> </tr> </tbody> </table> """ % \ (leadingtext, cell_1_left, cell_1_right, cell_1_moreright, \ cell_2_left, cell_2_right, cell_2_moreright, \ cell_3_left, cell_3_right, cell_3_moreright, cell_4) else: # print Simple Search form: cell_1_left = """<input type="text" name="p" size="%d" value="%s">""" % \ (cfg_simplesearch_pattern_box_width, cgi.escape(p, 1)) cell_1_middle = create_searchwithin_selection_box('f', f) cell_1_right = """<input class="formbutton" type="submit" name="search" value="SEARCH"><input class="formbutton" type="submit" name="search" value="Browse"> """ cell_2 = """<small><a href="%s/help/search/tips.html">search tips</a> :: <a href="%s/search.py?p1=%s&f1=%s&as=1&cc=%s">advanced search</a></small>""" %\ (weburl, weburl, urllib.quote(p), urllib.quote(f), urllib.quote(cc)) out += """ <table class="searchbox"> <thead> <tr> <th colspan="3" class="searchboxheader"> %s for: </th> </tr> </thead> <tbody> <tr valign="bottom"> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> </tr> <tr valign="bottom"> <td colspan="3" align="right" class="searchboxbody">%s</td> </tr> </tbody> </table> """ % (leadingtext, cell_1_left, cell_1_middle, cell_1_right, cell_2) ## secondly, print Collection(s) box: out += """ <table class="searchbox"> <thead> <tr> <th colspan="3" class="searchboxheader"> %s collections: </th> </tr> </thead> <tbody> <tr valign="bottom"> <td valign="top" class="searchboxbody">""" % leadingtext colls_nicely_ordered = get_nicely_ordered_collection_list() if colls and colls[0] != cdsname: # some collections are defined, so print these first, and only then print 'add another collection' heading: for c in colls: if c: out += """<select name="c"><option value="">*** remove this collection ***""" for (cx, cx_printable) in colls_nicely_ordered: # print collection: if not cx.startswith("Unnamed collection"): out+= """<option value="%s"%s>%s""" % (cx, is_selected(c, re.sub("^[\s\-]*","",cx)), cx_printable) out += """</select>""" out += """<select name="c"><option value="">*** add another collection ***""" else: # we searched in CDSNAME, so print 'any collection' heading out += """<select name="c"><option value="">*** any collection ***""" for (cx, cx_printable) in colls_nicely_ordered: if not cx.startswith("Unnamed collection"): out += """<option value="%s">%s""" % (cx, cx_printable) out += """ </select> </td> </tr> </tbody> </table>""" ## thirdly, print from/until date boxen, if applicable: if action=="Browse" or (d1y=="" and d1m=="" and d1d=="" and d2y=="" and d2m=="" and d2d==""): pass # do not need it else: cell_6_a = create_inputdate_box("d1", d1y, d1m, d1d) cell_6_b = create_inputdate_box("d2", d2y, d2m, d2d) out += """<table class="searchbox"> <thead> <tr> <th class="searchboxheader"> Added since: </th> <th class="searchboxheader"> until: </th> </tr> </thead> <tbody> <tr valign="bottom"> <td class="searchboxbody">%s</td> <td class="searchboxbody">%s</td> </tr> </tbody> </table>""" % \ (cell_6_a, cell_6_b) ## fourthly, print Display/Sort box: if action != "Browse": cell_1_left = """ <select name="sf"> <option value="">- latest first -""" query = """SELECT DISTINCT(f.code),f.name FROM field AS f, collection_field_fieldvalue AS cff WHERE cff.type='soo' AND cff.id_field=f.id ORDER BY cff.score DESC, f.name ASC""" res = run_sql(query) for code, name in res: # propose found sort options: cell_1_left += """<option value="%s"%s>%s""" % (code, is_selected(sf,code), name) cell_1_left += """</select>""" cell_1_left += """<select name="so"> <option value="a"%s>asc. <option value="d"%s>desc. </select>""" % (is_selected(so,"a"),is_selected(so,"d")) cell_1_right = """ <select name="of">""" query = """SELECT code,name FROM format ORDER BY name ASC""" res = run_sql(query) if res: # propose found formats: for code, name in res: cell_1_right += """<option value="%s"%s>%s""" % (code, is_selected(of,code), name) else: # no formats are found, so propose the default HTML one: cell_1_right += """<option value="hb"%s>HTML brief""" % (is_selected(of,"hb")) # is format made of numbers only? if yes, then propose it too: if of and str(of[0:3]).isdigit(): cell_1_right += """<option value="%s" selected>%s MARC tag""" % (of, of) cell_1_right += """</select>""" ## okay, formats ended cell_1_middle = """ <select name="rg"> <option value="10"%s>10 results <option value="25"%s>25 results <option value="50"%s>50 results <option value="100"%s>100 results <option value="250"%s>250 results <option value="500"%s>500 results </select> <select name="sc"> <option value="0"%s>grouped together <option value="1"%s>split by collection </select> """ % (is_selected(rg,"10"), is_selected(rg,"25"), is_selected(rg,"50"), \ is_selected(rg,"100"), is_selected(rg,"250"), is_selected(rg,"500"),\ is_selected(sc,"0"), is_selected(sc,"1")) out += """ <table class="searchbox"> <thead> <tr> <th class="searchboxheader"> Sort by: </th> <th class="searchboxheader"> Display results: </th> <th class="searchboxheader"> Output format: </th> </tr> </thead> <tbody> <tr valign="bottom"> <td valign="top" class="searchboxbody">%s</td> <td valign="top" class="searchboxbody">%s</td> <td valign="top" class="searchboxbody">%s</td> </tr> </tbody> </table>""" % (cell_1_left, cell_1_middle, cell_1_right) ## last but not least, print end of search box: out += """</table></form> """ return out
|
f839501b02b6f1b955e60deafa542ab8007124be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/f839501b02b6f1b955e60deafa542ab8007124be/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3072,
67,
2147,
12,
952,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
16,
9033,
16,
1427,
16,
1694,
16,
434,
16,
15835,
16,
487,
16,
293,
21,
16,
284,
21,
16,
312,
21,
16,
1061,
21,
16,
293,
22,
16,
284,
22,
16,
312,
22,
16,
1061,
22,
16,
293,
23,
16,
284,
23,
16,
312,
23,
16,
888,
16,
302,
21,
93,
16,
302,
21,
81,
16,
302,
21,
72,
16,
302,
22,
93,
16,
302,
22,
81,
16,
302,
22,
72,
16,
1301,
1546,
17251,
6,
4672,
315,
1684,
1623,
3919,
364,
296,
3072,
3382,
316,
326,
1686,
1363,
11,
14176,
1199,
596,
273,
1408,
468,
1172,
1623,
3919,
450,
1330,
30,
596,
1011,
3536,
411,
687,
1301,
11613,
87,
19,
3072,
18,
2074,
6,
707,
1546,
588,
6441,
411,
9110,
667,
1546,
1978,
1369,
14050,
3969,
667,
1546,
76,
21,
24038,
87,
1757,
3969,
4695,
9110,
34,
411,
2630,
618,
1546,
6345,
6,
508,
1546,
952,
6,
460,
11613,
87,
6441,
411,
2630,
618,
1546,
6345,
6,
508,
1546,
345,
6,
460,
11613,
87,
6441,
3536,
738,
261,
4875,
718,
16,
4946,
16,
4946,
16,
487,
13,
309,
15835,
30,
596,
1011,
3536,
32,
2630,
618,
1546,
6345,
6,
508,
1546,
352,
6,
460,
11613,
87,
6,
2984,
3660,
738,
15835,
309,
1694,
30,
596,
1011,
3536,
32,
2630,
618,
1546,
6345,
6,
508,
1546,
1752,
6,
460,
11613,
87,
6,
2984,
3660,
738,
1694,
225,
468,
10016,
1172,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3072,
67,
2147,
12,
952,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
16,
9033,
16,
1427,
16,
1694,
16,
434,
16,
15835,
16,
487,
16,
293,
21,
16,
284,
21,
16,
312,
21,
16,
1061,
21,
16,
293,
22,
16,
284,
22,
16,
312,
22,
16,
1061,
22,
16,
293,
23,
16,
284,
23,
16,
312,
23,
16,
888,
16,
302,
21,
93,
16,
302,
21,
81,
16,
302,
21,
72,
16,
302,
22,
93,
16,
302,
22,
81,
16,
302,
22,
72,
16,
1301,
1546,
17251,
6,
4672,
315,
1684,
1623,
3919,
364,
296,
3072,
3382,
316,
326,
1686,
1363,
11,
14176,
1199,
596,
273,
1408,
468,
1172,
1623,
3919,
450,
1330,
30,
2
] |
if self.taskserver == None: self.taskserver = GUITaskQueue.getInstance() self.taskserver.add_task(lambda:wx.CallAfter(removeHighlight), timeout, self)
|
if self.highlightTimer == None: self.highlightTimer = wx.CallLater(timeout * 1000, removeHighlight) else: self.highlightTimer.Restart(timeout * 1000)
|
def removeHighlight(): try: self.ShowSelected() except: #PyDeadError pass
|
bec7425998522b9098966054b0ef584a859d3835 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/bec7425998522b9098966054b0ef584a859d3835/list_body.py
|
[
1,
8585,
326,
22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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
16205,
13332,
775,
30,
365,
18,
5706,
7416,
1435,
1335,
30,
468,
9413,
11852,
668,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.conn.do.command_list_end()
|
def sort(self, type): if self.conn: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() list = [] for track in self.songs: dict = {} # Those items that don't have the specified tag will be put at # the end of the list (hence the 'zzzzzzz'): dict["sortby"] = getattr(track, type, 'zzzzzzzz') if type == 'file': dict["sortby"] = dict["sortby"].split('/')[-1] dict["id"] = track.id list.append(dict) list.sort(key=lambda x: x["sortby"].lower()) # Remove case sensitivity # Now that we have the order, move the songs as appropriate: pos = 0 self.conn.send.command_list_begin() for item in list: self.conn.send.moveid(int(item["id"]), pos) pos = pos + 1 self.conn.do.command_list_end()
|
0da9815c248298a9268c10f25c59ea81e5bd319d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/0da9815c248298a9268c10f25c59ea81e5bd319d/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
12,
2890,
16,
618,
4672,
309,
365,
18,
4646,
30,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
59,
5858,
3719,
1323,
22718,
18,
5989,
67,
9561,
13332,
22718,
18,
5254,
67,
16108,
1435,
666,
273,
5378,
364,
3298,
316,
365,
18,
816,
564,
30,
2065,
273,
2618,
468,
935,
2584,
1516,
716,
2727,
1404,
1240,
326,
1269,
1047,
903,
506,
1378,
622,
468,
326,
679,
434,
326,
666,
261,
76,
802,
326,
296,
6378,
6378,
6378,
94,
11,
4672,
2065,
9614,
3804,
1637,
11929,
273,
3869,
12,
4101,
16,
618,
16,
296,
6378,
6378,
6378,
6378,
6134,
309,
618,
422,
296,
768,
4278,
2065,
9614,
3804,
1637,
11929,
273,
2065,
9614,
3804,
1637,
6,
8009,
4939,
2668,
2473,
13,
18919,
21,
65,
2065,
9614,
350,
11929,
273,
3298,
18,
350,
666,
18,
6923,
12,
1576,
13,
666,
18,
3804,
12,
856,
33,
14661,
619,
30,
619,
9614,
3804,
1637,
6,
8009,
8167,
10756,
468,
3581,
648,
15390,
20862,
468,
4494,
716,
732,
1240,
326,
1353,
16,
3635,
326,
272,
7260,
487,
5505,
30,
949,
273,
374,
365,
18,
4646,
18,
4661,
18,
3076,
67,
1098,
67,
10086,
1435,
364,
761,
316,
666,
30,
365,
18,
4646,
18,
4661,
18,
8501,
350,
12,
474,
12,
1726,
9614,
350,
11929,
3631,
949,
13,
949,
273,
949,
397,
404,
365,
18,
4646,
18,
2896,
18,
3076,
67,
1098,
67,
409,
1435,
2,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
12,
2890,
16,
618,
4672,
309,
365,
18,
4646,
30,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
59,
5858,
3719,
1323,
22718,
18,
5989,
67,
9561,
13332,
22718,
18,
5254,
67,
16108,
1435,
666,
273,
5378,
364,
3298,
316,
365,
18,
816,
564,
30,
2065,
273,
2618,
468,
935,
2584,
1516,
716,
2727,
1404,
1240,
326,
1269,
1047,
903,
506,
1378,
622,
468,
326,
679,
434,
326,
666,
261,
76,
802,
326,
296,
6378,
6378,
6378,
94,
11,
4672,
2065,
9614,
3804,
1637,
11929,
273,
3869,
12,
4101,
16,
618,
16,
296,
6378,
6378,
6378,
6378,
6134,
309,
618,
422,
296,
768,
4278,
2065,
2
] |
|
def drawOrderedCanvasItems(self):
|
def SetDrawOrder(self):
|
def drawOrderedCanvasItems(self): """ Calculate the order of canvas items, taking selection, history, and active collection into account. """ ordered = [] selectedBoxes = [] activeBoxes = [] orderLastMap = {} contents = CalendarSelection(self.blockItem.contents)
|
6c204ec8fb5922108cdfd129ffe8a855cb9a799d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6c204ec8fb5922108cdfd129ffe8a855cb9a799d/TimedCanvas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
6493,
2448,
12,
2890,
4672,
3536,
9029,
326,
1353,
434,
5953,
1516,
16,
13763,
4421,
16,
4927,
16,
471,
2695,
1849,
1368,
2236,
18,
225,
3536,
5901,
4202,
273,
5378,
3170,
29521,
273,
5378,
2695,
29521,
282,
273,
5378,
1353,
3024,
863,
225,
273,
2618,
2939,
273,
5542,
6233,
12,
2890,
18,
2629,
1180,
18,
3980,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1000,
6493,
2448,
12,
2890,
4672,
3536,
9029,
326,
1353,
434,
5953,
1516,
16,
13763,
4421,
16,
4927,
16,
471,
2695,
1849,
1368,
2236,
18,
225,
3536,
5901,
4202,
273,
5378,
3170,
29521,
273,
5378,
2695,
29521,
282,
273,
5378,
1353,
3024,
863,
225,
273,
2618,
2939,
273,
5542,
6233,
12,
2890,
18,
2629,
1180,
18,
3980,
13,
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,
-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,
-100,
-100
] |
elif wxs.xsQualifiedName('choice' == node.nodeName):
|
elif wxs.xsQualifiedName('choice') == node.nodeName:
|
def CreateFromDOM (cls, wxs, node): if wxs.xsQualifiedName('all' == node.nodeName): compositor = cls.C_ALL elif wxs.xsQualifiedName('choice' == node.nodeName): compositor = cls.C_CHOICE elif wxs.xsQualifiedName('sequence' == node.nodeName): compositor = cls.C_SEQUENCE else: raise IncompleteImplementationError('ModelGroup: Got unexpected %s' % (node.nodeName,)) particles = [] particle_tags = Particle.ParticleTags(wxs.xs()) for cn in node.childNodes: if Node.ELEMENT_NODE != cn.nodeType: continue if cn.nodeName in particle_tags: particles.append(Particle.CreateFromDOM(wxs, cn)) return cls(compositor, particles)
|
830460ebd089758fd7fd4f9c27cb1a6ad1f91e68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/830460ebd089758fd7fd4f9c27cb1a6ad1f91e68/structures.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1265,
8168,
261,
6429,
16,
7075,
87,
16,
756,
4672,
309,
7075,
87,
18,
13713,
12345,
2668,
454,
11,
422,
756,
18,
2159,
461,
4672,
532,
1724,
280,
273,
2028,
18,
39,
67,
4685,
1327,
7075,
87,
18,
13713,
12345,
2668,
11569,
6134,
422,
756,
18,
2159,
461,
30,
532,
1724,
280,
273,
2028,
18,
39,
67,
22213,
11774,
1327,
7075,
87,
18,
13713,
12345,
2668,
6178,
11,
422,
756,
18,
2159,
461,
4672,
532,
1724,
280,
273,
2028,
18,
39,
67,
25330,
469,
30,
1002,
657,
6226,
13621,
668,
2668,
1488,
1114,
30,
19578,
9733,
738,
87,
11,
738,
261,
2159,
18,
2159,
461,
16,
3719,
28312,
273,
5378,
20036,
67,
4156,
273,
6393,
3711,
18,
1988,
3711,
3453,
12,
91,
13713,
18,
13713,
10756,
364,
6227,
316,
756,
18,
3624,
3205,
30,
309,
2029,
18,
10976,
67,
8744,
480,
6227,
18,
2159,
559,
30,
1324,
309,
6227,
18,
2159,
461,
316,
20036,
67,
4156,
30,
28312,
18,
6923,
12,
1988,
3711,
18,
1684,
1265,
8168,
12,
91,
13713,
16,
6227,
3719,
327,
2028,
12,
832,
1724,
280,
16,
28312,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1788,
1265,
8168,
261,
6429,
16,
7075,
87,
16,
756,
4672,
309,
7075,
87,
18,
13713,
12345,
2668,
454,
11,
422,
756,
18,
2159,
461,
4672,
532,
1724,
280,
273,
2028,
18,
39,
67,
4685,
1327,
7075,
87,
18,
13713,
12345,
2668,
11569,
6134,
422,
756,
18,
2159,
461,
30,
532,
1724,
280,
273,
2028,
18,
39,
67,
22213,
11774,
1327,
7075,
87,
18,
13713,
12345,
2668,
6178,
11,
422,
756,
18,
2159,
461,
4672,
532,
1724,
280,
273,
2028,
18,
39,
67,
25330,
469,
30,
1002,
657,
6226,
13621,
668,
2668,
1488,
1114,
30,
19578,
9733,
738,
87,
11,
738,
261,
2159,
18,
2159,
461,
16,
3719,
28312,
273,
5378,
20036,
67,
4156,
273,
6393,
3711,
18,
2
] |
result = PassStatNode(pos)
|
result = Nodes.PassStatNode(pos)
|
def p_IF_statement(s, level, cdef_flag, visibility, api): pos = s.position saved_eval = s.compile_time_eval current_eval = saved_eval denv = s.compile_time_env result = None while 1: s.next() # 'IF' or 'ELIF' expr = p_compile_time_expr(s) s.compile_time_eval = current_eval and bool(expr.compile_time_value(denv)) body = p_suite(s, level, cdef_flag, visibility, api = api) if s.compile_time_eval: result = body current_eval = 0 if s.sy <> 'ELIF': break if s.sy == 'ELSE': s.next() s.compile_time_eval = current_eval body = p_suite(s, level, cdef_flag, visibility, api = api) if current_eval: result = body if not result: result = PassStatNode(pos) s.compile_time_eval = saved_eval return result
|
f6eb3c627a619c15584a9e3646373a6259f2583d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2099/f6eb3c627a619c15584a9e3646373a6259f2583d/Parsing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
5501,
67,
11516,
12,
87,
16,
1801,
16,
276,
536,
67,
6420,
16,
9478,
16,
1536,
4672,
949,
273,
272,
18,
3276,
5198,
67,
8622,
273,
272,
18,
11100,
67,
957,
67,
8622,
783,
67,
8622,
273,
5198,
67,
8622,
302,
3074,
273,
272,
18,
11100,
67,
957,
67,
3074,
563,
273,
599,
1323,
404,
30,
272,
18,
4285,
1435,
468,
296,
5501,
11,
578,
296,
41,
2053,
42,
11,
3065,
273,
293,
67,
11100,
67,
957,
67,
8638,
12,
87,
13,
272,
18,
11100,
67,
957,
67,
8622,
273,
783,
67,
8622,
471,
1426,
12,
8638,
18,
11100,
67,
957,
67,
1132,
12,
72,
3074,
3719,
1417,
273,
293,
67,
30676,
12,
87,
16,
1801,
16,
276,
536,
67,
6420,
16,
9478,
16,
1536,
273,
1536,
13,
309,
272,
18,
11100,
67,
957,
67,
8622,
30,
563,
273,
1417,
783,
67,
8622,
273,
374,
309,
272,
18,
9009,
2813,
296,
41,
2053,
42,
4278,
898,
309,
272,
18,
9009,
422,
296,
2247,
1090,
4278,
272,
18,
4285,
1435,
272,
18,
11100,
67,
957,
67,
8622,
273,
783,
67,
8622,
1417,
273,
293,
67,
30676,
12,
87,
16,
1801,
16,
276,
536,
67,
6420,
16,
9478,
16,
1536,
273,
1536,
13,
309,
783,
67,
8622,
30,
563,
273,
1417,
309,
486,
563,
30,
563,
273,
14037,
18,
6433,
5000,
907,
12,
917,
13,
272,
18,
11100,
67,
957,
67,
8622,
273,
5198,
67,
8622,
327,
563,
225,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
67,
5501,
67,
11516,
12,
87,
16,
1801,
16,
276,
536,
67,
6420,
16,
9478,
16,
1536,
4672,
949,
273,
272,
18,
3276,
5198,
67,
8622,
273,
272,
18,
11100,
67,
957,
67,
8622,
783,
67,
8622,
273,
5198,
67,
8622,
302,
3074,
273,
272,
18,
11100,
67,
957,
67,
3074,
563,
273,
599,
1323,
404,
30,
272,
18,
4285,
1435,
468,
296,
5501,
11,
578,
296,
41,
2053,
42,
11,
3065,
273,
293,
67,
11100,
67,
957,
67,
8638,
12,
87,
13,
272,
18,
11100,
67,
957,
67,
8622,
273,
783,
67,
8622,
471,
1426,
12,
8638,
18,
11100,
67,
957,
67,
1132,
12,
72,
3074,
3719,
1417,
273,
293,
67,
30676,
12,
87,
16,
1801,
2
] |
return http.Response(stream=s)
|
return HTMLResponse(stream=s)
|
def render(self, ctx): s = notebook.worksheet_html(self.name, do_print=True) return http.Response(stream=s)
|
2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
272,
273,
14718,
18,
1252,
8118,
67,
2620,
12,
2890,
18,
529,
16,
741,
67,
1188,
33,
5510,
13,
327,
1062,
18,
1064,
12,
3256,
33,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1743,
12,
2890,
16,
1103,
4672,
272,
273,
14718,
18,
1252,
8118,
67,
2620,
12,
2890,
18,
529,
16,
741,
67,
1188,
33,
5510,
13,
327,
1062,
18,
1064,
12,
3256,
33,
87,
13,
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,
-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,
-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
] |
if not error_prefix: msg = 'No active session' else: msg = error_prefix + ': no active session'
|
def get_current_session(self, error_prefix=None): session = self.current_session if not session: if not error_prefix: msg = 'No active session' else: msg = error_prefix + ': no active session' raise UserCommandError(msg) return session
|
757218aa36e3d9194fabf2b88e4254a122dc47e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/757218aa36e3d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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2972,
67,
3184,
12,
2890,
16,
555,
67,
3239,
33,
7036,
4672,
1339,
273,
365,
18,
2972,
67,
3184,
309,
486,
1339,
30,
1002,
2177,
2189,
668,
12,
3576,
13,
327,
1339,
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,
-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,
-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
] |
|
facet_hole_starts = len(facets) * [] facets = [[facet] for facet in facets]
|
facet_hole_starts = len(facets) * [[]]
|
def add_geometry(self, points, facets, facet_hole_starts=None, facet_markers=None, point_markers=None): """If C{facet_hole_starts} is not None, it indicates that C{facets} is a list of (potentially) multi-polygon facets. Otherwise, facets is seen as a list of single-facet polygons."""
|
81645c416c2271d29c0ce4a93184b7f70feef42d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11985/81645c416c2271d29c0ce4a93184b7f70feef42d/geometry.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
14330,
12,
2890,
16,
3143,
16,
21681,
16,
11082,
67,
27167,
67,
17514,
33,
7036,
16,
11082,
67,
22807,
33,
7036,
16,
1634,
67,
22807,
33,
7036,
4672,
3536,
2047,
385,
95,
21568,
67,
27167,
67,
17514,
97,
353,
486,
599,
16,
518,
8527,
716,
385,
95,
11639,
2413,
97,
353,
279,
666,
434,
261,
13130,
11220,
13,
3309,
17,
20917,
21681,
18,
5272,
16,
21681,
353,
5881,
487,
279,
666,
434,
2202,
17,
21568,
17294,
12123,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
97,
353,
486,
599,
16,
518,
8527,
716,
385,
95,
11639,
2413,
97,
353,
279,
666,
434,
261,
13130,
11220,
13,
3309,
17,
20917,
21681,
18,
5272,
16,
21681,
353,
5881,
487,
279,
666,
434,
2202,
17,
21568,
17294,
12123,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print >> sys.stderr, msg print >> sys.stderr, __doc__
|
print(msg, file=sys.stderr) print(__doc__, file=sys.stderr)
|
def usage(msg=None): if msg is not None: print >> sys.stderr, msg print >> sys.stderr, __doc__
|
2f30fac56992ed396f664b446bcb83b1b3e1add5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/2f30fac56992ed396f664b446bcb83b1b3e1add5/reindent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
3576,
33,
7036,
4672,
309,
1234,
353,
486,
599,
30,
1172,
12,
3576,
16,
585,
33,
9499,
18,
11241,
13,
1172,
12,
972,
2434,
972,
16,
585,
33,
9499,
18,
11241,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
3576,
33,
7036,
4672,
309,
1234,
353,
486,
599,
30,
1172,
12,
3576,
16,
585,
33,
9499,
18,
11241,
13,
1172,
12,
972,
2434,
972,
16,
585,
33,
9499,
18,
11241,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
-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,
-100,
-100
] |
self.DrawGraph(element,self.pstricks_code.index("%GRID\n")+1)
|
self.DrawGraph(element,"GRID")
|
def DrawGrid(self,grid): # The difficulty is that the grid has to be draw first, while most of time it is given last because of the bounding box. self.BB.AddBB(grid.BB) for element in grid.drawing(): self.DrawGraph(element,self.pstricks_code.index("%GRID\n")+1)
|
9d2efc3d6c32e84b237b0b8c846aa8aeaf38faf4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5111/9d2efc3d6c32e84b237b0b8c846aa8aeaf38faf4/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
6313,
12,
2890,
16,
5222,
4672,
468,
1021,
3122,
21934,
353,
716,
326,
3068,
711,
358,
506,
3724,
1122,
16,
1323,
4486,
434,
813,
518,
353,
864,
1142,
2724,
434,
326,
7552,
3919,
18,
365,
18,
9676,
18,
986,
9676,
12,
5222,
18,
9676,
13,
364,
930,
316,
3068,
18,
9446,
310,
13332,
365,
18,
6493,
4137,
12,
2956,
16,
2890,
18,
84,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10184,
6313,
12,
2890,
16,
5222,
4672,
468,
1021,
3122,
21934,
353,
716,
326,
3068,
711,
358,
506,
3724,
1122,
16,
1323,
4486,
434,
813,
518,
353,
864,
1142,
2724,
434,
326,
7552,
3919,
18,
365,
18,
9676,
18,
986,
9676,
12,
5222,
18,
9676,
13,
364,
930,
316,
3068,
18,
9446,
310,
13332,
365,
18,
6493,
4137,
12,
2956,
16,
2890,
18,
84,
701,
20642,
67,
710,
18,
1615,
27188,
6997,
734,
64,
82,
7923,
15,
21,
13,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.