rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if not resultDict.has_key(owner): | if not resultDict.has_key( owner ): | def getUserSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of user jobs in a standard form for the Web portal. Pagination and global sorting is supported. """ | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
729,
6550,
316,
279,
4529,
646,
364,
326,
2999,
11899,
18,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4735,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
729,
6550,
316,
279,
4529,
646,
364,
326,
2999,
11899,
18,
169... |
keys = map(unquote, results.pop(0)) | keys = results.pop(0) | def getMeta(self, value): keysOnly = False results = self.request("GetMeta", value, keysOnly) | 86f0a999c63b82e317f1396b6ffc1ae44bbf38ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/86f0a999c63b82e317f1396b6ffc1ae44bbf38ab/wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11312,
12,
2890,
16,
460,
4672,
1311,
3386,
273,
1083,
1686,
273,
365,
18,
2293,
2932,
967,
2781,
3113,
460,
16,
1311,
3386,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
11312,
12,
2890,
16,
460,
4672,
1311,
3386,
273,
1083,
1686,
273,
365,
18,
2293,
2932,
967,
2781,
3113,
460,
16,
1311,
3386,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
times = 0 | def build_hk(self, entry, metadata): '''This binds host key data into entries''' client = metadata.hostname filename = "%s.H_%s" % (entry.get('name').split('/')[-1], client) if filename not in self.repository.entries.keys(): self.GenerateHostKeys(client) if hasattr(self, 'static_skn'): del self.static_skn times = 0 if ... | 73898c3d20de00f39d5144b55318bc7ded89de23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/73898c3d20de00f39d5144b55318bc7ded89de23/SSHbase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
76,
79,
12,
2890,
16,
1241,
16,
1982,
4672,
9163,
2503,
16129,
1479,
498,
501,
1368,
3222,
26418,
1004,
273,
1982,
18,
10358,
1544,
273,
2213,
87,
18,
44,
10185,
87,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
76,
79,
12,
2890,
16,
1241,
16,
1982,
4672,
9163,
2503,
16129,
1479,
498,
501,
1368,
3222,
26418,
1004,
273,
1982,
18,
10358,
1544,
273,
2213,
87,
18,
44,
10185,
87,
6,
738,
... | |
self.oldText = "" | self.enteredText = "" | def __init__(self, parent): QLineEdit.__init__(self, parent) QObject.connect(self, SIGNAL("textEdited(const QString &)"), self.textEdited) self.oldText = "" self.itemList = [] self.useRE = 0 self.emptyText = "" self.callbackOnComplete = None self.listUpdateCallback = None self.autoSizeListWidget = 0 self.caseSensitive ... | 4dd2601ce487793400c1f7e5247f0850daac5006 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/4dd2601ce487793400c1f7e5247f0850daac5006/OWGUIEx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
2238,
1670,
4666,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2238,
921,
18,
3612,
12,
2890,
16,
12057,
1013,
2932,
955,
4666,
329,
12,
10248,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
2238,
1670,
4666,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2238,
921,
18,
3612,
12,
2890,
16,
12057,
1013,
2932,
955,
4666,
329,
12,
10248,
22... |
r=str(inst) | r=str(inst) | def __getitem__(self,key): | 33f60964c7587575f853594704f00add969b7126 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/33f60964c7587575f853594704f00add969b7126/pDocumentTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
856,
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,
1001,
31571,
972,
12,
2890,
16,
856,
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... |
out = line.split('scsi_device/') | out = line.split('/') | def pscsi_createvirtdev(path, params): | d05a73a285262c8c803be130efd73e3d6562be6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/d05a73a285262c8c803be130efd73e3d6562be6f/tcm_pscsi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1017,
7722,
67,
2640,
14035,
5206,
12,
803,
16,
859,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1017,
7722,
67,
2640,
14035,
5206,
12,
803,
16,
859,
4672,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def MakeGuard(self, filename): """Creates a header guard id.""" base = os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))) hpath = os.path.abspath(filename)[len(base) + 1:] return self._non_alnum_re.sub('_', hpath).upper() | def WriteNamespaceClose(self, file): """Writes the code to close the namespace.""" file.Write("} // namespace gles2\n") file.Write("} // namespace gpu\n") file.Write("\n") | 20d6af8de9f49c5a4b9a5d098840a1523ad90cb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/20d6af8de9f49c5a4b9a5d098840a1523ad90cb6/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3402,
4605,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
981,
358,
1746,
326,
1981,
12123,
585,
18,
3067,
2932,
97,
225,
368,
1981,
314,
1040,
22,
64,
82,
7923,
585,
18,
3067,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2598,
3402,
4605,
12,
2890,
16,
585,
4672,
3536,
8368,
326,
981,
358,
1746,
326,
1981,
12123,
585,
18,
3067,
2932,
97,
225,
368,
1981,
314,
1040,
22,
64,
82,
7923,
585,
18,
3067,
2932,... | |
self.CtermResNameLabel = QtGui.QLabel('?') self.CtermSpinBox = QtGui.QSpinBox() self.CtermSpinBox.setRange(1, 10000) self.decreasePositionButton = QtGui.QPushButton('-') self.decreasePositionButton.setMaximumWidth(30) | self.helixCtermResNameLabel = QtGui.QLabel('?') self.helixCtermSpinBox = QtGui.QSpinBox() self.helixCtermSpinBox.setRange(1, 10000) self.helixDecreasePositionButton = QtGui.QPushButton('-') self.helixDecreasePositionButton.setMaximumWidth(30) | def setupHelixTab(self): #These go in the Helix tab self.modifyRadioButton = QtGui.QRadioButton(self.tr('Modify')) self.newRadioButtion = QtGui.QRadioButton(self.tr('New')) NterminusLabel = QtGui.QLabel('N term') self.NtermResNameLabel = QtGui.QLabel('?') self.NtermSpinBox = QtGui.QSpinBox() self.NtermSpinBox.setRange(... | e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9/structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
44,
26342,
5661,
12,
2890,
4672,
468,
29690,
1960,
316,
326,
670,
26342,
3246,
365,
18,
17042,
19984,
3616,
273,
23425,
18,
53,
19984,
3616,
12,
2890,
18,
313,
2668,
11047,
26112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
44,
26342,
5661,
12,
2890,
4672,
468,
29690,
1960,
316,
326,
670,
26342,
3246,
365,
18,
17042,
19984,
3616,
273,
23425,
18,
53,
19984,
3616,
12,
2890,
18,
313,
2668,
11047,
26112,
... |
do_exec(cvs+' co reportlab', 'the checkout phase') | def cvs_checkout(d): os.chdir(d) recursive_rmdir(cvsdir) cvs = find_exe('cvs') if cvs is None: os.exit(1) os.environ['CVSROOT']=':pserver:%s@cvs.reportlab.sourceforge.net:/cvsroot/reportlab' % USER if release: do_exec(cvs+(' export -r %s reportlab' % tagname), 'the export phase') else: if py2pdf: do_exec(cvs+' co rep... | 7847c3dfe100d88a859c3f440a9dee0bff61d3cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/7847c3dfe100d88a859c3f440a9dee0bff61d3cb/daily.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
67,
17300,
12,
72,
4672,
1140,
18,
343,
1214,
12,
72,
13,
5904,
67,
8864,
1214,
12,
71,
6904,
1214,
13,
225,
276,
6904,
273,
1104,
67,
14880,
2668,
71,
6904,
6134,
309,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
67,
17300,
12,
72,
4672,
1140,
18,
343,
1214,
12,
72,
13,
5904,
67,
8864,
1214,
12,
71,
6904,
1214,
13,
225,
276,
6904,
273,
1104,
67,
14880,
2668,
71,
6904,
6134,
309,
27... | |
i = find_token(document.body, "LatexCommand href", i) if i == -1: return document.body[i] = "LatexCommand url" i = i + 1 | i = find_token(document.body, "\\begin_inset CommandInset href", i) if i == -1: return document.body[i : i + 2] = ["\\begin_inset CommandInset url", "LatexCommand url"] i = i + 2 | def revert_href(document): 'Reverts hyperlink insets (href) to url insets (url)' i = 0 while True: i = find_token(document.body, "LatexCommand href", i) if i == -1: return document.body[i] = "LatexCommand url" i = i + 1 | bfbf9c14e227685f4e6ae2acbb0cd66c28315f6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/bfbf9c14e227685f4e6ae2acbb0cd66c28315f6d/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7547,
12,
5457,
4672,
296,
426,
31537,
9512,
1232,
23576,
261,
7547,
13,
358,
880,
23576,
261,
718,
2506,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7547,
12,
5457,
4672,
296,
426,
31537,
9512,
1232,
23576,
261,
7547,
13,
358,
880,
23576,
261,
718,
2506,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
... |
class HanDeDictTranslationSearchStrategy(ExactTranslationSearchStrategy): | class CEDICTWildcardTranslationSearchStrategy( WildcardTranslationSearchStrategy, CEDICTTranslationSearchStrategy): """ CEDICT translation based search strategy with support for wildcards. Takes into account additions put in parentheses and appended information separated by a comma. """ def _getWildcardRegex(self, sear... | def getMatchFunction(self, searchStr): # start with a slash '/', make sure any opening parenthesis is # closed and match search string. Finish with other content in # parantheses and a slash regex = re.compile('/' + '(\s+|\([^\)]+\))*' + re.escape(searchStr) + '(\s+|\([^\)]+\))*' + '[/,]') | 7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2060,
2083,
12,
2890,
16,
1623,
1585,
4672,
468,
787,
598,
279,
9026,
2023,
16,
1221,
3071,
1281,
10890,
22311,
353,
468,
282,
4375,
471,
845,
1623,
533,
18,
18560,
598,
1308,
913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2060,
2083,
12,
2890,
16,
1623,
1585,
4672,
468,
787,
598,
279,
9026,
2023,
16,
1221,
3071,
1281,
10890,
22311,
353,
468,
282,
4375,
471,
845,
1623,
533,
18,
18560,
598,
1308,
913,
... |
for b in boolean_keys: self.assert_(type(o.get(b)) is bool) | for bkey in boolean_keys: self.assert_(type(o.get(bkey)) is bool) | def test_Options(self): o = options v = o.get("check_online_updates") | 392feeb3d25aea6fbc3df3a165f808024bc54e84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/392feeb3d25aea6fbc3df3a165f808024bc54e84/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1320,
12,
2890,
4672,
320,
273,
702,
331,
273,
320,
18,
588,
2932,
1893,
67,
21026,
67,
14703,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1320,
12,
2890,
4672,
320,
273,
702,
331,
273,
320,
18,
588,
2932,
1893,
67,
21026,
67,
14703,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
game.quad[e.kloc.x][e.kloc.y] = IHS | game.quad[e.kloc.i][e.kloc.j] = IHS | def newqad(): "Set up a new state of quadrant, for when we enter or re-enter it." game.justin = True game.iplnet = None game.neutz = game.inorbit = game.landed = False game.ientesc = game.iseenit = False # Create a blank quadrant game.quad = fill2d(QUADSIZE, lambda i, j: IHDOT) if game.iscate: # Attempt to escape Super... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
85,
361,
13332,
315,
694,
731,
279,
394,
919,
434,
9474,
6890,
16,
364,
1347,
732,
6103,
578,
283,
17,
2328,
518,
1199,
7920,
18,
3732,
267,
273,
1053,
7920,
18,
77,
412,
2758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
85,
361,
13332,
315,
694,
731,
279,
394,
919,
434,
9474,
6890,
16,
364,
1347,
732,
6103,
578,
283,
17,
2328,
518,
1199,
7920,
18,
3732,
267,
273,
1053,
7920,
18,
77,
412,
2758,
... |
log.info(u"Successfully posted url %s to delicious, posted in channel %s by nick %s at time %s", | log.debug(u"Successfully posted url %s to delicious, posted in channel %s by nick %s at time %s", | def add_post(self, username, password, event, url=None): "Posts a URL to delicious.com" | 4da7d9f9e059fb70ba2728c41171e9a149250951 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/4da7d9f9e059fb70ba2728c41171e9a149250951/url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2767,
12,
2890,
16,
2718,
16,
2201,
16,
871,
16,
880,
33,
7036,
4672,
315,
24983,
279,
1976,
358,
1464,
28728,
18,
832,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2767,
12,
2890,
16,
2718,
16,
2201,
16,
871,
16,
880,
33,
7036,
4672,
315,
24983,
279,
1976,
358,
1464,
28728,
18,
832,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.journal_name = guess_journal_name(argd['ln']) | journal_name = guess_journal_name(argd['ln']) | def __call__(self, req, form): """ Maybe resolve the final / of a directory """ ## Support for legacy journal/[empty]?(args*) urls. There are ## these parameters only in that case argd = wash_urlargd(form, {'name': (str, ""), 'issue': (str, ""), 'category': (str, ""), 'ln': (str, CFG_SITE_LANG), 'number': (int, None), ... | bae57c8d54f081029ed46e6fc1bac54d5858c064 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/bae57c8d54f081029ed46e6fc1bac54d5858c064/webjournal_webinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
14024,
2245,
326,
727,
342,
434,
279,
1867,
3536,
7541,
13619,
364,
8866,
13001,
19,
63,
5531,
26717,
12,
1968,
12437,
6903,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
14024,
2245,
326,
727,
342,
434,
279,
1867,
3536,
7541,
13619,
364,
8866,
13001,
19,
63,
5531,
26717,
12,
1968,
12437,
6903,
18,... |
self._profileDt = dt | profileInfo.dt = dt | def __executeTask(self, task): task.setCurrentTimeFrame(self.currentTime, self.currentFrame) | 51c598f3d6d44b31957175306331fbe8df200336 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/51c598f3d6d44b31957175306331fbe8df200336/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8837,
2174,
12,
2890,
16,
1562,
4672,
1562,
18,
542,
3935,
950,
3219,
12,
2890,
18,
2972,
950,
16,
365,
18,
2972,
3219,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8837,
2174,
12,
2890,
16,
1562,
4672,
1562,
18,
542,
3935,
950,
3219,
12,
2890,
18,
2972,
950,
16,
365,
18,
2972,
3219,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
addNodeField(ORIGINAL_LABEL_FIELD_NAME, Types.VARCHAR, "") setattr(g.nodes, ORIGINAL_LABEL_FIELD_NAME, g.nodes.label) addEdgeField(ORIGINAL_LABEL_FIELD_NAME, Types.VARCHAR, "") setattr(g.edges, ORIGINAL_LABEL_FIELD_NAME, g.edges.label) | def initializeGlobalVariables(): # put all the color names into an array for i in colorInfo: colorList.append(i[0]) gStuff = globals() # all variables that have been declared # the properties of nodes and edges specified in the gdf file originalGraphProperties = [] wantedDefaultProperties = [] # get all methods and va... | f9a3e158289d1f03c636bc1b8e9bd9a6cbb0bebf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2706/f9a3e158289d1f03c636bc1b8e9bd9a6cbb0bebf/graphModifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
5160,
6158,
13332,
468,
1378,
777,
326,
2036,
1257,
1368,
392,
526,
364,
277,
316,
2036,
966,
30,
2036,
682,
18,
6923,
12,
77,
63,
20,
5717,
225,
314,
510,
3809,
273,
10941,
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,
1,
1,
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,
5160,
6158,
13332,
468,
1378,
777,
326,
2036,
1257,
1368,
392,
526,
364,
277,
316,
2036,
966,
30,
2036,
682,
18,
6923,
12,
77,
63,
20,
5717,
225,
314,
510,
3809,
273,
10941,
1435... | |
if domain == "": domain = "*" | def _genDomains(self): """ Generate dict with domain by level. """ if len(self._domains) > 0: self._domains = { } for level in xrange(self.FATAL, self.DEBUG_MAX+1): if not self._logging.has_key(level): continue for (domain, target, _format) in self._logging[level]: if domain == "": domain = "*" if domain not in self._d... | 5e21eaf199cb2a3a81aefe5be1fd9cac8312f653 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/5e21eaf199cb2a3a81aefe5be1fd9cac8312f653/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4507,
15531,
12,
2890,
4672,
3536,
6654,
2065,
598,
2461,
635,
1801,
18,
3536,
309,
562,
12,
2890,
6315,
14180,
13,
405,
374,
30,
365,
6315,
14180,
273,
288,
289,
364,
1801,
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,
389,
4507,
15531,
12,
2890,
4672,
3536,
6654,
2065,
598,
2461,
635,
1801,
18,
3536,
309,
562,
12,
2890,
6315,
14180,
13,
405,
374,
30,
365,
6315,
14180,
273,
288,
289,
364,
1801,
316,
... | |
self.display_heading(tag.string, "minor") | self.display_heading(text, "minor") | def parse_old_sitting_part(self, soup): """Parse and convert a new-style (1/2001-3/2006) Standing Committee transcript to XML""" #Tuesday 16 January 2001|Tuesday 16 January 2001(Afternoon) pDate = '\S*?\s+\d\d?\s+\S*?\s+\d\d\d\d(\(\S*?\))?' pTimeOfDay = '(\(Morning\)|\(Afternoon\))' tags = soup({'h1':True, 'h2':True,... | 6f5d3aa05f0dcde05fa26d65e6d987be8dbcf0d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8428/6f5d3aa05f0dcde05fa26d65e6d987be8dbcf0d2/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1673,
67,
25404,
1787,
67,
2680,
12,
2890,
16,
15418,
4672,
3536,
3201,
471,
1765,
279,
394,
17,
4060,
261,
21,
19,
6976,
21,
17,
23,
19,
6976,
26,
13,
934,
464,
310,
10269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1673,
67,
25404,
1787,
67,
2680,
12,
2890,
16,
15418,
4672,
3536,
3201,
471,
1765,
279,
394,
17,
4060,
261,
21,
19,
6976,
21,
17,
23,
19,
6976,
26,
13,
934,
464,
310,
10269... |
try: examples = examples.select(orange.Domain(attributes, examples.domain.classVar)) except: print list(attributes) | tmpDomain = orange.Domain(attributes, examples.domain.classVar) tmpDomain.addmetas(examples.domain.getmetas()) examples = examples.select(tmpDomain) | def __call__(self, examples, weight=0): imputer = getattr(self, "imputer", None) or None if getattr(self, "removeMissing", 0): examples = orange.Preprocessor_dropMissing(examples) | 0e4f76dd13d5f45584af852f0427ed96b8901487 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e4f76dd13d5f45584af852f0427ed96b8901487/orngLR.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
10991,
16,
3119,
33,
20,
4672,
709,
458,
264,
273,
3869,
12,
2890,
16,
315,
381,
458,
264,
3113,
599,
13,
578,
599,
309,
3869,
12,
2890,
16,
315,
4479,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
10991,
16,
3119,
33,
20,
4672,
709,
458,
264,
273,
3869,
12,
2890,
16,
315,
381,
458,
264,
3113,
599,
13,
578,
599,
309,
3869,
12,
2890,
16,
315,
4479,... |
out = open("/tmp/install_grub.sh", "w") out.write(" out.write("mount --bind /dev/ /target/dev\n") out.write("mount --bind /dev/pts /target/dev/shm\n") out.write("mount --bind /dev/shm /target/dev/shm\n") out.write("mount --bind /proc /target/proc\n") out.write("mount --bind /sys /target/sys\n") out.write("chroot /targe... | os.system("chroot /target/ /bin/sh -c \"grub-install %s\"" % self.grub_device) os.system("chroot /target/ /bin/sh -c \"grub-mkconfig -o /boot/grub/grub.cfg\""). | def install(self): | 1f67433dd89cdfc567276fc102cfd6220eeb46b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/1f67433dd89cdfc567276fc102cfd6220eeb46b7/installer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, aspect_ratio=[1,1,1], **kwds) | if 'aspect_ratio' not in kwds: kwds['aspect_ratio'] = [1,1,1] return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, **kwds) | def tetrahedron(center=(0,0,0), size=1, **kwds): """ A 3d tetrahedron. INPUTS: center -- (default: (0,0,0)) size -- (default: 1) color -- a word that describes a color rgbcolor -- (r,g,b) with r, g, b between 0 and 1 that describes a color opacity -- (default: 1) if less than 1 then is transparent EXAMPLES: A default... | 07274b99546f470d1c33d23188ff2f7d6d632ca9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/07274b99546f470d1c33d23188ff2f7d6d632ca9/platonic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
30710,
18550,
1949,
12,
5693,
28657,
20,
16,
20,
16,
20,
3631,
963,
33,
21,
16,
2826,
25577,
4672,
3536,
432,
890,
72,
268,
30710,
18550,
1949,
18,
225,
12943,
55,
30,
4617,
1493,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
30710,
18550,
1949,
12,
5693,
28657,
20,
16,
20,
16,
20,
3631,
963,
33,
21,
16,
2826,
25577,
4672,
3536,
432,
890,
72,
268,
30710,
18550,
1949,
18,
225,
12943,
55,
30,
4617,
1493,... |
print datas, ids, uid | def create(self, cr, uid, ids, datas, context={}): print datas, ids, uid | caf929146e3735faa27a2436c863df349bed11e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/caf929146e3735faa27a2436c863df349bed11e3/print_vat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5386,
16,
819,
12938,
4672,
1172,
5386,
16,
3258,
16,
4555,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5386,
16,
819,
12938,
4672,
1172,
5386,
16,
3258,
16,
4555,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.initcode.write("\n%saname = '%%s' %% name" % ID4) | self.initcode.write("\n%saname = '%s' %% name" % (ID4, self.aname_func("%s"))) | def _complexTypecodeLogic( self, typecodelist, tns ): | 77307e905cc88f00fb8aa43ce789b1d4e314eba7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/77307e905cc88f00fb8aa43ce789b1d4e314eba7/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14259,
559,
710,
20556,
12,
365,
16,
618,
71,
24221,
16,
268,
2387,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14259,
559,
710,
20556,
12,
365,
16,
618,
71,
24221,
16,
268,
2387,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return SYSTEM_ENCODING and string.decode(SYSTEM_ENCODING) or string | if self._is_jython22(): return string return string.decode(sys.stdin.encoding) def _is_jython22(self): return sys.platform.startswith('java') and sys.version_info[:2] == (2,2) | def _decode_from_system(self, string): return SYSTEM_ENCODING and string.decode(SYSTEM_ENCODING) or string | bea27516544b74f2074404d3a8f9688afa30acef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/bea27516544b74f2074404d3a8f9688afa30acef/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
67,
2080,
67,
4299,
12,
2890,
16,
533,
4672,
327,
18786,
67,
14672,
471,
533,
18,
3922,
12,
14318,
67,
14672,
13,
578,
533,
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,
3922,
67,
2080,
67,
4299,
12,
2890,
16,
533,
4672,
327,
18786,
67,
14672,
471,
533,
18,
3922,
12,
14318,
67,
14672,
13,
578,
533,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print """q(uit) Quit from the debugger. | print """q(uit) or exit - Quit from the debugger. | def help_q(self): print """q(uit) Quit from the debugger. | e38d650436c94cba619caf73de53af0db8844dbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e38d650436c94cba619caf73de53af0db8844dbb/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
85,
12,
2890,
4672,
1172,
3536,
85,
12,
14945,
13,
4783,
305,
628,
326,
19977,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
2809,
67,
85,
12,
2890,
4672,
1172,
3536,
85,
12,
14945,
13,
4783,
305,
628,
326,
19977,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.display_head() w("BLOCKED", str(self._blocked)) all = {} all.update(self._blocked_on) all.update(self._blocked_byneed) w(str(all)) raise | raise OperationError(self.space.w_RuntimeError, self.space.wrap("scheduler is in an incoherent state")) | def _check_initial_conditions(self): try: assert self._head._next == self._head._prev == self._head assert self._head not in self._blocked assert self._head not in self._blocked_on assert self._head not in self._blocked_byneed except: self.display_head() w("BLOCKED", str(self._blocked)) all = {} all.update(self._blocke... | 3005040e4765a3c81c3c0a77c03010ad156c89a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3005040e4765a3c81c3c0a77c03010ad156c89a4/scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
6769,
67,
6381,
12,
2890,
4672,
775,
30,
1815,
365,
6315,
1978,
6315,
4285,
422,
365,
6315,
1978,
6315,
10001,
422,
365,
6315,
1978,
1815,
365,
6315,
1978,
486,
316,
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,
1893,
67,
6769,
67,
6381,
12,
2890,
4672,
775,
30,
1815,
365,
6315,
1978,
6315,
4285,
422,
365,
6315,
1978,
6315,
10001,
422,
365,
6315,
1978,
1815,
365,
6315,
1978,
486,
316,
365,
... |
log.error("file %s is already part of this source package" % path) | log.error("file %s is already part of this source component" % path) | def addFile(file): try: state = SourceStateFromFile("SRS") except OSError: return try: os.lstat(file) except OSError: log.error("files must be created before they can be added") return for (fileId, path, version) in state.iterFileList(): if path == file: log.error("file %s is already part of this source package" % pa... | 0d349da7ed7ebeb171b782f8b44ad9e0c81f1443 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/0d349da7ed7ebeb171b782f8b44ad9e0c81f1443/checkin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18671,
12,
768,
4672,
775,
30,
919,
273,
4998,
1119,
13087,
2932,
10090,
55,
7923,
1335,
10002,
30,
327,
225,
775,
30,
1140,
18,
80,
5642,
12,
768,
13,
1335,
10002,
30,
613,
18,
1636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18671,
12,
768,
4672,
775,
30,
919,
273,
4998,
1119,
13087,
2932,
10090,
55,
7923,
1335,
10002,
30,
327,
225,
775,
30,
1140,
18,
80,
5642,
12,
768,
13,
1335,
10002,
30,
613,
18,
1636,
... |
isDefault = ns.currentOutgoingAccount.item == account and 1 or 0 | currentOutgoing = getattr(ns.currentOutgoingAccount, "item", None) isDefault = currentOutgoing == account and 1 or 0 | def export_smtp_account(self, account): | 3e087cbdba92c2f6fcac818e14007ca4aee3e0c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3e087cbdba92c2f6fcac818e14007ca4aee3e0c5/translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
20278,
67,
4631,
12,
2890,
16,
2236,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
20278,
67,
4631,
12,
2890,
16,
2236,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if 'date' in context: del context['date'] | if 'date' in ctx: del ctx['date'] | def get_credit_debit(self, cursor, user, ids, names, arg, context=None): ''' Function to compute debit, credit for account ids. | a3675d59e70bdb919282414bb87d5a72d2cc739d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/a3675d59e70bdb919282414bb87d5a72d2cc739d/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
1501,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
1501,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
18,
2... |
The log function also works in finite fields as long as the base is generator of the multiplicative group:: | The log function also works in finite fields as long as the argument lies in the multiplicative group generated by the base:: | def log(x, base=None): """ Return the logarithm of x to the given base. Calls the ``log`` method of the object x when computing the logarithm, thus allowing use of logarithm on any object containing a ``log`` method. In other words, log works on more than just real numbers. EXAMPLES:: sage: log(e^2) 2 sage: log(1024... | 140617a3e31911a7749de408ecf99386f5317208 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/140617a3e31911a7749de408ecf99386f5317208/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
92,
16,
1026,
33,
7036,
4672,
3536,
2000,
326,
613,
31249,
434,
619,
358,
326,
864,
1026,
18,
225,
23665,
326,
12176,
1330,
10335,
707,
434,
326,
733,
619,
1347,
20303,
326,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
92,
16,
1026,
33,
7036,
4672,
3536,
2000,
326,
613,
31249,
434,
619,
358,
326,
864,
1026,
18,
225,
23665,
326,
12176,
1330,
10335,
707,
434,
326,
733,
619,
1347,
20303,
326,
6... |
shutil.rmtree(base_path) | support.rmtree(base_path) | def _create_and_do_getcwd(dirname, current_path_length = 0): try: os.mkdir(dirname) except: raise support.TestSkipped("mkdir cannot create directory sufficiently deep for getcwd test") | 4bc266f6f8d4a579841898968a2ce26b1a66dd17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/4bc266f6f8d4a579841898968a2ce26b1a66dd17/test_posix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
464,
67,
2896,
67,
588,
11089,
12,
12287,
16,
783,
67,
803,
67,
2469,
273,
374,
4672,
775,
30,
1140,
18,
26686,
12,
12287,
13,
1335,
30,
1002,
2865,
18,
4709,
16425,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
464,
67,
2896,
67,
588,
11089,
12,
12287,
16,
783,
67,
803,
67,
2469,
273,
374,
4672,
775,
30,
1140,
18,
26686,
12,
12287,
13,
1335,
30,
1002,
2865,
18,
4709,
16425,
2... |
self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data(rva), | self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data( rva, Structure(self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__).sizeof() ), | def parse_resource_entry(self, rva): """Parse a directory entry from the resources directory.""" resource = self.__unpack_data__( self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data(rva), file_offset = self.get_offset_from_rva(rva) ) if resource is None: return None #resource.NameIsString = (resource.Name ... | 1d5b4f161f415406d1d384dc2319874979bcdef8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/1d5b4f161f415406d1d384dc2319874979bcdef8/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3146,
67,
4099,
12,
2890,
16,
5633,
69,
4672,
3536,
3201,
279,
1867,
1241,
628,
326,
2703,
1867,
12123,
225,
1058,
273,
365,
16186,
17309,
67,
892,
972,
12,
365,
16186,
13603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3146,
67,
4099,
12,
2890,
16,
5633,
69,
4672,
3536,
3201,
279,
1867,
1241,
628,
326,
2703,
1867,
12123,
225,
1058,
273,
365,
16186,
17309,
67,
892,
972,
12,
365,
16186,
13603,
... |
A symbolic unit. | A symbolic unit. | def unit_derivations_expr(v): """ Given derived units name, returns the corresponding units expression. For example, given 'acceleration' output the symbolic expression length/time^2. INPUT: - `v` -- string, name of a unit type such as 'area', 'volume', etc. OUTPUT: - symbolic expression EXAMPLES:: sage: sage.sy... | 36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2836,
67,
20615,
1012,
67,
8638,
12,
90,
4672,
3536,
16803,
10379,
4971,
508,
16,
1135,
326,
4656,
4971,
2652,
18,
225,
2457,
3454,
16,
864,
296,
30737,
7067,
11,
876,
326,
16754,
2652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2836,
67,
20615,
1012,
67,
8638,
12,
90,
4672,
3536,
16803,
10379,
4971,
508,
16,
1135,
326,
4656,
4971,
2652,
18,
225,
2457,
3454,
16,
864,
296,
30737,
7067,
11,
876,
326,
16754,
2652,
... |
Note that this construction results in n*|V| + 2*n*|E| + n*|E| | Note that this construction results in `n*|V| + 2*n*|E| + n*|E|` | def all_graph_colorings(G,n,count_only=False): """ Computes all n-colorings of the graph G by casting the graph coloring problem into an exact cover problem, and passing this into an implementation of the Dancing Links algorithm described by Knuth (who attributes the idea to Hitotumatu and Noshita). The construction w... | ccfc053e0300fe1bc0d898174322301c9db7ff10 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ccfc053e0300fe1bc0d898174322301c9db7ff10/graph_coloring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
4660,
67,
3266,
899,
12,
43,
16,
82,
16,
1883,
67,
3700,
33,
8381,
4672,
3536,
14169,
281,
777,
290,
17,
3266,
899,
434,
326,
2667,
611,
635,
27660,
326,
2667,
2036,
310,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
4660,
67,
3266,
899,
12,
43,
16,
82,
16,
1883,
67,
3700,
33,
8381,
4672,
3536,
14169,
281,
777,
290,
17,
3266,
899,
434,
326,
2667,
611,
635,
27660,
326,
2667,
2036,
310,
61... |
gLogger.error(errStr,'%s : %s' % (storageElementName,res['Message'])) | gLogger.error( errStr, '%s : %s' % ( storageElementName, res['Message'] ) ) | def _executeStorageElementFunction(self,storageElementName,pfn,method,argsDict={}): """ A simple wrapper around the storage element functionality """ # First check the supplied pfn(s) are the correct format. if type(pfn) in types.StringTypes: pfns = {pfn:False} elif type(pfn) == types.ListType: pfns = {} for url in pfn... | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
3245,
1046,
2083,
12,
2890,
16,
5697,
30584,
16,
84,
4293,
16,
2039,
16,
1968,
5014,
12938,
4672,
3536,
432,
4143,
4053,
6740,
326,
2502,
930,
14176,
3536,
468,
5783,
866,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
3245,
1046,
2083,
12,
2890,
16,
5697,
30584,
16,
84,
4293,
16,
2039,
16,
1968,
5014,
12938,
4672,
3536,
432,
4143,
4053,
6740,
326,
2502,
930,
14176,
3536,
468,
5783,
866,
326... |
found = 1 subst = ['\\begin_inset ERT', 'status collapsed', '', '\\begin_layout Standard', '', '', '\\backslash', 'nobreakdash-', '\\end_layout', '', '\\end_inset', ''] document.body[i:i+1] = subst if not found: return j = find_token(document.header, "\\use_amsmath", 0) if j == -1: document.warning("Malformed LyX docum... | subst = ['\\begin_inset ERT', 'status collapsed', '', '\\begin_layout Standard', '', '', '\\backslash', 'nobreakdash-', '\\end_layout', '', '\\end_inset', ''] document.body[i:i+1] = subst j = find_token(document.header, "\\use_amsmath", 0) if j == -1: document.warning("Malformed LyX document: Missing '\\use_amsmath'.")... | def revert_nobreakdash(document): 'Revert \\SpecialChar \\nobreakdash- to ERT' found = 0 for i in range(len(document.body)): line = document.body[i] r = re.compile(r'\\SpecialChar \\nobreakdash-') m = r.match(line) if m: found = 1 subst = ['\\begin_inset ERT', 'status collapsed', '', '\\begin_layout Standard', '', '', ... | 74141d4f72e1287c976bb033de1d376bfcc694d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/74141d4f72e1287c976bb033de1d376bfcc694d0/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
82,
947,
870,
21817,
12,
5457,
4672,
296,
426,
1097,
1736,
12193,
2156,
1736,
82,
947,
870,
21817,
17,
358,
4232,
56,
11,
1392,
273,
374,
364,
277,
316,
1048,
12,
1897,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
82,
947,
870,
21817,
12,
5457,
4672,
296,
426,
1097,
1736,
12193,
2156,
1736,
82,
947,
870,
21817,
17,
358,
4232,
56,
11,
1392,
273,
374,
364,
277,
316,
1048,
12,
1897,
12,
... |
None, [], | None, [], | def flimage_dup_(pImage, p2): """ flimage_dup_(pImage, p2) -> image """ retval = _flimage_dup_(pImage, p2) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
26427,
67,
12,
84,
2040,
16,
293,
22,
4672,
3536,
1183,
2730,
67,
26427,
67,
12,
84,
2040,
16,
293,
22,
13,
317,
1316,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
2642... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
26427,
67,
12,
84,
2040,
16,
293,
22,
4672,
3536,
1183,
2730,
67,
26427,
67,
12,
84,
2040,
16,
293,
22,
13,
317,
1316,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
2642... |
self._baseObjRef = ContainerRef(Indirection(evalStr='simbase.__dict__')) for i in self._nameContainerGen(simbase.__dict__, self._baseObjRef): | ref = ContainerRef(Indirection(evalStr='simbase.__dict__')) self._id2baseStartRef[id(simbase.__dict__)] = ref for i in self._addContainerGen(simbase.__dict__, ref): | def __init__(self, name, leakDetector): Job.__init__(self, name) self._leakDetector = leakDetector self._id2ref = self._leakDetector._id2ref self.notify = self._leakDetector.notify ContainerLeakDetector.addPrivateObj(self.__dict__) | d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
20891,
12594,
4672,
3956,
16186,
2738,
972,
12,
2890,
16,
508,
13,
365,
6315,
298,
581,
12594,
273,
20891,
12594,
365,
6315,
350,
22,
1734,
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,
1001,
2738,
972,
12,
2890,
16,
508,
16,
20891,
12594,
4672,
3956,
16186,
2738,
972,
12,
2890,
16,
508,
13,
365,
6315,
298,
581,
12594,
273,
20891,
12594,
365,
6315,
350,
22,
1734,
273,
... |
gLogger.error("SEvsLFCAgent.execute: Failed to get metadata.","%s %s" % (lfn,res['Value']['Failed'][lfn])) | gLogger.error("SEvsLFCAgent.execute: Failed to get replica information.","%s %s" % (lfn,res['Value']['Failed'][lfn])) | def execute(self): | 1b9d83d531f8db0d9d33db0e1e58e4f715d8c153 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/1b9d83d531f8db0d9d33db0e1e58e4f715d8c153/SEvsLFCAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
while 1: for i in range(self.decodingRate): | while not self.done: for i in xrange(self.decodingRate): | def _produceSoundBuffers(self): # Decode enough that we have at least one full sound buffer # ready in the queue if possible while 1: for i in range(self.decodingRate): soundBuffer = self._decodeStream() if soundBuffer: self.soundBuffers.insert(0, soundBuffer) if self.soundBuffers or self.done: break | fd83e7c1a811ef09c2d32488bf8a9a0efaef4aae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7946/fd83e7c1a811ef09c2d32488bf8a9a0efaef4aae/Audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11776,
311,
24331,
13699,
12,
2890,
4672,
468,
6209,
7304,
716,
732,
1240,
622,
4520,
1245,
1983,
14190,
1613,
468,
5695,
316,
326,
2389,
309,
3323,
1323,
486,
365,
18,
8734,
30,
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,
389,
11776,
311,
24331,
13699,
12,
2890,
4672,
468,
6209,
7304,
716,
732,
1240,
622,
4520,
1245,
1983,
14190,
1613,
468,
5695,
316,
326,
2389,
309,
3323,
1323,
486,
365,
18,
8734,
30,
36... |
if self.isCollection(): uri += "/" | if self.isCollection() and not uri.endswith("/"): uri += "/" | def gotXML(doc): if doc is None: # No request body means get all properties. search_properties = "all" else: # # Parse request # find = doc.root_element if not isinstance(find, davxml.PropertyFind): error = ("Non-%s element in PROPFIND request body: %s" % (davxml.PropertyFind.sname(), find)) log.err(error) return Statu... | a6c476ac5160b038c024e883fb5484b300dea914 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a6c476ac5160b038c024e883fb5484b300dea914/propfind.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
4201,
12,
2434,
4672,
309,
997,
353,
599,
30,
468,
2631,
590,
1417,
4696,
336,
777,
1790,
18,
1623,
67,
4738,
273,
315,
454,
6,
469,
30,
468,
468,
2884,
590,
468,
1104,
273,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
4201,
12,
2434,
4672,
309,
997,
353,
599,
30,
468,
2631,
590,
1417,
4696,
336,
777,
1790,
18,
1623,
67,
4738,
273,
315,
454,
6,
469,
30,
468,
468,
2884,
590,
468,
1104,
273,
99... |
if linkto[:n] == pattern: | if prog.search(linkto) >= 0: | def visit(pattern, dirname, names): if os.path.islink(dirname): names[:] = [] return if os.path.ismount(dirname): print 'descend into', dirname n = len(pattern) for name in names: name = os.path.join(dirname, name) try: linkto = os.readlink(name) if linkto[:n] == pattern: print name, '->', linkto except os.error: pass | 6bfb4c78de5f4239a8cfca0ac3635638e1fdfd38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6bfb4c78de5f4239a8cfca0ac3635638e1fdfd38/findlinksto.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
12,
4951,
16,
4283,
16,
1257,
4672,
309,
1140,
18,
803,
18,
291,
1232,
12,
12287,
4672,
1257,
10531,
65,
273,
5378,
327,
309,
1140,
18,
803,
18,
291,
4778,
12,
12287,
4672,
1172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
12,
4951,
16,
4283,
16,
1257,
4672,
309,
1140,
18,
803,
18,
291,
1232,
12,
12287,
4672,
1257,
10531,
65,
273,
5378,
327,
309,
1140,
18,
803,
18,
291,
4778,
12,
12287,
4672,
1172,... |
{-1/8,0} | {7/8,1} | def modular_symbol(self, x, check=True): """ Create a modular symbol in this space. | c2726358b2f1025f81eb75f22c648bce0095a09b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c2726358b2f1025f81eb75f22c648bce0095a09b/ambient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
681,
2490,
67,
7175,
12,
2890,
16,
619,
16,
866,
33,
5510,
4672,
3536,
1788,
279,
681,
2490,
3273,
316,
333,
3476,
18,
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,
681,
2490,
67,
7175,
12,
2890,
16,
619,
16,
866,
33,
5510,
4672,
3536,
1788,
279,
681,
2490,
3273,
316,
333,
3476,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return None | return False | def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage. | 9c08cda4aa58cfa7cdbb6a02025a1219305ed383 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/9c08cda4aa58cfa7cdbb6a02025a1219305ed383/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
utils.system(var_ld_path + ' ' + cmd) report = open(self.debugdir + '/stderr') keyval = open(self.resultsdir + '/keyval', 'w') _format_results(report, keyval) | stderr = os.path.join(self.debugdir, 'stderr') utils.system('%s %s 2> %s' % (var_ld_path, cmd, stderr)) report = open(stderr) self.format_results(report) | def run_once(self, args = ''): os.chdir(self.tmpdir) libs = self.autodir+'/deps/libaio/lib/' ld_path = autotest_utils.prepend_path(libs, autotest_utils.environ('LD_LIBRARY_PATH')) var_ld_path = 'LD_LIBRARY_PATH=' + ld_path cmd = self.srcdir + '/aio-stress ' + args + ' poo' | fda84601a0757d996ecbccc2a8c6ab530af3a16e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/fda84601a0757d996ecbccc2a8c6ab530af3a16e/aiostress.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
16,
833,
273,
875,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
5645,
1214,
13,
15042,
273,
365,
18,
5854,
369,
481,
6797,
19,
14877,
19,
2941,
69,
1594,
19,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
16,
833,
273,
875,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
5645,
1214,
13,
15042,
273,
365,
18,
5854,
369,
481,
6797,
19,
14877,
19,
2941,
69,
1594,
19,
29... |
assert a[2] != None return collections.namedtuple( | assert a[2] != None, "None is reserved for indicating uninitialized fields" return namedtuple( | def ClfsStructField(*args): a = list(args) if len(a) < 3: a.append(None) else: assert a[2] != None return collections.namedtuple( "ClfsStructField", ("name", "format", "initval") )(*a) | a2d8f4bc0f5dd94eba8767e5d77b1beb78415227 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4811/a2d8f4bc0f5dd94eba8767e5d77b1beb78415227/clfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3905,
2556,
3823,
974,
30857,
1968,
4672,
279,
273,
666,
12,
1968,
13,
309,
562,
12,
69,
13,
411,
890,
30,
279,
18,
6923,
12,
7036,
13,
469,
30,
1815,
279,
63,
22,
65,
480,
599,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3905,
2556,
3823,
974,
30857,
1968,
4672,
279,
273,
666,
12,
1968,
13,
309,
562,
12,
69,
13,
411,
890,
30,
279,
18,
6923,
12,
7036,
13,
469,
30,
1815,
279,
63,
22,
65,
480,
599,
16... |
if self.end_hook(process): | if self.end_hook: | def generate(self): self.process = process = Popen(self.args, stdout=open(os.devnull, 'w'), stderr=PIPE) if self.begin_hook: self.begin_hook(process) while process.poll() is None: rd, _, __ = select.select( [process.stderr], [], [], 0.05) if rd: self.notify(process.stderr.readline(), bad=True) sleep(0.02) yield if self... | 792d6b23711c428a4a2b98537f44e2fbaed97fdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/792d6b23711c428a4a2b98537f44e2fbaed97fdd/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
365,
18,
2567,
273,
1207,
273,
14339,
12,
2890,
18,
1968,
16,
3909,
33,
3190,
12,
538,
18,
5206,
2011,
16,
296,
91,
19899,
4514,
33,
27602,
13,
309,
365,
18,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
365,
18,
2567,
273,
1207,
273,
14339,
12,
2890,
18,
1968,
16,
3909,
33,
3190,
12,
538,
18,
5206,
2011,
16,
296,
91,
19899,
4514,
33,
27602,
13,
309,
365,
18,
10... |
for line in r.read().split("\n"): | for line in results.read().split("\n"): | def get_data(id): """ get imdb data about the movie with the given id """ title = '' info = {} for t in imdb_info_tags: info[t] = "" image_urls = [] dvd = 0 regexp_title = re.compile('.*STRONG CLASS="title">(.*?)<', re.I) regexp_year = re.compile('.*<A HREF="/Sections/Years/.*?([0-9]*)<', re.I) regexp_genre ... | e00036671e126e280c06feccf239a5d998078ae8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e00036671e126e280c06feccf239a5d998078ae8/imdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
350,
4672,
3536,
336,
709,
1966,
501,
2973,
326,
21360,
598,
326,
864,
612,
3536,
225,
2077,
273,
875,
1123,
273,
2618,
225,
364,
268,
316,
709,
1966,
67,
1376,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
350,
4672,
3536,
336,
709,
1966,
501,
2973,
326,
21360,
598,
326,
864,
612,
3536,
225,
2077,
273,
875,
1123,
273,
2618,
225,
364,
268,
316,
709,
1966,
67,
1376,
67,
... |
stream.write("</%s>" % elem.tag) | if elem.tag != 'html': stream.write("</%s>" % elem.tag) | def dump_tree(elem, stream): if elem.tag.startswith('MAKO:'): dump_mako_tag(elem, stream) else: if elem.tag != 'html': if elem.attrib: stream.write("<%s %s>" % (elem.tag, " ".join(["%s=%s" % (key, repr(val)) for key, val in elem.attrib.iteritems()]))) else: stream.write("<%s>" % elem.tag) if elem.text: stream.write(ele... | cf9549854fb1e1e09128b30e9cada480d27761e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/cf9549854fb1e1e09128b30e9cada480d27761e3/read_markdown.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
3413,
12,
10037,
16,
1407,
4672,
309,
3659,
18,
2692,
18,
17514,
1918,
2668,
5535,
47,
51,
2497,
4672,
4657,
67,
81,
581,
83,
67,
2692,
12,
10037,
16,
1407,
13,
469,
30,
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,
4657,
67,
3413,
12,
10037,
16,
1407,
4672,
309,
3659,
18,
2692,
18,
17514,
1918,
2668,
5535,
47,
51,
2497,
4672,
4657,
67,
81,
581,
83,
67,
2692,
12,
10037,
16,
1407,
13,
469,
30,
30... |
"""Toggles Ghostability.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) if len(data) == 1: menuItem = wx.MenuItem(menu,self.id,_("Don't Ghost"),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) self.allowGhosting = bosh.modInfos.table.getItem(data[0],'allowGhosting',True) menuItem.Che... | """Toggles Ghostability.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) if len(data) == 1: menuItem = wx.MenuItem(menu,self.id,_("Don't Ghost"),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) self.allowGhosting = bosh.modInfos.table.getItem(data[0],'allowGhosting',True) menuItem.Che... | def Execute(self,event): for fileName in self.data: fileInfo = bosh.modInfos[fileName] allowGhosting = bosh.modInfos.table.getItem(fileName,'allowGhosting',True) ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileIn... | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
364,
3968,
316,
365,
18,
892,
30,
12538,
273,
324,
17636,
18,
1711,
7655,
63,
17812,
65,
1699,
43,
31415,
273,
324,
17636,
18,
1711,
7655,
18,
2121,
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,
7903,
12,
2890,
16,
2575,
4672,
364,
3968,
316,
365,
18,
892,
30,
12538,
273,
324,
17636,
18,
1711,
7655,
63,
17812,
65,
1699,
43,
31415,
273,
324,
17636,
18,
1711,
7655,
18,
2121,
18,... |
fd = os.open(lockfn,os.O_CREAT | os.O_RDWR | os.O_NONBLOCK) | try: oldumask = os.umask(000) fd = os.open(lockfn,os.O_CREAT | os.O_RDWR | os.O_NONBLOCK, int('0666',8)) finally: os.umask(oldumask) | def getprocesslockflock(lockname): global oldfiledesc # the file we'll use lockfn = "/tmp/runoncelock."+lockname try: fd = os.open(lockfn,os.O_CREAT | os.O_RDWR | os.O_NONBLOCK) #print >> sys.stderr, 'flock get file descriptor == '+str(fd) except (OSError, IOError), e: if e[0] == errno.EACCES or e[0] == errno.EAGAIN: ... | 4d800553044ca4783ee75b7059611676c05ae73a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/4d800553044ca4783ee75b7059611676c05ae73a/runonce.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2567,
739,
74,
739,
12,
739,
529,
4672,
2552,
1592,
768,
5569,
468,
326,
585,
732,
5614,
999,
2176,
4293,
273,
2206,
5645,
19,
2681,
265,
2183,
975,
1199,
15,
739,
529,
225,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2567,
739,
74,
739,
12,
739,
529,
4672,
2552,
1592,
768,
5569,
468,
326,
585,
732,
5614,
999,
2176,
4293,
273,
2206,
5645,
19,
2681,
265,
2183,
975,
1199,
15,
739,
529,
225,
775,
... |
],'State', select=True, readonly=False), 'email':fields.char('Email Address', size=1024, required=True, readonly=False), | ],'Repeat Every', select=True, readonly=False), 'notify':fields.selection([ ('email','Email Address'), ('mobile','Mobile Number'), ],'Notify On', select=True, reduired=True), 'email':fields.char('Email / Mobile', size=1024, help="This can be any things, it can be email address or mobile according to usage of action"), | def _call(self, cr, uid, ids=False, context={}): ''' Function called by the scheduler to process cases for date actions Only works on not done and cancelled cases ''' action_pool = model_pool = self.pool.get('ir.actions.server') if not ids: ids = self.search(cr, uid, [('state','=','done')]) | 9e0c19f5be5bc2bbb70446b01238feb0be4200c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9e0c19f5be5bc2bbb70446b01238feb0be4200c9/reminder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
33,
8381,
16,
819,
12938,
4672,
9163,
4284,
2566,
635,
326,
8129,
358,
1207,
6088,
364,
1509,
4209,
5098,
6330,
603,
486,
2731,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
33,
8381,
16,
819,
12938,
4672,
9163,
4284,
2566,
635,
326,
8129,
358,
1207,
6088,
364,
1509,
4209,
5098,
6330,
603,
486,
2731,
471,
... |
from xml.dom.minidom import parse | try: from xml.dom.minidom import parse except ImportError: return | def _getSVNVersion(self): mod = sys.modules.get(self.package) if mod: ent = os.path.join(os.path.dirname(mod.__file__), '.svn', 'entries') if os.path.exists(ent): from xml.dom.minidom import parse doc = parse(file(ent)).documentElement for node in doc.childNodes: if hasattr(node, 'getAttribute'): rev = node.getAttribut... | 8f3be5cb40cc400469a255f5ca399ba13fd51e8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8f3be5cb40cc400469a255f5ca399ba13fd51e8f/versions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
23927,
50,
1444,
12,
2890,
4672,
681,
273,
2589,
18,
6400,
18,
588,
12,
2890,
18,
5610,
13,
309,
681,
30,
3281,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
23927,
50,
1444,
12,
2890,
4672,
681,
273,
2589,
18,
6400,
18,
588,
12,
2890,
18,
5610,
13,
309,
681,
30,
3281,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
... |
print "WRITING", self._root | def write(self, file, encoding="us-ascii"): assert self._root is not None if not hasattr(file, "write"): file = open(file, "wb") if not encoding: encoding = "us-ascii" elif encoding != "utf-8" and encoding != "us-ascii": file.write("<?xml version='1.0' encoding='%s'?>\n" % encoding) print "WRITING", self._root self._w... | 9876bdcc84778ec44f8a2ec0608c042fd79f81cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/9876bdcc84778ec44f8a2ec0608c042fd79f81cf/preso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
585,
16,
2688,
1546,
407,
17,
9184,
6,
4672,
1815,
365,
6315,
3085,
353,
486,
599,
309,
486,
3859,
12,
768,
16,
315,
2626,
6,
4672,
585,
273,
1696,
12,
768,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
585,
16,
2688,
1546,
407,
17,
9184,
6,
4672,
1815,
365,
6315,
3085,
353,
486,
599,
309,
486,
3859,
12,
768,
16,
315,
2626,
6,
4672,
585,
273,
1696,
12,
768,
16,
... | |
thingie = pickle.load(open(self.infile, 'r')) if isinstance(thingie, dict): self.update(self.__class__(thingie)) elif isinstance(thingie, tuple) and len(thingie) == 2: counts, calledfuncs = thingie self.update(self.__class__(counts, calledfuncs)) except (IOError, EOFError), err: | counts, calledfuncs = pickle.load(open(self.infile, 'r')) self.update(self.__class__(counts, calledfuncs)) except (IOError, EOFError, ValueError), err: | def __init__(self, counts=None, calledfuncs=None, infile=None, outfile=None): self.counts = counts if self.counts is None: self.counts = {} self.counter = self.counts.copy() # map (filename, lineno) to count self.calledfuncs = calledfuncs if self.calledfuncs is None: self.calledfuncs = {} self.calledfuncs = self.called... | 576118fffe82c1d7703640259bcab17205a335ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/576118fffe82c1d7703640259bcab17205a335ad/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6880,
33,
7036,
16,
2566,
17728,
33,
7036,
16,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
365,
18,
8008,
273,
6880,
309,
365,
18,
8008,
353,
599,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6880,
33,
7036,
16,
2566,
17728,
33,
7036,
16,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
365,
18,
8008,
273,
6880,
309,
365,
18,
8008,
353,
599,
30,
3... |
QQ['x'] | def charpoly(self, var): """ Returns the characteristic polynomial of this element. | 7d0e75937f9b89525b8c6d2c166b888aa45d45aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/7d0e75937f9b89525b8c6d2c166b888aa45d45aa/finite_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
16353,
12,
2890,
16,
569,
4672,
3536,
2860,
326,
23158,
16991,
434,
333,
930,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
16353,
12,
2890,
16,
569,
4672,
3536,
2860,
326,
23158,
16991,
434,
333,
930,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
raise PLCPermissionDenied, "Could not create dir %s"%tempdir | raise PLCPermissionDenied, "Could not create dir %s"%self.WORKDIR | def hexa2 (c): return chr((c>>4)+65) + chr ((c&16)+65) | c8a588799344db08a0317644ebb9ebfc6ebf9860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7598/c8a588799344db08a0317644ebb9ebfc6ebf9860/GetBootMedium.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
69,
22,
261,
71,
4672,
327,
4513,
12443,
71,
9778,
24,
27921,
9222,
13,
397,
4513,
14015,
71,
10,
2313,
27921,
9222,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
69,
22,
261,
71,
4672,
327,
4513,
12443,
71,
9778,
24,
27921,
9222,
13,
397,
4513,
14015,
71,
10,
2313,
27921,
9222,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if timestamp != -1 and retpos == -1: | if timestamp != None and retpos == -1: | def _find_timer_PES_(self, buffer): """ Return position of timer in buffer or -1 if not found. This function is valid for PES files """ pos = buffer.find('\x00\x00\x01') offset = 0 if pos == -1 or offset + 1000 >= len(buffer): return -1 | 42acd927733011cf8240a16b5447261ed338ea48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/42acd927733011cf8240a16b5447261ed338ea48/mpeginfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
12542,
67,
1423,
55,
67,
12,
2890,
16,
1613,
4672,
3536,
2000,
1754,
434,
5441,
316,
1613,
578,
300,
21,
309,
486,
1392,
18,
1220,
445,
353,
923,
364,
453,
3991,
1390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
67,
12542,
67,
1423,
55,
67,
12,
2890,
16,
1613,
4672,
3536,
2000,
1754,
434,
5441,
316,
1613,
578,
300,
21,
309,
486,
1392,
18,
1220,
445,
353,
923,
364,
453,
3991,
1390,
... |
blockingCallFromThread(reactor, reactor.connectTCP, self.server, self.port, self.factory) | blockingCallFromThread(reactor, reactor.connectTCP, self.server, self.port, self.factory) | def connect(self): """ This methods establishes the conection to the remote server. | 4b8c14cab71d51848857a553320ed7033995fc6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/4b8c14cab71d51848857a553320ed7033995fc6d/dsage_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
4672,
3536,
1220,
2590,
18312,
281,
326,
356,
794,
358,
326,
2632,
1438,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
4672,
3536,
1220,
2590,
18312,
281,
326,
356,
794,
358,
326,
2632,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def startTagStyleScript(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagInput(self, token): if ("type" in token["data"] and token["data"]["type"].translate(asciiUpper2Lower) == "hidden"): self.parser.parseError("unexpected-hidden-input-in-table") self.tree.insertElement(token) | def startTagRowGroup(self, token): self.clearStackToTableContext() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inTableBody"] def startTagImplyTbody(self, token): self.startTagRowGroup(impliedTagToken("tbody", "StartTag")) self.parser.phase.processStartTag(token) def startTagTable(self, toke... | def startTagStyleScript(self, token): self.parser.phases["inHead"].processStartTag(token) | 5cc56a5db432ce478d90ee0dd744811935854947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/5cc56a5db432ce478d90ee0dd744811935854947/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
2885,
3651,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
844,
3304,
9614,
267,
1414,
6,
8009,
2567,
30512,
12,
2316,
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,
787,
1805,
2885,
3651,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
844,
3304,
9614,
267,
1414,
6,
8009,
2567,
30512,
12,
2316,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
fdb = FdbCollector(proxy, dbpool) | fdb = FdbCollector(proxy, dbpool, self.normPort) | def collectData(self, ip, proxy, dbpool): ports = PortCollector(proxy, dbpool) fdb = FdbCollector(proxy, dbpool) arp = ArpCollector(proxy, dbpool) # LLDP disabled due to unstability # lldp = LldpCollector(proxy, dbpool) d = ports.collectData() d.addCallback(lambda x: fdb.collectData(write=False)) d.addCallback(lambda x... | 0f22d078d92418f98427927848bd42157142046e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13050/0f22d078d92418f98427927848bd42157142046e/extreme.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
751,
12,
2890,
16,
2359,
16,
2889,
16,
1319,
6011,
4672,
9048,
273,
6008,
7134,
12,
5656,
16,
1319,
6011,
13,
284,
1966,
273,
478,
1966,
7134,
12,
5656,
16,
1319,
6011,
16,
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,
3274,
751,
12,
2890,
16,
2359,
16,
2889,
16,
1319,
6011,
4672,
9048,
273,
6008,
7134,
12,
5656,
16,
1319,
6011,
13,
284,
1966,
273,
478,
1966,
7134,
12,
5656,
16,
1319,
6011,
16,
365,
... |
self.log.verbose('Available slots=%d, TQ jobs=%d, Pilots to submit=%d' % (totalSlots,totalTQJobs,pilotsToSubmit) ) | self.log.verbose( 'Available slots=%d, TQ jobs=%d, Pilots to submit=%d' % ( totalSlots, totalTQJobs, pilotsToSubmit ) ) | def submitJobs( self ): """ Go through defined computing elements and submit jobs if necessary """ | e99c1cc388c80826da2da9077d74d2e5b147e592 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e99c1cc388c80826da2da9077d74d2e5b147e592/SiteDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
7276,
12,
365,
262,
30,
3536,
4220,
3059,
2553,
20303,
2186,
471,
4879,
6550,
309,
4573,
3536,
2,
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,
4879,
7276,
12,
365,
262,
30,
3536,
4220,
3059,
2553,
20303,
2186,
471,
4879,
6550,
309,
4573,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.w('<tt>') | self.w('<div style="Code">') | def visit_literal(self, node): self.w('<tt>') | 46d27fd0988345162aa05e8c8214fca51757feb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/46d27fd0988345162aa05e8c8214fca51757feb4/pythonpoint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
13107,
12,
2890,
16,
756,
4672,
365,
18,
91,
2668,
32,
748,
1870,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
13107,
12,
2890,
16,
756,
4672,
365,
18,
91,
2668,
32,
748,
1870,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
<menuitem action="Cut"/> <menuitem action="Copy"/> <menuitem action="Copy Tree"/> <menuitem action="Paste"/> <separator/> | def _get_ui(self): """Returns the UI XML""" # NOTE: I use a dummy menubar popup_menus so that I can have # accelerators on the menus. It is a hack. | 2414fb05747095e498fcda291babe364bcf5b6ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/2414fb05747095e498fcda291babe364bcf5b6ea/three_pane_viewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4881,
12,
2890,
4672,
3536,
1356,
326,
6484,
3167,
8395,
225,
468,
5219,
30,
467,
999,
279,
9609,
21247,
373,
297,
10431,
67,
26065,
1427,
716,
467,
848,
1240,
468,
15153,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4881,
12,
2890,
4672,
3536,
1356,
326,
6484,
3167,
8395,
225,
468,
5219,
30,
467,
999,
279,
9609,
21247,
373,
297,
10431,
67,
26065,
1427,
716,
467,
848,
1240,
468,
15153,
... | |
self._callHooks('prebuild') | self._callHooks('earlyprebuild') | def build(self, srpm, timeout): """build an srpm into binary rpms, capture log""" | 5d6a076e7c312b386f263c85fc6631726036e731 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/5d6a076e7c312b386f263c85fc6631726036e731/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
9133,
7755,
16,
2021,
4672,
3536,
3510,
392,
9133,
7755,
1368,
3112,
8715,
959,
16,
7477,
613,
8395,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2890,
16,
9133,
7755,
16,
2021,
4672,
3536,
3510,
392,
9133,
7755,
1368,
3112,
8715,
959,
16,
7477,
613,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if hunknum == 0 and dopatch and not gitworkdone: | if (empty is None and not gitworkdone) or empty: | def iterhunks(ui, fp, sourcefile=None): """Read a patch and yield the following events: - ("file", afile, bfile, firsthunk): select a new target file. - ("hunk", hunk): a new hunk is ready to be applied, follows a "file" event. - ("git", gitchanges): current diff is in git format, gitchanges maps filenames to gitpatch ... | 129a1fb327659ea0ed3bcb35f6db965e33976533 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/129a1fb327659ea0ed3bcb35f6db965e33976533/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
76,
1683,
87,
12,
4881,
16,
4253,
16,
1084,
768,
33,
7036,
4672,
3536,
1994,
279,
4729,
471,
2824,
326,
3751,
2641,
30,
300,
7566,
768,
3113,
279,
768,
16,
324,
768,
16,
1122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
76,
1683,
87,
12,
4881,
16,
4253,
16,
1084,
768,
33,
7036,
4672,
3536,
1994,
279,
4729,
471,
2824,
326,
3751,
2641,
30,
300,
7566,
768,
3113,
279,
768,
16,
324,
768,
16,
1122,
... |
box = '''<table class="navbox"> | box = '''<table class="navbox" width="210"> | def login(self, uri, user): if self.command_line==1: return '' if user: log(3, 'Creating active user box') box = '''<table class="navbox"> <tr><th>|stractive_user|</th></tr> <form name="logout" action="/data/session/logout"> <input name="username" type="hidden" value="%s"> <tr><td align="center"> <a href="/user/|sessio... | 912dd8d48a7fd0d5d2d9d1714e547c5a814754bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/912dd8d48a7fd0d5d2d9d1714e547c5a814754bf/HTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
2003,
16,
729,
4672,
309,
365,
18,
3076,
67,
1369,
631,
21,
30,
327,
875,
309,
729,
30,
613,
12,
23,
16,
296,
11092,
2695,
729,
3919,
6134,
3919,
273,
9163,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
2003,
16,
729,
4672,
309,
365,
18,
3076,
67,
1369,
631,
21,
30,
327,
875,
309,
729,
30,
613,
12,
23,
16,
296,
11092,
2695,
729,
3919,
6134,
3919,
273,
9163,
32,
... |
sizer.Add(analyser_box, 0, wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.EXPAND, 5) | analysissection.Add(analyser_box, 0, wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.EXPAND, 5) sizer.Add(analysissection, 0, wx.EXPAND|wx.ALL, 5) | def __init__(self, parent, dialog): ABCOptionPanel.__init__(self, parent, dialog) sizer = self.sizer | 76862ea4579e5b42f076e233b20d63b7cbb789f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/76862ea4579e5b42f076e233b20d63b7cbb789f0/abcoption.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
6176,
4672,
29253,
1895,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
16,
6176,
13,
272,
1824,
273,
365,
18,
87,
1824,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
16,
6176,
4672,
29253,
1895,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
16,
6176,
13,
272,
1824,
273,
365,
18,
87,
1824,
2,
-100,
-100,
-100,
-100,
... |
msg = 'Traceback (most recent call last):' if self.__out.strip()[:len(msg)] == msg: | msg = TRACEBACK if self.__out.strip().startswith(msg): | def plain_text(self, ncols=0, prompts=True, max_out=None, wiki_out=False): if ncols == 0: ncols = self.word_wrap_cols() s = '' | f403620404e2fffc45865fb228d8e5e1ffeee4c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f403620404e2fffc45865fb228d8e5e1ffeee4c8/cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7351,
67,
955,
12,
2890,
16,
21330,
33,
20,
16,
3012,
1092,
33,
5510,
16,
943,
67,
659,
33,
7036,
16,
9050,
67,
659,
33,
8381,
4672,
309,
21330,
422,
374,
30,
21330,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7351,
67,
955,
12,
2890,
16,
21330,
33,
20,
16,
3012,
1092,
33,
5510,
16,
943,
67,
659,
33,
7036,
16,
9050,
67,
659,
33,
8381,
4672,
309,
21330,
422,
374,
30,
21330,
273,
365,
18,
... |
skin.PopupBox('%s\nnot found!' % filename) | skin.PopupBox('%s\nnot found!' % os.path.basename(filename)) | def play(self, mode, file, playlist, repeat=0): | 701b8178a3a3e97028428d103ae7e0c428f522b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/701b8178a3a3e97028428d103ae7e0c428f522b2/mplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
2890,
16,
1965,
16,
585,
16,
16428,
16,
7666,
33,
20,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
2890,
16,
1965,
16,
585,
16,
16428,
16,
7666,
33,
20,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
package_data = { "": ["*.txt", "*.zcml"], "ore.contentmirror": ["*.zcml", "*.txt"]}, | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 833b478ea845034f70ec82255ba527432bc9f701 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4759/833b478ea845034f70ec82255ba527432bc9f701/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,... | |
destination = self.bookmarkReference(destinationname) | destination = self._bookmarkReference(destinationname) | def linkAnnotationAbsolute(self, contents, destinationname, Rect=None, addtopage=1, name=None, **kw): """link annotation positioned wrt the default user space""" destination = self.bookmarkReference(destinationname) # permitted to be undefined... must bind later... (w,h) = self._pagesize if not Rect: Rect = (0,0,w,h) k... | 2424475e071e1c37b73f3c67658b0731bda9a15e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2424475e071e1c37b73f3c67658b0731bda9a15e/canvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
3257,
10368,
12,
2890,
16,
2939,
16,
2929,
529,
16,
9315,
33,
7036,
16,
527,
3669,
410,
33,
21,
16,
508,
33,
7036,
16,
2826,
9987,
4672,
3536,
1232,
3204,
1754,
329,
31565,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
3257,
10368,
12,
2890,
16,
2939,
16,
2929,
529,
16,
9315,
33,
7036,
16,
527,
3669,
410,
33,
21,
16,
508,
33,
7036,
16,
2826,
9987,
4672,
3536,
1232,
3204,
1754,
329,
31565,
326,
... |
self.moveMolYAction.setIconSet(QIconSet(self.image82)) | self.moveMolYAction.setIconSet(QIconSet(self.image83)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 1fffefaa2964961cbc9adc237e2fedcbaf53df97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1fffefaa2964961cbc9adc237e2fedcbaf53df97/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
return QWebView.wheelEvent(self, event) | ret = QWebView.wheelEvent(self, event) if self.manager is not None: self.manager.scrolled(self.scroll_fraction) return ret | def wheelEvent(self, event): if event.delta() < -14: if self.document.at_bottom: if self.manager is not None: self.manager.next_document() event.accept() return elif event.delta() > 14: if self.document.at_top: if self.manager is not None: self.manager.previous_document() event.accept() return return QWebView.wheelEven... | 62394454d5fda8425efc4f28e5f153855dd46ee2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/62394454d5fda8425efc4f28e5f153855dd46ee2/documentview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19100,
1133,
12,
2890,
16,
871,
4672,
309,
871,
18,
9878,
1435,
411,
300,
3461,
30,
309,
365,
18,
5457,
18,
270,
67,
9176,
30,
309,
365,
18,
4181,
353,
486,
599,
30,
365,
18,
4181,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19100,
1133,
12,
2890,
16,
871,
4672,
309,
871,
18,
9878,
1435,
411,
300,
3461,
30,
309,
365,
18,
5457,
18,
270,
67,
9176,
30,
309,
365,
18,
4181,
353,
486,
599,
30,
365,
18,
4181,
... |
self.doc.last_updated, | self.doc.last_update, | def __init__(self, doc_id): self.id = doc_id self.doc = lampadas.docs[doc_id] omf = WOStringIO('<resource id="%s">\n' '%s' '%s' '%s' '<title>%s</title>\n' '<date>%s</date>\n' '<versiongroup>\n' ' <version>\n' ' <id>%s</id>\n' ' <date>%s</date>\n' ' </version>\n' '</versiongroup>\n' '<type>%s</type>\n' '%s\n' '<... | 5f5e9e97ca1268eae03f8ee340514d7952aa772f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/5f5e9e97ca1268eae03f8ee340514d7952aa772f/OMF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
997,
67,
350,
4672,
365,
18,
350,
273,
997,
67,
350,
365,
18,
2434,
273,
328,
931,
361,
345,
18,
8532,
63,
2434,
67,
350,
65,
8068,
74,
273,
678,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
67,
350,
4672,
365,
18,
350,
273,
997,
67,
350,
365,
18,
2434,
273,
328,
931,
361,
345,
18,
8532,
63,
2434,
67,
350,
65,
8068,
74,
273,
678,
51,... |
raise ValueError("invalid `justify` specification") else: justify = ['left'] for ser in tseries: if str(ser.dtype)[:2] == '|S': justify.append('left') else: justify.append('right') | justify = ['left'] for ser in tseries: if str(ser.dtype)[:2] == '|S': justify.append('left') else: justify.append('right') else: justify = [None for x in range(len(tseries)+1)] | def option(kw): return option_dict.get(kw, _default_options[kw]) | 49f7cf850b803093831ddb07ea689be861903eaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/49f7cf850b803093831ddb07ea689be861903eaa/reportlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1456,
12,
9987,
4672,
327,
1456,
67,
1576,
18,
588,
12,
9987,
16,
389,
1886,
67,
2116,
63,
9987,
5717,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1456,
12,
9987,
4672,
327,
1456,
67,
1576,
18,
588,
12,
9987,
16,
389,
1886,
67,
2116,
63,
9987,
5717,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def usage: | def usage(): | def usage: sys.stderr.write("Usage: %s [-l INFILE] OUTFILE ACCUMDIRS...\n" % (sys.argv[0])) | 42dc1849d760ade35d9eb7aa268b3d4643a0a5bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6303/42dc1849d760ade35d9eb7aa268b3d4643a0a5bc/mllt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
5357,
30,
738,
87,
23059,
80,
2120,
3776,
65,
8210,
3776,
18816,
2799,
4537,
55,
2777,
64,
82,
6,
738,
261,
9499,
18,
19485,
63,
20,
22643... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
5357,
30,
738,
87,
23059,
80,
2120,
3776,
65,
8210,
3776,
18816,
2799,
4537,
55,
2777,
64,
82,
6,
738,
261,
9499,
18,
19485,
63,
20,
22643... |
security.declareProtected(permissions.View, 'Type') | security.declareProtected(CMFCorePermissions.View, 'Type') | def setId(self, value): """Sets the object id. """ if value != self.getId(): parent = aq_parent(aq_inner(self)) if parent is not None: # See Referenceable, keep refs on what is a move/rename self._v_cp_refs = 1 parent.manage_renameObject(self.id, value) self._setId(value) | 460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10446,
12,
2890,
16,
460,
4672,
3536,
2785,
326,
733,
612,
18,
3536,
309,
460,
480,
365,
18,
26321,
13332,
982,
273,
279,
85,
67,
2938,
12,
69,
85,
67,
7872,
12,
2890,
3719,
309,
982... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10446,
12,
2890,
16,
460,
4672,
3536,
2785,
326,
733,
612,
18,
3536,
309,
460,
480,
365,
18,
26321,
13332,
982,
273,
279,
85,
67,
2938,
12,
69,
85,
67,
7872,
12,
2890,
3719,
309,
982... |
server_http1('mysession', address='sage.math.washington.edu') | notebook('mysession', address='sage.math.washington.edu') | def notebook(dir ='sage_notebook', port = 8000, address = 'localhost', open_viewer = False, max_tries = 10, username = None, password = None, color = None, system = None, jsmath = True, show_debug = False, splashpage = None, warn = True, ignore_lock = False, log_serve... | 04162fd4940eae5d345d25e40c849345db7f4cde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/04162fd4940eae5d345d25e40c849345db7f4cde/notebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
12,
1214,
540,
273,
11,
87,
410,
67,
24422,
2187,
1756,
3639,
273,
1725,
3784,
16,
1758,
377,
273,
296,
13014,
2187,
1696,
67,
25256,
273,
1083,
16,
943,
67,
2007,
282,
273,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
12,
1214,
540,
273,
11,
87,
410,
67,
24422,
2187,
1756,
3639,
273,
1725,
3784,
16,
1758,
377,
273,
296,
13014,
2187,
1696,
67,
25256,
273,
1083,
16,
943,
67,
2007,
282,
273,
172... |
name = name[0] | def get(self, name): ''' Return Instrument object with name 'name'. Input: name of instrument (string) Output: Instrument object ''' if len(name) != 1: return None | dd752b52f404ddaa0c9b2e81c1a1fb6a483105bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/dd752b52f404ddaa0c9b2e81c1a1fb6a483105bf/instruments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
508,
4672,
9163,
2000,
25565,
733,
598,
508,
296,
529,
10332,
225,
2741,
30,
225,
508,
434,
10353,
261,
1080,
13,
3633,
30,
25565,
733,
9163,
225,
309,
562,
12,
529,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
508,
4672,
9163,
2000,
25565,
733,
598,
508,
296,
529,
10332,
225,
2741,
30,
225,
508,
434,
10353,
261,
1080,
13,
3633,
30,
25565,
733,
9163,
225,
309,
562,
12,
529,... | |
itemName=menu.entrycget(index,'label') event='' | itemName = menu.entrycget(index, 'label') event = '' | def ApplyKeybindings(self): "Update the keybindings after they are changed" # Called from configDialog.py self.Bindings.default_keydefs=idleConf.GetCurrentKeySet() self.apply_bindings() for extensionName in self.get_standard_extension_names(): keydefs = idleConf.GetExtensionBindings(extensionName) if keydefs: self.appl... | e65ce4cbecc3f908527437923d4f0c2764be7cda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e65ce4cbecc3f908527437923d4f0c2764be7cda/EditorWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
653,
15863,
12,
2890,
4672,
315,
1891,
326,
498,
15863,
1839,
2898,
854,
3550,
6,
468,
11782,
628,
642,
6353,
18,
2074,
365,
18,
10497,
18,
1886,
67,
856,
12537,
33,
20390,
3976,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
653,
15863,
12,
2890,
4672,
315,
1891,
326,
498,
15863,
1839,
2898,
854,
3550,
6,
468,
11782,
628,
642,
6353,
18,
2074,
365,
18,
10497,
18,
1886,
67,
856,
12537,
33,
20390,
3976,
... |
auth = base64.b64encode(user_passwd.encode()).strip() | auth = base64.b64encode(user_passwd.encode()).decode('ascii') | def _open_generic_http(self, connection_factory, url, data): """Make an HTTP connection using connection_class. | 5626eec0c2f62999967eff0ab6aa8ad329e8571b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/5626eec0c2f62999967eff0ab6aa8ad329e8571b/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
13540,
67,
2505,
12,
2890,
16,
1459,
67,
6848,
16,
880,
16,
501,
4672,
3536,
6464,
392,
2239,
1459,
1450,
1459,
67,
1106,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
13540,
67,
2505,
12,
2890,
16,
1459,
67,
6848,
16,
880,
16,
501,
4672,
3536,
6464,
392,
2239,
1459,
1450,
1459,
67,
1106,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
font-family: "Courier New",courier, monospace; | font-family: courier, monospace; | def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r""" | 0125450000233d3e1b290821a4be9f6c7a827bd2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/0125450000233d3e1b290821a4be9f6c7a827bd2/css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... |
entry_flags = ["Guard","Valid","Running"] | def reconfigure(self, sorted_r): """This function is called after a configuration change, to rebuild the RestrictionLists.""" plog("DEBUG", "Reconfigure") if self.use_all_exits: self.path_rstr = PathRestrictionList([UniqueRestriction()]) else: self.path_rstr = PathRestrictionList( [Subnet16Restriction(), UniqueRestrict... | 54b31d929cb8a89ba83fa73f0fd0357576405879 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/54b31d929cb8a89ba83fa73f0fd0357576405879/PathSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
12,
2890,
16,
3115,
67,
86,
4672,
3536,
2503,
445,
353,
2566,
1839,
279,
1664,
2549,
16,
358,
13419,
326,
1124,
6192,
7432,
12123,
293,
1330,
2932,
9394,
3113,
315,
426,
1489... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14895,
12,
2890,
16,
3115,
67,
86,
4672,
3536,
2503,
445,
353,
2566,
1839,
279,
1664,
2549,
16,
358,
13419,
326,
1124,
6192,
7432,
12123,
293,
1330,
2932,
9394,
3113,
315,
426,
1489... | |
return [node.getAllDisplayText()] | txt = node.getAllDisplayText().strip() if txt: return [txt] | def get_authors_from_template_args(template): args = get_template_args(template, expander) | 6353c43e4cb7edc1fa52872b27d8f40a82b9f4de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/6353c43e4cb7edc1fa52872b27d8f40a82b9f4de/nuwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19368,
67,
2080,
67,
3202,
67,
1968,
12,
3202,
4672,
833,
273,
336,
67,
3202,
67,
1968,
12,
3202,
16,
4542,
264,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
19368,
67,
2080,
67,
3202,
67,
1968,
12,
3202,
4672,
833,
273,
336,
67,
3202,
67,
1968,
12,
3202,
16,
4542,
264,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
extern int _QdRGB_Convert(PyObject *, RGBColorPtr *); | extern int _QdRGB_Convert(PyObject *, RGBColorPtr); | #ifdef USE_TOOLBOX_OBJECT_GLUE | f3eda93419ad9fc52724901c98f8fc5aafea7885 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f3eda93419ad9fc52724901c98f8fc5aafea7885/qdsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
14988,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
14988,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
buffers.append(data) | def readline(self, size=-1): data = self._rbuf if size < 0: # Read until \n or EOF, whichever comes first if self._rbufsize <= 1: # Speed up unbuffered case assert data == "" buffers = [] recv = self._sock.recv while data != "\n": data = recv(1) if not data: break buffers.append(data) return "".join(buffers) nl = data.... | 5203dbadc432c6f2260803a4064375469d5ec7b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/5203dbadc432c6f2260803a4064375469d5ec7b6/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
521,
82,
578,
6431,
16,
600,
335,
580,
502,
14535,
1122,
309,
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,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
521,
82,
578,
6431,
16,
600,
335,
580,
502,
14535,
1122,
309,
365,
... | |
it is a dictionary with the data as an ndarray in the ['data'] component. image2 : {dictionary} | image1_mat : {nd_array} image1_mat is the source image MAT image2 : {nd_array} | def python_coreg(image1, image2, imdata, ftype=1, smimage=0, lite=0, smhist=0, method='nmi', opt_method='powell'): """ parm_vector = python_coreg(image1, image2, imdata, ftype=1, smimage=0, lite=0, smhist=0, method='nmi', opt_method='powell'): takes two images and the image data descriptor (imdata) and determines the ... | a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
3644,
75,
12,
2730,
21,
16,
1316,
22,
16,
709,
892,
16,
21219,
33,
21,
16,
3029,
2730,
33,
20,
16,
328,
1137,
33,
20,
16,
3029,
11488,
33,
20,
16,
707,
2218,
82,
9197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
3644,
75,
12,
2730,
21,
16,
1316,
22,
16,
709,
892,
16,
21219,
33,
21,
16,
3029,
2730,
33,
20,
16,
328,
1137,
33,
20,
16,
3029,
11488,
33,
20,
16,
707,
2218,
82,
9197,
... |
start_pre = end_pre = '<programlisting>', '</programlisting>' start_div_note, end_div_note = '<note>', '</note>' start_li, end_li = '<listitem>', '</listitem>' | start_pre, end_pre = '<programlisting>', '</programlisting>' start_div_note, end_div_note = '<note><para>', '</para></note>' start_li, end_li = '<listitem><para>', '</para></listitem>' | def visitNode_a_name(self, node): self.visitNodeDefault(node) | 3cf61b2d33db96a9e4660ec1551bbe58779db763 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3cf61b2d33db96a9e4660ec1551bbe58779db763/docbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
907,
67,
69,
67,
529,
12,
2890,
16,
756,
4672,
365,
18,
11658,
907,
1868,
12,
2159,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
3757,
907,
67,
69,
67,
529,
12,
2890,
16,
756,
4672,
365,
18,
11658,
907,
1868,
12,
2159,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', string='Customer'), | 'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', store=True, string='Customer'), | def _number_packages(self, cr, uid, ids, field_name, arg, context=None): if context is None: context = {} res = {} for line in self.browse(cr, uid, ids, context=context): try: res[line.id] = int((line.product_uom_qty+line.product_packaging.qty-0.0001) / line.product_packaging.qty) except: res[line.id] = 1 return res | ca709f6ce807b488b0b1def5505433b4333651c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ca709f6ce807b488b0b1def5505433b4333651c4/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2696,
67,
10308,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
400,
273,
2618,
364,
980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2696,
67,
10308,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
400,
273,
2618,
364,
980,
... |
history = [""] | first_line = True history = [] | def main(self): i = 0 line = "" | 35d3a1bc061b83350bbe289c5c0bb8ffeb9b9674 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11578/35d3a1bc061b83350bbe289c5c0bb8ffeb9b9674/repl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
277,
273,
374,
980,
273,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
277,
273,
374,
980,
273,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logging.error("Requested detach while detached") | logging.warning("drbd%d: requested detach while detached", self.minor) | def RemoveChildren(self, devices): """Detach the drbd device from local storage. | 82463074c0c011a83cf2239affbdb44cb2940801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/82463074c0c011a83cf2239affbdb44cb2940801/bdev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3581,
4212,
12,
2890,
16,
7166,
4672,
3536,
17650,
326,
5081,
16410,
2346,
628,
1191,
2502,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3581,
4212,
12,
2890,
16,
7166,
4672,
3536,
17650,
326,
5081,
16410,
2346,
628,
1191,
2502,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ | editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ | def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default... | 778480334357616b82303c863b630decc9748d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/778480334357616b82303c863b630decc9748d34/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
... |
self.pointer = self.moving_pointer | event.window.set_pointer(self.moving_pointer) | def normal_left_down(self, event): self.event_state = "moving" self.pointer = self.moving_pointer self.offset_x = event.x - self.x self.offset_y = event.y - self.y return | df2d18e3eb4701500d2784f693373240ce254608 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13166/df2d18e3eb4701500d2784f693373240ce254608/basic_move.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
67,
4482,
67,
2378,
12,
2890,
16,
871,
4672,
365,
18,
2575,
67,
2019,
273,
315,
81,
13767,
6,
871,
18,
5668,
18,
542,
67,
10437,
12,
2890,
18,
81,
13767,
67,
10437,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
67,
4482,
67,
2378,
12,
2890,
16,
871,
4672,
365,
18,
2575,
67,
2019,
273,
315,
81,
13767,
6,
871,
18,
5668,
18,
542,
67,
10437,
12,
2890,
18,
81,
13767,
67,
10437,
13,
365,
... |
if graph: | if options.graph: | def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat... | 45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4364,
12,
2116,
16,
1296,
16,
833,
4672,
309,
1296,
422,
296,
6231,
4278,
309,
562,
12,
1968,
13,
422,
374,
30,
1002,
3498,
503,
225,
1930,
1319,
2738,
3399,
1966,
273,
1319,
2738,
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,
4364,
12,
2116,
16,
1296,
16,
833,
4672,
309,
1296,
422,
296,
6231,
4278,
309,
562,
12,
1968,
13,
422,
374,
30,
1002,
3498,
503,
225,
1930,
1319,
2738,
3399,
1966,
273,
1319,
2738,
18,... |
''' | """ | def editCSVAction(self): ''' Performs an edit of all of a class' items in one go. | f11907437836b035b89a935141d5777def9d1278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f11907437836b035b89a935141d5777def9d1278/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
16570,
1803,
12,
2890,
4672,
3536,
27391,
392,
3874,
434,
777,
434,
279,
667,
11,
1516,
316,
1245,
1960,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3874,
16570,
1803,
12,
2890,
4672,
3536,
27391,
392,
3874,
434,
777,
434,
279,
667,
11,
1516,
316,
1245,
1960,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def __init__(self, _subtype='mixed', boundary=None, *_subparts, **_params): | def __init__(self, _subtype='mixed', boundary=None, _subparts=None, **_params): | def __init__(self, _subtype='mixed', boundary=None, *_subparts, **_params): """Creates a multipart/* type message. | b8c24f675337403d66d32fc07b1cd53b7a1814f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b8c24f675337403d66d32fc07b1cd53b7a1814f0/MIMEMultipart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
389,
21974,
2218,
19562,
2187,
7679,
33,
7036,
16,
389,
1717,
6019,
33,
7036,
16,
2826,
67,
2010,
4672,
3536,
2729,
279,
10263,
20308,
618,
883,
18,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
21974,
2218,
19562,
2187,
7679,
33,
7036,
16,
389,
1717,
6019,
33,
7036,
16,
2826,
67,
2010,
4672,
3536,
2729,
279,
10263,
20308,
618,
883,
18,
2,
-... |
_cleanup_stale_tokens(self.request) | self._cleanup_stale_tokens(self.request) | def xmlrpc_getAuthToken(self, username, password, *args): """ Returns a token which can be used for authentication in other XMLRPC calls. If the token is empty, the username or the password were wrong. """ | ea29654602cc9815b3dc67cf6d4a18eb68b702d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/ea29654602cc9815b3dc67cf6d4a18eb68b702d8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31811,
67,
588,
28967,
12,
2890,
16,
2718,
16,
2201,
16,
380,
1968,
4672,
3536,
2860,
279,
1147,
1492,
848,
506,
1399,
364,
5107,
316,
1308,
3167,
8087,
4097,
18,
971,
326,
1147,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31811,
67,
588,
28967,
12,
2890,
16,
2718,
16,
2201,
16,
380,
1968,
4672,
3536,
2860,
279,
1147,
1492,
848,
506,
1399,
364,
5107,
316,
1308,
3167,
8087,
4097,
18,
971,
326,
1147,
353,
... |
rootfiles = container.find('rootfiles') | rootfiles = container.find(re.compile(r'rootfiles$', re.I)) | def __init__(self, stream=None): if not stream: return soup = BeautifulStoneSoup(stream.read()) container = soup.find('container') if not container: raise OCFException("<container/> element missing") if container.get('version', None) != '1.0': raise EPubException("unsupported version of OCF") rootfiles = container.find... | 8050aac496e6cfb5cb90538900d8639c1ea91e45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/8050aac496e6cfb5cb90538900d8639c1ea91e45/epub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
33,
7036,
4672,
309,
486,
1407,
30,
327,
15418,
273,
27358,
510,
476,
27069,
12,
3256,
18,
896,
10756,
1478,
273,
15418,
18,
4720,
2668,
3782,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1407,
33,
7036,
4672,
309,
486,
1407,
30,
327,
15418,
273,
27358,
510,
476,
27069,
12,
3256,
18,
896,
10756,
1478,
273,
15418,
18,
4720,
2668,
3782,
6134,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.