rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self._p_changed = 1 | self._p_changed = 1 | def admin_updatemaintopics(self, folder_url='', REQUEST=None): """ """ if folder_url not in self.maintopics: self.maintopics.append(folder_url) self._p_changed = 1 if REQUEST: self.setSessionInfo([MESSAGE_SAVEDCHANGES % self.utGetTodayDate()]) REQUEST.RESPONSE.redirect('%s/admin_maintopics_html' % self.absolute_url()) | facf30cc0f520e42ff2b2c8068ad27294f8a589f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3287/facf30cc0f520e42ff2b2c8068ad27294f8a589f/NySite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
2725,
81,
1598,
556,
2102,
12,
2890,
16,
3009,
67,
718,
2218,
2187,
12492,
33,
7036,
4672,
3536,
3536,
309,
3009,
67,
718,
486,
316,
365,
18,
81,
1598,
556,
2102,
30,
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,
3981,
67,
2725,
81,
1598,
556,
2102,
12,
2890,
16,
3009,
67,
718,
2218,
2187,
12492,
33,
7036,
4672,
3536,
3536,
309,
3009,
67,
718,
486,
316,
365,
18,
81,
1598,
556,
2102,
30,
365,
... |
else: break | else: break | def minifind(path, type = None, perms = None, mindepth = 0, maxdepth = 99, exclude = [], followlinks = False, followmounts = False): """mimic the GNU find behaviour in python. returns an iterator. WARNING: recursive function !""" if mindepth > maxdepth: raise exceptions.BadArgumentError("mindepth must be <= maxdepth.... | c91032f431c349aa6ddd0a881cd61cb775bf7522 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/c91032f431c349aa6ddd0a881cd61cb775bf7522/fsapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
430,
728,
12,
803,
16,
618,
273,
599,
16,
13793,
273,
599,
16,
1131,
5979,
273,
374,
16,
943,
5979,
273,
14605,
16,
4433,
273,
5378,
16,
2805,
7135,
273,
1083,
16,
2805,
4778,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
430,
728,
12,
803,
16,
618,
273,
599,
16,
13793,
273,
599,
16,
1131,
5979,
273,
374,
16,
943,
5979,
273,
14605,
16,
4433,
273,
5378,
16,
2805,
7135,
273,
1083,
16,
2805,
4778,
... |
raise GeneralProxyError((1,_generalerrors[1])) boundport = struct.unpack(">H",bytes(self.__recvall(2), 'utf8'))[0] self.__proxysockname = (boundaddr,boundport) | raise GeneralProxyError((1, _generalerrors[1])) boundport = struct.unpack(">H", bytes(self.__recvall(2), 'utf8'))[0] self.__proxysockname = boundaddr, boundport | def __negotiatesocks5(self,destaddr,destport): """__negotiatesocks5(self,destaddr,destport) Negotiates a connection through a SOCKS5 server. """ # First we'll send the authentication packages we support. if (self.__proxy[4]!=None) and (self.__proxy[5]!=None): # The username/password details were supplied to the # setpr... | 9c2eaf1c9f74544afe20a86fa591d97eeaa8921c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13138/9c2eaf1c9f74544afe20a86fa591d97eeaa8921c/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... |
self.pack_start(widgetutil.pad(self.expander, top=3, bottom=3, left=5)) | self.pack_start(self.display) | def show(self): if not self.shown: self.pack_start(widgetutil.pad(self.expander, top=3, bottom=3, left=5)) self.shown = True | 354c25acb7434cdc8edab97f5c38dfd1db571fdf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/354c25acb7434cdc8edab97f5c38dfd1db571fdf/feedview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
309,
486,
365,
18,
674,
995,
30,
365,
18,
2920,
67,
1937,
12,
2890,
18,
5417,
13,
365,
18,
674,
995,
273,
1053,
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,
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,
2405,
12,
2890,
4672,
309,
486,
365,
18,
674,
995,
30,
365,
18,
2920,
67,
1937,
12,
2890,
18,
5417,
13,
365,
18,
674,
995,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if resourceDescription.has_key(name): | if resourceDescription.has_key( 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,
... |
cmd = 'cd %s && pyrexc %s %s.pyx 1>log 2>err && cp %s.c %s '%(build_dir, pyrex_include, name, | if language == 'c++': target_c = target_c + "pp" cmd = 'cd %s && pyrexc %s %s.pyx 1>log 2>err && cp %s.c %s'%(build_dir, pyrex_include, name, | def pyrex(filename, verbose=False, compile_message=False, make_c_file_nice=False, use_cache=False): if filename[-5:] != '.spyx': print "File (=%s) must have extension .spyx"%filename base = os.path.split(os.path.splitext(filename)[0])[1] build_dir = '%s/%s'%(SPYX_TMP, base) if os.path.exists(build_dir): # There is al... | 4debbe82f9e9fc18b273b55503133f1d4ff8708a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/4debbe82f9e9fc18b273b55503133f1d4ff8708a/pyrex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
266,
92,
12,
3459,
16,
3988,
33,
8381,
16,
4074,
67,
2150,
33,
8381,
16,
1221,
67,
71,
67,
768,
67,
82,
1812,
33,
8381,
16,
999,
67,
2493,
33,
8381,
4672,
309,
1544,
18919,
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,
2395,
266,
92,
12,
3459,
16,
3988,
33,
8381,
16,
4074,
67,
2150,
33,
8381,
16,
1221,
67,
71,
67,
768,
67,
82,
1812,
33,
8381,
16,
999,
67,
2493,
33,
8381,
4672,
309,
1544,
18919,
2... |
self.fail(estr+'~'*60) def checkParse(self, epytext, debug=None): | self.fail(estr+'~'*70) def checkParse(self, epytext, xml=None): | def failIfParseError(self, errors, warnings): estr = '' if errors: estr += '\n'+'~'*60+'\nERRORS:\n' for e in errors: estr += '%s\n' % e if warnings: estr += '\n'+'~'*60+'\nWARNINGS:\n' for w in warnings: estr += '%s\n' % w if errors or warnings: self.fail(estr+'~'*60) | 1bf9a33460557ea6e40d8a5a22f69b20e446dccf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1bf9a33460557ea6e40d8a5a22f69b20e446dccf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
2047,
21004,
12,
2890,
16,
1334,
16,
5599,
4672,
5001,
313,
273,
875,
309,
1334,
30,
5001,
313,
1011,
2337,
82,
11,
6797,
20206,
14,
4848,
6797,
64,
82,
29127,
5581,
82,
11,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
2047,
21004,
12,
2890,
16,
1334,
16,
5599,
4672,
5001,
313,
273,
875,
309,
1334,
30,
5001,
313,
1011,
2337,
82,
11,
6797,
20206,
14,
4848,
6797,
64,
82,
29127,
5581,
82,
11,
364,... |
if cmd[0] == 'BACKGROUND': self._bkgrndcmds.append(cmd) if cmd[0] == 'ROWBACKGROUNDS': self._bkgrndcmds.append(cmd) if cmd[0] == 'COLBACKGROUNDS': | if cmd[0] in ('BACKGROUND','ROWBACKGROUNDS','COLBACKGROUNDS'): | def _addCommand(self,cmd): if cmd[0] == 'BACKGROUND': self._bkgrndcmds.append(cmd) if cmd[0] == 'ROWBACKGROUNDS': self._bkgrndcmds.append(cmd) if cmd[0] == 'COLBACKGROUNDS': self._bkgrndcmds.append(cmd) elif cmd[0] == 'SPAN': self._spanCmds.append(cmd) elif _isLineCommand(cmd): # we expect op, start, stop, weight, colo... | c737e00c2094bdec70ccc94c0255d57301b823a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/c737e00c2094bdec70ccc94c0255d57301b823a3/tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
2189,
12,
2890,
16,
4172,
4672,
309,
1797,
63,
20,
65,
316,
7707,
8720,
20166,
17023,
11226,
8720,
43,
1457,
2124,
3948,
17023,
4935,
8720,
43,
1457,
2124,
3948,
11,
4672,
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,
389,
1289,
2189,
12,
2890,
16,
4172,
4672,
309,
1797,
63,
20,
65,
316,
7707,
8720,
20166,
17023,
11226,
8720,
43,
1457,
2124,
3948,
17023,
4935,
8720,
43,
1457,
2124,
3948,
11,
4672,
365... |
fp = feedparser.parse(_feed.url) | fp = feedparser.parse(self._feed.url) | def check(self): """Retrieve and parse a feed""" #try: txt = None fp = feedparser.parse(_feed.url) | e2f7ba7d1a8213cea327f536b380614c026dd87b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2189/e2f7ba7d1a8213cea327f536b380614c026dd87b/feedchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
5767,
471,
1109,
279,
4746,
8395,
468,
698,
30,
6463,
273,
599,
4253,
273,
4746,
4288,
18,
2670,
24899,
7848,
18,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
12,
2890,
4672,
3536,
5767,
471,
1109,
279,
4746,
8395,
468,
698,
30,
6463,
273,
599,
4253,
273,
4746,
4288,
18,
2670,
24899,
7848,
18,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
self.listValues.setText("['%s']" % pValue.replace("'", "\'")) | self.listValues.setText("['%s']" % param_info.value.replace("'", "\'")) | def __init__(self, param_info, size, parent=None): """ QListInterpolationEditor(param_info: ParameterInfo, parent: QWidget) -> QListInterpolationEditor Construct an edit box with a button for bringing up the dialog """ QtGui.QWidget.__init__(self, parent) self._param_info = param_info self.type = param_info.type hLay... | a87a0abd5346926a4732ab58823e7470e7cff299 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/a87a0abd5346926a4732ab58823e7470e7cff299/paramexplore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
579,
67,
1376,
16,
963,
16,
982,
33,
7036,
4672,
3536,
2238,
682,
31516,
6946,
12,
891,
67,
1376,
30,
5498,
966,
16,
982,
30,
2238,
4609,
13,
317,
2238... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
67,
1376,
16,
963,
16,
982,
33,
7036,
4672,
3536,
2238,
682,
31516,
6946,
12,
891,
67,
1376,
30,
5498,
966,
16,
982,
30,
2238,
4609,
13,
317,
2238... |
return sum(getattr(stream.rtp, party).bytes + getattr(stream.rtcp, party).bytes for stream in set(sum(self.streams.items(), [])) if stream.media_type == media_type) | return sum(getattr(stream.rtp, party).bytes + getattr(stream.rtcp, party).bytes for stream in set(sum(self.streams.values(), [])) if stream.media_type == media_type) | def get_byte_count(self, media_type, party): return sum(getattr(stream.rtp, party).bytes + getattr(stream.rtcp, party).bytes for stream in set(sum(self.streams.items(), [])) if stream.media_type == media_type) | 4a572d53f49c3ece3ee4673ff877494995987f0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/4a572d53f49c3ece3ee4673ff877494995987f0a/mediacontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7229,
67,
1883,
12,
2890,
16,
3539,
67,
723,
16,
18285,
4672,
327,
2142,
12,
588,
1747,
12,
3256,
18,
3797,
84,
16,
18285,
2934,
3890,
397,
3869,
12,
3256,
18,
3797,
4057,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7229,
67,
1883,
12,
2890,
16,
3539,
67,
723,
16,
18285,
4672,
327,
2142,
12,
588,
1747,
12,
3256,
18,
3797,
84,
16,
18285,
2934,
3890,
397,
3869,
12,
3256,
18,
3797,
4057,
1... |
if __debug__: print "colorizing stopped" | if DEBUG: print "colorizing stopped" | def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0" | 4eac93808fdd8f20626f02a6a00d4c5b9809f2e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4eac93808fdd8f20626f02a6a00d4c5b9809f2e0/ColorDelegator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
3266,
554,
67,
5254,
12,
2890,
4672,
1024,
273,
315,
21,
18,
20,
6,
1323,
404,
30,
761,
273,
365,
18,
2692,
67,
82,
14523,
726,
2932,
6241,
3113,
1024,
13,
309,
486,
761,
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,
283,
3266,
554,
67,
5254,
12,
2890,
4672,
1024,
273,
315,
21,
18,
20,
6,
1323,
404,
30,
761,
273,
365,
18,
2692,
67,
82,
14523,
726,
2932,
6241,
3113,
1024,
13,
309,
486,
761,
30,
... |
self.syntax, self.__newSyntax = self.__newSyntax, self.syntax | if self.__oldSyntax is None: self.__oldSyntax = self.syntax self.syntax = self.__newSyntax | def writeCommit(self, name, val, idx, (acFun, acCtx)): # Commit new value self.syntax, self.__newSyntax = self.__newSyntax, self.syntax | eb9ed7cdc5a1dfd6cf877403e2575f77fd7f8a5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/587/eb9ed7cdc5a1dfd6cf877403e2575f77fd7f8a5b/SNMPv2-SMI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
5580,
12,
2890,
16,
508,
16,
1244,
16,
2067,
16,
261,
1077,
22783,
16,
1721,
6442,
3719,
30,
468,
10269,
394,
460,
309,
365,
16186,
1673,
8070,
353,
599,
30,
365,
16186,
1673,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
5580,
12,
2890,
16,
508,
16,
1244,
16,
2067,
16,
261,
1077,
22783,
16,
1721,
6442,
3719,
30,
468,
10269,
394,
460,
309,
365,
16186,
1673,
8070,
353,
599,
30,
365,
16186,
1673,
80... |
self.statusbar.set_property('visible', self.statusbar_show) self.statusbar2.set_property('visible', self.statusbar_show) | def __init__(self): | d58c579809d9403dea67a165875ccd600372f4f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d58c579809d9403dea67a165875ccd600372f4f3/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... | |
table.c.IPA == plainSyllable)) | table.c.IPA == plainEntity)) | def getExplicitTone(self, plainSyllable, baseTone): """ Gets the explicit tone for the given plain syllable and base tone. | 3393604da067ca36b1da468c96a925bae792aff6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/3393604da067ca36b1da468c96a925bae792aff6/operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
17186,
56,
476,
12,
2890,
16,
7351,
10876,
2906,
429,
16,
1026,
56,
476,
4672,
3536,
11881,
326,
5515,
30600,
364,
326,
864,
7351,
29136,
471,
1026,
30600,
18,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17186,
56,
476,
12,
2890,
16,
7351,
10876,
2906,
429,
16,
1026,
56,
476,
4672,
3536,
11881,
326,
5515,
30600,
364,
326,
864,
7351,
29136,
471,
1026,
30600,
18,
2,
-100,
-100,
-100,
... |
start_time = datetime.datetime.now() | def TimedRequest(self, type_string, record_string, timeout=None): """Make a DNS request, returning the reply and duration it took. | e6e6c3fada66a7e5bdd87bdf2cb59f6206791e4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/e6e6c3fada66a7e5bdd87bdf2cb59f6206791e4c/nameserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23925,
691,
12,
2890,
16,
618,
67,
1080,
16,
1409,
67,
1080,
16,
2021,
33,
7036,
4672,
3536,
6464,
279,
8858,
590,
16,
5785,
326,
4332,
471,
3734,
518,
23151,
18,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23925,
691,
12,
2890,
16,
618,
67,
1080,
16,
1409,
67,
1080,
16,
2021,
33,
7036,
4672,
3536,
6464,
279,
8858,
590,
16,
5785,
326,
4332,
471,
3734,
518,
23151,
18,
2,
-100,
-100,
-100,
... | |
if _debug: print "\tBASE: Called Scene.setSize()" | debugMsg("Called Scene.setSize()") self.xSize = xSize self.ySize = ySize | def setSize(self, xSize, ySize): """ Sets the size of the scene. | 5b925f9c58b9ac467cb78ab1a12d74b97d67bb43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/5b925f9c58b9ac467cb78ab1a12d74b97d67bb43/scene.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19106,
12,
2890,
16,
619,
1225,
16,
677,
1225,
4672,
3536,
11511,
326,
963,
434,
326,
9065,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19106,
12,
2890,
16,
619,
1225,
16,
677,
1225,
4672,
3536,
11511,
326,
963,
434,
326,
9065,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print 'Not Found', key | def write(self, cr, uid, ids, values, context=None): if not hasattr(ids, '__iter__'): ids = [ids] if ids == [uid]: for key in values.keys(): if not (key in self.SELF_WRITEABLE_FIELDS or key.startswith('context_')): print 'Not Found', key break else: if 'company_id' in values: if not (values['company_id'] in self.read(c... | d67028c59133327be66a8e58797cf0d183f6f8b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d67028c59133327be66a8e58797cf0d183f6f8b0/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
924,
16,
819,
33,
7036,
4672,
309,
486,
3859,
12,
2232,
16,
4940,
2165,
7250,
4672,
3258,
273,
306,
2232,
65,
309,
3258,
422,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
924,
16,
819,
33,
7036,
4672,
309,
486,
3859,
12,
2232,
16,
4940,
2165,
7250,
4672,
3258,
273,
306,
2232,
65,
309,
3258,
422,
306,
1... | |
else: | elif not self._fremantle_notification_visible: | def update_feed_cache_finish_callback(self, updated_urls=None, select_url_afterwards=None): self.db.commit() self.updating_feed_cache = False | 65ad3fc9a95b093d4de93f453638d949917399a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/65ad3fc9a95b093d4de93f453638d949917399a9/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7848,
67,
2493,
67,
13749,
67,
3394,
12,
2890,
16,
3526,
67,
10518,
33,
7036,
16,
2027,
67,
718,
67,
5205,
6397,
33,
7036,
4672,
365,
18,
1966,
18,
7371,
1435,
365,
18,
553... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7848,
67,
2493,
67,
13749,
67,
3394,
12,
2890,
16,
3526,
67,
10518,
33,
7036,
16,
2027,
67,
718,
67,
5205,
6397,
33,
7036,
4672,
365,
18,
1966,
18,
7371,
1435,
365,
18,
553... |
logger.debug("%s updating process_id %s" % (dn, known_proc[pid][0])) | logger.debug('"%s" updating process_id %s' % (dn, known_proc[pid][0])) | def insertdmt(self, arg): """ Insert LIGO_LW xml data from the DMT in the metadata database. For DMT inserts, we need to check for existing process_id and segment_definer_id rows and change the contents of the table to be inserted accordingly. We must also update the end_time of any existing entries in the process tabl... | 9c03b8727725604bb2268c5b999cbd572b832344 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/9c03b8727725604bb2268c5b999cbd572b832344/LDBDServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
72,
1010,
12,
2890,
16,
1501,
4672,
3536,
8040,
511,
3047,
51,
67,
48,
59,
2025,
501,
628,
326,
463,
6152,
316,
326,
1982,
2063,
18,
2457,
463,
6152,
15607,
16,
732,
1608,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
72,
1010,
12,
2890,
16,
1501,
4672,
3536,
8040,
511,
3047,
51,
67,
48,
59,
2025,
501,
628,
326,
463,
6152,
316,
326,
1982,
2063,
18,
2457,
463,
6152,
15607,
16,
732,
1608,
358,
... |
def set_entry_sensitivities(self,bool_val): self.entry_dict['start_line'].set_sensitive(bool_val) self.entry_dict['start_pix'].set_sensitive(bool_val) self.entry_dict['num_lines'].set_sensitive(bool_val) self.entry_dict['num_pix'].set_sensitive(bool_val) def show(self,*args): | def set_entry_sensitivities(self, bool_val): for entry in ('start_line','start_pix','num_lines','num_pix'): self.entry_dict[entry].set_sensitive(bool_val) def show(self, *args): | def set_entry_sensitivities(self,bool_val): self.entry_dict['start_line'].set_sensitive(bool_val) self.entry_dict['start_pix'].set_sensitive(bool_val) self.entry_dict['num_lines'].set_sensitive(bool_val) self.entry_dict['num_pix'].set_sensitive(bool_val) | 18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4099,
67,
87,
773,
305,
427,
1961,
12,
2890,
16,
6430,
67,
1125,
4672,
365,
18,
4099,
67,
1576,
3292,
1937,
67,
1369,
29489,
542,
67,
23481,
12,
6430,
67,
1125,
13,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4099,
67,
87,
773,
305,
427,
1961,
12,
2890,
16,
6430,
67,
1125,
4672,
365,
18,
4099,
67,
1576,
3292,
1937,
67,
1369,
29489,
542,
67,
23481,
12,
6430,
67,
1125,
13,
365,
18,... |
self.xml.write('<target name="%s">%s</target>' % (arg, self.args[arg])) | self.xml.write('<target name="%s">%s</target>' % (arg, arg)) | def __init__(self, parseResults): (self.options, self.args) = parseResults self.xml = StringIO.StringIO() self.xml.write('<pgbuild title="Command Line Options" root="invocation">') for option in self.options.__dict__: value = getattr(self.options, option) if value != None: self.xml.write('<option name="%s">' % option) ... | 065531a8057a4a11f941e208fc7886fef9f70f1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/065531a8057a4a11f941e208fc7886fef9f70f1f/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1109,
3447,
4672,
261,
2890,
18,
2116,
16,
365,
18,
1968,
13,
273,
1109,
3447,
365,
18,
2902,
273,
15777,
18,
780,
4294,
1435,
365,
18,
2902,
18,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1109,
3447,
4672,
261,
2890,
18,
2116,
16,
365,
18,
1968,
13,
273,
1109,
3447,
365,
18,
2902,
273,
15777,
18,
780,
4294,
1435,
365,
18,
2902,
18,
2626,
... |
x = 'x' * MAX_Py_ssize_t try: x = x + '?' except OverflowError: pass else: self.fail("should have raised OverflowError") try: x += '?' except OverflowError: pass else: self.fail("should have raised OverflowError") self.assertEquals(len(x), MAX_Py_ssize_t) | x = b"x" * (MAX_Py_ssize_t - 128) | def test_optimized_concat(self): x = 'x' * MAX_Py_ssize_t try: x = x + '?' # this statement uses a fast path in ceval.c except OverflowError: pass else: self.fail("should have raised OverflowError") try: x += '?' # this statement uses a fast path in ceval.c except OverflowError: pass else: self.fail("should ... | e6ee0a04dcf7433ae45ab48486d55272ed5fd3d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e6ee0a04dcf7433ae45ab48486d55272ed5fd3d0/test_bigaddrspace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16689,
1235,
67,
16426,
12,
2890,
4672,
619,
273,
296,
92,
11,
380,
4552,
67,
9413,
67,
1049,
554,
67,
88,
775,
30,
619,
273,
619,
397,
6787,
377,
468,
333,
3021,
4692,
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,
1842,
67,
16689,
1235,
67,
16426,
12,
2890,
4672,
619,
273,
296,
92,
11,
380,
4552,
67,
9413,
67,
1049,
554,
67,
88,
775,
30,
619,
273,
619,
397,
6787,
377,
468,
333,
3021,
4692,
279... |
hashkey = md5.new(newkey).hexdigest()[:16] | hashkey = md5_hash(newkey).hexdigest()[:16] | def get_key(self, key): """ get_key(key:str) -> str Returns the value for the key. Only the object that set the key is able to retrieve its value | 4e96ad7fcc4298adbb7fbc58853f370f0cd326f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/4e96ad7fcc4298adbb7fbc58853f370f0cd326f1/keychain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
12,
2890,
16,
498,
4672,
3536,
336,
67,
856,
12,
856,
30,
701,
13,
317,
609,
2860,
326,
460,
364,
326,
498,
18,
5098,
326,
733,
716,
444,
326,
498,
353,
7752,
358,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
12,
2890,
16,
498,
4672,
3536,
336,
67,
856,
12,
856,
30,
701,
13,
317,
609,
2860,
326,
460,
364,
326,
498,
18,
5098,
326,
733,
716,
444,
326,
498,
353,
7752,
358,
46... |
pwVSplitter = QSplitter(Qt.Vertical, pwHSplitter) | self.pwVSplitter = pwVSplitter = QSplitter(Qt.Vertical, pwHSplitter) pwVSplitter.setObjectName("pwVSplitter") | def __init__(self, assy, parent): QWidget.__init__(self, parent) self.parent = parent self.setWindowTitle("My Part Window") | 8d7c7165e6e2145cd67fbc36acef9a23963b9fbd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/8d7c7165e6e2145cd67fbc36acef9a23963b9fbd/Ui_PartWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1551,
93,
16,
982,
4672,
2238,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
2938,
273,
982,
365,
18,
542,
3829,
4247,
2932,
12062,
6393,
6076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
1551,
93,
16,
982,
4672,
2238,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
2938,
273,
982,
365,
18,
542,
3829,
4247,
2932,
12062,
6393,
6076,... |
err_type, err_msg = sys.exc_info()[1] | err_type, err_msg = sys.exc_info()[:2] | def _send(self,package,addendum=None): """addendum is either None, or a list of addendums <= in length to the number of workers """ if addendum: N = len(addendum) assert(N <= len(self.workers)) else: N = len(self.workers) self.send_exc = {} self.had_send_error = [] for i in range(N): try: if not addendum: self.workers... | 8c750fdeaf19e4ed95953ff790453cca4d7a40d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8c750fdeaf19e4ed95953ff790453cca4d7a40d7/cow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
12,
2890,
16,
5610,
16,
1289,
409,
379,
33,
7036,
4672,
3536,
1289,
409,
379,
353,
3344,
599,
16,
578,
279,
666,
434,
527,
409,
379,
87,
1648,
316,
769,
358,
326,
1300,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
12,
2890,
16,
5610,
16,
1289,
409,
379,
33,
7036,
4672,
3536,
1289,
409,
379,
353,
3344,
599,
16,
578,
279,
666,
434,
527,
409,
379,
87,
1648,
316,
769,
358,
326,
1300,
43... |
try: pos = self.stream.tell() except IOError, why: print self.baseFilename, self.maxBytes, self.stream raise | pos = self.stream.tell() | def doRollover(self): """ Do a rollover, as described in __init__(). """ if self.maxBytes <= 0: return | 044e66e65410b60c16156f03495cd0f62949f3c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13620/044e66e65410b60c16156f03495cd0f62949f3c8/loggers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
4984,
21896,
12,
2890,
4672,
3536,
2256,
279,
10643,
21896,
16,
487,
11893,
316,
1001,
2738,
972,
7675,
3536,
309,
365,
18,
1896,
2160,
1648,
374,
30,
327,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
4984,
21896,
12,
2890,
4672,
3536,
2256,
279,
10643,
21896,
16,
487,
11893,
316,
1001,
2738,
972,
7675,
3536,
309,
365,
18,
1896,
2160,
1648,
374,
30,
327,
2,
-100,
-100,
-100,
-100... |
if ord(resp[1])<=8: raise Socks5Error((ord(resp[1]),_socks5errors[ord(resp[1])])) else: raise Socks5Error((9,_socks5errors[9])) | if ord(resp[1]) <= 8: raise Socks5Error((ord(resp[1]), _socks5errors[ord(resp[1])])) else: raise Socks5Error((9, _socks5errors[9])) | def __negotiatesocks5(self,destaddr,destport): """__negotiatesocks5(self,destaddr,destport) Negotiates a connection through a SOCKS5 server. """ # First we'll send the authentication packages we support. if (self.__proxy[4]!=None) and (self.__proxy[5]!=None): # The username/password details were supplied to the # setpr... | 9c2eaf1c9f74544afe20a86fa591d97eeaa8921c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13138/9c2eaf1c9f74544afe20a86fa591d97eeaa8921c/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... |
-1 | (-1)^(1/3) | def _complex_double_(self, field): """ EXAMPLES: sage: CDF((-1)^(1/3)) 0.5 + 0.866025403784*I | c1086c770aec12945130886e7f41f404c512b438 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c1086c770aec12945130886e7f41f404c512b438/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14259,
67,
9056,
67,
12,
2890,
16,
652,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
31971,
12443,
17,
21,
13,
29020,
21,
19,
23,
3719,
374,
18,
25,
397,
374,
18,
5292,
4848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14259,
67,
9056,
67,
12,
2890,
16,
652,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
31971,
12443,
17,
21,
13,
29020,
21,
19,
23,
3719,
374,
18,
25,
397,
374,
18,
5292,
4848... |
"""Public method for the current mode object: | """Public method, meant to be called only on the current mode object: | def UpdateDashboard(self): # bruce 041124 """Public method for the current mode object: Make sure this mode's dashboard is updated before the processing of the current user event is finished. External code that might change things which some modes need to reflect in their dashboard should call this one or more times af... | 17ad7959a2f117ea2bb3905d8a13cd769fe81051 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/17ad7959a2f117ea2bb3905d8a13cd769fe81051/modes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
14830,
12,
2890,
4672,
468,
5186,
3965,
374,
9803,
24734,
3536,
4782,
707,
16,
20348,
358,
506,
2566,
1338,
603,
326,
783,
1965,
733,
30,
4344,
3071,
333,
1965,
1807,
11825,
353,
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,
2315,
14830,
12,
2890,
4672,
468,
5186,
3965,
374,
9803,
24734,
3536,
4782,
707,
16,
20348,
358,
506,
2566,
1338,
603,
326,
783,
1965,
733,
30,
4344,
3071,
333,
1965,
1807,
11825,
353,
3... |
group = self.widget.groupName | group = self.widget.groupName | def getDefault(self, instance): default = ObjectField.getDefault(self, instance) if default: return default group = self.widget.groupName # we might get a Role here! try: translator = IGenericGroupTranslation(instance) except: # XXX whats the exact name of it? ComponentLookupException? pass else: group = translator.con... | f97c932366dd2f85877821051f15d07ec66a5d59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12090/f97c932366dd2f85877821051f15d07ec66a5d59/UserField.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4829,
12,
2890,
16,
791,
4672,
805,
273,
1033,
974,
18,
588,
1868,
12,
2890,
16,
791,
13,
309,
805,
30,
327,
805,
1041,
273,
365,
18,
6587,
18,
1655,
461,
468,
732,
4825,
336,
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,
4829,
12,
2890,
16,
791,
4672,
805,
273,
1033,
974,
18,
588,
1868,
12,
2890,
16,
791,
13,
309,
805,
30,
327,
805,
1041,
273,
365,
18,
6587,
18,
1655,
461,
468,
732,
4825,
336,
279,
... |
indent_level=indent_level+1)) | indent_level=indent_level+1)) | def getLocalFieldSpecs(self, element, indent_level=0): """aggregates the different field specifications.""" field_specs = [] aggregatedClasses = [] | aaa8dd12feab69fa4c32c6edec55ff12239613d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11941/aaa8dd12feab69fa4c32c6edec55ff12239613d8/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6993,
974,
15999,
12,
2890,
16,
930,
16,
3504,
67,
2815,
33,
20,
4672,
3536,
10751,
815,
326,
3775,
652,
21950,
12123,
652,
67,
15115,
273,
5378,
16165,
4818,
273,
5378,
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,
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,
6993,
974,
15999,
12,
2890,
16,
930,
16,
3504,
67,
2815,
33,
20,
4672,
3536,
10751,
815,
326,
3775,
652,
21950,
12123,
652,
67,
15115,
273,
5378,
16165,
4818,
273,
5378,
2,
-100,
-100,
... |
sys.exc_info()[0] and sys.exc_info()[1]. The return value is a list of | sys.last_type and sys.last_value. The return value is a list of | def format_exception_only(etype, value): """Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.exc_info()[0] and sys.exc_info()[1]. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for Synt... | b260f3b2fb1e0e4049a43c074f96d7a6c2d4e78a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/b260f3b2fb1e0e4049a43c074f96d7a6c2d4e78a/traceback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,... |
sizer_panel.Add(self.TextCtrlOwn, 0, wx.EXPAND, 0) | sizer_panel.Add(self.TextCtrlOwn, -1, wx.EXPAND, 0) | def __do_layout(self): sizer_panel = wx.BoxSizer(wx.VERTICAL) sizer_panel.Add(self.lblText1, 0, wx.EXPAND, 0) sizer_panel.Add(self.TextCtrlOwn, 0, wx.EXPAND, 0) sizer_panel.Add(self.lblText2, 0, wx.EXPAND, 0) sizer_panel.Add(self.TextCtrl, 0, wx.EXPAND, 0) sizer_panel.Add(self.btnSubmit, 0, wx.EXPAND, 0) sizer_panel.Ad... | 3a934dbb68efe55cb1af26802544a92d1b61b968 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/808/3a934dbb68efe55cb1af26802544a92d1b61b968/bugreport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2896,
67,
6741,
12,
2890,
4672,
272,
1824,
67,
13916,
273,
7075,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
272,
1824,
67,
13916,
18,
986,
12,
2890,
18,
31885,
1528,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
6741,
12,
2890,
4672,
272,
1824,
67,
13916,
273,
7075,
18,
3514,
20512,
12,
27226,
18,
21654,
10109,
13,
272,
1824,
67,
13916,
18,
986,
12,
2890,
18,
31885,
1528,
21,
1... |
option = fromstring('<%s-option/>' % dic['type']) | option = fromstring('<%s-option name="%s"/>' % (dic.pop('type'), name)) | def __fromUCIProcess (self, subprocess): ids = subprocess.ids options = subprocess.options engine = fromstring('<engine><meta/><options/></engine>') meta = engine.find('meta') if "name" in ids: meta.append(fromstring('<name>%s</name>' % ids['name'])) if 'author' in ids: meta.append(fromstring('<author>%s</author>' % i... | 161075e7ea4bcdc8387b3f511ade9d9e406c82f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/161075e7ea4bcdc8387b3f511ade9d9e406c82f8/engineNest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2080,
57,
7266,
2227,
261,
2890,
16,
6652,
4672,
3258,
273,
6652,
18,
2232,
702,
273,
6652,
18,
2116,
4073,
273,
21376,
2668,
32,
8944,
4438,
3901,
19,
4438,
2116,
19,
4695,
8944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2080,
57,
7266,
2227,
261,
2890,
16,
6652,
4672,
3258,
273,
6652,
18,
2232,
702,
273,
6652,
18,
2116,
4073,
273,
21376,
2668,
32,
8944,
4438,
3901,
19,
4438,
2116,
19,
4695,
8944,
... |
self.register = template.get_library("apps.webui.templatetags.webui") | self.register = template.get_library("apps.webui.templatetags.webui_tags") | def __init__(self, position, user): self.position = position self.user = template.Variable(user) self.register = template.get_library("apps.webui.templatetags.webui") self.possible_tags = [] | 842b0cb20d09147b9418934e65027fb9f2c58059 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/842b0cb20d09147b9418934e65027fb9f2c58059/webui_tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1754,
16,
729,
4672,
365,
18,
3276,
273,
1754,
365,
18,
1355,
273,
1542,
18,
3092,
12,
1355,
13,
365,
18,
4861,
273,
1542,
18,
588,
67,
12083,
2932,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1754,
16,
729,
4672,
365,
18,
3276,
273,
1754,
365,
18,
1355,
273,
1542,
18,
3092,
12,
1355,
13,
365,
18,
4861,
273,
1542,
18,
588,
67,
12083,
2932,
11... |
defaultFeedURLs = [u'http://feeds.feedburner.com/miroguide/featured', u'http://feeds.feedburner.com/miroguide/toprated', u'http://feeds.feedburner.com/miroguide/new', u'http://feeds.feedburner.com/miroguide/popular', | defaultFeedURLs.extend([ (u'http://feeds.miroguide.com/miroguide/featured', True), (u'http://feeds.miroguide.com/miroguide/toprated', False), (u'http://feeds.miroguide.com/miroguide/new', True), (u'http://feeds.miroguide.com/miroguide/popular', False), | def _installDefaultFeeds(self): initialFeeds = resources.path("initial-feeds.democracy") if os.path.exists(initialFeeds): type, urls = subscription.parseFile(initialFeeds) if urls is not None and type == 'rss': for url in urls: feed.Feed(url, initiallyAutoDownloadable=False) dialog = dialogs.MessageBoxDialog(_("Custom ... | 56d395ce22b61f3616779c5840904b7d450fc9e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/56d395ce22b61f3616779c5840904b7d450fc9e4/theme.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
1868,
8141,
87,
12,
2890,
4672,
2172,
8141,
87,
273,
2703,
18,
803,
2932,
6769,
17,
7848,
87,
18,
19117,
504,
354,
2431,
7923,
309,
1140,
18,
803,
18,
1808,
12,
6769,
8141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5425,
1868,
8141,
87,
12,
2890,
4672,
2172,
8141,
87,
273,
2703,
18,
803,
2932,
6769,
17,
7848,
87,
18,
19117,
504,
354,
2431,
7923,
309,
1140,
18,
803,
18,
1808,
12,
6769,
8141,
... |
cmd = "SELECT messageTime FROM MessageRepository WHERE messageTime < '%s'" %limitDate | cmd = "SELECT count(*) FROM MessageRepository WHERE messageTime < '%s'" %limitDate | def execute(self): """ The main agent execution method """ limitDate = self.period[:self.period.find('.')] | a636f33c7e63ff1107edca45cb40e5654cb159c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/a636f33c7e63ff1107edca45cb40e5654cb159c9/SystemLoggingDBCleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
1800,
1626,
273,
365,
18,
6908,
10531,
2890,
18,
6908,
18,
4720,
2668,
1093,
25887,
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,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
1800,
1626,
273,
365,
18,
6908,
10531,
2890,
18,
6908,
18,
4720,
2668,
1093,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
See the above docstring for dwt for further details. | INPUT: other -- the wavelet_type: the name of the type of wavelet, valid choices are: 'daubechies','daubechies_centered', 'haar' (default),'haar_centered', 'bspline', and 'bspline_centered'. wavelet_k -- For daubechies wavelets, wavelet_k specifies a daubechie wavelet with k/2 vanishing moments. k = 4,6,...,20 for ... | def idwt(self,other="haar",wavelet_k=2): """ Implements the gsl WaveletTransform.backward in dwt.pyx. other must be an element of {"haar", "daubechies", "daubechies_centered", "haar_centered", "bspline", "bspline_centered"}. Assumes the length of the sample is a power of 2. Uses the GSL function gsl_wavelet_transform_b... | 5d0c7d543a1b24ac0a1d29ac68884870541a3a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d0c7d543a1b24ac0a1d29ac68884870541a3a98/dft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
6046,
12,
2890,
16,
3011,
1546,
3395,
297,
3113,
24801,
808,
67,
79,
33,
22,
4672,
3536,
29704,
326,
314,
2069,
678,
842,
808,
4059,
18,
29275,
316,
302,
6046,
18,
2074,
92,
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,
612,
6046,
12,
2890,
16,
3011,
1546,
3395,
297,
3113,
24801,
808,
67,
79,
33,
22,
4672,
3536,
29704,
326,
314,
2069,
678,
842,
808,
4059,
18,
29275,
316,
302,
6046,
18,
2074,
92,
18,
... |
transformer2 = PythonTransformer() | def _check_tuples_equality(pypy_tuples, python_tuples, testname): # compare the two tuples by transforming them into AST, to hide irrelevant # differences -- typically newlines at the end of the tree. print 'Comparing the ASTs of', testname transformer1 = PyPyTransformer() transformer2 = PythonTransformer() ast_pypy ... | 2b4020485a2429d7bfdaeee1a0c6567f0f02ba40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/2b4020485a2429d7bfdaeee1a0c6567f0f02ba40/test_samples.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
17705,
67,
9729,
560,
12,
22680,
93,
67,
17705,
16,
5790,
67,
17705,
16,
1842,
529,
4672,
468,
3400,
326,
2795,
10384,
635,
27734,
2182,
1368,
9183,
16,
358,
6853,
9482,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
17705,
67,
9729,
560,
12,
22680,
93,
67,
17705,
16,
5790,
67,
17705,
16,
1842,
529,
4672,
468,
3400,
326,
2795,
10384,
635,
27734,
2182,
1368,
9183,
16,
358,
6853,
9482,
... | |
source, _, _ = hg.parseurl(ui.expandpath("default"), None) | source = hg.parseurl(ui.expandpath("default"), None)[0] | def getremote(ui, repo, opts): # save $http_proxy; creating the HTTP repo object will # delete it in an attempt to "help" proxy = os.environ.get('http_proxy') source, _, _ = hg.parseurl(ui.expandpath("default"), None) other = hg.repository(cmdutil.remoteui(repo, opts), source) if proxy is not None: os.environ['http_pro... | e88b1a6614b8d16de3cc4d8a9d7528f5282672d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3284/e88b1a6614b8d16de3cc4d8a9d7528f5282672d8/codereview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
7222,
12,
4881,
16,
3538,
16,
1500,
4672,
468,
1923,
271,
2505,
67,
5656,
31,
4979,
326,
2239,
3538,
733,
903,
468,
1430,
518,
316,
392,
4395,
358,
315,
5201,
6,
2889,
273,
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,
336,
7222,
12,
4881,
16,
3538,
16,
1500,
4672,
468,
1923,
271,
2505,
67,
5656,
31,
4979,
326,
2239,
3538,
733,
903,
468,
1430,
518,
316,
392,
4395,
358,
315,
5201,
6,
2889,
273,
1140,
... |
query.bindValue(':id', QVariant(self.gameid)) | query.bindValue(':id', QVariant(gameid)) | def rotateWinds(self): """surprise: rotates the winds""" self.rotated += 1 if self.rotated == 4: if self.roundsFinished < 4: self.roundsFinished += 1 self.rotated = 0 if self.gameOver(): endtime = datetime.datetime.now().replace(microsecond=0).isoformat() query = QSqlQuery(self.dbhandle) query.prepare('UPDATE game set ... | 930a07a020edc7684025ce4b415bad7209a719a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/930a07a020edc7684025ce4b415bad7209a719a1/playfield.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
59,
15882,
12,
2890,
4672,
3536,
10050,
12113,
30,
4168,
815,
326,
341,
15882,
8395,
365,
18,
8342,
690,
1011,
404,
309,
365,
18,
8342,
690,
422,
1059,
30,
309,
365,
18,
27950,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
59,
15882,
12,
2890,
4672,
3536,
10050,
12113,
30,
4168,
815,
326,
341,
15882,
8395,
365,
18,
8342,
690,
1011,
404,
309,
365,
18,
8342,
690,
422,
1059,
30,
309,
365,
18,
27950,
1... |
self._element.parseXML(self._c) | self._element.parseXML(self._c.encode('ascii')) | def end(self): self._element = SimData.SimDate() self._element.parseXML(self._c) | 6e5a4f2b64c4209f9416439d852eeefd954c7125 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14747/6e5a4f2b64c4209f9416439d852eeefd954c7125/Parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
4672,
365,
6315,
2956,
273,
9587,
751,
18,
7993,
1626,
1435,
365,
6315,
2956,
18,
2670,
4201,
12,
2890,
6315,
71,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
679,
12,
2890,
4672,
365,
6315,
2956,
273,
9587,
751,
18,
7993,
1626,
1435,
365,
6315,
2956,
18,
2670,
4201,
12,
2890,
6315,
71,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tixlib = os.environ.get('TIX_LIBRARY') if tixlib is not None: self.tk.eval('global auto_path; lappend auto_path {%s}' % tixlib) self.tk.eval('global tcl_pkgPath; lappend tcl_pkgPath {%s}' % tixlib) | tixlib = os.environ.get('TIX_LIBRARY') if tixlib is not None: self.tk.eval('global auto_path; lappend auto_path {%s}' % tixlib) self.tk.eval('global tcl_pkgPath; lappend tcl_pkgPath {%s}' % tixlib) | def __init__(self, screenName=None, baseName=None, className='Tk'): Tkinter.Tk.__init__(self, screenName, baseName, className) | 86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5518,
461,
33,
7036,
16,
16162,
33,
7036,
16,
2658,
2218,
56,
79,
11,
4672,
399,
79,
2761,
18,
56,
79,
16186,
2738,
972,
12,
2890,
16,
5518,
461,
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,
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,
5518,
461,
33,
7036,
16,
16162,
33,
7036,
16,
2658,
2218,
56,
79,
11,
4672,
399,
79,
2761,
18,
56,
79,
16186,
2738,
972,
12,
2890,
16,
5518,
461,
16,
... |
[random.uniform(0,360) for i in xrange(3)]).elems | [random.uniform(0,360) for i in xrange(3)], deg=True).elems | def random_rotate_ellipsoid(u_cart): c = scitbx.math.euler_angles_as_matrix( [random.uniform(0,360) for i in xrange(3)]).elems return c_u_c_transpose(c, u_cart) | 404bb3242d5707e9e78135090b57887f95ceddc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/404bb3242d5707e9e78135090b57887f95ceddc7/adptbx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
20342,
67,
292,
11693,
839,
12,
89,
67,
11848,
4672,
276,
273,
888,
305,
70,
92,
18,
15949,
18,
73,
17040,
67,
12356,
67,
345,
67,
5667,
12,
306,
9188,
18,
24120,
12,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
20342,
67,
292,
11693,
839,
12,
89,
67,
11848,
4672,
276,
273,
888,
305,
70,
92,
18,
15949,
18,
73,
17040,
67,
12356,
67,
345,
67,
5667,
12,
306,
9188,
18,
24120,
12,
20,
... |
ContainerRef.BaseRef = ContainerRef(indirection=Indirection(evalStr='simbase.__dict__')) self._nameContainer(simbase.__dict__, ContainerRef.BaseRef) self._curObjRef = ContainerRef() | self._baseObjRef = ContainerRef(Indirection(evalStr='simbase.__dict__')) self._nameContainer(simbase.__dict__, self._baseObjRef) if config.GetBool('leak-container', 0): _createContainerLeak() self._curObjRef = self._baseObjRef | def __init__(self, name, firstCheckDelay = None): Job.__init__(self, name) self._serialNum = serialNum() self._priority = (Job.Priorities.Low + Job.Priorities.Normal) / 2 self._checkContainersJob = None # run first check after one hour if firstCheckDelay is None: firstCheckDelay = 60. * 15. self._nextCheckDelay = first... | bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1122,
1564,
6763,
273,
599,
4672,
3956,
16186,
2738,
972,
12,
2890,
16,
508,
13,
365,
6315,
8818,
2578,
273,
2734,
2578,
1435,
365,
6315,
8457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
16,
1122,
1564,
6763,
273,
599,
4672,
3956,
16186,
2738,
972,
12,
2890,
16,
508,
13,
365,
6315,
8818,
2578,
273,
2734,
2578,
1435,
365,
6315,
8457,
... |
coverpath = os.path.join(dirname, fndir) if "." in modulename: finalname = modulename.split(".")[-1] listfilename = os.path.join(coverpath, finalname + ".cover") | modulename = None self._calledfuncs[(filename, modulename, funcname,)] = 1 def globaltrace_lt(self, frame, why, arg): """ Handles `call' events (why == 'call') and if the code block being entered is to be ignored then it returns `None', else it returns `self.localtrace'. """ if why == 'call': (filename, lineno, funcna... | def create_results_log(results, dirname = ".", show_missing = 1, save_counts = 0, summary = 0, coverdir = None): import re # turn the counts data ("(filename, lineno) = count") into something # accessible on a per-file basis per_file = {} for filename, lineno in results.counts.keys(): lines_hit = per_file[filename] = p... | dc6ad8d207ed136b6b1c7c8a4e6aa0c126e7bc61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dc6ad8d207ed136b6b1c7c8a4e6aa0c126e7bc61/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4717,
67,
1330,
12,
4717,
16,
4283,
273,
4585,
16,
2405,
67,
7337,
273,
404,
16,
1923,
67,
8008,
273,
374,
16,
4916,
273,
374,
16,
5590,
1214,
273,
599,
4672,
1930,
283,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4717,
67,
1330,
12,
4717,
16,
4283,
273,
4585,
16,
2405,
67,
7337,
273,
404,
16,
1923,
67,
8008,
273,
374,
16,
4916,
273,
374,
16,
5590,
1214,
273,
599,
4672,
1930,
283,
468... |
self._description = self._xmldoc._xpatheval('//fmiModelDescription/@description')[0] | try: self._description = self._xmldoc._xpatheval('//fmiModelDescription/@description')[0] except IndexError: self._description = '' | def _load_xml(self): """ Loads the XML information. """ self._xmldoc = jmodelica.xmlparser.XMLDoc(self._tempdir+os.sep+self._tempxml) self._nContinuousStates = int(self._xmldoc._xpatheval('//fmiModelDescription/@numberOfContinuousStates')[0]) self._nEventIndicators = int(self._xmldoc._xpatheval('//fmiModelDescription/... | 3dd5da86a1b141eb432677907f6a34c96e5144ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/3dd5da86a1b141eb432677907f6a34c96e5144ef/fmi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2902,
12,
2890,
4672,
3536,
4444,
87,
326,
3167,
1779,
18,
3536,
365,
6315,
2902,
2434,
273,
525,
2284,
26433,
18,
2902,
4288,
18,
4201,
1759,
12,
2890,
6315,
5814,
1214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
67,
2902,
12,
2890,
4672,
3536,
4444,
87,
326,
3167,
1779,
18,
3536,
365,
6315,
2902,
2434,
273,
525,
2284,
26433,
18,
2902,
4288,
18,
4201,
1759,
12,
2890,
6315,
5814,
1214,
... |
pre, ext = os.path.splitext(name) pre = os.path.basename(pre) if ext == ".tbz2": ext = ".tar" if ext == ".bz2": ext = "" tarname = pre + ext | def bz2open(cls, name, mode="r", fileobj=None, compresslevel=9): """Open bzip2 compressed tar archive name for reading or writing. Appending is not allowed. """ if len(mode) > 1 or mode not in "rw": raise ValueError, "mode must be 'r' or 'w'." | 9b850531089902aff19bef8039dcf1d70a67da80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9b850531089902aff19bef8039dcf1d70a67da80/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24788,
22,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
324,
4450,
22,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
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,
24788,
22,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
324,
4450,
22,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
18,... | |
"AND ROWNUM < 1000") | "AND ROWNUM < 50000") | def main(): """ Main execution. """ # Begin timing execution starttime = time.time() # Check that RNAhybrid exists, and is executable assert(os.path.exists(RNAHYBRID_PATH) and os.access(RNAHYBRID_PATH, os.X_OK)) usage = "usage: %prog [OPTIONS]" parser = OptionParser(usage) # General settings #parser.add_option("-s"... | 41561c4d5008b6e6d8df360341af56d59d8a3e62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12607/41561c4d5008b6e6d8df360341af56d59d8a3e62/scan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
12740,
4588,
18,
3536,
225,
468,
14323,
15538,
4588,
23437,
273,
813,
18,
957,
1435,
225,
468,
2073,
716,
534,
11277,
18112,
14400,
1704,
16,
471,
353,
9070,
1815,
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,
2774,
13332,
3536,
12740,
4588,
18,
3536,
225,
468,
14323,
15538,
4588,
23437,
273,
813,
18,
957,
1435,
225,
468,
2073,
716,
534,
11277,
18112,
14400,
1704,
16,
471,
353,
9070,
1815,
12,
... |
Return an iterator over the vertices. Allows 'for v in G'. | Return an iterator over the vertices which allows \code{for v in G} syntax. | def __iter__(self): """ Return an iterator over the vertices. Allows 'for v in G'. | a520fa15cff86fbbd1335f8b6f9d36203c74d574 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a520fa15cff86fbbd1335f8b6f9d36203c74d574/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2000,
392,
2775,
1879,
326,
6928,
18,
25619,
296,
1884,
331,
316,
611,
10332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2165,
972,
12,
2890,
4672,
3536,
2000,
392,
2775,
1879,
326,
6928,
18,
25619,
296,
1884,
331,
316,
611,
10332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for arg in args[:-1]: print arg, print args[-1] | if self.logger is not None: record = " ".join(map(str, args)) self.logger.debug(record) else: for arg in args[:-1]: print arg, print args[-1] | def _trace_(self, *args): for arg in args[:-1]: print arg, print args[-1] | 2e6cb41223eccdeebbaa9a93a22b0d7528d0621a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/2e6cb41223eccdeebbaa9a93a22b0d7528d0621a/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5129,
67,
12,
2890,
16,
380,
1968,
4672,
364,
1501,
316,
833,
10531,
17,
21,
14542,
1172,
1501,
16,
1172,
833,
18919,
21,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
5129,
67,
12,
2890,
16,
380,
1968,
4672,
364,
1501,
316,
833,
10531,
17,
21,
14542,
1172,
1501,
16,
1172,
833,
18919,
21,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
f = open(self.filename) | f = open(self.filename, "rb") | def testModeU(self): # Bug #1194181: bz2.BZ2File opened for write with mode "U" self.createTempFile() bz2f = BZ2File(self.filename, "U") bz2f.close() f = open(self.filename) f.seek(0, 2) self.assertEqual(f.tell(), len(self.DATA)) f.close() | 933520b5bae4727bf22c00fee9face3515bf95b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/933520b5bae4727bf22c00fee9face3515bf95b6/test_bz2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2309,
57,
12,
2890,
4672,
468,
16907,
468,
2499,
11290,
2643,
21,
30,
24788,
22,
18,
38,
62,
22,
812,
10191,
364,
1045,
598,
1965,
315,
57,
6,
365,
18,
2640,
20181,
1435,
24788,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2309,
57,
12,
2890,
4672,
468,
16907,
468,
2499,
11290,
2643,
21,
30,
24788,
22,
18,
38,
62,
22,
812,
10191,
364,
1045,
598,
1965,
315,
57,
6,
365,
18,
2640,
20181,
1435,
24788,
... |
order = dict([(key[6:], req.args.get(key)) for key | order = dict([(str(int(key[6:])), str(int(req.args.get(key)))) for key | def _render_admin_panel(self, req, cat, page, path_info): req.perm.require('TICKET_ADMIN') data = {'label_singular': self._label[0], 'label_plural': self._label[1]} | fe9629a20ce63f2d8eb40040d77dcbdf4df9aa93 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/fe9629a20ce63f2d8eb40040d77dcbdf4df9aa93/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
1111,
18,
12160,
18,
6528,
2668,
56,
16656,
1584,
67,
15468,
6134,
501,
273,
13666,
192... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5902,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
1111,
18,
12160,
18,
6528,
2668,
56,
16656,
1584,
67,
15468,
6134,
501,
273,
13666,
192... |
self.proc = subprocess.Popen(sys.executable, stdout=devnull, | self.proc = subprocess.Popen(PYTHON, stdout=devnull, | def test_pid(self): devnull = open(os.devnull, 'r+') self.proc = subprocess.Popen(sys.executable, stdout=devnull, stderr=devnull) self.assertEqual(psutil.Process(self.proc.pid).pid, self.proc.pid) | 847d3cb18d5e0c74ad4f89a7562596550b05165c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7296/847d3cb18d5e0c74ad4f89a7562596550b05165c/test_psutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6610,
12,
2890,
4672,
4461,
2011,
273,
1696,
12,
538,
18,
5206,
2011,
16,
296,
86,
15,
6134,
365,
18,
9381,
273,
6652,
18,
52,
3190,
12,
16235,
20131,
16,
3909,
33,
5206,
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,
1842,
67,
6610,
12,
2890,
4672,
4461,
2011,
273,
1696,
12,
538,
18,
5206,
2011,
16,
296,
86,
15,
6134,
365,
18,
9381,
273,
6652,
18,
52,
3190,
12,
16235,
20131,
16,
3909,
33,
5206,
2... |
os.umask(0277) | os.umask(0177) | def start (parent_exit=1): """start a daemon using the appropriate pidfile""" # already running? if os.path.exists(pidfile): return _("""WebCleaner already started (lock file found). | 61203718a6a0b629f703f0d83b0a716fbffc69fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/61203718a6a0b629f703f0d83b0a716fbffc69fa/_posix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
261,
2938,
67,
8593,
33,
21,
4672,
3536,
1937,
279,
8131,
1450,
326,
5505,
27656,
8395,
468,
1818,
3549,
35,
309,
1140,
18,
803,
18,
1808,
12,
6610,
768,
4672,
327,
389,
2932,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
261,
2938,
67,
8593,
33,
21,
4672,
3536,
1937,
279,
8131,
1450,
326,
5505,
27656,
8395,
468,
1818,
3549,
35,
309,
1140,
18,
803,
18,
1808,
12,
6610,
768,
4672,
327,
389,
2932,
366... |
return self.result(deps_results = build_deps) | result = self.result(deps_results = build_deps) result.sort(key=abspath_key) result = self.env.Alias ('build-' + self.full_name, result) return result | def build (self, build_deps=True): """Returns the SCons targets for this project. | f3a6c89f11d506abdf34f3333daaa486c7eff01a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/f3a6c89f11d506abdf34f3333daaa486c7eff01a/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
261,
2890,
16,
1361,
67,
14877,
33,
5510,
4672,
3536,
1356,
326,
20487,
5774,
364,
333,
1984,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1361,
261,
2890,
16,
1361,
67,
14877,
33,
5510,
4672,
3536,
1356,
326,
20487,
5774,
364,
333,
1984,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
and not (log_mode == 'path_history' and old_path == normpath): | and not (mode == 'path_history' and old_path == normpath): | def history(limit): for h in repos.get_path_history(path, rev, limit): yield h | 234d1cbd40911d7fa7755656880ea911f8f1d19a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/234d1cbd40911d7fa7755656880ea911f8f1d19a/Browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
12,
3595,
4672,
364,
366,
316,
13686,
18,
588,
67,
803,
67,
8189,
12,
803,
16,
5588,
16,
1800,
4672,
2824,
366,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
4927,
12,
3595,
4672,
364,
366,
316,
13686,
18,
588,
67,
803,
67,
8189,
12,
803,
16,
5588,
16,
1800,
4672,
2824,
366,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
class BuildExt(build_ext): def build_extension(self, ext): if hasattr(ext, 'generate'): ext.generate() build_ext.build_extension(self, ext) def list_files(dir): """List all files in a dir, with filename match support: for example: glade/*.glade will return all files in the glade directory that matches *.glade. It als... | def generate(self): map(lambda x: x.generate(), self.templates) | 0ec6ea37b32dc9a588fe91593108a3dd8a53d4a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8659/0ec6ea37b32dc9a588fe91593108a3dd8a53d4a9/dsextras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
852,
12,
14661,
619,
30,
619,
18,
7163,
9334,
365,
18,
8502,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
852,
12,
14661,
619,
30,
619,
18,
7163,
9334,
365,
18,
8502,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.add_var_opt('type',name.replace("ANALYSEQSCAN.PY","WPIPELINE").upper()) self.add_var_opt('short-type',job.name_for_background.replace("ANALYSEQSCAN.PY","WPIPELINE").upper()+'_') | self.add_var_opt('type',name.upper().replace("ANALYSEQSCAN.PY","WPIPELINE")) self.add_var_opt('short-type',job.name_for_background.upper().replace("ANALYSEQSCAN.PY","WPIPELINE")+'_') | def __init__(self, dag, job, cp, opts, time, ifo): | c2d982f288996cb15812f42aa49026968cae6046 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/c2d982f288996cb15812f42aa49026968cae6046/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
813,
16,
21479,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
813,
16,
21479,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
raise BaseException ("target '%s' has no type" % str (t)) | get_manager().errors()("target '%s' has no type" % str (t)) | def __ensure_type (targets): """ Ensures all 'targets' have types. If this is not so, exists with error. """ for t in targets: if not t.type (): raise BaseException ("target '%s' has no type" % str (t)) | 67f9726cf1dd4376f140a8895dca69250ac63e8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/67f9726cf1dd4376f140a8895dca69250ac63e8a/generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
15735,
67,
723,
261,
11358,
4672,
3536,
1374,
8421,
777,
296,
11358,
11,
1240,
1953,
18,
971,
333,
353,
486,
1427,
16,
1704,
598,
555,
18,
3536,
364,
268,
316,
5774,
30,
309,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15735,
67,
723,
261,
11358,
4672,
3536,
1374,
8421,
777,
296,
11358,
11,
1240,
1953,
18,
971,
333,
353,
486,
1427,
16,
1704,
598,
555,
18,
3536,
364,
268,
316,
5774,
30,
309,
486... |
if not self.tabspanel.closeAll(exit=1)== tkext.Cancel: | if not self.tabspanel.closeAll(exit=1) == tkext.Cancel: | def Exit(self): if not self.tabspanel.closeAll(exit=1)== tkext.Cancel: self.commands = None self.application.Exit() | 5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9500,
12,
2890,
4672,
309,
486,
365,
18,
7032,
3969,
292,
18,
4412,
1595,
12,
8593,
33,
21,
13,
422,
13030,
408,
18,
6691,
30,
365,
18,
7847,
273,
599,
365,
18,
3685,
18,
6767,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9500,
12,
2890,
4672,
309,
486,
365,
18,
7032,
3969,
292,
18,
4412,
1595,
12,
8593,
33,
21,
13,
422,
13030,
408,
18,
6691,
30,
365,
18,
7847,
273,
599,
365,
18,
3685,
18,
6767,
1435,... |
elif data == u"'" or data == u'"' or data == u"=": | elif data in (u"'", u'"', u"=", u"<"): | def beforeAttributeNameState(self): data = self.stream.char() if data in spaceCharacters: self.stream.charsUntil(spaceCharacters, True) elif data in asciiLetters: self.currentToken["data"].append([data, ""]) self.state = self.attributeNameState elif data == u">": self.emitCurrentToken() elif data == u"/": self.state = ... | be62c7037a00f8c8c821016206a8e46b95198ce7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10463/be62c7037a00f8c8c821016206a8e46b95198ce7/tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
19240,
1119,
12,
2890,
4672,
501,
273,
365,
18,
3256,
18,
3001,
1435,
309,
501,
316,
3476,
11600,
30,
365,
18,
3256,
18,
7549,
9716,
12,
2981,
11600,
16,
1053,
13,
1327,
501,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
19240,
1119,
12,
2890,
4672,
501,
273,
365,
18,
3256,
18,
3001,
1435,
309,
501,
316,
3476,
11600,
30,
365,
18,
3256,
18,
7549,
9716,
12,
2981,
11600,
16,
1053,
13,
1327,
501,
316... |
master = _default_root if not master and cnf.has_key('refwindow'): master=cnf['refwindow'] elif not master and kw.has_key('refwindow'): master= kw['refwindow'] elif not master: raise RuntimeError, "Too early to create display style: no root window" self.tk = master.tk self.stylename = apply(self.tk.call, ('tixDisplayS... | master = _default_root if not master and cnf.has_key('refwindow'): master=cnf['refwindow'] elif not master and kw.has_key('refwindow'): master= kw['refwindow'] elif not master: raise RuntimeError, "Too early to create display style: no root window" self.tk = master.tk self.stylename = apply(self.tk.call, ('tixDisplayS... | def __init__(self, itemtype, cnf={}, **kw ): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
761,
723,
16,
23118,
28793,
2826,
9987,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
2890,
16,
761,
723,
16,
23118,
28793,
2826,
9987,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
properties['outgoingEmailMonitorLevel'] = 'HEADERS_ONLY' | properties['outgoingEmailMonitorLevel'] = 'HEADER_ONLY' | def createEmailMonitor(self, source_user, destination_user, end_date, begin_date=None, incoming_headers_only=False, outgoing_headers_only=False, drafts=False, drafts_headers_only=False, chats=False, chats_headers_only=False): """Creates a email monitor, forwarding the source_users emails/chats | d2bab47fc5f04966c579b659199e8b19f275cf16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/d2bab47fc5f04966c579b659199e8b19f275cf16/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
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,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
3... |
self.table.pack_start(self.photohbox, False) self.table.pack_start(gtk.Label()) | self.table.pack_start(self.photobox, False) | def build_interface(self, new_vcard, edit=False): self.vcard = new_vcard | 337e2628519817abde9df50dbed69c769add8439 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/337e2628519817abde9df50dbed69c769add8439/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
16,
394,
67,
90,
3327,
16,
3874,
33,
8381,
4672,
365,
18,
90,
3327,
273,
394,
67,
90,
3327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
16,
394,
67,
90,
3327,
16,
3874,
33,
8381,
4672,
365,
18,
90,
3327,
273,
394,
67,
90,
3327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for block in self.annotated: | for block in fully_annotated_blocks(self): | def transform_dead_op_vars(self): """Remove dead operations and variables that are passed over a link but not used in the target block.""" # the set of operations that can safely be removed (no side effects) CanRemove = {'newtuple': True, 'newlist': True, 'newdict': True, 'is_': True, 'is_true': True} read_vars = {} #... | 1a2978d9a8c06d564d3b598fb5282e21ee713265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/1a2978d9a8c06d564d3b598fb5282e21ee713265/transform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
67,
22097,
67,
556,
67,
4699,
12,
2890,
4672,
3536,
3288,
8363,
5295,
471,
3152,
716,
854,
2275,
1879,
279,
1692,
1496,
486,
1399,
316,
326,
1018,
1203,
12123,
468,
326,
444,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
67,
22097,
67,
556,
67,
4699,
12,
2890,
4672,
3536,
3288,
8363,
5295,
471,
3152,
716,
854,
2275,
1879,
279,
1692,
1496,
486,
1399,
316,
326,
1018,
1203,
12123,
468,
326,
444,
434,
... |
p = N.ceil(2*fwhm[1]).astype(int) x = N.array(range(-p, p+1)) | p = NP.ceil(2*fwhm[1]).astype(int) x = NP.array(range(-p, p+1)) | def filter_image_3D(imageRaw, fwhm, ftype=2): """ image_F_xyz = filter_image_3D(imageRaw, fwhm, ftype=2): does 3D separable digital filtering using scipy.ndimage.correlate1d Parameters .......... imageRaw : {nd_array} the unfiltered 3D volume image fwhm : {int} used for kernel width ktype: {1, 2}, optional kernel type... | de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
2730,
67,
23,
40,
12,
2730,
4809,
16,
284,
3350,
81,
16,
21219,
33,
22,
4672,
3536,
1316,
67,
42,
67,
17177,
273,
1034,
67,
2730,
67,
23,
40,
12,
2730,
4809,
16,
284,
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,
1034,
67,
2730,
67,
23,
40,
12,
2730,
4809,
16,
284,
3350,
81,
16,
21219,
33,
22,
4672,
3536,
1316,
67,
42,
67,
17177,
273,
1034,
67,
2730,
67,
23,
40,
12,
2730,
4809,
16,
284,
335... |
if not isinstance(stream, CharposStream) and self.need_charpos: | if not isinstance(stream, PrettyPrinter) and self.need_prettyprinter: stream = PrettyPrinter(stream) elif not isinstance(stream, CharposStream) and self.need_charpos: | def __call__(self, stream, *args): if not isinstance(stream, CharposStream) and self.need_charpos: stream = CharposStream(stream) if len(args) == 1 and isinstance(args[0], Arguments): args = args[0] else: args = Arguments(args) apply_directives(stream, self.directives, args) return args | a1132b044a3d9566e527e7c92e625ea53ae3f492 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2063/a1132b044a3d9566e527e7c92e625ea53ae3f492/format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1407,
16,
380,
1968,
4672,
309,
486,
1549,
12,
3256,
16,
22328,
12149,
13,
471,
365,
18,
14891,
67,
19073,
30439,
30,
1407,
273,
22328,
12149,
12,
3256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1407,
16,
380,
1968,
4672,
309,
486,
1549,
12,
3256,
16,
22328,
12149,
13,
471,
365,
18,
14891,
67,
19073,
30439,
30,
1407,
273,
22328,
12149,
12,
3256,
... |
return h.text_area(self.name, content=self.get_value(), size=self.size) | if isinstance(self.size, basestring): return h.text_area(self.name, content=self.get_value(), size=self.size) else: cols, rows = self.size return h.text_area(self.name, content=self.get_value(), cols=cols, rows=rows) | def render(self): return h.text_area(self.name, content=self.get_value(), size=self.size) | 8d613b7a9d4bf1cf791e9625c209c6594c73af4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13203/8d613b7a9d4bf1cf791e9625c209c6594c73af4e/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
327,
366,
18,
955,
67,
5036,
12,
2890,
18,
529,
16,
913,
33,
2890,
18,
588,
67,
1132,
9334,
963,
33,
2890,
18,
1467,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
327,
366,
18,
955,
67,
5036,
12,
2890,
18,
529,
16,
913,
33,
2890,
18,
588,
67,
1132,
9334,
963,
33,
2890,
18,
1467,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self.selectionChanged in self["config"].onSelectionChanged: self["config"].onSelectionChanged.append(self.selectionChanged) | def createSetup(self): self.list = [] self.InterfaceEntry = getConfigListEntry(_("Use Interface"), self.activateInterfaceEntry) | f741c4cc282f2f99b86e6ec305604f27216087ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/f741c4cc282f2f99b86e6ec305604f27216087ba/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
7365,
12,
2890,
4672,
365,
18,
1098,
273,
5378,
365,
18,
1358,
1622,
273,
4367,
27899,
24899,
2932,
3727,
6682,
6,
3631,
365,
18,
10014,
1358,
1622,
13,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
7365,
12,
2890,
4672,
365,
18,
1098,
273,
5378,
365,
18,
1358,
1622,
273,
4367,
27899,
24899,
2932,
3727,
6682,
6,
3631,
365,
18,
10014,
1358,
1622,
13,
2,
-100,
-100,
-100,
-100,
... | |
Like `imap()` method but ordering of results is arbitrary | Like `imap()` method but ordering of results is arbitrary. | def imap_unordered(self, func, iterable, chunksize=1): ''' Like `imap()` method but ordering of results is arbitrary ''' assert self._state == RUN if chunksize == 1: result = IMapUnorderedIterator(self._cache) self._taskqueue.put((((result._job, i, func, (x,), {}) for i, x in enumerate(iterable)), result._set_length)) ... | 5ec559c4cc2a2f9628c080c3f87ffe2c00da0b79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5ec559c4cc2a2f9628c080c3f87ffe2c00da0b79/pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20226,
67,
318,
9885,
12,
2890,
16,
1326,
16,
6087,
16,
23256,
33,
21,
4672,
9163,
23078,
1375,
12161,
20338,
707,
1496,
9543,
434,
1686,
353,
11078,
18,
9163,
1815,
365,
6315,
2019,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20226,
67,
318,
9885,
12,
2890,
16,
1326,
16,
6087,
16,
23256,
33,
21,
4672,
9163,
23078,
1375,
12161,
20338,
707,
1496,
9543,
434,
1686,
353,
11078,
18,
9163,
1815,
365,
6315,
2019,
422... |
return http.Response(stream = message(s)) | return HTMLResponse(stream = message(s)) | def render(self, ctx): if ctx.args.has_key('button_cancel'): return http.RedirectResponse('/home/'+self.worksheet.filename()) if user_type(self.username) == 'admin' or \ self.worksheet.owner() == self.username \ or self.worksheet.user_is_collaborator(self.username): system = ctx.args['system'][0].strip().lower() self.w... | 39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
309,
1103,
18,
1968,
18,
5332,
67,
856,
2668,
5391,
67,
10996,
11,
4672,
327,
1062,
18,
5961,
1064,
2668,
19,
8712,
2473,
15,
2890,
18,
1252,
8118,
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,
1743,
12,
2890,
16,
1103,
4672,
309,
1103,
18,
1968,
18,
5332,
67,
856,
2668,
5391,
67,
10996,
11,
4672,
327,
1062,
18,
5961,
1064,
2668,
19,
8712,
2473,
15,
2890,
18,
1252,
8118,
18,
... |
[self.removeItem(l) for l in self.contLabel] | [l.scene().removeItem(l) for l in self.contLabel] | def initializeBeforePaint(self, canvas): [self.removeItem(l) for l in self.contLabel] self.atNames = AttrLine(self.name, canvas) for at in self.attValues: self.atNames.addAttValue(AttValue(at.name, float(at.name))) verticalRect = QRect(0, 0, self.getHeight(canvas), self.getHeight(canvas)) verticalMapper = Mapper_Linear... | 35b13679f3c804d1af89b7d68a8a9371b7569195 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/35b13679f3c804d1af89b7d68a8a9371b7569195/OWNomogramGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
4649,
12699,
12,
2890,
16,
5953,
4672,
306,
80,
18,
23694,
7675,
4479,
1180,
12,
80,
13,
364,
328,
316,
365,
18,
1213,
2224,
65,
365,
18,
270,
1557,
273,
11289,
1670,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
4649,
12699,
12,
2890,
16,
5953,
4672,
306,
80,
18,
23694,
7675,
4479,
1180,
12,
80,
13,
364,
328,
316,
365,
18,
1213,
2224,
65,
365,
18,
270,
1557,
273,
11289,
1670,
12,
2890,
... |
def _write_class_summary(self, public, private, classes, groups, heading='Class Summary'): """ @return: The HTML code for the class summary table. This is used by L{_module_to_html} to list the classes in a module. @rtype: C{string} | def _write_class_summary(self, public, private, container, classes, heading='Class Summary'): """ Write HTML code for a class summary table. This is used by L{_write_module} to list the classes in a module. @param public: The output stream for the public version of the page. @param private: The output stream for the p... | def _write_class_summary(self, public, private, classes, groups, heading='Class Summary'): """ @return: The HTML code for the class summary table. This is used by L{_module_to_html} to list the classes in a module. @rtype: C{string} """ if len(classes) == 0: return | dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
1106,
67,
7687,
12,
2890,
16,
1071,
16,
3238,
16,
1478,
16,
3318,
16,
11053,
2218,
797,
17967,
11,
4672,
3536,
2598,
3982,
981,
364,
279,
667,
4916,
1014,
18,
225,
1220,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
67,
1106,
67,
7687,
12,
2890,
16,
1071,
16,
3238,
16,
1478,
16,
3318,
16,
11053,
2218,
797,
17967,
11,
4672,
3536,
2598,
3982,
981,
364,
279,
667,
4916,
1014,
18,
225,
1220,... |
print text | stdout.write(text.encode('utf-8')) | def sheet_to_csv(document, target): content = document.get_xmlpart('content') for table in content.get_table_list(): table = odf_table(odf_element=table) name = table.get_name() filename = clean_filename(name) + '.csv' csv_file = target.open(filename, 'w') table.export_to_csv(csv_file) | 1a107479d986523908b1873380a1c86f9b5248d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/1a107479d986523908b1873380a1c86f9b5248d5/lpod-show.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6202,
67,
869,
67,
6715,
12,
5457,
16,
1018,
4672,
913,
273,
1668,
18,
588,
67,
2902,
2680,
2668,
1745,
6134,
225,
364,
1014,
316,
913,
18,
588,
67,
2121,
67,
1098,
13332,
1014,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6202,
67,
869,
67,
6715,
12,
5457,
16,
1018,
4672,
913,
273,
1668,
18,
588,
67,
2902,
2680,
2668,
1745,
6134,
225,
364,
1014,
316,
913,
18,
588,
67,
2121,
67,
1098,
13332,
1014,
273,
... |
index = (y - IYRBEG) * 12 + mm - 1 | index = (y - IYRBEG) * 12 + m - 1 | def merge_ocean(ocean, sst, dates): """Adds the array *sst* of new monthly sea-surface temperature readings, which has data for the dates *dates*, to the boxed iterator *ocean*. Returns a new boxed iterator. """ clim = giss_io.step4_load_clim() first_new_year = dates[0][0] last_new_year = dates[-1][0] last_new_month ... | dd7e66e64f00d34b29e471e4cb27893a7ccf2a59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/dd7e66e64f00d34b29e471e4cb27893a7ccf2a59/step4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
83,
31393,
12,
83,
31393,
16,
272,
334,
16,
7811,
4672,
3536,
3655,
326,
526,
380,
87,
334,
14,
434,
394,
31114,
695,
69,
17,
18266,
12843,
855,
899,
16,
1492,
711,
501,
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,
2691,
67,
83,
31393,
12,
83,
31393,
16,
272,
334,
16,
7811,
4672,
3536,
3655,
326,
526,
380,
87,
334,
14,
434,
394,
31114,
695,
69,
17,
18266,
12843,
855,
899,
16,
1492,
711,
501,
36... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 371) else quickfix.IntField.__init__(self, 371, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
11212,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
11212,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
... |
check_admitted_values(flimagetype, FLIMAGETYPE_list) | check_admitted_listvalues(flimagetype, FLIMAGETYPE_list) | def flimage_add_format(formalname, shortname, extension, flimagetype, \ py_ImageIdentify, py_ImageDescription, \ py_ImageReadPixels, py_ImageWriteImage): """ flimage_add_format(formalname, shortname, extension, flimagetype, py_ImageIdentify, py_ImageDescription, py_ImageReadPixels, py_ImageWriteImage) -> num. """ _fli... | 197b7293f22d67e3c0811c99134c95d0d70c0239 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/197b7293f22d67e3c0811c99134c95d0d70c0239/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
2139,
12,
687,
287,
529,
16,
23879,
16,
2710,
16,
1183,
15374,
5872,
16,
521,
2395,
67,
2040,
25787,
16,
2395,
67,
2040,
3291,
16,
521,
2395,
67,
2040,
1994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
2139,
12,
687,
287,
529,
16,
23879,
16,
2710,
16,
1183,
15374,
5872,
16,
521,
2395,
67,
2040,
25787,
16,
2395,
67,
2040,
3291,
16,
521,
2395,
67,
2040,
1994,
... |
pass | sec.setDiSEqCMode(diseqcParam.V1_2) | def updateAdvanced(self, slotid): sec = eDVBSatelliteEquipmentControl.getInstance() lnbSat = {} for x in range(1,33): lnbSat[x] = [] for x in self.NimManager.satList: lnb = config.Nims[slotid].advanced.sat[x[1]].lnb.value if lnb != 0: lnbSat[lnb].append(x[1]) for x in range(1,33): if len(lnbSat[x]) > 0: currLnb = confi... | 45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
4694,
350,
4672,
1428,
273,
425,
30199,
12692,
270,
19345,
13142,
11568,
3367,
18,
588,
1442,
1435,
328,
6423,
15163,
273,
2618,
364,
619,
316,
1048,
12,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23618,
12,
2890,
16,
4694,
350,
4672,
1428,
273,
425,
30199,
12692,
270,
19345,
13142,
11568,
3367,
18,
588,
1442,
1435,
328,
6423,
15163,
273,
2618,
364,
619,
316,
1048,
12,
21,
1... |
log.log( "<eddieElvin>elvinTicker.elvindb(), notify failed, table %s" % (table), 4 ) | log.log( "<eddieElvin4>elvinTicker.elvindb(), notify failed, table %s" % (table), 4 ) | def send(self, table, data): | aa32b1c20f46510b6908631b429ef7410713743a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/aa32b1c20f46510b6908631b429ef7410713743a/eddieElvin4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
1014,
16,
501,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
1014,
16,
501,
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,
... |
getpriority = self._policy.getPriority | getpriority = trans.getPolicy().getPriority | def _updown(self, pkg, changeset, locked, pruneweight, depth=0, force=0): """ If force=1, insists on replacing or removing pkg. """ depth += 1 trace(1, depth, "_updown(%s, pw=%f, f=%d)", (pkg, pruneweight, force)) | c2ff0e2fa3473e5898baf091e7a39f94abf28732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/c2ff0e2fa3473e5898baf091e7a39f94abf28732/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
416,
2378,
12,
2890,
16,
3475,
16,
22463,
16,
8586,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
16,
2944,
33,
20,
4672,
3536,
971,
2944,
33,
21,
16,
2763,
1486,
603,
13993,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
416,
2378,
12,
2890,
16,
3475,
16,
22463,
16,
8586,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
16,
2944,
33,
20,
4672,
3536,
971,
2944,
33,
21,
16,
2763,
1486,
603,
13993,
578,
... |
self.wait(wait_token, int(e[1].getheader('Retry-After'))) | self.wait(token, int(e[1].getheader('Retry-After'))) | def raw_call(self, script, data): url = self.path + script + '.php' headers = {'Content-Type': 'application/x-www-form-urlencoded'} if self.compress and gzip: headers['Accept-Encoding'] = 'gzip' token = self.wait_token((script, data)) while True: try: stream = self.connection.post(self.host, url, data = data, headers ... | d39117c928341a92b41adb5317854b4b9bdf66b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10117/d39117c928341a92b41adb5317854b4b9bdf66b7/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1831,
67,
1991,
12,
2890,
16,
2728,
16,
501,
4672,
880,
273,
365,
18,
803,
397,
2728,
397,
2418,
2684,
11,
1607,
273,
13666,
1350,
17,
559,
4278,
296,
3685,
19,
92,
17,
5591,
17,
687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1831,
67,
1991,
12,
2890,
16,
2728,
16,
501,
4672,
880,
273,
365,
18,
803,
397,
2728,
397,
2418,
2684,
11,
1607,
273,
13666,
1350,
17,
559,
4278,
296,
3685,
19,
92,
17,
5591,
17,
687... |
c_key = self.normalize(key) | normalize = self.normalize c_key = normalize(key) | def setdefault(self, key, default=None): c_key = self.normalize(key) for k, v in self._items: if self.normalize(k) == c_key: return v self._items.append((key, default)) return default | 5e878f6a6d1b899882359f21d5f274dd4b6e29f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12287/5e878f6a6d1b899882359f21d5f274dd4b6e29f4/headerdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
805,
33,
7036,
4672,
3883,
273,
365,
18,
12237,
276,
67,
856,
273,
3883,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
365,
18,
12237,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
805,
33,
7036,
4672,
3883,
273,
365,
18,
12237,
276,
67,
856,
273,
3883,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
365,
18,
12237,
... |
rebaselined_tests = [] for test in rebaselining_tests: | self._rebaselined_tests = [] for test in self._rebaselining_tests: | def _ExtractAndAddNewBaselines(self, archive_file, rebaselining_tests): """Extract new baselines from archive and add them to SVN repository. | f88af6d54c48237ad0edb1b3bd6a6d27d9f30401 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/f88af6d54c48237ad0edb1b3bd6a6d27d9f30401/rebaseline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4976,
1876,
986,
1908,
11494,
14567,
12,
2890,
16,
5052,
67,
768,
16,
283,
9157,
292,
10008,
67,
16341,
4672,
3536,
4976,
394,
2580,
14567,
628,
5052,
471,
527,
2182,
358,
29537,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
4976,
1876,
986,
1908,
11494,
14567,
12,
2890,
16,
5052,
67,
768,
16,
283,
9157,
292,
10008,
67,
16341,
4672,
3536,
4976,
394,
2580,
14567,
628,
5052,
471,
527,
2182,
358,
29537,
50... |
del self._thresholder | def _destroyITKPipeline(self): """Delete all bindings to components of the ITK pipeline. """ | 47f7a971da3db4e905fcdbbbd89a68cb93a67a6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/47f7a971da3db4e905fcdbbbd89a68cb93a67a6f/nbCurvesLevelSet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11662,
1285,
47,
8798,
12,
2890,
4672,
3536,
2613,
777,
7394,
358,
4085,
434,
326,
24142,
47,
5873,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11662,
1285,
47,
8798,
12,
2890,
4672,
3536,
2613,
777,
7394,
358,
4085,
434,
326,
24142,
47,
5873,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
context = rec.get('context','').encode('utf-8') or '{}' | def _tag_act_window(self, cr, rec, data_node=None): name = rec.get('name','').encode('utf-8') xml_id = rec.get('id','').encode('utf8') self._test_xml_id(xml_id) type = rec.get('type','').encode('utf-8') or 'ir.actions.act_window' view_id = False if rec.get('view'): view_id = self.id_get(cr, 'ir.actions.act_window', rec... | 67cdeb3fa00f7b80af3a3411c9529c2199e0def0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/67cdeb3fa00f7b80af3a3411c9529c2199e0def0/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
621,
67,
5668,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
508,
273,
1950,
18,
588,
2668,
529,
2187,
6309,
2934,
3015,
2668,
3158,
17,
28,
6134,
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,
389,
2692,
67,
621,
67,
5668,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
508,
273,
1950,
18,
588,
2668,
529,
2187,
6309,
2934,
3015,
2668,
3158,
17,
28,
6134,
2... | |
elif key[0] == " | elif key[:1] == " | def __call__(self, key, default=u"", connector=" - "): """Return a key, synthesizing it if necessary. A default value may be given (like dict.get); the default default is an empty unicode string (even if the tag is numeric). | edac6fb3d8cfe5d86e6c6898900d02a3aef390b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4764/edac6fb3d8cfe5d86e6c6898900d02a3aef390b4/_audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
498,
16,
805,
33,
89,
6,
3113,
8703,
1546,
300,
315,
4672,
3536,
990,
279,
498,
16,
6194,
7915,
6894,
518,
309,
4573,
18,
432,
805,
460,
2026,
506,
864... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
498,
16,
805,
33,
89,
6,
3113,
8703,
1546,
300,
315,
4672,
3536,
990,
279,
498,
16,
6194,
7915,
6894,
518,
309,
4573,
18,
432,
805,
460,
2026,
506,
864... |
copy=self.__class__(self.id, self.title, bases) | copy=self.__class__(self.id, self.title, bases, hasattr(self._zclass_, '_p_deactivate') ) | def _setBasesHoldOnToYourButts(self, bases): # Eeeek copy=self.__class__(self.id, self.title, bases) | 2db44df90f1fc5bad19b747f904c6a32321cd819 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2db44df90f1fc5bad19b747f904c6a32321cd819/ZClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
38,
3304,
20586,
1398,
774,
15446,
31167,
3428,
12,
2890,
16,
8337,
4672,
468,
512,
1340,
3839,
1610,
33,
2890,
16186,
1106,
972,
12,
2890,
18,
350,
16,
365,
18,
2649,
16,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
38,
3304,
20586,
1398,
774,
15446,
31167,
3428,
12,
2890,
16,
8337,
4672,
468,
512,
1340,
3839,
1610,
33,
2890,
16186,
1106,
972,
12,
2890,
18,
350,
16,
365,
18,
2649,
16,
83... |
server.serve_forever() """ | print print 'You can monitor your jobs on the following link: ' + getMonitoringLink(port) | def run(self): | 8e5a55daa232db574dda28509b1ccde3bae047bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/8e5a55daa232db574dda28509b1ccde3bae047bc/http_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
empty = DictStore() self.__dict__ = empty.__dict__ | emptyStore = DictStore() self.__dict__ = emptyStore.__dict__ | def clear(self): '''Remove all data from the object.''' empty = DictStore() self.__dict__ = empty.__dict__ | 45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
9163,
3288,
777,
501,
628,
326,
733,
1093,
6309,
1008,
2257,
273,
9696,
2257,
1435,
365,
16186,
1576,
972,
273,
1008,
2257,
16186,
1576,
972,
225,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
9163,
3288,
777,
501,
628,
326,
733,
1093,
6309,
1008,
2257,
273,
9696,
2257,
1435,
365,
16186,
1576,
972,
273,
1008,
2257,
16186,
1576,
972,
225,
2,
-100,
-100,
-1... |
macro.request.include_id = incl_id | macro.request.uid_generator.include_id = incl_id | def macro_TableOfContents(macro, maxdepth=int): """ | c539396aa071deeb23a4f6a02cc723adfeb864e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/c539396aa071deeb23a4f6a02cc723adfeb864e8/TableOfContents.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
67,
1388,
951,
6323,
12,
26448,
16,
943,
5979,
33,
474,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
11522,
67,
1388,
951,
6323,
12,
26448,
16,
943,
5979,
33,
474,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
suite.addTest(GSPDFWriteCompareTestCase(gs=gsconf.comparegs, file=gsconf.comparefiledir + f, device=device, dpi=dpi, band=band, track_daily=1)) | suite.addTest(GSPDFWriteCompareTestCase(gs=gsconf.comparegs, file=gsconf.comparefiledir + f, device=device, dpi=dpi, band=band, track_daily=1, log_stdout=gsconf.log_stdout, log_stderr=gsconf.log_stderr)) | def add_compare_test(suite, f, device, dpi, band): suite.addTest(GSPDFWriteCompareTestCase(gs=gsconf.comparegs, file=gsconf.comparefiledir + f, device=device, dpi=dpi, band=band, track_daily=1)) | 089187a98986c96b1c6d26275643f8fc00b8bb52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/089187a98986c96b1c6d26275643f8fc00b8bb52/gscheck_pdfwrite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9877,
67,
3813,
12,
30676,
16,
284,
16,
2346,
16,
16361,
16,
8937,
4672,
11371,
18,
1289,
4709,
12,
43,
3118,
4577,
3067,
8583,
4709,
2449,
12,
564,
33,
564,
3923,
18,
9877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9877,
67,
3813,
12,
30676,
16,
284,
16,
2346,
16,
16361,
16,
8937,
4672,
11371,
18,
1289,
4709,
12,
43,
3118,
4577,
3067,
8583,
4709,
2449,
12,
564,
33,
564,
3923,
18,
9877,
... |
def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): | def load_module_graph(cr, graph, status=None, perform_checks=True, skip_cleanup=False, **kwargs): """Migrates+Updates or Installs all module nodes from ``graph`` :param graph: graph of module nodes to load :param status: status dictionary for keeping track of progress :param perform_checks: whether module descriptors s... | def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): def process_sql_file(cr, fp): queries = fp.read().split(';') for query in queries: new_query = ' '.join(query.split()) if new_query: cr.execute(new_query) def load_init_update_xml(cr, m, idref, mode, kind): for filename in package.data.get(... | 7bcccbafe585701724e4bc118ab9b9495145d08c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7bcccbafe585701724e4bc118ab9b9495145d08c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
67,
4660,
12,
3353,
16,
2667,
16,
1267,
33,
7036,
16,
3073,
67,
12366,
33,
5510,
16,
2488,
67,
16732,
33,
8381,
16,
2826,
4333,
4672,
3536,
25483,
815,
15,
5121,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
67,
4660,
12,
3353,
16,
2667,
16,
1267,
33,
7036,
16,
3073,
67,
12366,
33,
5510,
16,
2488,
67,
16732,
33,
8381,
16,
2826,
4333,
4672,
3536,
25483,
815,
15,
5121,
578,
... |
SYMMETRIC TYPE. Related to the automorphic type, when either the Dynkin diagram or the extended diagram has a symmetry there is a branching rule to the subalgebra (or subgroup) of invariants under the automorphism. Use rule="symmetric". | SYMMETRIC TYPE. Related to the automorphic type, when G admits an outer automorphism (usually of degree 2) we may consider the branching rule to the isotropy subgroup H. In many cases the Dynkin diagram of H can be obtained by folding the Dynkin diagram of G. For such isotropy subgroups use rule="symmetric". | def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will... | b52994188bcd78a4f611d59c6a1849a3a6aff83e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b52994188bcd78a4f611d59c6a1849a3a6aff83e/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... |
def start(self, queue=0): | def start(self, queue=0, mark_corrupt=True): | def start(self, queue=0): """ Start the handling of acquired frames. | e175bdff6fd13921ae04280bf116c1acf47792cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6169/e175bdff6fd13921ae04280bf116c1acf47792cb/threaded_camera.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
2389,
33,
20,
16,
2267,
67,
3850,
10433,
33,
5510,
4672,
3536,
3603,
326,
5057,
434,
20598,
7793,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
2389,
33,
20,
16,
2267,
67,
3850,
10433,
33,
5510,
4672,
3536,
3603,
326,
5057,
434,
20598,
7793,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
start += 1 i = start | i = start+1 assert tokens[i] is t | def create(): assert state assert start is not None if i<=start: return children = tokens[start:i] for tag in state.keys(): outer = T(type=T.t_complex_tag, tagname=tag, children=children) children = [outer] tokens[start:i] = [outer] | 771534b9b6a59a5ad58a1a723ef1e34a097b1486 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/771534b9b6a59a5ad58a1a723ef1e34a097b1486/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
13332,
1815,
919,
1815,
787,
353,
486,
599,
309,
277,
32,
33,
1937,
30,
327,
225,
2325,
273,
2430,
63,
1937,
30,
77,
65,
364,
1047,
316,
919,
18,
2452,
13332,
6390,
273,
399,
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,
752,
13332,
1815,
919,
1815,
787,
353,
486,
599,
309,
277,
32,
33,
1937,
30,
327,
225,
2325,
273,
2430,
63,
1937,
30,
77,
65,
364,
1047,
316,
919,
18,
2452,
13332,
6390,
273,
399,
12... |
if sys.platform[:4] != 'java': value = u"%(x)s, %()s" % {'x':u"abc", u''.encode('utf-8'):"def"} else: value = u"%(x)s, %()s" % {'x':u"abc", u'':"def"} | value = u"%(x)s, %()s" % {'x':u"abc", u'':"def"} | def test_fixup(s): s2 = u'\ud800\udc01' test_lecmp(s, s2) s2 = u'\ud900\udc01' test_lecmp(s, s2) s2 = u'\uda00\udc01' test_lecmp(s, s2) s2 = u'\udb00\udc01' test_lecmp(s, s2) s2 = u'\ud800\udd01' test_lecmp(s, s2) s2 = u'\ud900\udd01' test_lecmp(s, s2) s2 = u'\uda00\udd01' test_lecmp(s, s2) s2 = u'\udb00\udd01' test_le... | 8c60d163e70788bb23066fa5e69bebb1b4cfce1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8c60d163e70788bb23066fa5e69bebb1b4cfce1e/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
904,
416,
12,
87,
4672,
272,
22,
273,
582,
8314,
1100,
17374,
64,
1100,
71,
1611,
11,
1842,
67,
298,
9625,
12,
87,
16,
272,
22,
13,
272,
22,
273,
582,
8314,
1100,
29,
713... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
904,
416,
12,
87,
4672,
272,
22,
273,
582,
8314,
1100,
17374,
64,
1100,
71,
1611,
11,
1842,
67,
298,
9625,
12,
87,
16,
272,
22,
13,
272,
22,
273,
582,
8314,
1100,
29,
713... |
except: | except TypeError: | def span(gens, base_ring=None, check=True, already_echelonized=False): """ Return the $R$-span of gens (a list of vectors) where R = base_ring. EXAMPLES: sage: V = span([[1,2,5], [2,2,2]], QQ); V Vector space of degree 3 and dimension 2 over Rational Field Basis matrix: [ 1 0 -3] [ 0 1 4] sage: span([V.gen(0)], Qua... | e486bb9013bae5a0f10562921c7ce3e5fa30872c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e486bb9013bae5a0f10562921c7ce3e5fa30872c/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4548,
12,
23730,
16,
1026,
67,
8022,
33,
7036,
16,
866,
33,
5510,
16,
1818,
67,
8987,
292,
265,
1235,
33,
8381,
4672,
3536,
2000,
326,
271,
54,
8,
17,
3969,
434,
314,
773,
261,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4548,
12,
23730,
16,
1026,
67,
8022,
33,
7036,
16,
866,
33,
5510,
16,
1818,
67,
8987,
292,
265,
1235,
33,
8381,
4672,
3536,
2000,
326,
271,
54,
8,
17,
3969,
434,
314,
773,
261,
69,
... |
for eventViewer in self.fixed.get_children(): eventViewer.ChangeSize(small) | for widget in self.fixed.get_children(): if type(widget) == EventViewer: widget.ChangeSize(small) if widget.drawer in self.fixed.get_children(): widget.ShowDrawer() | def ChangeSize(self, small): """ Changes the size of the event lane. Parameters: small - True if the event lane is to be small. """ self.small = small for eventViewer in self.fixed.get_children(): eventViewer.ChangeSize(small) | 1438f055c13a8a8f6cf7fc6679cc5ab15afbf95a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/1438f055c13a8a8f6cf7fc6679cc5ab15afbf95a/EventLaneViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1225,
12,
2890,
16,
5264,
4672,
3536,
17776,
326,
963,
434,
326,
871,
328,
8806,
18,
225,
7012,
30,
5264,
300,
1053,
309,
326,
871,
328,
8806,
353,
358,
506,
5264,
18,
3536,
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,
7576,
1225,
12,
2890,
16,
5264,
4672,
3536,
17776,
326,
963,
434,
326,
871,
328,
8806,
18,
225,
7012,
30,
5264,
300,
1053,
309,
326,
871,
328,
8806,
353,
358,
506,
5264,
18,
3536,
365,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.