rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
latitude = 0; longitude = 0; | latitude = 0; longitude = 0; | def search_geopoints_frontpage(self, arrStakeholders='', arrSupplyChains='', arrAdministrativeLevels='', arrLandscapeTypes='', path='', geo_types=None, geo_query=None, REQUEST=None): """ """ arr_geo_types = [] if arrStakeholders: arr_geo_types.extend( arrStakeholders.split(',') ); | ee2a0886906d30a287601d06f4de64307b528182 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/ee2a0886906d30a287601d06f4de64307b528182/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
908,
556,
763,
87,
67,
10211,
2433,
12,
2890,
16,
2454,
510,
911,
9000,
2218,
2187,
2454,
3088,
1283,
15945,
2218,
2187,
2454,
4446,
3337,
1535,
12240,
2218,
2187,
2454,
29398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
908,
556,
763,
87,
67,
10211,
2433,
12,
2890,
16,
2454,
510,
911,
9000,
2218,
2187,
2454,
3088,
1283,
15945,
2218,
2187,
2454,
4446,
3337,
1535,
12240,
2218,
2187,
2454,
29398,
... |
__implements__ = IBaseUnit | __implements__ = (WriteLockInterface, IBaseUnit) | def manage_FTPget(self, REQUEST, RESPONSE): "Get the raw content for this unit(also used for the WebDAV SRC)" RESPONSE.setHeader('Content-Type', self.getContentType()) RESPONSE.setHeader('Content-Length', self.get_size()) | a0ea9b6ff13f9248986f54afdf36301482082706 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/a0ea9b6ff13f9248986f54afdf36301482082706/BaseUnit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
17104,
588,
12,
2890,
16,
12492,
16,
20645,
4672,
315,
967,
326,
1831,
913,
364,
333,
2836,
12,
31144,
1399,
364,
326,
2999,
17735,
348,
11529,
2225,
20645,
18,
542,
1864,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
17104,
588,
12,
2890,
16,
12492,
16,
20645,
4672,
315,
967,
326,
1831,
913,
364,
333,
2836,
12,
31144,
1399,
364,
326,
2999,
17735,
348,
11529,
2225,
20645,
18,
542,
1864,
266... |
DamnSpawner([u'cmd', u'/c', u'start "' + f.replace(u'"', u'\\"') + u'"']) | DamnSpawner([u'cmd', u'/c', u'start ' + DamnUnicode(win32api.GetShortPathName(f)).replace(u'"', u'\\"')]) | def DamnLaunchFile(f, *args): f = DamnUnicode(f) if DV.os == 'nt': DamnSpawner([u'cmd', u'/c', u'start "' + f.replace(u'"', u'\\"') + u'"']) else: DamnOpenFileManager(f) # Hax! It works because 'open' or 'xdg-open' do not only open directories. | 8b690afa4f9c8251b5a55cc88639108d729cd9c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/8b690afa4f9c8251b5a55cc88639108d729cd9c9/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
9569,
812,
12,
74,
16,
380,
1968,
4672,
284,
273,
463,
301,
82,
16532,
12,
74,
13,
309,
463,
58,
18,
538,
422,
296,
496,
4278,
463,
301,
82,
3389,
2219,
1224,
3816,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
9569,
812,
12,
74,
16,
380,
1968,
4672,
284,
273,
463,
301,
82,
16532,
12,
74,
13,
309,
463,
58,
18,
538,
422,
296,
496,
4278,
463,
301,
82,
3389,
2219,
1224,
3816,
8... |
search_locations.append(chrome_dir + "/Debug/test_shell.exe") | def FindTestShell(): # This is hacky. It is used to guess the location of the test_shell chrome_dir = os.path.normpath(_base_dir + "/../../../") src_dir = os.path.normpath(chrome_dir + "/../") search_locations = [] if (sys.platform in ('cygwin', 'win32')): home_dir = os.path.normpath(os.getenv("HOMEDRIVE") + os.geten... | 416261c9a80c52eb9d5047727bbce605a485cf1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/416261c9a80c52eb9d5047727bbce605a485cf1c/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
4709,
13220,
13332,
468,
1220,
353,
11769,
93,
18,
2597,
353,
1399,
358,
7274,
326,
2117,
434,
326,
1842,
67,
10304,
18167,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
24899,
1969... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
4709,
13220,
13332,
468,
1220,
353,
11769,
93,
18,
2597,
353,
1399,
358,
7274,
326,
2117,
434,
326,
1842,
67,
10304,
18167,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
24899,
1969... | |
self.modifyAddBondAction.setIconSet(QIconSet(self.image71)) | self.modifyAddBondAction.setIconSet(QIconSet(self.image67)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
winmm.waveOutWrite(self._waveout, LPWAVEHDR(whdr), sizeof(WAVEHDR)) | with self._global_waveout_lock: winmm.waveOutWrite(self._waveout, LPWAVEHDR(whdr), sizeof(WAVEHDR)) | def feed(self, data): """Feed a chunk of audio data to be played. This is normally synchronous. However, synchronisation occurs on the previous chunk, rather than the current chunk; i.e. calling this while no audio is playing will begin playing the chunk but return immediately. This allows for uninterrupted playback as... | 908c69fc28d854313cba3a2777074abbb9905ffc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/908c69fc28d854313cba3a2777074abbb9905ffc/nvwave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
12,
2890,
16,
501,
4672,
3536,
8141,
279,
2441,
434,
7447,
501,
358,
506,
6599,
329,
18,
1220,
353,
15849,
12209,
18,
10724,
16,
3248,
10742,
9938,
603,
326,
2416,
2441,
16,
9178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
12,
2890,
16,
501,
4672,
3536,
8141,
279,
2441,
434,
7447,
501,
358,
506,
6599,
329,
18,
1220,
353,
15849,
12209,
18,
10724,
16,
3248,
10742,
9938,
603,
326,
2416,
2441,
16,
9178,
... |
connection=conn ) return results | JoinToTable( self.soClass.sqlmeta.table, self.soClass.sqlmeta.idName, self.intermediateTable, self.joinColumn ), TableToId(self.soClass.sqlmeta.table, self.soClass.sqlmeta.idName, inst.id), ), clauseTables=(self.soClass.sqlmeta.table, self.otherClass.sqlmeta.table, self.intermediateTable)) if self.orderBy is NoDefault:... | def performJoin(self, inst): options={ 'otherTable' : self.otherClass.sqlmeta.table, 'otherID' : self.otherClass.sqlmeta.idName, 'interTable' : self.intermediateTable, 'table' : self.soClass.sqlmeta.table, 'ID' : self.soClass.sqlmeta.idName, 'joinCol' : self.joinColumn, 'otherCol' : self.otherColumn, 'idValue' : inst.i... | c46bdb4ca9c0ca6688b20cd27a7f2fe80c7f5052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/c46bdb4ca9c0ca6688b20cd27a7f2fe80c7f5052/joins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
4572,
12,
2890,
16,
1804,
4672,
702,
5899,
296,
3011,
1388,
11,
294,
365,
18,
3011,
797,
18,
4669,
3901,
18,
2121,
16,
296,
3011,
734,
11,
294,
365,
18,
3011,
797,
18,
4669,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
4572,
12,
2890,
16,
1804,
4672,
702,
5899,
296,
3011,
1388,
11,
294,
365,
18,
3011,
797,
18,
4669,
3901,
18,
2121,
16,
296,
3011,
734,
11,
294,
365,
18,
3011,
797,
18,
4669,
39... |
'Is e^pi > pi^e?' : r'y|yes', 'What is 8 times nine?' : r'72|seventy-two', | 'Is pi > e?' : r'y|yes', 'What is 3 times 8?' : r'24|twenty-four', 'What is 2 plus 3?' : r'5|five', | def is_valid_response(self, **kwargs): """ Always reports a failed response, for the sake of security. | ebba517baa5d548380d9cdacd6fb8b268637f526 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11792/ebba517baa5d548380d9cdacd6fb8b268637f526/challenge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
877,
67,
2740,
12,
2890,
16,
2826,
4333,
4672,
3536,
14178,
10557,
279,
2535,
766,
16,
364,
326,
272,
911,
434,
4373,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
877,
67,
2740,
12,
2890,
16,
2826,
4333,
4672,
3536,
14178,
10557,
279,
2535,
766,
16,
364,
326,
272,
911,
434,
4373,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
action = self.pressed[keyval] del self.pressed[keyval] | action = self.pressed[hardware_keycode] del self.pressed[hardware_keycode] | def released(keyval): #gdk.keyboard_ungrab(event.time) action = self.pressed[keyval] del self.pressed[keyval] #print 'RELEASE', action.get_name() if action.keyup_callback: action.keyup_callback(widget, event) action.keyup_callback = None | 1b52c26823b4c08287f165004672bad43ccf1bc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/1b52c26823b4c08287f165004672bad43ccf1bc0/keyboard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15976,
12,
856,
1125,
4672,
468,
75,
2883,
18,
31486,
67,
318,
2752,
70,
12,
2575,
18,
957,
13,
1301,
273,
365,
18,
10906,
63,
25118,
67,
856,
710,
65,
1464,
365,
18,
10906,
63,
2511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15976,
12,
856,
1125,
4672,
468,
75,
2883,
18,
31486,
67,
318,
2752,
70,
12,
2575,
18,
957,
13,
1301,
273,
365,
18,
10906,
63,
25118,
67,
856,
710,
65,
1464,
365,
18,
10906,
63,
2511... |
bc.valueAxis.valueMin = -10 | bc.valueAxis.valueMin = -10 | def sample4b(): "Make a bar chart showing value axis region staring *below* zero." drawing = Drawing(400, 200) data = [(13, 20)] bc = VerticalBarChart() bc.x = 50 bc.y = 50 bc.height = 125 bc.width = 300 bc.data = data bc.strokeColor = colors.black bc.valueAxis.valueMin = -10 ### bc.valueAxis.valueMax = 60 bc.valu... | 1fd6cc17aea88bc4c1b46f01ab64fa5c220f0d85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/1fd6cc17aea88bc4c1b46f01ab64fa5c220f0d85/barchart1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3296,
24,
70,
13332,
315,
6464,
279,
4653,
4980,
17253,
460,
2654,
3020,
384,
5968,
380,
27916,
14,
3634,
1199,
225,
16327,
273,
10184,
310,
12,
16010,
16,
4044,
13,
225,
501,
273,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3296,
24,
70,
13332,
315,
6464,
279,
4653,
4980,
17253,
460,
2654,
3020,
384,
5968,
380,
27916,
14,
3634,
1199,
225,
16327,
273,
10184,
310,
12,
16010,
16,
4044,
13,
225,
501,
273,
306,
... |
def reload_bool(self, entry, check): self.load_bool(entry['group'], entry['key'], check) | def reload_bool(self, group, key, value, check): self.load_bool(group, key, check) | def reload_bool(self, entry, check): self.load_bool(entry['group'], entry['key'], check) | 6e5ef9d2ff04626633394808ed3d5531bb4809af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/6e5ef9d2ff04626633394808ed3d5531bb4809af/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7749,
67,
6430,
12,
2890,
16,
1241,
16,
866,
4672,
365,
18,
945,
67,
6430,
12,
4099,
3292,
1655,
17337,
1241,
3292,
856,
17337,
866,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7749,
67,
6430,
12,
2890,
16,
1241,
16,
866,
4672,
365,
18,
945,
67,
6430,
12,
4099,
3292,
1655,
17337,
1241,
3292,
856,
17337,
866,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.sbdataq = '' | self.sbdataq = b'' | def __init__(self, host=None, port=0, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): """Constructor. | a69ff7792116218bfddc90e5e2776d431495b39b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/a69ff7792116218bfddc90e5e2776d431495b39b/telnetlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
33,
7036,
16,
1756,
33,
20,
16,
2021,
33,
7814,
6315,
20402,
67,
5280,
67,
9503,
4672,
3536,
6293,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
33,
7036,
16,
1756,
33,
20,
16,
2021,
33,
7814,
6315,
20402,
67,
5280,
67,
9503,
4672,
3536,
6293,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.action_commands = ["gimp-remote %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"] | self.action_commands = ["gimp-remote-2.4 %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"] | def __init__(self): | 2e5c99a5bc5b92bbe1c0a580880119b6a53f2df0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2291/2e5c99a5bc5b92bbe1c0a580880119b6a53f2df0/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,
-1... |
raise osv.except_osv('Access denied !', 'You can not %s this resource !' % mode) | raise except_orm('AccessError', 'You can not %s this resource !' % mode) | def check(self, cr, uid, model_name, mode='read',raise_exception=True): assert mode in ['read','write','create','unlink'], 'Invalid access mode for security' if uid==1: return True cr.execute('select max(CASE WHEN perm_'+mode+' THEN 1 else 0 END) from ir_model_access a join ir_model m on (a.model_id=m.id) join res_grou... | 6456cb5f0da1594ca33fe8780e2bf12505e7ca38 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/6456cb5f0da1594ca33fe8780e2bf12505e7ca38/ir_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
4422,
16,
4555,
16,
938,
67,
529,
16,
1965,
2218,
896,
2187,
11628,
67,
4064,
33,
5510,
4672,
1815,
1965,
316,
10228,
896,
17023,
2626,
17023,
2640,
17023,
318,
1232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
4422,
16,
4555,
16,
938,
67,
529,
16,
1965,
2218,
896,
2187,
11628,
67,
4064,
33,
5510,
4672,
1815,
1965,
316,
10228,
896,
17023,
2626,
17023,
2640,
17023,
318,
1232,
... |
seq = self.get_sequence(reverse=True) self.base_textedit.setText(seq) | def thunk(): seq = self.get_sequence(reverse=True) self.base_textedit.setText(seq) self.handlePluginExceptions(thunk) | def reverse_btn_clicked(self): seq = self.get_sequence(reverse=True) self.base_textedit.setText(seq) | 570f3fcc8cfa078b5f5857828ce798d5a145c6b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/570f3fcc8cfa078b5f5857828ce798d5a145c6b6/DnaGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4219,
67,
11898,
67,
7475,
329,
12,
2890,
4672,
3833,
273,
365,
18,
588,
67,
6178,
12,
9845,
33,
5510,
13,
365,
18,
1969,
67,
955,
4619,
18,
542,
1528,
12,
5436,
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,
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,
4219,
67,
11898,
67,
7475,
329,
12,
2890,
4672,
3833,
273,
365,
18,
588,
67,
6178,
12,
9845,
33,
5510,
13,
365,
18,
1969,
67,
955,
4619,
18,
542,
1528,
12,
5436,
13,
2,
-100,
-100,
... |
print "* ",som2[0] print "* ",som2[1] | print "* ", som2[0] print "* ", som2[1] | def mult_ncerr(left,right,**kwargs): """ This function multiplies two objects (SOM, SO or tuple[val,val_err2]) and returns the result of the multiplication in an SOM. The function does not handle the case of tuple/tuple. Parameters: ---------- -> left Object on the left of the multiplication sign -> right Object on t... | e39979325b6fc8a32b6f5159862092edaf952c8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/e39979325b6fc8a32b6f5159862092edaf952c8b/hlr_mult_ncerr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
67,
14202,
370,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
3309,
5259,
2795,
2184,
261,
55,
1872,
16,
7460,
578,
3193,
63,
1125,
16,
1125,
67,
370,
22,
5717,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
67,
14202,
370,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
3309,
5259,
2795,
2184,
261,
55,
1872,
16,
7460,
578,
3193,
63,
1125,
16,
1125,
67,
370,
22,
5717,
471,
... |
self.REFS = re.compile(u'(?i)<ref(?P<name>[^>/]*)>(?P<content>.*?)</ref>') self.NAMES = re.compile(u'(?i).*name\s*=\s*(?P<quote>"?)\s*(?P<name>.*?)\s*(?P=quote).*') self.GROUPS = re.compile(u'(?i).*group\s*=\s*(?P<quote>"?)\s*(?P<group>.*?)\s*(?P=quote).*') | self.REFS = re.compile(u'(?i)<ref(?P<params>[^>/]*)>(?P<content>.*?)</ref>') self.NAMES = re.compile(u'(?i).*name\s*=\s*(?P<quote>"?)\s*(?P<name>.+)\s*(?P=quote).*') self.GROUPS = re.compile(u'(?i).*group\s*=\s*(?P<quote>"?)\s*(?P<group>.+)\s*(?P=quote).*') | def __init__(self): # Match references self.REFS = re.compile(u'(?i)<ref(?P<name>[^>/]*)>(?P<content>.*?)</ref>') self.NAMES = re.compile(u'(?i).*name\s*=\s*(?P<quote>"?)\s*(?P<name>.*?)\s*(?P=quote).*') self.GROUPS = re.compile(u'(?i).*group\s*=\s*(?P<quote>"?)\s*(?P<group>.*?)\s*(?P=quote).*') | cf52d53ad4531135e73ebcbe3e028663a00bb7b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/cf52d53ad4531135e73ebcbe3e028663a00bb7b1/reflinks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
4639,
5351,
365,
18,
862,
4931,
273,
283,
18,
11100,
12,
89,
11,
3680,
77,
13,
32,
1734,
3680,
52,
32,
529,
34,
5969,
16893,
15471,
34,
3680,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
4639,
5351,
365,
18,
862,
4931,
273,
283,
18,
11100,
12,
89,
11,
3680,
77,
13,
32,
1734,
3680,
52,
32,
529,
34,
5969,
16893,
15471,
34,
3680,
52... |
if __debug__: if output.debug: output.debug.write("!Bogus area type %x\n"%c) | if output.debug: output.debug.write("!Bogus area type %x\n"%c) | def __init__(self, bgl, srcfile, output): if output.debug: output.debug.write('%s\n' % srcfile) # Per-BGL counts output.gencount=1 # next generic building number output.gencache={} # cache of generic buildings output.anccount=0 # Not used for library objects name=basename(srcfile) texdir=None for section in [42,54,58,1... | 0c44295665e691fba10cc23c0a09fbc38019a5f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11663/0c44295665e691fba10cc23c0a09fbc38019a5f2/convbgl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
324,
7043,
16,
1705,
768,
16,
876,
4672,
309,
876,
18,
4148,
30,
876,
18,
4148,
18,
2626,
29909,
87,
64,
82,
11,
738,
1705,
768,
13,
468,
5722,
17,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
324,
7043,
16,
1705,
768,
16,
876,
4672,
309,
876,
18,
4148,
30,
876,
18,
4148,
18,
2626,
29909,
87,
64,
82,
11,
738,
1705,
768,
13,
468,
5722,
17,
3... |
try: payload = mailMessage.body.encode('utf8') except AttributeError: payload = "" | def kindToMessageObject(mailMessage): """ This method converts a email message string to a Chandler C{Mail.MailMessage} object @param messageObject: A C{email.Message} object representation of a mail message @type messageObject: C{email.Message} @return: C{Message.Message} """ assert isinstance(mailMessage, Mail.Mai... | 35424dc5373d9ca9ed95b143935b7ded8e384b67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/35424dc5373d9ca9ed95b143935b7ded8e384b67/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3846,
774,
1079,
921,
12,
4408,
1079,
4672,
3536,
1220,
707,
7759,
279,
2699,
883,
533,
358,
279,
1680,
464,
749,
385,
95,
6759,
18,
6759,
1079,
97,
733,
225,
632,
891,
883,
921,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3846,
774,
1079,
921,
12,
4408,
1079,
4672,
3536,
1220,
707,
7759,
279,
2699,
883,
533,
358,
279,
1680,
464,
749,
385,
95,
6759,
18,
6759,
1079,
97,
733,
225,
632,
891,
883,
921,
30,
... | |
def convertPAToBank(self, pa): | def pseudoToSegmented(self, pa): | def convertPAToBank(self, pa): bank = self._findBank(pa) if bank: offset = pa - bank.startaddr return (bank.banknum, offset) else: return (None, 0) | 83afc3b148bf76bd3a4a89c1d5c3762af785cbce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/83afc3b148bf76bd3a4a89c1d5c3762af785cbce/memory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12454,
774,
4131,
329,
12,
2890,
16,
6790,
4672,
11218,
273,
365,
6315,
4720,
16040,
12,
8774,
13,
309,
11218,
30,
1384,
273,
6790,
300,
11218,
18,
1937,
4793,
327,
261,
10546,
18,
10546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12454,
774,
4131,
329,
12,
2890,
16,
6790,
4672,
11218,
273,
365,
6315,
4720,
16040,
12,
8774,
13,
309,
11218,
30,
1384,
273,
6790,
300,
11218,
18,
1937,
4793,
327,
261,
10546,
18,
10546... |
param = query.__param_tuple__ | def display_tables(self, tables=None, layout='circular', query=None, graph6=None, \ num_vertices=None, num_edges=None, num_cycles=None, \ num_hamiltonian_cycles=None, eulerian=None, planar=None, perfect=None, \ lovasz_number=None, complement_graph6=None, aut_grp_size=None, \ num_orbits=None, num_fixed_points=None, vert... | e08021d86852e27c401359c73bd23a58e2cc9afc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e08021d86852e27c401359c73bd23a58e2cc9afc/graph_database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
9373,
12,
2890,
16,
4606,
33,
7036,
16,
3511,
2218,
11614,
9559,
2187,
843,
33,
7036,
16,
2667,
26,
33,
7036,
16,
521,
818,
67,
17476,
33,
7036,
16,
818,
67,
8746,
33,
7036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
9373,
12,
2890,
16,
4606,
33,
7036,
16,
3511,
2218,
11614,
9559,
2187,
843,
33,
7036,
16,
2667,
26,
33,
7036,
16,
521,
818,
67,
17476,
33,
7036,
16,
818,
67,
8746,
33,
7036... | |
prefix = env['OPT_PREFIX'] | def require(self, env): | fc17103723e7b449fc5a798ec3a82fa5290857e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1466/fc17103723e7b449fc5a798ec3a82fa5290857e6/xercesc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2583,
12,
2890,
16,
1550,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2583,
12,
2890,
16,
1550,
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,
-10... | |
o.set_pos((o.get_pos()[0] + x2 - width, o.get_pos()[1] + y1)) | def update(self): """ draw a background and all idlebar plugins """ screen = gui.get_display() changed = False | aa2506c31fa8720aaf25960046c9ee2f6a1b331c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/aa2506c31fa8720aaf25960046c9ee2f6a1b331c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
3724,
279,
5412,
471,
777,
12088,
3215,
4799,
3536,
5518,
225,
273,
13238,
18,
588,
67,
5417,
1435,
3550,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
12,
2890,
4672,
3536,
3724,
279,
5412,
471,
777,
12088,
3215,
4799,
3536,
5518,
225,
273,
13238,
18,
588,
67,
5417,
1435,
3550,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
else: format = (item.allDay or item.anyTime) and self.dateFormat or self.dateTimeFormat dateString = theDate.strftime (format) | def saveAttributeFromWidget(self, item, widget, validate): """" Update the attribute from the user edited string in the widget. """ if validate: dateString = widget.GetValue().strip('?') (theDate, dateOnly) = self.parseDateTime (dateString) try: # save the new Date/Time into the startTime attribute item.ChangeStart (th... | b58c0e0b6d5c53b46a2c0d9b5144af78c33da115 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b58c0e0b6d5c53b46a2c0d9b5144af78c33da115/Detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
1499,
1265,
4609,
12,
2890,
16,
761,
16,
3604,
16,
1954,
4672,
3536,
6,
2315,
326,
1566,
628,
326,
729,
18532,
533,
316,
326,
3604,
18,
3536,
309,
1954,
30,
24757,
273,
3604,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
1499,
1265,
4609,
12,
2890,
16,
761,
16,
3604,
16,
1954,
4672,
3536,
6,
2315,
326,
1566,
628,
326,
729,
18532,
533,
316,
326,
3604,
18,
3536,
309,
1954,
30,
24757,
273,
3604,
18,... | |
s_h = pgl.Shape(h, houppier_material(r,g,b), obj.pid) s_tr = pgl.Shape(tr, trunk_material(), obj.pid+100000) | s_h = pgl.Shape(h, stand_material(r,g,b, spec_name)) s_tr = pgl.Shape(tr, stand_material(spec_name="trunk_mat"), s_h.id*10 ) | def spheres( obj , **kwds ): X_attr = kwds.get('X_attr', 'X') Y_attr = kwds.get('Y_attr', 'Y') pos_dist = kwds.get('dist', 'Distance') pos_az = kwds.get('az', 'Azimuth') circ_attr = kwds.get('circ_attr', 'Circonference') height_attr = kwds.get('height_attr', 'Haut') botHoup_attr = kwds.get('botHoup', 'BaseHoup') radius... | 8e57cbfdff4ebb559b6e45cdafb7b70293078052 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/799/8e57cbfdff4ebb559b6e45cdafb7b70293078052/dresser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
844,
11737,
12,
1081,
269,
2826,
25577,
262,
30,
1139,
67,
1747,
273,
17149,
18,
588,
2668,
60,
67,
1747,
2187,
296,
60,
6134,
1624,
67,
1747,
273,
17149,
18,
588,
2668,
61,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
844,
11737,
12,
1081,
269,
2826,
25577,
262,
30,
1139,
67,
1747,
273,
17149,
18,
588,
2668,
60,
67,
1747,
2187,
296,
60,
6134,
1624,
67,
1747,
273,
17149,
18,
588,
2668,
61,
67,
... |
gusi_opr = Resource(gusi_opr.data) gusi_opr.AddResource('GU\267I', OVERRIDE_GUSI_ID, '') | ngusi_opr = Resource(newdata) ngusi_opr.AddResource('GU\267I', OVERRIDE_GUSI_ID, '') | def edit_applet(name): pref_handle = openpreffile(READ) app_handle = openapplet(name) notfound = '' l, sr = getprefpath(OVERRIDE_PATH_STRINGS_ID) if l == None: notfound = 'path' l, dummy = getprefpath(PATH_STRINGS_ID) if l == None: message('Cannot find any sys.path resource! (Old python?)') sys.exit(0) fss, dr, fss_... | 10496eb5719d2f33ae92396431e0da0a6806d68d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/10496eb5719d2f33ae92396431e0da0a6806d68d/EditPythonPrefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
438,
1469,
12,
529,
4672,
11307,
67,
4110,
273,
1696,
25724,
768,
12,
6949,
13,
595,
67,
4110,
273,
1696,
438,
1469,
12,
529,
13,
225,
486,
7015,
273,
875,
328,
16,
9133,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
438,
1469,
12,
529,
4672,
11307,
67,
4110,
273,
1696,
25724,
768,
12,
6949,
13,
595,
67,
4110,
273,
1696,
438,
1469,
12,
529,
13,
225,
486,
7015,
273,
875,
328,
16,
9133,
2... |
"""intbitset - set intersection infinite vs empty in place""" | """intbitset - set intersection, infinite vs empty in place""" | def test_set_intersection_infinite_empty_in_place(self): """intbitset - set intersection infinite vs empty in place""" self._helper_test_infinite_vs_empty(self.fncs_list[4]) | 982045c3f21398672e0267f8fbddffc861a01e24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/982045c3f21398672e0267f8fbddffc861a01e24/intbitset_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
30231,
67,
267,
9551,
67,
5531,
67,
267,
67,
964,
12,
2890,
4672,
3536,
474,
3682,
542,
300,
444,
7619,
16,
14853,
6195,
1008,
316,
3166,
8395,
365,
6315,
4759,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
30231,
67,
267,
9551,
67,
5531,
67,
267,
67,
964,
12,
2890,
4672,
3536,
474,
3682,
542,
300,
444,
7619,
16,
14853,
6195,
1008,
316,
3166,
8395,
365,
6315,
4759,
67,
... |
src = (self.selection.x, self.selection.y) b = ScrollBehaviour(src, (dest_x, dest_y), '_scroll_listing') self._sel_animation = self.animate(secs) self._sel_animation.behave(b) | self.__animation = self.animate(secs) self.__animation.behave(ScrollBehaviour((x, y), '_scroll_listing')) | def select(self, (col, row), secs): """ Select a cell. | b47bb145b9afab8cd03f9ba37d4dcd175be8f666 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/b47bb145b9afab8cd03f9ba37d4dcd175be8f666/grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
261,
1293,
16,
1027,
3631,
18043,
4672,
3536,
6766,
279,
2484,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
261,
1293,
16,
1027,
3631,
18043,
4672,
3536,
6766,
279,
2484,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
down_b.append(Draw.Button('v', DOWN_B+eventbase, xoff+237, yoff-80-hs*82, CONTROLSIZE, CONTROLSIZE, 'Move this Hide or Show entry down')) | down_b.append(Draw.Button('v', DOWN_B+eventbase, xoff+237, yoff-80-hs*82, CONTROLSIZE, CONTROLSIZE, 'Move this entry down')) | def gui(): global dataref_m, dataref_b, indices_b, indices_t, vals_b, clear_b, loops_b global hideshow_m, from_b, to_b, up_b, down_b, delete_b, addhs_b global cancel_b, apply_b dataref_m=[] dataref_b=[] indices_b=[] indices_t=[] vals_b=[] clear_b=None loops_b=[] hideshow_m=[] from_b=[] to_b=[] up_b=[] down_b=[] delete... | 41ec1c2655a325b4ea4136d5c1ee7cf29022441f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10896/41ec1c2655a325b4ea4136d5c1ee7cf29022441f/XPlaneAnimObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13238,
13332,
2552,
501,
1734,
67,
81,
16,
501,
1734,
67,
70,
16,
4295,
67,
70,
16,
4295,
67,
88,
16,
5773,
67,
70,
16,
2424,
67,
70,
16,
14075,
67,
70,
2552,
366,
4369,
13606,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13238,
13332,
2552,
501,
1734,
67,
81,
16,
501,
1734,
67,
70,
16,
4295,
67,
70,
16,
4295,
67,
88,
16,
5773,
67,
70,
16,
2424,
67,
70,
16,
14075,
67,
70,
2552,
366,
4369,
13606,
67,... |
names=None, titles=None, aligned=0, byteorder=None): | names=None, titles=None, aligned=False, byteorder=None): | def fromarrays(arrayList, dtype=None, shape=None, formats=None, names=None, titles=None, aligned=0, byteorder=None): """ create a record array from a (flat) list of arrays >>> x1=array([1,2,3,4]) >>> x2=array(['a','dd','xyz','12']) >>> x3=array([1.1,2,3,4]) >>> r=fromarrays([x1,x2,x3],names='a,b,c') >>> print r[1] (2,... | 107a45f793e249bc87e9bd328fa7d62519a5b4e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/107a45f793e249bc87e9bd328fa7d62519a5b4e9/records.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
16223,
12,
1126,
682,
16,
3182,
33,
7036,
16,
2179,
33,
7036,
16,
6449,
33,
7036,
16,
1257,
33,
7036,
16,
14693,
33,
7036,
16,
13939,
33,
8381,
16,
1160,
1019,
33,
7036,
4672,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
16223,
12,
1126,
682,
16,
3182,
33,
7036,
16,
2179,
33,
7036,
16,
6449,
33,
7036,
16,
1257,
33,
7036,
16,
14693,
33,
7036,
16,
13939,
33,
8381,
16,
1160,
1019,
33,
7036,
4672,
3... |
self.moviePlayerDashboard.setGeometry(QRect(0,87,1033,29)) | self.moviePlayerDashboard.setGeometry(QRect(0,29,1034,29)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 1fffefaa2964961cbc9adc237e2fedcbaf53df97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1fffefaa2964961cbc9adc237e2fedcbaf53df97/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
self.assertContains(self.client.get('/admin/'), 'Users') | res = self.client.get('/admin/') self.assertContains(res, 'Users', 2) | def test_permissions(self): self.assertTrue(self.client.login(username='staff', password='123')) res = self.client.get('/admin/') self.assertContains(res, 'Foos') self.assertNotContains(res, 'Bars') self.assertNotContains(res, 'Users') | 093a94fea13d2b77b70963f0a0b90a1d16b23d40 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6707/093a94fea13d2b77b70963f0a0b90a1d16b23d40/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9612,
12,
2890,
4672,
365,
18,
11231,
5510,
12,
2890,
18,
2625,
18,
5819,
12,
5053,
2218,
31096,
2187,
2201,
2218,
12936,
26112,
400,
273,
365,
18,
2625,
18,
588,
2668,
19,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9612,
12,
2890,
4672,
365,
18,
11231,
5510,
12,
2890,
18,
2625,
18,
5819,
12,
5053,
2218,
31096,
2187,
2201,
2218,
12936,
26112,
400,
273,
365,
18,
2625,
18,
588,
2668,
19,
3... |
responseString = __postResquest(__connection__, Config.get_CollectorService(), queryString) | responseString = __postRequest(__connection__, Config.get_CollectorService(), queryString) | def SendStatus(meterId): # This function is not yet used. # Use Handshake() and SendHandshake() instead. global __connection__ global __connectionError__ global __connectionRetries__ try: # Connect to the web service, in case we aren't already # connected. If we are already connected, this call will do # nothing ... | 93d92f084e69418d251a168cc77f0987fadb55a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/637/93d92f084e69418d251a168cc77f0987fadb55a9/GratiaCore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2479,
1482,
12,
81,
847,
548,
4672,
225,
468,
1220,
445,
353,
486,
4671,
1399,
18,
468,
2672,
23998,
1435,
471,
2479,
14545,
1435,
3560,
18,
225,
2552,
1001,
4071,
972,
2552,
1001,
4071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2479,
1482,
12,
81,
847,
548,
4672,
225,
468,
1220,
445,
353,
486,
4671,
1399,
18,
468,
2672,
23998,
1435,
471,
2479,
14545,
1435,
3560,
18,
225,
2552,
1001,
4071,
972,
2552,
1001,
4071,... |
fd=open(os.environ['HOME'] + '/.pyflagrc', 'a+', S_IRWXU) | fd=open(os.environ['HOME'] + '/.pyflagrc', 'a+') os.chmod(os.environ['HOME'] + '/.pyflagrc', stat.S_IRWXU) | def display(self,query,result): ## Do some checks to ensure the parameters seem right for k,v in dict(RESULTDIR=os.X_OK | os.R_OK | os.W_OK, UPLOADDIR=os.X_OK | os.R_OK ).items(): if not os.access(config.__class__.__dict__[k], v): result.heading("Access denied to %s" % k) result.para("We do not seem to have enough priv... | b8156a0a4f1df6b087730cad540ac9684d69adb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/b8156a0a4f1df6b087730cad540ac9684d69adb8/Configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
2271,
16,
2088,
4672,
7541,
2256,
2690,
4271,
358,
3387,
326,
1472,
19264,
2145,
364,
417,
16,
90,
316,
2065,
12,
12289,
4537,
33,
538,
18,
60,
67,
3141,
571,
1140,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
2271,
16,
2088,
4672,
7541,
2256,
2690,
4271,
358,
3387,
326,
1472,
19264,
2145,
364,
417,
16,
90,
316,
2065,
12,
12289,
4537,
33,
538,
18,
60,
67,
3141,
571,
1140,... |
def _check_stdtrit(self): | def check_stdtrit(self): | def _check_stdtrit(self): cephes.stdtrit(1,0.7) | 2a0571808f9b68627e9152f6f1037281e69d9d98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2a0571808f9b68627e9152f6f1037281e69d9d98/test_cephes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5084,
313,
305,
12,
2890,
4672,
5898,
844,
281,
18,
5084,
313,
305,
12,
21,
16,
20,
18,
27,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5084,
313,
305,
12,
2890,
4672,
5898,
844,
281,
18,
5084,
313,
305,
12,
21,
16,
20,
18,
27,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
edgeComponent[face.label()] = componentCount | faceComponent[face.label()] = componentCount | def markAlphaShapes(delaunayMap, alpha, beta = 0.0): if not hasattr(delaunayMap, "circumCircles"): print "- reconstructing triangle circumcircles..." delaunayMap.circumCircles = \ delaunay.calculateTriangleCircumcircles(delaunayMap) # store parameters for convenience: delaunayMap.alpha = alpha delaunayMap.beta = beta ... | cf7a993009c79c13865201b5ea4e5b01eeae13fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/cf7a993009c79c13865201b5ea4e5b01eeae13fd/alphashapes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
9690,
30080,
12,
3771,
69,
318,
528,
863,
16,
4190,
16,
6796,
273,
374,
18,
20,
4672,
309,
486,
3859,
12,
3771,
69,
318,
528,
863,
16,
315,
11614,
28538,
10887,
9558,
6,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
9690,
30080,
12,
3771,
69,
318,
528,
863,
16,
4190,
16,
6796,
273,
374,
18,
20,
4672,
309,
486,
3859,
12,
3771,
69,
318,
528,
863,
16,
315,
11614,
28538,
10887,
9558,
6,
4672,
... |
self.id = self.id + "\t" + " ".join(words[1:]) | tfId = tfId + "\t" + " ".join(words[1:]) | def read_as_transfac(self): self.tfToPwm = {} tfId = None pwmRows = None while (True): line = self.file.readline() if (not line): break line = line.strip() self.lineNumber += 1 # handle an ID line if line.startswith("ID"): if pwmRows != None: # we've finished collecting a desired matrix try: yield PositionWeightMat... | a5bdb421e433e23b71e639a7e732b856ab962539 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2104/a5bdb421e433e23b71e639a7e732b856ab962539/position_weight_matrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
345,
67,
2338,
11639,
12,
2890,
4672,
365,
18,
6632,
774,
52,
91,
81,
273,
2618,
3253,
548,
565,
273,
599,
31335,
4300,
273,
599,
225,
1323,
261,
5510,
4672,
980,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
345,
67,
2338,
11639,
12,
2890,
4672,
365,
18,
6632,
774,
52,
91,
81,
273,
2618,
3253,
548,
565,
273,
599,
31335,
4300,
273,
599,
225,
1323,
261,
5510,
4672,
980,
273,
365,
... |
children.append(IAccessible(windowHandle=self.windowHandle,IAccessibleObject=self.IAccessibleObject,IAccessibleChildID=IAccessibleChildID,event_windowHandle=self.event_windowHandle,event_objectID=self.event_objectID,event_childID=child[1])) | children.append(IAccessible(windowHandle=self.windowHandle,IAccessibleObject=self.IAccessibleObject,IAccessibleChildID=IAccessibleChildID,event_windowHandle=self.event_windowHandle,event_objectID=self.event_objectID,event_childID=IAccesibleChildID)) | def _get_children(self): if self.IAccessibleChildID>0: return [] try: childCount= self.IAccessibleObject.accChildCount except COMError: childCount=0 if childCount<=0: return [] children=[] for IAccessibleObject,IAccessibleChildID in IAccessibleHandler.accessibleChildren(self.IAccessibleObject,0,childCount): if IAccessi... | e1e1cf050af84600b09c2bbe7ea4b1be0715963e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/e1e1cf050af84600b09c2bbe7ea4b1be0715963e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5906,
12,
2890,
4672,
309,
365,
18,
45,
10451,
1763,
734,
34,
20,
30,
327,
5378,
775,
30,
31492,
33,
365,
18,
45,
10451,
921,
18,
8981,
1763,
1380,
1335,
5423,
668,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5906,
12,
2890,
4672,
309,
365,
18,
45,
10451,
1763,
734,
34,
20,
30,
327,
5378,
775,
30,
31492,
33,
365,
18,
45,
10451,
921,
18,
8981,
1763,
1380,
1335,
5423,
668,
30,... |
total_us1 = delta_to_microseconds(td1) total_us2 = delta_to_microseconds(td2) | total_us1 = delta_to_microseconds(delta1) total_us2 = delta_to_microseconds(delta2) | def div_timedeltas(td1, td2): """Calculate how many times td2 fit in td1.""" # Since Python can handle infinitely large numbers, this solution works. It # might however not be optimal. If you are clever, you should be able to # treat the different parts individually. But this is simple. total_us1 = delta_to_microsecond... | c737fbb26e428df0d8a1e1d888dbdf8efa3b1d24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/c737fbb26e428df0d8a1e1d888dbdf8efa3b1d24/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3739,
67,
20905,
292,
9158,
12,
4465,
21,
16,
6655,
22,
4672,
3536,
8695,
3661,
4906,
4124,
6655,
22,
4845,
316,
6655,
21,
12123,
468,
7897,
6600,
848,
1640,
316,
926,
25818,
7876,
5600,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3739,
67,
20905,
292,
9158,
12,
4465,
21,
16,
6655,
22,
4672,
3536,
8695,
3661,
4906,
4124,
6655,
22,
4845,
316,
6655,
21,
12123,
468,
7897,
6600,
848,
1640,
316,
926,
25818,
7876,
5600,... |
table_editor = gtk.Table(13, 2, False) table_editor.attach(gtk.Label(), 1, 2, 1, 2, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) editorlabel = gtk.Label() editorlabel.set_markup('<b>' + _('External Image Editor') + '</b>') editorlabel.set_alignment(0, 1) table_editor.attach(editorlabel, 1, 2, 2, 3, gtk.FILL|gtk.EXP... | def prefs_show(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: table_settings = gtk.Table(13, 3, False) table_settings.attach(gtk.Label(), 1, 3, 1, 2, gtk.FILL|gtk.... | 9528ffe985b91cbffe7621720ac1de8beeca167e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/9528ffe985b91cbffe7621720ac1de8beeca167e/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15503,
67,
4500,
12,
2890,
16,
1301,
4672,
365,
18,
1484,
2556,
67,
12730,
273,
22718,
18,
6353,
12,
2649,
33,
67,
2932,
49,
481,
410,
28310,
6,
3631,
982,
33,
2890,
18,
5668,
13,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15503,
67,
4500,
12,
2890,
16,
1301,
4672,
365,
18,
1484,
2556,
67,
12730,
273,
22718,
18,
6353,
12,
2649,
33,
67,
2932,
49,
481,
410,
28310,
6,
3631,
982,
33,
2890,
18,
5668,
13,
36... | |
elif event.keyval == 65360: | elif event.keyval == 65360: | def topwindow_keypress(self, widget, event): if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK and event.state != gtk.gdk.LOCK_MASK | gtk.gdk.CONTROL_MASK: if event.keyval == 65361: # Left arro... | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1760,
5668,
67,
856,
1028,
12,
2890,
16,
3604,
16,
871,
4672,
309,
871,
18,
2019,
480,
22718,
18,
75,
2883,
18,
23191,
67,
11704,
471,
871,
18,
2019,
480,
22718,
18,
75,
2883,
18,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1760,
5668,
67,
856,
1028,
12,
2890,
16,
3604,
16,
871,
4672,
309,
871,
18,
2019,
480,
22718,
18,
75,
2883,
18,
23191,
67,
11704,
471,
871,
18,
2019,
480,
22718,
18,
75,
2883,
18,
18... |
slot_id = "0" + add_output.split(",")[2].split()[1] cmd = "pci_del pci_addr=%s" % slot_id | result_domain, bus, slot, function = add_output.split(',') domain = int(result_domain.split()[2]) bus = int(bus.split()[1]) slot = int(slot.split()[1]) pci_addr = "%x:%x:%x" % (domain, bus, slot) cmd = "pci_del pci_addr=%s" % pci_addr | def pci_del(ignore_failure=False): if cmd_type == "pci_add": slot_id = "0" + add_output.split(",")[2].split()[1] cmd = "pci_del pci_addr=%s" % slot_id elif cmd_type == "device_add": cmd = "device_del %s" % id # This should be replaced by a proper monitor method call vm.monitor.cmd(cmd) | e8b4cd7d734837e0a91e0b1e310a677d084d8110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/e8b4cd7d734837e0a91e0b1e310a677d084d8110/pci_hotplug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6125,
77,
67,
3771,
12,
6185,
67,
12251,
33,
8381,
4672,
309,
1797,
67,
723,
422,
315,
2436,
77,
67,
1289,
6877,
563,
67,
4308,
16,
5766,
16,
4694,
16,
445,
273,
527,
67,
2844,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6125,
77,
67,
3771,
12,
6185,
67,
12251,
33,
8381,
4672,
309,
1797,
67,
723,
422,
315,
2436,
77,
67,
1289,
6877,
563,
67,
4308,
16,
5766,
16,
4694,
16,
445,
273,
527,
67,
2844,
18,
... |
conn, addr = self.accept() | try: conn, addr = self.accept() except TypeError: return except socket.error as err: if err.args[0] != errno.ECONNABORTED: raise return else: if addr == None: return | def handle_accept(self): conn, addr = self.accept() print('Incoming connection from %s' % repr(addr), file=DEBUGSTREAM) channel = self.channel_class(self, conn, addr) | e306b709ff8eed1e11af2a38848708a1305db538 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/e306b709ff8eed1e11af2a38848708a1305db538/smtpd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
775,
30,
1487,
16,
3091,
273,
365,
18,
9436,
1435,
1335,
3580,
30,
225,
327,
1335,
2987,
18,
1636,
487,
393,
30,
225,
309,
393,
18,
1968,
63,
20,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
775,
30,
1487,
16,
3091,
273,
365,
18,
9436,
1435,
1335,
3580,
30,
225,
327,
1335,
2987,
18,
1636,
487,
393,
30,
225,
309,
393,
18,
1968,
63,
20,
65,
... |
if (t - self.entered_at) >= fixtime: | if (t - self.entered_at) >= self.fixtime: | def inside(self, t=None, x=None, y=None): """ If you have multiple landing zones, you can sit in a loop, use app.eye_txy() to query time and eye position ONCE, and then apply it to multiple landing zones by passing in (x,y) values """ if t is None: (t, x, y) = self.app.eye_txy() | cd6bf879e48e9d0b8923fb64ab3db86b04212afb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/cd6bf879e48e9d0b8923fb64ab3db86b04212afb/pype.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4832,
12,
2890,
16,
268,
33,
7036,
16,
619,
33,
7036,
16,
677,
33,
7036,
4672,
3536,
971,
1846,
1240,
3229,
19193,
310,
13975,
16,
1846,
848,
10982,
316,
279,
2798,
16,
999,
595,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4832,
12,
2890,
16,
268,
33,
7036,
16,
619,
33,
7036,
16,
677,
33,
7036,
4672,
3536,
971,
1846,
1240,
3229,
19193,
310,
13975,
16,
1846,
848,
10982,
316,
279,
2798,
16,
999,
595,
18,
... |
self.__stop_applet() | self.__stop_applet_if_running() self.__remove_backup_applet_autostart() | def delete_event(self, widget, event, data=None): if self.config.changed(): self.config.write() if not self.config.backup_enabled: self.__stop_applet() self.__stop_restore_backend() self.__remove_crontab_entry() return False | 1de0740b9143908c992922a8e39a2259609b01c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/1de0740b9143908c992922a8e39a2259609b01c8/cozy_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
2575,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
309,
365,
18,
1425,
18,
6703,
13332,
365,
18,
1425,
18,
2626,
1435,
309,
486,
365,
18,
1425,
18,
9572,
67,
5745,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
2575,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
309,
365,
18,
1425,
18,
6703,
13332,
365,
18,
1425,
18,
2626,
1435,
309,
486,
365,
18,
1425,
18,
9572,
67,
5745,... |
c = min(1,max(0,c-k) m = min(1,max(0,m-k) y = min(1,max(0,y-k) | c = min(1,max(0,c-k)) m = min(1,max(0,m-k)) y = min(1,max(0,y-k)) | def rgb2cmyk(r,g,b): c = 1 - r m = 1 - g y = 1 - b k = min(c,m,y) c = min(1,max(0,c-k) m = min(1,max(0,m-k) y = min(1,max(0,y-k) k = min(1,max(0,k)) return (c,m,y,k) | e762e962f47c3ce7cee98180704d148467c760d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/e762e962f47c3ce7cee98180704d148467c760d7/colors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6917,
22,
71,
4811,
79,
12,
86,
16,
75,
16,
70,
4672,
276,
273,
404,
300,
436,
312,
273,
404,
300,
314,
677,
273,
404,
300,
324,
417,
273,
1131,
12,
71,
16,
81,
16,
93,
13,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6917,
22,
71,
4811,
79,
12,
86,
16,
75,
16,
70,
4672,
276,
273,
404,
300,
436,
312,
273,
404,
300,
314,
677,
273,
404,
300,
324,
417,
273,
1131,
12,
71,
16,
81,
16,
93,
13,
276,
... |
def graphicx_package(): if self.settings.graphicx_option == '': return '\\usepackage{graphicx}\n' if self.settings.graphicx_option.lower() == 'auto': return '\n'.join(('%Check if we are compiling under latex or pdflatex', '\\ifx\\pdftexversion\\undefined', ' \\usepackage{graphicx}', '\\else', ' \\usepackage[pdftex]{g... | if self.settings.graphicx_option == '': self.graphicx_package = '\\usepackage{graphicx}\n' elif self.settings.graphicx_option.lower() == 'auto': self.graphicx_package = '\n'.join( ('%Check if we are compiling under latex or pdflatex', '\\ifx\\pdftexversion\\undefined', ' \\usepackage{graphicx}', '\\else', ' \\usepack... | def graphicx_package(): if self.settings.graphicx_option == '': return '\\usepackage{graphicx}\n' if self.settings.graphicx_option.lower() == 'auto': return '\n'.join(('%Check if we are compiling under latex or pdflatex', '\\ifx\\pdftexversion\\undefined', ' \\usepackage{graphicx}', '\\else', ' \\usepackage[pdftex]{g... | 907e8f82e631eab2a75946e96d6692d7266129f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/907e8f82e631eab2a75946e96d6692d7266129f4/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19548,
92,
67,
5610,
13332,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
422,
875,
30,
327,
3718,
1202,
5610,
95,
4660,
335,
92,
6280,
82,
11,
309,
365,
18,
4272,
18,
4660,
335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19548,
92,
67,
5610,
13332,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
422,
875,
30,
327,
3718,
1202,
5610,
95,
4660,
335,
92,
6280,
82,
11,
309,
365,
18,
4272,
18,
4660,
335,
... |
if re.search('ERROR FAIL', cmd.logs['stdio'].getText()): | if re.search('TEST-UNEXPECTED-', cmd.logs['stdio'].getText()): | def evaluateCommand(self, cmd): superResult = ShellCommandReportTimeout.evaluateCommand(self, cmd) if SUCCESS != superResult: return WARNINGS if re.search('ERROR FAIL', cmd.logs['stdio'].getText()): return WARNINGS if re.search('FAIL Exited', cmd.logs['stdio'].getText()): return WARNINGS if not re.search('INFO PASS', c... | 7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2/steps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
4820,
2694,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
283,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
4820,
2694,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
283,
18,
3... |
if classAdAgent.lookupAttribute(name): | if classAdAgent.lookupAttribute( name ): | def selectJob(self, resourceDescription): """ Main job selection function to find the highest priority job matching the resource capacity """ | 059c4744ef6766e0575a5cd4d6f09d892a66a7df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/059c4744ef6766e0575a5cd4d6f09d892a66a7df/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
3291,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
3291,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
RSA_PRIV = KeyType("RSA_PRIV", 4, [4096, 2048, 1024, 768, 512], 256) RSA_PUB = KeyType("RSA_PUB", 4, [4096, 2048, 1024, 768, 512], 256) | RSA_PRIV = KeyType("RSA_PRIV", 4, [2048, 4096, 1024, 768, 512], 256) RSA_PUB = KeyType("RSA_PUB", 4, [2048, 4096, 1024, 768, 512], 256) | def IsValidSize(self, size): return size in self.__sizes | 6b4579d88a5eee49570bef0d674343715ccb13e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12014/6b4579d88a5eee49570bef0d674343715ccb13e3/keyinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15376,
1225,
12,
2890,
16,
963,
4672,
327,
963,
316,
365,
16186,
11914,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15376,
1225,
12,
2890,
16,
963,
4672,
327,
963,
316,
365,
16186,
11914,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
jb = JumpButton(tb) | jb = JumpButton(tb) | def get_target_block(fragment, targets): '''Return the correct block for the <a name> element''' bs = targets[fragment] if not isinstance(bs, BlockSpace): return bs ans, found, page = None, False, bs.parent for item in page.contents: if found: if isinstance(item, (TextBlock, RuledLine, ImageBlock)): ans = item break if... | f0df46b333834b25c482296e7168874ce2a62a8f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/f0df46b333834b25c482296e7168874ce2a62a8f/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3299,
67,
2629,
12,
11956,
16,
5774,
4672,
9163,
990,
326,
3434,
1203,
364,
326,
411,
69,
508,
34,
930,
26418,
7081,
273,
5774,
63,
11956,
65,
309,
486,
1549,
12,
2038,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3299,
67,
2629,
12,
11956,
16,
5774,
4672,
9163,
990,
326,
3434,
1203,
364,
326,
411,
69,
508,
34,
930,
26418,
7081,
273,
5774,
63,
11956,
65,
309,
486,
1549,
12,
2038,
16,
... |
lfns.pop(lfn) | lfns.pop( lfn ) | def _addFiles(self,lfns,credDict,connection=False): connection = self._getConnection(connection) successful = {} result = self.db.ugManager.getUserAndGroupID(credDict) if not result['OK']: return result uid, gid = result['Value'] # Check whether the supplied files have been registered already existingMetadata,failed = ... | 26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
2697,
12,
2890,
16,
20850,
2387,
16,
20610,
5014,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
6873,
273,
2618,
563,
273,
365,
18,
1966,
18,
637,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2697,
12,
2890,
16,
20850,
2387,
16,
20610,
5014,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
6873,
273,
2618,
563,
273,
365,
18,
1966,
18,
637,... |
shortrecs = dict() for rec in r['records']: shortrecs[rec['245'].value()] = { 'title':rec['245'].value(), 'oclcnum':rec['001'].value() } for t in sorted(shortrecs): htmlfile.write(htmlRecordTemplate.substitute(shortrecs[t])) | for t in r['records']: htmlfile.write(htmlRecordTemplate.substitute(r['records'][t])) | def make_olac_repo(self, templatePrefix, filename): repofile = codecs.open(filename, 'w', 'utf-8') | f8b9426bc1e3306bbf3491dbbd29014b4920b6b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8937/f8b9426bc1e3306bbf3491dbbd29014b4920b6b7/worldcat2olac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
355,
1077,
67,
7422,
12,
2890,
16,
1542,
2244,
16,
1544,
4672,
3538,
768,
273,
17437,
18,
3190,
12,
3459,
16,
296,
91,
2187,
296,
3158,
17,
28,
6134,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
355,
1077,
67,
7422,
12,
2890,
16,
1542,
2244,
16,
1544,
4672,
3538,
768,
273,
17437,
18,
3190,
12,
3459,
16,
296,
91,
2187,
296,
3158,
17,
28,
6134,
2,
-100,
-100,
-100,
-... |
MelRegnStructA('RDWT', '2I', 'weather', (FID, 'weather'), 'chance')), | MelRegnStructA('RDWT', '3I', 'weather', (FID, 'weather', None), 'chance', (FID, 'global', None))), | def dumpData(self,record,out): """Conditionally dumps data.""" if record.entryType == 7 and self.subType == 'RDMD': MelOptStruct.dumpData(self,record,out) | 7af65d5cb8642d4a7ed7404ec0d1375620c3647e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7af65d5cb8642d4a7ed7404ec0d1375620c3647e/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
751,
12,
2890,
16,
3366,
16,
659,
4672,
3536,
3418,
1230,
6711,
501,
12123,
309,
1409,
18,
4099,
559,
422,
2371,
471,
365,
18,
1717,
559,
422,
296,
20403,
6188,
4278,
490,
292,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
751,
12,
2890,
16,
3366,
16,
659,
4672,
3536,
3418,
1230,
6711,
501,
12123,
309,
1409,
18,
4099,
559,
422,
2371,
471,
365,
18,
1717,
559,
422,
296,
20403,
6188,
4278,
490,
292,
6... |
def __init__(self, parent=None, signalManager=None): | def __init__(self, parent=None, signalManager=None): | def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, 'SampleDataA') self.inputs = [("Data", ExampleTable, self.data)] self.outputs = [("Sampled Data", ExampleTable)] | 587023667f0b23339f62858ebd3b35c091ef9e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/587023667f0b23339f62858ebd3b35c091ef9e21/OWDataSamplerA.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
8504,
751,
37,
6134,
225,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
8504,
751,
37,
6134,
225,
365,
... |
os.path.join(getTempPath(),"details-%s.mpg" % itemnum)) | os.path.join(getTempPath(),"details-%s.mpg" % itemnum), aspect_ratio) | def createDetailsPage(screensize, screendpi, numberofitems): """Creates all the necessary images and files for the details page.""" write( "Creating details pages") #Get the detailspage node (we must only have 1) detailnode=themeDOM.getElementsByTagName("detailspage") if detailnode.length!=1: fatalError("Cannot find ... | 7e074fe168c880a2ceaa8181d90e1cd0f876a6b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/7e074fe168c880a2ceaa8181d90e1cd0f876a6b8/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3790,
1964,
12,
1017,
266,
773,
554,
16,
888,
266,
409,
7259,
16,
1300,
792,
3319,
4672,
3536,
2729,
777,
326,
4573,
4602,
471,
1390,
364,
326,
3189,
1363,
12123,
225,
1045,
12,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3790,
1964,
12,
1017,
266,
773,
554,
16,
888,
266,
409,
7259,
16,
1300,
792,
3319,
4672,
3536,
2729,
777,
326,
4573,
4602,
471,
1390,
364,
326,
3189,
1363,
12123,
225,
1045,
12,
3... |
self.assert_(set(self._box.list_folders()) == set(('one', 'two'))) | self.assertEqual(set(self._box.list_folders()), set(('one', 'two'))) | def test_add_and_remove_folders(self): # Delete folders self._box.add_folder('one') self._box.add_folder('two') self.assertEqual(len(self._box.list_folders()), 2) self.assert_(set(self._box.list_folders()) == set(('one', 'two'))) self._box.remove_folder('one') self.assertEqual(len(self._box.list_folders()), 1) self.ass... | ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1289,
67,
464,
67,
4479,
67,
16064,
12,
2890,
4672,
468,
2504,
9907,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
476,
6134,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
15415,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1289,
67,
464,
67,
4479,
67,
16064,
12,
2890,
4672,
468,
2504,
9907,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
476,
6134,
365,
6315,
2147,
18,
1289,
67,
5609,
2668,
15415,
6... |
ClearSilver templates and accompanying static resources. | Genshi templates and accompanying static resources. | def get_navigation_items(req): """Should return an iterable object over the list of navigation items to add, each being a tuple in the form (category, name, text). """ | 103ecf1cf71986010100fdac41d6a2c5a2bc5524 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/103ecf1cf71986010100fdac41d6a2c5a2bc5524/chrome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19537,
67,
3319,
12,
3658,
4672,
3536,
14309,
327,
392,
6087,
733,
1879,
326,
666,
434,
10394,
1516,
358,
527,
16,
1517,
3832,
279,
3193,
316,
326,
646,
261,
4743,
16,
508,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19537,
67,
3319,
12,
3658,
4672,
3536,
14309,
327,
392,
6087,
733,
1879,
326,
666,
434,
10394,
1516,
358,
527,
16,
1517,
3832,
279,
3193,
316,
326,
646,
261,
4743,
16,
508,
16... |
except: raise DeeFuzzStreamError('Command failure:', command, proc) | def core_process_stream(self, media): """Read media and stream data through a generator. Taken from Telemeta (see http://telemeta.org)""" | 76df376cde93a20db068016323a6fac9a1d68418 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/76df376cde93a20db068016323a6fac9a1d68418/deefuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2922,
67,
2567,
67,
3256,
12,
2890,
16,
3539,
4672,
3536,
1994,
3539,
471,
1407,
501,
3059,
279,
4456,
18,
399,
7940,
628,
399,
10037,
1066,
261,
5946,
1062,
2207,
88,
10037,
1066,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2922,
67,
2567,
67,
3256,
12,
2890,
16,
3539,
4672,
3536,
1994,
3539,
471,
1407,
501,
3059,
279,
4456,
18,
399,
7940,
628,
399,
10037,
1066,
261,
5946,
1062,
2207,
88,
10037,
1066,
18,
... | |
self.hboxlayout18.addWidget(self.reset_cpk_scale_factor_btn) self.vboxlayout10.addLayout(self.hboxlayout18) | self.hboxlayout21.addWidget(self.reset_cpk_scale_factor_btn) self.vboxlayout10.addLayout(self.hboxlayout21) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
kw.name = kw._get_name(kw.name, NonResolvingVariableScopes()) | kw.name = kw._get_name(kw.name, NonResolvingContext()) | def start_keyword(self, kw): if isinstance(kw, Keyword): # Doesn't match For or Parallel kw.name = kw._get_name(kw.name, NonResolvingVariableScopes()) LogSerializer.start_keyword(self, kw) | c7f6b02cdb70f131a90edd6143e7cebba69992d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/c7f6b02cdb70f131a90edd6143e7cebba69992d4/testdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
11041,
12,
2890,
16,
5323,
4672,
309,
1549,
12,
9987,
16,
18317,
4672,
225,
468,
9637,
82,
1404,
845,
2457,
578,
20203,
5323,
18,
529,
273,
5323,
6315,
588,
67,
529,
12,
9987,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
11041,
12,
2890,
16,
5323,
4672,
309,
1549,
12,
9987,
16,
18317,
4672,
225,
468,
9637,
82,
1404,
845,
2457,
578,
20203,
5323,
18,
529,
273,
5323,
6315,
588,
67,
529,
12,
9987,... |
current_line=''; for j in range(len(document.body[i])): if spec_chars.has_key(document.body[i][j]): flags = spec_chars[document.body[i][j]][1] + spec_chars[document.body[i][j]][2] if flags.find('combining') > -1: command = '' else: command = spec_chars[document.body[i][j]][0]; if command[0:2] == '\\\\': if command[2:12... | try: temp_file.write(line.encode(document.encoding) + '\n') mod_body = mod_body + line + '\n' last_char = line[-1] except: for character in line: try: temp_file.write(character.encode(document.encoding)) mod_body = mod_body + character last_char = character except: if spec_chars.has_key(character): command = spec... | def revert_unicode(document): '''Transform unicode symbols according to the unicode list. | 8397a051fa11df82b80bc62458ae1c9a387f891b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/8397a051fa11df82b80bc62458ae1c9a387f891b/lyx_1_5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
7963,
4888,
358,
326,
5252,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
7963,
4888,
358,
326,
5252,
666,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
shown on the ruler | shown on the ruler. | def ruler(start, end, ticks=4, sub_ticks=4, absolute=False, snap=False, **kwds): """ Draw a ruler in 3D, with major and minor ticks. INPUT: - ``start`` - the beginning of the ruler, as a list, tuple, or vector - ``end`` - the end of the ruler, as a list, tuple, or vector - ``ticks`` - (default: 4) the number of maj... | 25144c93b092a09ccf947d595af3b9e9d463ccf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/25144c93b092a09ccf947d595af3b9e9d463ccf2/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
12,
1937,
16,
679,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
4967,
33,
8381,
16,
10915,
33,
8381,
16,
2826,
25577,
4672,
3536,
10184,
279,
436,
17040,
316,
890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
12,
1937,
16,
679,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
4967,
33,
8381,
16,
10915,
33,
8381,
16,
2826,
25577,
4672,
3536,
10184,
279,
436,
17040,
316,
890,
... |
try: r, w, e = select.select([self.child_fd], [], [], 2) except select.error, e: if e[0] != errno.EINTR: raise | r, w, e = self.__select([self.child_fd], [], [], 2) | def read_nonblocking (self, size = 1, timeout = -1): """This reads at most size characters from the child application. It includes a timeout. If the read does not complete within the timeout period then a TIMEOUT exception is raised. If the end of file is read then an EOF exception will be raised. If a log file was set... | 3c3d87f023cdd3e4bbc6b0385f645f7ca35079c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/3c3d87f023cdd3e4bbc6b0385f645f7ca35079c1/pexpect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5836,
18926,
261,
2890,
16,
963,
273,
404,
16,
2021,
273,
300,
21,
4672,
3536,
2503,
6838,
622,
4486,
963,
3949,
628,
326,
1151,
2521,
18,
2597,
6104,
279,
2021,
18,
971,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5836,
18926,
261,
2890,
16,
963,
273,
404,
16,
2021,
273,
300,
21,
4672,
3536,
2503,
6838,
622,
4486,
963,
3949,
628,
326,
1151,
2521,
18,
2597,
6104,
279,
2021,
18,
971,
326,... |
if ($(' | var lookup = $(' if (lookup.val()) { | def render(self, name, value, attrs=None): if attrs is None: attrs = {} rendered = super(ForeignKeySearchInput, self).render(name, value, attrs) if value: label = self.label_for_value(value) else: label = u'' return rendered + mark_safe(u''' <style type="text/css" media="screen"> #lookup_%(name)s { padding-right:16px; ... | 18cb4eda795ee2ec2d1f036e9a589d8ecbca50fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/18cb4eda795ee2ec2d1f036e9a589d8ecbca50fc/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
508,
16,
460,
16,
3422,
33,
7036,
4672,
309,
3422,
353,
599,
30,
3422,
273,
2618,
7935,
273,
2240,
12,
15420,
2979,
1210,
16,
365,
2934,
5902,
12,
529,
16,
460,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
508,
16,
460,
16,
3422,
33,
7036,
4672,
309,
3422,
353,
599,
30,
3422,
273,
2618,
7935,
273,
2240,
12,
15420,
2979,
1210,
16,
365,
2934,
5902,
12,
529,
16,
460,
1... |
self.enabled = self.length <= 0: | self.enabled = self.length <= 0 | def update_enabled(self): if (self.playback & 0x40) != 0 and self.length > 0: self.length-=1 self.enabled = self.length <= 0: #self.output_enable &= ~0x08 | 6aa638b1776056ce624187aebf0263b1d48354a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/6aa638b1776056ce624187aebf0263b1d48354a4/sound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5745,
12,
2890,
4672,
309,
261,
2890,
18,
1601,
823,
473,
374,
92,
7132,
13,
480,
374,
471,
365,
18,
2469,
405,
374,
30,
365,
18,
2469,
17,
33,
21,
365,
18,
5745,
273,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5745,
12,
2890,
4672,
309,
261,
2890,
18,
1601,
823,
473,
374,
92,
7132,
13,
480,
374,
471,
365,
18,
2469,
405,
374,
30,
365,
18,
2469,
17,
33,
21,
365,
18,
5745,
273,
36... |
if l['type'].__name__ != lock_type.__name__: | if not hasattr(l['type'], '__name__') or \ l['type'].__name__ != lock_type.__name__: | def can_safely_unlock(self, lock_type=STEALABLE_LOCK): if not lock_type.user_unlockable: return False | e5205eda10ec3ae289b866502fddb9b22cbe5ad7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12235/e5205eda10ec3ae289b866502fddb9b22cbe5ad7/lockable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
87,
1727,
2357,
67,
26226,
12,
2890,
16,
2176,
67,
723,
33,
882,
41,
1013,
2782,
67,
6589,
4672,
309,
486,
2176,
67,
723,
18,
1355,
67,
26226,
429,
30,
327,
1083,
2,
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,
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,
87,
1727,
2357,
67,
26226,
12,
2890,
16,
2176,
67,
723,
33,
882,
41,
1013,
2782,
67,
6589,
4672,
309,
486,
2176,
67,
723,
18,
1355,
67,
26226,
429,
30,
327,
1083,
2,
-100,
... |
- a list containing the projective points of X over the finite field, sorted | - a list containing the projective points of ``X`` over the finite field, sorted. | def enum_projective_finite_field(X): """ Enumerates projective points on scheme X defined over a finite field INPUT: - ``X`` - a scheme defined over a finite field or set of abstract rational points of such a scheme OUTPUT: - a list containing the projective points of X over the finite field, sorted EXAMPLES:: s... | 0c1f24a85f1dccaf5341fcaca9e87554c8bacafa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0c1f24a85f1dccaf5341fcaca9e87554c8bacafa/rational_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
4406,
688,
67,
9551,
67,
1518,
12,
60,
4672,
3536,
6057,
264,
815,
1984,
688,
3143,
603,
4355,
1139,
2553,
1879,
279,
25922,
652,
225,
12943,
30,
225,
300,
12176,
60,
10335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
4406,
688,
67,
9551,
67,
1518,
12,
60,
4672,
3536,
6057,
264,
815,
1984,
688,
3143,
603,
4355,
1139,
2553,
1879,
279,
25922,
652,
225,
12943,
30,
225,
300,
12176,
60,
10335,
... |
raise NodeProcessed | def PresenceHandler(self,dis,pres): """ Presence tracker. Used internally for setting items' resources state in internal roster representation. """ jid=JID(pres.getFrom()) if not self._data.has_key(jid.getStripped()): self._data[jid.getStripped()]={'name':None,'ask':None,'subscription':'none','groups':['Not in roster']... | 74739227eb3e04975a3d56a7f94aeb17f42f6821 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/74739227eb3e04975a3d56a7f94aeb17f42f6821/roster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31517,
1503,
12,
2890,
16,
2251,
16,
12202,
4672,
3536,
31517,
9745,
18,
10286,
12963,
364,
3637,
1516,
11,
2703,
919,
316,
2713,
721,
8190,
4335,
18,
3536,
14201,
33,
46,
734,
12,
12202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31517,
1503,
12,
2890,
16,
2251,
16,
12202,
4672,
3536,
31517,
9745,
18,
10286,
12963,
364,
3637,
1516,
11,
2703,
919,
316,
2713,
721,
8190,
4335,
18,
3536,
14201,
33,
46,
734,
12,
12202... | |
<tr> | <tr$tr_class$> | def write_summary_line(self, out, var_doc, container): """ Generate HTML code for a single line of a summary table, and write it to C{out}. See L{write_summary_table} for more information. @param var_doc: The API documentation for the variable that should be described by this line of the summary table. @param contain... | b9a04f544e12574efdc55498e87f9f25c7c85265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b9a04f544e12574efdc55498e87f9f25c7c85265/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7687,
67,
1369,
12,
2890,
16,
596,
16,
569,
67,
2434,
16,
1478,
4672,
3536,
6654,
3982,
981,
364,
279,
2202,
980,
434,
279,
4916,
1014,
16,
471,
1045,
518,
358,
385,
95,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7687,
67,
1369,
12,
2890,
16,
596,
16,
569,
67,
2434,
16,
1478,
4672,
3536,
6654,
3982,
981,
364,
279,
2202,
980,
434,
279,
4916,
1014,
16,
471,
1045,
518,
358,
385,
95,
65... |
scripts = config.get_value('scripts').split() scripts = [ os.path.join(*['scripts', x]) for x in scripts ] | if config.has_value('scripts'): scripts = config.get_value('scripts').split() scripts = [ os.path.join(*['scripts', x]) for x in scripts ] else: scripts = [] | def setup(description='', classifiers=[]): from __init__ import __version__ # START HACK start_local_import() from resources import get_resource from handlers.config import Config end_local_import() # END HACK config = Config(get_resource('setup.conf')) # The package name package_name = config.get_value('name') # Th... | 44904836755f9ca0e090dec410d66afa975f0a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/44904836755f9ca0e090dec410d66afa975f0a94/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
3384,
2218,
2187,
667,
3383,
33,
8526,
4672,
628,
1001,
2738,
972,
1930,
1001,
1589,
972,
468,
10485,
670,
3649,
787,
67,
3729,
67,
5666,
1435,
628,
2703,
1930,
336,
67,
3146,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
3384,
2218,
2187,
667,
3383,
33,
8526,
4672,
628,
1001,
2738,
972,
1930,
1001,
1589,
972,
468,
10485,
670,
3649,
787,
67,
3729,
67,
5666,
1435,
628,
2703,
1930,
336,
67,
3146,
... |
def __init__(self, token=None, parent=None, count=None, local_count=None, parser=None): | """An element. """ def __init__(self, token=None, parent=None, count=None, local_count=None, \ parser=None, opening_tag=None, closing_tag=None, \ attributes=None, name=None, text=None): """Constructor. This is called by ???. Description: All parameters are optional. token - (Token) The token (required) parent... | def __init__(self, token=None, parent=None, count=None, local_count=None, parser=None): self.children = [] self.attributes = {} self.parser = parser | 31746b2c12abc94e701d932b47560a36d5494b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10890/31746b2c12abc94e701d932b47560a36d5494b1d/sparkup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
979,
930,
18,
3536,
225,
1652,
1001,
2738,
972,
12,
2890,
16,
1147,
33,
7036,
16,
982,
33,
7036,
16,
1056,
33,
7036,
16,
1191,
67,
1883,
33,
7036,
16,
521,
2082,
33,
7036,
16,
10890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
979,
930,
18,
3536,
225,
1652,
1001,
2738,
972,
12,
2890,
16,
1147,
33,
7036,
16,
982,
33,
7036,
16,
1056,
33,
7036,
16,
1191,
67,
1883,
33,
7036,
16,
521,
2082,
33,
7036,
16,
10890,... |
self.__unit, self.__p, latex(self.__prec)) | self.__unit, self.__p, self.__prec) | def _repr_(self, do_latex=False): if not self.parent().series_print(): if do_latex: return "%s^{%s} * (%s + O(%s^{%s}))"%(self.__p, self.__ordp, \ self.__unit, self.__p, latex(self.__prec)) else: return "%s^%s * (%s + O(%s^%s))"%(self.__p, self.__ordp, \ self.__unit, self.__p, latex(self.__prec)) # series printing if s... | 63af66ff87b9e390e8e4dab159343aa7e955b8b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/63af66ff87b9e390e8e4dab159343aa7e955b8b6/padic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
16,
741,
67,
26264,
33,
8381,
4672,
309,
486,
365,
18,
2938,
7675,
10222,
67,
1188,
13332,
309,
741,
67,
26264,
30,
327,
2213,
87,
66,
95,
9,
87,
97,
380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
67,
12,
2890,
16,
741,
67,
26264,
33,
8381,
4672,
309,
486,
365,
18,
2938,
7675,
10222,
67,
1188,
13332,
309,
741,
67,
26264,
30,
327,
2213,
87,
66,
95,
9,
87,
97,
380,
... |
if root != libraryPath or name[0] == ".": | if name[0] == ".": | def getVersions(self, restrictions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs[:]: console.indent() # only check direct subfolders of the library, ignore .svn etc. if root != libraryPath or name[0] == ".": dirs.r... | 505d6aa499420cbaae93afe6ce9e72b342e502c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/505d6aa499420cbaae93afe6ce9e72b342e502c8/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5940,
12,
2890,
16,
17499,
4672,
5244,
273,
2618,
5313,
743,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
9071,
18,
1214,
16,
365,
18,
1214,
13,
364,
1365,
16,
7717,
16,
1390,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5940,
12,
2890,
16,
17499,
4672,
5244,
273,
2618,
5313,
743,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
9071,
18,
1214,
16,
365,
18,
1214,
13,
364,
1365,
16,
7717,
16,
1390,
31... |
self.mode.buffer.stc.setRemappedAccelerator(self.action, acc) | self.mode.buffer.stc.setRemappedAccelerator(self.action, acc, self.append) | def finishRecording(self): dprint("Recording %s" % (self.recording)) acc = " ".join(self.recording) self.status_text = "New key binding for %s: %s" % (self.action.__name__, acc) self.mode.setStatusText(self.status_text) dprint(self.status_text) self.mode.buffer.stc.setRemappedAccelerator(self.action, acc) wx.CallAfter(... | 101a4c61f894038c4fae88bb1224bd5d9e43cf25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/101a4c61f894038c4fae88bb1224bd5d9e43cf25/keyboard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
21037,
12,
2890,
4672,
302,
1188,
2932,
21037,
738,
87,
6,
738,
261,
2890,
18,
3366,
310,
3719,
4078,
273,
315,
3552,
5701,
12,
2890,
18,
3366,
310,
13,
365,
18,
2327,
67,
955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
21037,
12,
2890,
4672,
302,
1188,
2932,
21037,
738,
87,
6,
738,
261,
2890,
18,
3366,
310,
3719,
4078,
273,
315,
3552,
5701,
12,
2890,
18,
3366,
310,
13,
365,
18,
2327,
67,
955,
... |
jobSet, splittable = self._updateChangeSet(itemList, uJob, keepExisting = keepExisting, recurse = recurse, updateMode = updateByDefault, useAffinity = useAffinity, ignorePrimaryPins = ignorePrimaryPins, forceJobClosure = forceJobClosure) | jobSet = self._updateChangeSet(itemList, uJob, keepExisting = keepExisting, recurse = recurse, updateMode = updateByDefault, useAffinity = useAffinity, ignorePrimaryPins = ignorePrimaryPins, forceJobClosure = forceJobClosure) | def updateChangeSet(self, itemList, keepExisting = False, recurse = True, resolveDeps = True, test = False, updateByDefault = True, callback = UpdateCallback(), split = False, sync = False, fromChangesets = [], checkPathConflicts = True, ignorePrimaryPins = True, resolveRepos = True): """ Creates a changeset to update ... | ee4de86bc27832efbeef6e6900e90a53ec4212b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ee4de86bc27832efbeef6e6900e90a53ec4212b4/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,
273,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
273,
23... |
alert_device = settings.audio.alert_device if not settings.audio.silent else None | alert_device = settings.audio.alert_device | def start(self, config_backend=None): if self.state is not None: raise RuntimeError("SIPApplication cannot be started from '%s' state" % self.state) self.state = 'starting' account_manager = AccountManager() configuration_manager = ConfigurationManager() notification_center = NotificationCenter() session_manager = Sess... | e9495e69d8e9bb0f5573248540da565de5e260e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/e9495e69d8e9bb0f5573248540da565de5e260e3/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
642,
67,
9993,
33,
7036,
4672,
309,
365,
18,
2019,
353,
486,
599,
30,
1002,
7265,
2932,
17739,
3208,
2780,
506,
5746,
628,
1995,
87,
11,
919,
6,
738,
365,
18,
2019... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
642,
67,
9993,
33,
7036,
4672,
309,
365,
18,
2019,
353,
486,
599,
30,
1002,
7265,
2932,
17739,
3208,
2780,
506,
5746,
628,
1995,
87,
11,
919,
6,
738,
365,
18,
2019... |
env.AppendUnique(RPATH="$NIDAS_PATH/x86/lib") | env.AppendUnique(RPATH=[os.path.join(p,'x86','lib') for p in nidas_paths]) | def generate(env): global options if not options: options = env.GlobalOptions() options.Add('NIDAS_PATH', | a4cc7c4dfa3c930e0b10951da106264241a8f1fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1466/a4cc7c4dfa3c930e0b10951da106264241a8f1fb/nidas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
3074,
4672,
2552,
702,
309,
486,
702,
30,
702,
273,
1550,
18,
5160,
1320,
1435,
702,
18,
986,
2668,
50,
734,
3033,
67,
4211,
2187,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
3074,
4672,
2552,
702,
309,
486,
702,
30,
702,
273,
1550,
18,
5160,
1320,
1435,
702,
18,
986,
2668,
50,
734,
3033,
67,
4211,
2187,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
obj = {'name':self.getTitle(), 'profile':self.getProfile(), 'profilemodified':False, 'fromfile':self.getTitle(), 'dirname':self.getLink(), 'uri':self.getID(), 'status':DV.l('Pending.'), 'icon':self.getIcon(), 'module':self, 'downloadgetter':self.getDownloadGetter()} | obj = {'name':DamnUnicode(self.getTitle()), 'profile':self.getProfile(), 'profilemodified':False, 'fromfile':DamnUnicode(self.getTitle()), 'dirname':DamnUnicode(self.getLink()), 'uri':DamnUnicode(self.getID()), 'status':DV.l('Pending.'), 'icon':self.getIcon(), 'module':self, 'downloadgetter':self.getDownloadGetter()} | def getVidObject(self): obj = {'name':self.getTitle(), 'profile':self.getProfile(), 'profilemodified':False, 'fromfile':self.getTitle(), 'dirname':self.getLink(), 'uri':self.getID(), 'status':DV.l('Pending.'), 'icon':self.getIcon(), 'module':self, 'downloadgetter':self.getDownloadGetter()} Damnlog('Module', self.name, ... | b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11031,
350,
921,
12,
2890,
4672,
1081,
273,
13666,
529,
4278,
40,
301,
82,
16532,
12,
2890,
18,
588,
4247,
1435,
3631,
296,
5040,
4278,
2890,
18,
588,
4029,
9334,
296,
5040,
7342,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11031,
350,
921,
12,
2890,
4672,
1081,
273,
13666,
529,
4278,
40,
301,
82,
16532,
12,
2890,
18,
588,
4247,
1435,
3631,
296,
5040,
4278,
2890,
18,
588,
4029,
9334,
296,
5040,
7342,
4278,
... |
def copy(self, cr, uid, id, default={}, context={}, done_list=[], local=False): group = self.browse(cr, uid, id, context=context) default = default.copy() if not 'name' in default: default['name'] = group['name'] default['name'] = default['name'] + _(' (copy)') return super(groups, self).copy(cr, uid, id, default, con... | def create(self, cr, uid, vals, context=None): if 'name' in vals: if vals['name'].startswith('-'): raise osv.except_osv(_('Error'), _('The name of the group can not start with "-"')) gid = super(groups, self).create(cr, uid, vals, context=context) if context and context.get('noadmin', False): pass else: # assign this n... | 40bf95d2aeb8a979c930c92e40aae20dc594b3fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/40bf95d2aeb8a979c930c92e40aae20dc594b3fe/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
819,
33,
7036,
4672,
309,
296,
529,
11,
316,
5773,
30,
309,
5773,
3292,
529,
29489,
17514,
1918,
2668,
6627,
4672,
1002,
1140,
90,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
819,
33,
7036,
4672,
309,
296,
529,
11,
316,
5773,
30,
309,
5773,
3292,
529,
29489,
17514,
1918,
2668,
6627,
4672,
1002,
1140,
90,
18,
... | |
self.outer.update(_strxor(key, opad)) self.inner.update(_strxor(key, ipad)) | self.outer.update(key.translate(trans_5C)) self.inner.update(key.translate(trans_36)) | def __init__(self, key, msg = None, digestmod = None): """Create a new HMAC object. | 8fe2d2015dc57e4e048f733c7fbb5c0712b05d15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8fe2d2015dc57e4e048f733c7fbb5c0712b05d15/hmac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
498,
16,
1234,
273,
599,
16,
5403,
1711,
273,
599,
4672,
3536,
1684,
279,
394,
20792,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
498,
16,
1234,
273,
599,
16,
5403,
1711,
273,
599,
4672,
3536,
1684,
279,
394,
20792,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
ratio = float(partition.size) / float(self.total_size) pct = float(ratio * 100) pixels = ratio * width n_width = int(pixels) cr.set_source_rgb(*border_color) self.rounded_rectangle(cr, x_offset-1, 9, n_width+2, height+2) cr.fill() cr.set_source_rgb(*fill_color) self.rounded_rectangle(cr, x_offset, 10, n_width, height... | ratio = float(partition.size) / float(self.total_size) pct = float(ratio * 100) pixels = ratio * width n_width = int(pixels) cr.set_source_rgb(*border_color) self.rounded_rectangle(cr, x_offset-1, 9, n_width+2, height+2) cr.fill() cr.set_source_rgb(*fill_color) self.rounded_rectangle(cr, x_offset, 10, n_width, height... | def draw(self, cr, width, height): #self.style.apply_default_background(self.window, True, gtk.STATE_NORMAL, None, 0, 0, width, height) #cr.set_source_rgba(0, 0, 0, 0.0) self.width = width # for add_label self.height = height # for add_label height /= 2 width -= 40 #cr.rectangle(0, 0, width, height) #cr.fill() | 305ccdf23df483c36455d0c1b2dba4a907a70a56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/305ccdf23df483c36455d0c1b2dba4a907a70a56/screen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
16,
4422,
16,
1835,
16,
2072,
4672,
468,
2890,
18,
4060,
18,
9010,
67,
1886,
67,
9342,
12,
2890,
18,
5668,
16,
1053,
16,
22718,
18,
7998,
67,
15480,
16,
599,
16,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
16,
4422,
16,
1835,
16,
2072,
4672,
468,
2890,
18,
4060,
18,
9010,
67,
1886,
67,
9342,
12,
2890,
18,
5668,
16,
1053,
16,
22718,
18,
7998,
67,
15480,
16,
599,
16,
374,... |
@mockdata.add_list_mock_data | def delete_list(self, list_name): fqdn_listname = list_name + '@' + self.info['email_host'] return self._http_request('/3.0/lists/' + fqdn_listname, None, 'DELETE') | a73b2f832d063623dfaf85e3b60c20180665247c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2119/a73b2f832d063623dfaf85e3b60c20180665247c/mailman_rest_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1098,
12,
2890,
16,
666,
67,
529,
4672,
19897,
67,
1098,
529,
273,
666,
67,
529,
397,
9175,
397,
365,
18,
1376,
3292,
3652,
67,
2564,
3546,
327,
365,
6315,
2505,
67,
2293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1098,
12,
2890,
16,
666,
67,
529,
4672,
19897,
67,
1098,
529,
273,
666,
67,
529,
397,
9175,
397,
365,
18,
1376,
3292,
3652,
67,
2564,
3546,
327,
365,
6315,
2505,
67,
2293,
... | |
def find_library_file (self, dirs, lib): | def find_library_file (self, dirs, lib, debug=0): | def find_library_file (self, dirs, lib): | c58c5177419a3703cb2c6397471ab1e8756a6755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c58c5177419a3703cb2c6397471ab1e8756a6755/bcppcompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
261,
2890,
16,
7717,
16,
2561,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
261,
2890,
16,
7717,
16,
2561,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for root, dirs, files in os.walk(os.path.abspath(dirname)): for file_name in files: filename = os.path.join(root, file_name) extension = os.path.splitext(filename)[1] if extension.lower() in ['.ttf']: if file_name==font_file: return True return False | abp = os.path.abspath(dirname) if os.path.isdir(abp): dirpath.append(abp) for k, (name, font, fname, mode) in enumerate(CustomTTFonts): if fname in __foundFonts: continue for d in dirpath: if os.path.exists(os.path.join(d, fname)): print "found font %s in %s" % (fname, d) __foundFonts.append(fname) break | def SearchFontPath(font_file): for dirname in rl_config.TTFSearchPath: for root, dirs, files in os.walk(os.path.abspath(dirname)): for file_name in files: filename = os.path.join(root, file_name) extension = os.path.splitext(filename)[1] if extension.lower() in ['.ttf']: if file_name==font_file: return True return Fals... | 0111fd15fb18e37d931edf925c3d132ed7255a7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/0111fd15fb18e37d931edf925c3d132ed7255a7d/customfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5167,
5711,
743,
12,
5776,
67,
768,
4672,
364,
4283,
316,
11618,
67,
1425,
18,
1470,
42,
2979,
743,
30,
1223,
84,
273,
1140,
18,
803,
18,
5113,
803,
12,
12287,
13,
309,
1140,
18,
803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5167,
5711,
743,
12,
5776,
67,
768,
4672,
364,
4283,
316,
11618,
67,
1425,
18,
1470,
42,
2979,
743,
30,
1223,
84,
273,
1140,
18,
803,
18,
5113,
803,
12,
12287,
13,
309,
1140,
18,
803... |
self.assertRaises(Exception, test_view('company')) | test_view('company') | def test0005views(self): ''' Test views. ''' self.assertRaises(Exception, test_view('company')) | 2238de6fa471500c85ce0837aa5335f583ad12ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9291/2238de6fa471500c85ce0837aa5335f583ad12ee/test_company.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3784,
25,
7061,
12,
2890,
4672,
9163,
7766,
7361,
18,
9163,
365,
18,
11231,
12649,
6141,
12,
503,
16,
1842,
67,
1945,
2668,
16840,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
3784,
25,
7061,
12,
2890,
4672,
9163,
7766,
7361,
18,
9163,
365,
18,
11231,
12649,
6141,
12,
503,
16,
1842,
67,
1945,
2668,
16840,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
cr.execute('select '+field._id1+' from '+field._rel+' where '+field._id2+' in ('+','.join(map(str,ids))+')') | cr.execute('select "'+field._id1+'" from "'+field._rel+'" where "'+field._id2+'" in ('+','.join(map(str,ids))+')') | def _rec_convert(ids): if self.pool.get(field._obj)==self: return ids if not len(ids): return [] cr.execute('select '+field._id1+' from '+field._rel+' where '+field._id2+' in ('+','.join(map(str,ids))+')') ids = [x[0] for x in cr.fetchall()] return ids | be2ceb24bde4a569bfb092c4888d20f47c553384 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/be2ceb24bde4a569bfb092c4888d20f47c553384/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
365,
18,
6011,
18,
588,
12,
1518,
6315,
2603,
13,
631,
2890,
30,
327,
3258,
309,
486,
562,
12,
2232,
4672,
327,
5378,
4422,
18,
8837,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3927,
67,
6283,
12,
2232,
4672,
309,
365,
18,
6011,
18,
588,
12,
1518,
6315,
2603,
13,
631,
2890,
30,
327,
3258,
309,
486,
562,
12,
2232,
4672,
327,
5378,
4422,
18,
8837,
2668,
... |
return fileindexlist[index] | if result == wx.ID_OK: return fileindexlist[index] else: return None | def ask_user_to_select(self,fileindexlist): """ Returns an [index,filename] pair """ filelist = [] for i in range(len(fileindexlist)): videoinfo = fileindexlist[i] if videoinfo[3] is not None: filelist.append(fileindexlist[i][1]) if len(filelist) == 0: self.onWarning(self.utility.lang.get('videoplaycontentnotfound'),... | c1e859adaf72192a5ba3d55f323e755499f9b24c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/c1e859adaf72192a5ba3d55f323e755499f9b24c/VideoPlayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
67,
1355,
67,
869,
67,
4025,
12,
2890,
16,
768,
1615,
1098,
4672,
3536,
2860,
392,
306,
1615,
16,
3459,
65,
3082,
3536,
26204,
273,
5378,
225,
364,
277,
316,
1048,
12,
1897,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
67,
1355,
67,
869,
67,
4025,
12,
2890,
16,
768,
1615,
1098,
4672,
3536,
2860,
392,
306,
1615,
16,
3459,
65,
3082,
3536,
26204,
273,
5378,
225,
364,
277,
316,
1048,
12,
1897,
12,
... |
n = [['1' for i in range(256)] for i in range(256)] tile = Tile(key=db.Key.from_path('Tiles', key)) | n = [[1 for i in range(256)] for i in range(256)] tile = Tile(key=db.Key.from_path('Tile', key)) | def post(self): delList = [] key = self.request.params.get('k', None) now = time.time() seed = self.request.params.get('seed', int(now / 15)) tile = Tile.get(db.Key.from_path('Tiles', key)) if tile: #if it does exist, turn it into a binary 256x256 matrix n = [] row = 0 for s in png.Reader(bytes=tile.band).asRGBA()[2]: ... | d8c9f1983df3f32f242b3e5ecc7fa8cf679c37ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14219/d8c9f1983df3f32f242b3e5ecc7fa8cf679c37ba/cron.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
1464,
682,
273,
5378,
498,
273,
365,
18,
2293,
18,
2010,
18,
588,
2668,
79,
2187,
599,
13,
2037,
273,
813,
18,
957,
1435,
5009,
273,
365,
18,
2293,
18,
2010,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
1464,
682,
273,
5378,
498,
273,
365,
18,
2293,
18,
2010,
18,
588,
2668,
79,
2187,
599,
13,
2037,
273,
813,
18,
957,
1435,
5009,
273,
365,
18,
2293,
18,
2010,
18... |
if self.info.has_hvm(): | if self.info.is_hvm(): | def completeRestore(self, store_mfn, console_mfn): | b6af6c2619a025886bc5af42fad0e528088630d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/b6af6c2619a025886bc5af42fad0e528088630d2/XendDomainInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3912,
10874,
12,
2890,
16,
1707,
67,
81,
4293,
16,
2983,
67,
81,
4293,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3912,
10874,
12,
2890,
16,
1707,
67,
81,
4293,
16,
2983,
67,
81,
4293,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
[1] William Kolakoski, proposal 5304, American Mathematical Monthly 72 (1965), 674; for a partial solution, see "Self Generating Runs," by Necdet Üçoluk, Amer. Math. Mon. 73 (1966), 681-2. """ try: a = int(alphabet[0]) b = int(alphabet[1]) if a <=0 or b <= 0 or a == b: raise ValueError, 'The alphabet (=%s) must consist... | - [1] William Kolakoski, proposal 5304, American Mathematical Monthly 72 (1965), 674; for a partial solution, see "Self Generating Runs," by Necdet Üçoluk, Amer. Math. Mon. 73 (1966), 681-2. """ a, b = alphabet if a not in ZZ or a <= 0 or b not in ZZ or b <= 0 or a == b: msg = 'The alphabet (=%s) must consist of two di... | def KolakoskiWord(self, alphabet=(1,2)): r""" Returns the Kolakoski word over the given alphabet and starting with the first letter of the alphabet. | 400b38ded71c12be2a85d073791943be1f1b633f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/400b38ded71c12be2a85d073791943be1f1b633f/word_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1475,
355,
581,
538,
15299,
3944,
12,
2890,
16,
10877,
28657,
21,
16,
22,
3719,
30,
436,
8395,
2860,
326,
1475,
355,
581,
538,
15299,
2076,
1879,
326,
864,
10877,
471,
5023,
598,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1475,
355,
581,
538,
15299,
3944,
12,
2890,
16,
10877,
28657,
21,
16,
22,
3719,
30,
436,
8395,
2860,
326,
1475,
355,
581,
538,
15299,
2076,
1879,
326,
864,
10877,
471,
5023,
598,
326,
... |
c = cmp(self.ambient_group(), other.ambient_group()) | c = PermutationGroup_generic.__cmp__(self, other) | def __cmp__(self, other): r""" Compare ``self`` and ``other``. If ``self`` and ``other`` are in a common ambient group, then self = other precisely if ``self`` is contained in ``other``. EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: gens = G.gens() sage: H = DihedralGroup(4) sage: PermutationGroup_subgroup(H,l... | 2a87cfa9de38153b92583501913dd2359cb20a23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2a87cfa9de38153b92583501913dd2359cb20a23/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
436,
8395,
11051,
12176,
2890,
10335,
471,
12176,
3011,
68,
8338,
971,
12176,
2890,
10335,
471,
12176,
3011,
10335,
854,
316,
279,
2975,
13232,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
436,
8395,
11051,
12176,
2890,
10335,
471,
12176,
3011,
68,
8338,
971,
12176,
2890,
10335,
471,
12176,
3011,
10335,
854,
316,
279,
2975,
13232,
1... |
'foo', False, 'UTF-8') | 'foo', 'UTF-8') | def __init__(self, configfile, usage): Mode.__init__(self, configfile) options = {'plugins': Bcfg2.Options.SERVER_PLUGINS} setup = Bcfg2.Options.OptionParser(options) setup.hm = usage setup.parse(sys.argv[1:]) try: self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(), setup['plugins'], 'foo', False, 'UTF-8') except... | 85002c8627ab302f4f3fed668b67b9bbffcc08aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/85002c8627ab302f4f3fed668b67b9bbffcc08aa/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
768,
16,
4084,
4672,
8126,
16186,
2738,
972,
12,
2890,
16,
642,
768,
13,
702,
273,
13666,
8057,
4278,
605,
7066,
22,
18,
1320,
18,
4370,
67,
19415,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
768,
16,
4084,
4672,
8126,
16186,
2738,
972,
12,
2890,
16,
642,
768,
13,
702,
273,
13666,
8057,
4278,
605,
7066,
22,
18,
1320,
18,
4370,
67,
19415,
... |
return self.path[-1].name | if len(self) > 0: return self[-1].name return '' | def get_name(self): return self.path[-1].name | fc866ebcbec9f530a6b11c6416082141a4bf17a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/fc866ebcbec9f530a6b11c6416082141a4bf17a5/generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
529,
12,
2890,
4672,
327,
365,
18,
803,
18919,
21,
8009,
529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
529,
12,
2890,
4672,
327,
365,
18,
803,
18919,
21,
8009,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
source = open(inspect.getsourcefile(model)).read().replace("\r","\n") + "\n" | source = open(inspect.getsourcefile(model)).read().replace("\r\n", "\n").replace("\r","\n") + "\n" | def get_model_tree(model): # Get the source of the model's file source = open(inspect.getsourcefile(model)).read().replace("\r","\n") + "\n" tree = STTree(parser.suite(source).totuple()) # Now, we have to find it for poss in tree.find("compound_stmt"): if poss.value[1][0] == symbol.classdef and \ poss.value[1][2][1].lo... | 418ef638a7ac4ed9d42461ab3c3e0129bb472f61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/418ef638a7ac4ed9d42461ab3c3e0129bb472f61/modelsparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2284,
67,
3413,
12,
2284,
4672,
468,
968,
326,
1084,
434,
326,
938,
1807,
585,
1084,
273,
1696,
12,
12009,
18,
588,
3168,
768,
12,
2284,
13,
2934,
896,
7675,
2079,
31458,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2284,
67,
3413,
12,
2284,
4672,
468,
968,
326,
1084,
434,
326,
938,
1807,
585,
1084,
273,
1696,
12,
12009,
18,
588,
3168,
768,
12,
2284,
13,
2934,
896,
7675,
2079,
31458,
86,
... |
edit.SetDefaultCharFormat(interact.formatOutput) | format = eval(win32ui.GetProfileVal(interact.sectionProfile, interact.STYLE_INTERACTIVE_OUTPUT, str(interact.formatOutput))) edit.SetDefaultCharFormat(format) | def OnInitDialog(self): | 630e18dbc3fbca2cdcb34f103137f93ab5fec50d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/630e18dbc3fbca2cdcb34f103137f93ab5fec50d/ideoptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
6353,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
6353,
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,
-... |
self.hboxlayout16.addWidget(self.textLabel1_7) | self.hboxlayout19.addWidget(self.textLabel1_7) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
self.texturepaths.setValue(self.texturePathList) self.displaypaths.setValue(self.displayPathList) self.proceduralpaths.setValue(self.proceduralPathList) self.archivepaths.setValue(self.archivePathList) | def update(self, obj): self.rendererMenu.setValue(self.rendererMenu.menu.index(self.renderer)) self.useSlParams.setValue(self.use_slparams) self.binarypath.setValue(self.binaryPath) self.shaderpaths.setValue(self.shaderPathList) self.texturepaths.setValue(self.texturePathList) self.displaypaths.setValue(self.displayPat... | 74bddf362fa2502791a0646abd613f6613d08c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/74bddf362fa2502791a0646abd613f6613d08c8a/BtoRMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
1081,
4672,
365,
18,
14374,
4599,
18,
542,
620,
12,
2890,
18,
14374,
4599,
18,
5414,
18,
1615,
12,
2890,
18,
14374,
3719,
365,
18,
1202,
3738,
1370,
18,
542,
620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1081,
4672,
365,
18,
14374,
4599,
18,
542,
620,
12,
2890,
18,
14374,
4599,
18,
5414,
18,
1615,
12,
2890,
18,
14374,
3719,
365,
18,
1202,
3738,
1370,
18,
542,
620,
... | |
sage: P, = E.gens() | sage: P = E([0,-1]) | sage: def naive_height(P): | 1ddfe4bb6b8336269f63cd55521d4ccc9c8c16d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1ddfe4bb6b8336269f63cd55521d4ccc9c8c16d8/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
28224,
67,
4210,
12,
52,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
28224,
67,
4210,
12,
52,
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,
... |
endswith_slash = path.endswith('/') | endswith_slash = path.endswith('/') \ or path.endswith('/.') \ or path.endswith('/..') | def normalize_path(path): """ Normalize the path (we don't use os.path because on Windows it converts forward slashes to back slashes). Examples: a//b/c : a/b/c a/./b/c : a/b/c a/b/c/../d : a/b/d /../a/b/c : /a/b/c """ if not isinstance(path, str) and not isinstance(path, unicode): raise TypeError, 'path must... | 850bd3d64a2fcc3b87711b887d8122a1690fd8e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/850bd3d64a2fcc3b87711b887d8122a1690fd8e2/uri.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
803,
12,
803,
4672,
3536,
14282,
326,
589,
261,
1814,
2727,
1404,
999,
1140,
18,
803,
2724,
603,
8202,
518,
7759,
5104,
19034,
358,
1473,
19034,
2934,
225,
19830,
30,
225,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
803,
12,
803,
4672,
3536,
14282,
326,
589,
261,
1814,
2727,
1404,
999,
1140,
18,
803,
2724,
603,
8202,
518,
7759,
5104,
19034,
358,
1473,
19034,
2934,
225,
19830,
30,
225,
279,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.