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 |
|---|---|---|---|---|---|---|
define = treeutil.findQxDefine(self.tree) if not define: | members = self._getMembersMap() restricted = [key for key in members if key.startswith("_")] if len(restricted) == 0: | def checkFields(self): define = treeutil.findQxDefine(self.tree) if not define: return | 7490e311ec2ae5e37832dcb92d1a5e48c8ee31da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/7490e311ec2ae5e37832dcb92d1a5e48c8ee31da/ecmalint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2314,
12,
2890,
4672,
4833,
273,
365,
6315,
588,
6918,
863,
1435,
15693,
273,
306,
856,
364,
498,
316,
4833,
309,
498,
18,
17514,
1918,
2932,
67,
7923,
65,
309,
562,
12,
29306,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2314,
12,
2890,
4672,
4833,
273,
365,
6315,
588,
6918,
863,
1435,
15693,
273,
306,
856,
364,
498,
316,
4833,
309,
498,
18,
17514,
1918,
2932,
67,
7923,
65,
309,
562,
12,
29306,
13... |
ci.text = summary | ci.text = text | def check(self): """Retrieve and parse a feed""" #try: txt = None fp = feedparser.parse(self._feed.url) | 7a1829675dac109ecc780e97ec672eeaef79b6d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2189/7a1829675dac109ecc780e97ec672eeaef79b6d3/feedchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
5767,
471,
1109,
279,
4746,
8395,
468,
698,
30,
6463,
273,
599,
4253,
273,
4746,
4288,
18,
2670,
12,
2890,
6315,
7848,
18,
718,
13,
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,
866,
12,
2890,
4672,
3536,
5767,
471,
1109,
279,
4746,
8395,
468,
698,
30,
6463,
273,
599,
4253,
273,
4746,
4288,
18,
2670,
12,
2890,
6315,
7848,
18,
718,
13,
2,
-100,
-100,
-100,
-100... |
import os os.remove("temp.pdf") import sys bookfold = bookfold(sys.argv[1]) | if __name__ == "__main__": main() | def __init__(self, inputDoc): from pyPdf import PdfFileWriter, PdfFileReader | 2a202aba6a65480f7f49fbf5e3e8c684ce7ba30a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/71/2a202aba6a65480f7f49fbf5e3e8c684ce7ba30a/bookfold.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
1759,
4672,
628,
2395,
18562,
1930,
9989,
812,
2289,
16,
9989,
812,
2514,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
810,
1759,
4672,
628,
2395,
18562,
1930,
9989,
812,
2289,
16,
9989,
812,
2514,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self._auto_scroll_last_index != index and index < count: | if index >= count: index = count - 1 if self._auto_scroll_last_index != index: | def _processHighlightIndicator(self, index): count = self.GetItemCount() if self._auto_scroll_last_index != index and index < count: selected = self.GetItemState(index, wx.LIST_STATE_SELECTED) if not selected: self.SetItemState(index, wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED) if self._auto_scroll_last_index != -1... | 8c47e4b71b22a0c81ac2f37e325134786f0e8a41 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/8c47e4b71b22a0c81ac2f37e325134786f0e8a41/dropscroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
16205,
13140,
12,
2890,
16,
770,
4672,
1056,
273,
365,
18,
967,
30687,
1435,
309,
770,
1545,
1056,
30,
770,
273,
1056,
300,
404,
309,
365,
6315,
6079,
67,
12033,
67,
2722,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
16205,
13140,
12,
2890,
16,
770,
4672,
1056,
273,
365,
18,
967,
30687,
1435,
309,
770,
1545,
1056,
30,
770,
273,
1056,
300,
404,
309,
365,
6315,
6079,
67,
12033,
67,
2722,
6... |
,}, name="primer-new"), | ,}, name="primer-edit"), | def delete_primer(*args, **kwargs): return delete_object(*args, **kwargs) | 8b2437e4039b5e170cbc07b458af3fbd7e25caa0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10806/8b2437e4039b5e170cbc07b458af3fbd7e25caa0/primer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
683,
4417,
30857,
1968,
16,
2826,
4333,
4672,
327,
1430,
67,
1612,
30857,
1968,
16,
2826,
4333,
13,
225,
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,
1430,
67,
683,
4417,
30857,
1968,
16,
2826,
4333,
4672,
327,
1430,
67,
1612,
30857,
1968,
16,
2826,
4333,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not self.flat and n.has_parent(): | if not self.flat and n and n.has_parent(): | def __is_root(self,n): is_root = True if not self.flat and n.has_parent(): for par in n.get_parents(): if self.__is_displayed(par): is_root = False return is_root | 06ca7ff213dac8474933814167f039573737ba09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/06ca7ff213dac8474933814167f039573737ba09/filteredtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
291,
67,
3085,
12,
2890,
16,
82,
4672,
353,
67,
3085,
273,
1053,
309,
486,
365,
18,
15401,
471,
290,
471,
290,
18,
5332,
67,
2938,
13332,
364,
779,
316,
290,
18,
588,
67,
12606... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
291,
67,
3085,
12,
2890,
16,
82,
4672,
353,
67,
3085,
273,
1053,
309,
486,
365,
18,
15401,
471,
290,
471,
290,
18,
5332,
67,
2938,
13332,
364,
779,
316,
290,
18,
588,
67,
12606... |
if _debug: print "\tBASE: Called Plane.__init__()" | Item.__init__(self) debugMsg("Called Plane.__init__()") | def __init__(self,scene): """ Initialisation of the Plane object | b02e75908a6bbb76d6965e9fcf5a405bd1478fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/b02e75908a6bbb76d6965e9fcf5a405bd1478fe8/plane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23694,
4672,
3536,
10188,
10742,
434,
326,
3008,
8806,
733,
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,
... | [
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
23694,
4672,
3536,
10188,
10742,
434,
326,
3008,
8806,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self._downloaded_label.props.label = ' ' + str(bytes) + ' ' + _('of') +' ' + str(total) + ' ' + _('received') | self.downloaded_label.props.label = ' ' + str(bytes) + ' ' + _('of') +' ' + str(total) + ' ' + _('received') def clear_downloaded_bytes(self): self.downloaded_label.props.label = '' | def set_downloaded_bytes(self, bytes, total): self._downloaded_label.props.label = ' ' + str(bytes) + ' ' + _('of') +' ' + str(total) + ' ' + _('received') | ec2d816270546616258518cdc9befcfd8fb8204c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5566/ec2d816270546616258518cdc9befcfd8fb8204c/GetIABooksActivity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2378,
4230,
67,
3890,
12,
2890,
16,
1731,
16,
225,
2078,
4672,
365,
6315,
2378,
4230,
67,
1925,
18,
9693,
18,
1925,
273,
296,
377,
296,
397,
609,
12,
3890,
13,
397,
296,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2378,
4230,
67,
3890,
12,
2890,
16,
1731,
16,
225,
2078,
4672,
365,
6315,
2378,
4230,
67,
1925,
18,
9693,
18,
1925,
273,
296,
377,
296,
397,
609,
12,
3890,
13,
397,
296,
296... |
packageImports = [m.getModuleName() for m in package.getAnnotation('generatedPackages') if not m.hasStereoType('tests') or []] | packageImports = [m.getModuleName() for m in package.getAnnotation('generatedPackages') or [] if not m.hasStereoType('tests')] | def generateProductInitPy(self, package): """ Generate __init__.py at product root from the DTML template""" | 170ee848a61547a7bd2f7938c51e32f562263ed5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/170ee848a61547a7bd2f7938c51e32f562263ed5/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4133,
2570,
9413,
12,
2890,
16,
2181,
4672,
3536,
6654,
1001,
2738,
25648,
2074,
622,
3017,
1365,
628,
326,
463,
2838,
1542,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4133,
2570,
9413,
12,
2890,
16,
2181,
4672,
3536,
6654,
1001,
2738,
25648,
2074,
622,
3017,
1365,
628,
326,
463,
2838,
1542,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print " print " print " | if wrapped: print " print " print " | print "#ifdef __AROS__" | e109e16008b7446093bd5b7d24db7478917a40a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/e109e16008b7446093bd5b7d24db7478917a40a6/config2c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
6619,
430,
536,
1001,
985,
4618,
14437,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
6619,
430,
536,
1001,
985,
4618,
14437,
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,
-... |
print "Moo" print k | def new(self): errors = {} defaults = dict(request.POST) | 9f3151b8dfd14d74b1d4af60079b5d2f09183aa0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12856/9f3151b8dfd14d74b1d4af60079b5d2f09183aa0/discount_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
1334,
273,
2618,
3467,
273,
2065,
12,
2293,
18,
3798,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
1334,
273,
2618,
3467,
273,
2065,
12,
2293,
18,
3798,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
self.__type = type | self.__type = str(type) self.__set_output() | def set_type(self,type): """ sets the frame type that we are querying """ self.__type = type | 751fa1060330ae40d7f2e1ebcb5d16c8598b7383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/751fa1060330ae40d7f2e1ebcb5d16c8598b7383/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
723,
12,
2890,
16,
723,
4672,
3536,
1678,
326,
2623,
618,
716,
732,
854,
23936,
3536,
365,
16186,
723,
273,
618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
723,
12,
2890,
16,
723,
4672,
3536,
1678,
326,
2623,
618,
716,
732,
854,
23936,
3536,
365,
16186,
723,
273,
618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
docbody[start_idx] = docbody[start_idx][title_start + len(ref_sect_title):] | docbody[start_idx] = docbody[start_idx][title_start + \ len(ref_sect_title):] | def get_reference_lines(docbody, ref_sect_start_line, ref_sect_end_line, \ ref_sect_title, ref_line_marker_ptn, title_marker_same_line): """After the reference section of a document has been identified, and the first and last lines of the reference section have been recorded, this function is called to take the referen... | afd852f45332d11ac027b8d47ce1a922ce7f2cc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/afd852f45332d11ac027b8d47ce1a922ce7f2cc6/refextract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6180,
67,
3548,
12,
2434,
3432,
16,
1278,
67,
5709,
67,
1937,
67,
1369,
16,
1278,
67,
5709,
67,
409,
67,
1369,
16,
521,
1278,
67,
5709,
67,
2649,
16,
1278,
67,
1369,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6180,
67,
3548,
12,
2434,
3432,
16,
1278,
67,
5709,
67,
1937,
67,
1369,
16,
1278,
67,
5709,
67,
409,
67,
1369,
16,
521,
1278,
67,
5709,
67,
2649,
16,
1278,
67,
1369,
67,
1... |
reftable=self.reftable.name,) | firstcolumn=self.columns[0],) | def autoname(self): """Mimic the database's automatic constraint names""" ret = "%(table)s_%(reftable)s_fkey" % dict( table=self.table.name, reftable=self.reftable.name,) return ret | 73796f3e543a121b51a0fe2eb08d1faab255e53b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/149/73796f3e543a121b51a0fe2eb08d1faab255e53b/constraint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2059,
265,
339,
12,
2890,
4672,
3536,
49,
381,
335,
326,
2063,
1807,
5859,
4954,
1257,
8395,
325,
273,
22061,
2121,
13,
87,
10185,
12,
266,
1222,
429,
13,
87,
67,
74,
856,
6,
738,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2059,
265,
339,
12,
2890,
4672,
3536,
49,
381,
335,
326,
2063,
1807,
5859,
4954,
1257,
8395,
325,
273,
22061,
2121,
13,
87,
10185,
12,
266,
1222,
429,
13,
87,
67,
74,
856,
6,
738,
20... |
if when.startswith('W'): | if self.when.startswith('W'): | def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0, utc=0): BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) self.when = string.upper(when) self.backupCount = backupCount self.utc = utc # Calculate the real rollover interval, which is just the number of # seconds ... | 83da034c9af59b73aa4f175eaebdc5f39d461656 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/83da034c9af59b73aa4f175eaebdc5f39d461656/handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
1347,
2218,
76,
2187,
3673,
33,
21,
16,
5114,
1380,
33,
20,
16,
2688,
33,
7036,
16,
4624,
33,
20,
16,
9439,
33,
20,
4672,
3360,
8570,
1776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1544,
16,
1347,
2218,
76,
2187,
3673,
33,
21,
16,
5114,
1380,
33,
20,
16,
2688,
33,
7036,
16,
4624,
33,
20,
16,
9439,
33,
20,
4672,
3360,
8570,
1776,
... |
def __int__(self): if self.degree() == 0: return int(self.constant_coefficient()) else: raise TypeError def __long__(self): if self.degree() == 0: return long(self.constant_coefficient()) else: raise TypeError def __float__(self): if self.degree() == 0: return float(self.constant_coefficient()) else: raise TypeErr... | def _repr_(self): return "%s"%self.__element | 760213363bcce53f37f73bc5b1e27bb2a729c98f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/760213363bcce53f37f73bc5b1e27bb2a729c98f/multi_polynomial_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
2213,
87,
28385,
2890,
16186,
2956,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
2213,
87,
28385,
2890,
16186,
2956,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
def wrapperCall( self, *args ): | def wrapperCall( *args ): | def wrapperCall( self, *args ): """Wrapper with all save storeValues""" pyArgs = tuple( calculate_pyArgs( args )) cArguments = pyArgs try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: err.args = err.args + (cArguments,) raise err except error.GLError, err: err.cArgs = cArgs err.pyArgs... | 37819bfb0a23b29e5197cbb47fad0e486a1708d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1545/37819bfb0a23b29e5197cbb47fad0e486a1708d3/wrapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
1477,
12,
380,
1968,
262,
30,
3536,
3611,
598,
777,
1923,
1707,
1972,
8395,
2395,
2615,
273,
3193,
12,
4604,
67,
2074,
2615,
12,
833,
8623,
276,
4628,
273,
2395,
2615,
775,
30,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
1477,
12,
380,
1968,
262,
30,
3536,
3611,
598,
777,
1923,
1707,
1972,
8395,
2395,
2615,
273,
3193,
12,
4604,
67,
2074,
2615,
12,
833,
8623,
276,
4628,
273,
2395,
2615,
775,
30,
5... |
mainViewRoot = template.copy (parent = self.UIRepositoryView.findPath ("//userdata"), | mainViewRoot = template.copy (parent = schema.Item.getDefaultParent (self.UIRepositoryView), | def deleteAllTrunkCaches (block): for child in block.childrenBlocks: deleteAllTrunkCaches (child) import osaf.framework.blocks.Trunk as Trunk if isinstance (block, Trunk.BranchPointBlock): block.trunkDelegate.deleteCache() | c59f7a84408419f6a2c3a04dea3e738315c8edc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c59f7a84408419f6a2c3a04dea3e738315c8edc4/Application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27283,
1070,
1683,
18755,
261,
2629,
4672,
364,
1151,
316,
1203,
18,
5906,
6450,
30,
27283,
1070,
1683,
18755,
261,
3624,
13,
1930,
1140,
1727,
18,
12303,
18,
7996,
18,
1070,
1683,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27283,
1070,
1683,
18755,
261,
2629,
4672,
364,
1151,
316,
1203,
18,
5906,
6450,
30,
27283,
1070,
1683,
18755,
261,
3624,
13,
1930,
1140,
1727,
18,
12303,
18,
7996,
18,
1070,
1683,
487,
... |
self.settings["CHOST"]="armv6zkl-softloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv6zk -pipe" | self.settings["CHOST"]="armv7a-unknown-linux-gnueabi" self.settings["CFLAGS"]+=" -march=armv7-a -mfpu=vfp -mfloat-abi=softfp" | def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv6zkl-softloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv6zk -pipe" | 53fab4b752e759327ccdfc975b482828b7745033 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/53fab4b752e759327ccdfc975b482828b7745033/arm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
26,
94,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
26,
94,
... |
Args: instance: instance configuration snap_disks: snapshot block devices Returns: False in case of error, True otherwise. | @type instance: L{objects.Instance} @param instance: the instance which we export, used for saving configuration @type snap_disks: list of L{objects.Disk} @param snap_disks: list of snapshot block devices, which will be used to get the actual name of the dump file @rtype: boolean @return: the success of the operation | def FinalizeExport(instance, snap_disks): """Write out the export configuration information. Args: instance: instance configuration snap_disks: snapshot block devices Returns: False in case of error, True otherwise. """ destdir = os.path.join(constants.EXPORT_DIR, instance.name + ".new") finaldestdir = os.path.join(... | 10c2650b20cea3203db19baa02cca416127a3cea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/10c2650b20cea3203db19baa02cca416127a3cea/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30740,
6144,
12,
1336,
16,
10915,
67,
28577,
4672,
3536,
3067,
596,
326,
3359,
1664,
1779,
18,
225,
632,
723,
791,
30,
511,
95,
6911,
18,
1442,
97,
632,
891,
791,
30,
326,
791,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30740,
6144,
12,
1336,
16,
10915,
67,
28577,
4672,
3536,
3067,
596,
326,
3359,
1664,
1779,
18,
225,
632,
723,
791,
30,
511,
95,
6911,
18,
1442,
97,
632,
891,
791,
30,
326,
791,
1492,
... |
debug(" third-party RFC 2965 cookie during " | _debug(" third-party RFC 2965 cookie during " | def set_ok_verifiability(self, cookie, request): if request.is_unverifiable() and is_third_party(request): if cookie.version > 0 and self.strict_rfc2965_unverifiable: debug(" third-party RFC 2965 cookie during " "unverifiable transaction") return False elif cookie.version == 0 and self.strict_ns_unverifiable: debug("... | 15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81/cookielib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
502,
704,
2967,
12,
2890,
16,
3878,
16,
590,
4672,
309,
590,
18,
291,
67,
318,
502,
8424,
1435,
471,
353,
67,
451,
6909,
67,
21214,
12,
2293,
4672,
309,
3878,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
502,
704,
2967,
12,
2890,
16,
3878,
16,
590,
4672,
309,
590,
18,
291,
67,
318,
502,
8424,
1435,
471,
353,
67,
451,
6909,
67,
21214,
12,
2293,
4672,
309,
3878,
18,
... |
pass | import xbmcaddon self.addon = xbmcaddon.Addon('script.mythbox') | def __init__(self, scriptPath, defaultLanguage=None, *args, **kwargs): pass | b9c16ce8a1166c6da5a4146ba65f2cd5ea41bccd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12279/b9c16ce8a1166c6da5a4146ba65f2cd5ea41bccd/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2728,
743,
16,
805,
3779,
33,
7036,
16,
380,
1968,
16,
2826,
4333,
4672,
1930,
15970,
13952,
24390,
365,
18,
24390,
273,
15970,
13952,
24390,
18,
27901,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2728,
743,
16,
805,
3779,
33,
7036,
16,
380,
1968,
16,
2826,
4333,
4672,
1930,
15970,
13952,
24390,
365,
18,
24390,
273,
15970,
13952,
24390,
18,
27901,
26... |
'Popup backgruond', | 'Popup background', | def __init__ (self): global PREFDIALOG if PrefDialog.__instance == None: PrefDialog.__instance = self else: PrefDialog.__instance.dialog.present() return PREFDIALOG = self self.dialog = gtk.Dialog("DockBar preferences") self.dialog.connect("response",self.dialog_close) ca = self.dialog.get_content_area() notebook = g... | ebf9402a4de0885ec39b8dc794b601cab916484b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/ebf9402a4de0885ec39b8dc794b601cab916484b/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
2552,
7071,
42,
2565,
18683,
309,
28184,
6353,
16186,
1336,
422,
599,
30,
28184,
6353,
16186,
1336,
273,
365,
469,
30,
28184,
6353,
16186,
1336,
18,
12730... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
4672,
2552,
7071,
42,
2565,
18683,
309,
28184,
6353,
16186,
1336,
422,
599,
30,
28184,
6353,
16186,
1336,
273,
365,
469,
30,
28184,
6353,
16186,
1336,
18,
12730... |
source = open(inspect.getsourcefile(model)).read() + "\n" | source = open(inspect.getsourcefile(model)).read().replace("\r","\n") + "\n" | def get_model_tree(model): # Get the source of the model's file source = open(inspect.getsourcefile(model)).read() + "\n" tree = STTree(parser.suite(source).totuple()) # Now, we have to find it for poss in tree.find("compound_stmt"): if poss.value[1][0] == symbol.classdef and \ poss.value[1][2][1].lower() == model.__na... | 170cd5f70adc544bd47615bbc6ac3df090420867 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/170cd5f70adc544bd47615bbc6ac3df090420867/modelsparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2284,
67,
3413,
12,
2284,
4672,
468,
968,
326,
1084,
434,
326,
938,
1807,
585,
1084,
273,
1696,
12,
12009,
18,
588,
3168,
768,
12,
2284,
13,
2934,
896,
7675,
2079,
31458,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2284,
67,
3413,
12,
2284,
4672,
468,
968,
326,
1084,
434,
326,
938,
1807,
585,
1084,
273,
1696,
12,
12009,
18,
588,
3168,
768,
12,
2284,
13,
2934,
896,
7675,
2079,
31458,
86,
... |
else: | self.update_size(width, height) def applyResize (self, event): try: | def update_size_from_name(self, formatname): if not formatname == USER_SPECIFIC: width, height = Papersize[formatname] if self.page_orientation: width, height = height, width else: width=self.var_width.get() height=self.var_height.get() self.update_size(width, height) | 9968b3b60a6a59c3677dab6bf7afea7e0e6494b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3123/9968b3b60a6a59c3677dab6bf7afea7e0e6494b1/page_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1467,
67,
2080,
67,
529,
12,
2890,
16,
740,
529,
4672,
309,
486,
740,
529,
422,
7443,
67,
13847,
22183,
30,
1835,
16,
2072,
273,
453,
438,
414,
554,
63,
2139,
529,
65,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1467,
67,
2080,
67,
529,
12,
2890,
16,
740,
529,
4672,
309,
486,
740,
529,
422,
7443,
67,
13847,
22183,
30,
1835,
16,
2072,
273,
453,
438,
414,
554,
63,
2139,
529,
65,
309,... |
rets.append(self.walker.print_line(node.getChild(n-1))) | child = node.getChild(n-1) if printext: rets.append(self.walker.print_line_to(file, child)) else: rets.append(self.walker.print_line(child)) | def print_stmt(self, node): self.startnode(node) n = node.numChildren rets = [] for i in range(n-1): rets.append(self.walker.print_continued(node.getChild(i))) | 77d039067df642f25907965371dce37694a34969 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/77d039067df642f25907965371dce37694a34969/PythonVisitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
10589,
12,
2890,
16,
756,
4672,
365,
18,
1937,
2159,
12,
2159,
13,
290,
273,
756,
18,
2107,
4212,
325,
87,
273,
5378,
364,
277,
316,
1048,
12,
82,
17,
21,
4672,
325,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
10589,
12,
2890,
16,
756,
4672,
365,
18,
1937,
2159,
12,
2159,
13,
290,
273,
756,
18,
2107,
4212,
325,
87,
273,
5378,
364,
277,
316,
1048,
12,
82,
17,
21,
4672,
325,
87,
... |
members = groups.all_members(name) | members = list(groups.all_members(name)) | def view(uri, http_user, name): """Prepare a group view to be printed.""" users.reload() groups.reload() title = _("Details of group %s") % name data = w.page_body_start(uri, http_user, ctxtnav, title) u = users.users g = groups.groups # TODO: should we forbid system group view ? why not ? # As of now, this is har... | 1f04a4fc30ab0f9646c851ccb0f79e2bc831824d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/1f04a4fc30ab0f9646c851ccb0f79e2bc831824d/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
1650,
16,
1062,
67,
1355,
16,
508,
4672,
3536,
7543,
279,
1041,
1476,
358,
506,
14099,
12123,
225,
3677,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
2077,
273,
389,
2932,
3790... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
1650,
16,
1062,
67,
1355,
16,
508,
4672,
3536,
7543,
279,
1041,
1476,
358,
506,
14099,
12123,
225,
3677,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
2077,
273,
389,
2932,
3790... |
return S_OK({"Successful":successful,"Failed":failed}) def isFile(self,lfns,connection=False): connection = self._getConnection(connection) | return S_OK( {"Successful":successful, "Failed":failed} ) def isFile( self, lfns, connection = False ): connection = self._getConnection( connection ) | def exists(self,lfns,connection=False): connection = self._getConnection(connection) """ Determine whether a file exists in the catalog """ res = self._findFiles(lfns,connection=connection) successful = dict.fromkeys(res['Value']['Successful'],True) failed = {} for lfn,error in res['Value']['Failed'].items(): if error ... | 26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
12,
2890,
16,
20850,
2387,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
3536,
10229,
2856,
279,
585,
1704,
316,
326,
6222,
3536,
400,
273,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
12,
2890,
16,
20850,
2387,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
3536,
10229,
2856,
279,
585,
1704,
316,
326,
6222,
3536,
400,
273,
365,
6315,
... |
else: raise TypeError | raise TypeError | def _coerce_impl(self, x): if isinstance(x, PermutationGroupElement): if x.parent() is self: return x elif x.parent().degree() <= self.degree() and x._gap_() in self._gap_(): return PermutationGroupElement(x._gap_(), self, check = False) else: raise TypeError | 0c2cdc6bc190f131e778c74faa14ea2febc321de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0c2cdc6bc190f131e778c74faa14ea2febc321de/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2894,
2765,
67,
11299,
12,
2890,
16,
619,
4672,
309,
1549,
12,
92,
16,
13813,
9245,
1114,
1046,
4672,
309,
619,
18,
2938,
1435,
353,
365,
30,
327,
619,
1327,
619,
18,
2938,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2894,
2765,
67,
11299,
12,
2890,
16,
619,
4672,
309,
1549,
12,
92,
16,
13813,
9245,
1114,
1046,
4672,
309,
619,
18,
2938,
1435,
353,
365,
30,
327,
619,
1327,
619,
18,
2938,
7675,
... |
basicMode.Draw(self) | superclass.Draw(self) | def Draw(self): | ef65a5e89ada2abdff0a6bbe70954e4004848df5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/ef65a5e89ada2abdff0a6bbe70954e4004848df5/test_animation_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
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,
10184,
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,
... |
self.session.open(Standby, self) | if self.standbyblocked == 0: self.standbyblocked = 1 self.session.open(Standby, self) | def powerup(self): self.powerKeyTimer.stop() self.session.open(Standby, self) | 0023a377c6274e66bd998384c988cee88cbcfde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/0023a377c6274e66bd998384c988cee88cbcfde2/InfoBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7212,
416,
12,
2890,
4672,
365,
18,
12238,
653,
6777,
18,
5681,
1435,
365,
18,
3184,
18,
3190,
12,
20612,
1637,
16,
365,
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,
7212,
416,
12,
2890,
4672,
365,
18,
12238,
653,
6777,
18,
5681,
1435,
365,
18,
3184,
18,
3190,
12,
20612,
1637,
16,
365,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 56) else quickfix.StringField.__init__(self, 56, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
13850,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
13850,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
... |
print "DTV: System is awake, resuming downloads." views.remoteDownloads.beginRead() try: for dl in views.remoteDownloads: dl.start() finally: views.remoteDownloads.endRead() eventloop.addUrgentCall(lambda:retstartAllDownloaders(), "Restarting downloaders") | print "DTV: System is awake from sleep, resuming %s download(s)." % dlCount for dl in self.pausedDownloaders: dl.start() self.pausedDownloaders = None eventloop.addUrgentCall(lambda:retstartDownloaders(), "Resuming downloaders after sleep") | def retstartAllDownloaders(): dlCount = len(views.remoteDownloads) if dlCount > 0: print "DTV: System is awake, resuming downloads." views.remoteDownloads.beginRead() try: for dl in views.remoteDownloads: dl.start() finally: views.remoteDownloads.endRead() | 12b0431b93864e257d407016da168d362a47b23f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/12b0431b93864e257d407016da168d362a47b23f/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
325,
1937,
1595,
7109,
414,
13332,
8910,
1380,
273,
562,
12,
7061,
18,
7222,
22141,
13,
309,
8910,
1380,
405,
374,
30,
1172,
315,
9081,
58,
30,
2332,
353,
1690,
911,
16,
400,
21249,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
325,
1937,
1595,
7109,
414,
13332,
8910,
1380,
273,
562,
12,
7061,
18,
7222,
22141,
13,
309,
8910,
1380,
405,
374,
30,
1172,
315,
9081,
58,
30,
2332,
353,
1690,
911,
16,
400,
21249,
23... |
self.foundin[page2] = pl | self.foundin[page2] = [pl] | def workDone(self, counter): """This is called by a worker to tell us that the promised work was completed as far as possible. The only argument is an instance of a counter class, that has methods minus() and plus() to keep counts of the total work todo.""" # Loop over all the pages that should have been taken care of ... | 099d253f71f374a3cde4568e8c2355ed2700e0f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/099d253f71f374a3cde4568e8c2355ed2700e0f2/interwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
7387,
12,
2890,
16,
3895,
4672,
3536,
2503,
353,
2566,
635,
279,
4322,
358,
9276,
584,
716,
326,
3012,
5918,
1440,
1703,
5951,
487,
10247,
487,
3323,
18,
1021,
1338,
1237,
353,
392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
7387,
12,
2890,
16,
3895,
4672,
3536,
2503,
353,
2566,
635,
279,
4322,
358,
9276,
584,
716,
326,
3012,
5918,
1440,
1703,
5951,
487,
10247,
487,
3323,
18,
1021,
1338,
1237,
353,
392... |
viewed_items = [item for item in all_items if item.item_viewed] | viewed_items = [item for item in all_items \ if item.downloaded or item.item_viewed] | def _expand_lists_initially(self): item_downloaded = self.downloaded_view.item_list.get_count() > 0 feed_info = widgetutil.get_feed_info(self.id) autodownload_mode = feed_info.autodownload_mode self.downloaded_section.expand() self.full_section.show() all_items = self.full_view.item_list.get_items() viewed_items = [ite... | c27f05ff4f2d15bfccd48898c5d4f2b239ea2c75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/c27f05ff4f2d15bfccd48898c5d4f2b239ea2c75/feedcontroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12320,
67,
9772,
67,
2738,
6261,
12,
2890,
4672,
761,
67,
2378,
4230,
273,
365,
18,
2378,
4230,
67,
1945,
18,
1726,
67,
1098,
18,
588,
67,
1883,
1435,
405,
374,
4746,
67,
1376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12320,
67,
9772,
67,
2738,
6261,
12,
2890,
4672,
761,
67,
2378,
4230,
273,
365,
18,
2378,
4230,
67,
1945,
18,
1726,
67,
1098,
18,
588,
67,
1883,
1435,
405,
374,
4746,
67,
1376,
... |
'cooking is not possible' % cfg.archDir) | 'cooking is not possible' % ' '.join(cfg.archDirs)) | def cookObject(repos, cfg, recipeClass, sourceVersion, changeSetFile = None, prep=True, macros={}, targetLabel = None, resume = None, alwaysBumpCount = False, allowUnknownFlags = False, allowMissingSource = False, ignoreDeps = False, logBuild = False, callback = None): """ Turns a recipe object into a change set, and s... | 4a22e1e644ff63d4478b7c2d2b5baba30754be1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4a22e1e644ff63d4478b7c2d2b5baba30754be1e/cook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15860,
921,
12,
15564,
16,
2776,
16,
16100,
797,
16,
1084,
1444,
16,
26104,
812,
273,
599,
16,
13237,
33,
5510,
16,
24302,
28793,
1018,
2224,
273,
599,
16,
10774,
273,
599,
16,
3712,
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,
15860,
921,
12,
15564,
16,
2776,
16,
16100,
797,
16,
1084,
1444,
16,
26104,
812,
273,
599,
16,
13237,
33,
5510,
16,
24302,
28793,
1018,
2224,
273,
599,
16,
10774,
273,
599,
16,
3712,
3... |
sys.stderr.write("Unknown mode: '%s'\n" % mode) | sys.stderr.write("Unknown mode: " + repr(mode)) | def generate_f2py_py(build_dir): f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:] if f2py_exe[-4:]=='.exe': f2py_exe = f2py_exe[:-4] + '.py' if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': f2py_exe = f2py_exe + '.py' target = os.path.join(build_dir,f2py_exe) if newer(__file__,target): log.info('Creatin... | 8f6114b11efc2a01fe1158a444aeb788ddea6b01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8f6114b11efc2a01fe1158a444aeb788ddea6b01/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
74,
22,
2074,
67,
2074,
12,
3510,
67,
1214,
4672,
284,
22,
2074,
67,
14880,
273,
296,
74,
22,
2074,
11,
15,
538,
18,
803,
18,
13909,
12,
9499,
18,
17751,
25146,
26,
26894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
74,
22,
2074,
67,
2074,
12,
3510,
67,
1214,
4672,
284,
22,
2074,
67,
14880,
273,
296,
74,
22,
2074,
11,
15,
538,
18,
803,
18,
13909,
12,
9499,
18,
17751,
25146,
26,
26894,
... |
_custom_toolbar) self._top_label = _label_factory(_("Top:")+" ", _custom_toolbar) | custom_toolbar) self._top_label = _label_factory(_("Top:")+" ", custom_toolbar) | def __init__(self, handle): """ Initiate activity. """ super(AbacusActivity,self).__init__(handle) | fd911751574e06f9f013eb80fbecdcda1b58afa5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7608/fd911751574e06f9f013eb80fbecdcda1b58afa5/AbacusActivity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1640,
4672,
3536,
26615,
5728,
18,
3536,
2240,
12,
5895,
1077,
407,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1640,
4672,
3536,
26615,
5728,
18,
3536,
2240,
12,
5895,
1077,
407,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
13,
2,
-100,
-100,
-100,
-100,
-100,
... |
bytes = bytes.encode() | try: bytes = bytes.encode() except Exception: pass | def sendall(self, bytes): if 'encode' in dir(bytes): bytes = bytes.encode() socket.socket.sendall(self, bytes) | 43d31d5a12f15d876d3a0aefec9e8a8be8e26c6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9386/43d31d5a12f15d876d3a0aefec9e8a8be8e26c6f/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
454,
12,
2890,
16,
1731,
4672,
309,
296,
3015,
11,
316,
1577,
12,
3890,
4672,
775,
30,
1731,
273,
1731,
18,
3015,
1435,
1335,
1185,
30,
1342,
2987,
18,
7814,
18,
4661,
454,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
454,
12,
2890,
16,
1731,
4672,
309,
296,
3015,
11,
316,
1577,
12,
3890,
4672,
775,
30,
1731,
273,
1731,
18,
3015,
1435,
1335,
1185,
30,
1342,
2987,
18,
7814,
18,
4661,
454,
12,
... |
self.vmw = game.Game(canvas, \ os.path.join(os.path.abspath('.'), \ 'images/')) | self.vmw = Game(canvas, os.path.join(os.path.abspath('.'), 'images/')) | def __init__(self): self.r = 0 self.tw = None # create a new window self.win = gtk.Window(gtk.WINDOW_TOPLEVEL) self.win.maximize() self.win.set_title("%s: %s" % (_("Visual Match"), _("Click on cards to create sets of three."))) self.win.connect("delete_event", lambda w, e: gtk.main_quit()) | e4a64eca2c257da825c8379d225fa379555ffb85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/e4a64eca2c257da825c8379d225fa379555ffb85/visualmatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
86,
273,
374,
365,
18,
11246,
273,
599,
468,
752,
279,
394,
2742,
365,
18,
8082,
273,
22718,
18,
3829,
12,
4521,
79,
18,
23407,
67,
10462,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
86,
273,
374,
365,
18,
11246,
273,
599,
468,
752,
279,
394,
2742,
365,
18,
8082,
273,
22718,
18,
3829,
12,
4521,
79,
18,
23407,
67,
10462,
1... |
print >> out, "ERROR_(cannot extract xray_structure): %s"%pdb[-11:] | print >> out, "Cannot_extract_xray_structure: %s"%pdb | def get_xray_structure_from_pdb_file(pdb, out): try: processed_pdb_file = monomer_library.pdb_interpretation.process( mon_lib_srv = mon_lib_srv, ener_lib = ener_lib, file_name = pdb) xray_structure = processed_pdb_file.xray_structure() except KeyboardInterrupt: raise except: xray_structure = None print >> out, "ER... | 9e0b7031e121e2fc878f68faaa8779137d9fc180 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/9e0b7031e121e2fc878f68faaa8779137d9fc180/pdb_refl_cif_to_mtz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
92,
435,
67,
7627,
67,
2080,
67,
17414,
67,
768,
12,
17414,
16,
596,
4672,
775,
30,
5204,
67,
17414,
67,
768,
273,
26431,
67,
12083,
18,
17414,
67,
24713,
367,
18,
2567,
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,
336,
67,
92,
435,
67,
7627,
67,
2080,
67,
17414,
67,
768,
12,
17414,
16,
596,
4672,
775,
30,
5204,
67,
17414,
67,
768,
273,
26431,
67,
12083,
18,
17414,
67,
24713,
367,
18,
2567,
12,... |
current_thread().get_name(), format) | current_thread().name, format) | def _note(self, format, *args): if self.__verbose: format = format % args format = "%s: %s\n" % ( current_thread().get_name(), format) _sys.stderr.write(format) | 419b615dd3c3692eed6822c00c10720eaf8b44bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/419b615dd3c3692eed6822c00c10720eaf8b44bd/threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7652,
12,
2890,
16,
740,
16,
380,
1968,
4672,
309,
365,
16186,
11369,
30,
740,
273,
740,
738,
833,
740,
273,
2213,
87,
30,
738,
87,
64,
82,
6,
738,
261,
783,
67,
5930,
7675,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
7652,
12,
2890,
16,
740,
16,
380,
1968,
4672,
309,
365,
16186,
11369,
30,
740,
273,
740,
738,
833,
740,
273,
2213,
87,
30,
738,
87,
64,
82,
6,
738,
261,
783,
67,
5930,
7675,
5... |
if value < 0: value = 0 if value > self.maxval: value = self.maxval | bar = self.d.GetDialogItemAsControl(3) if max <= 0: bar.SetControlData(0,kControlProgressBarIndeterminateTag,'\x01') else: bar.SetControlData(0,kControlProgressBarIndeterminateTag,'\x00') if value < 0: value = 0 elif value > self.maxval: value = self.maxval | def set(self, value, max=None): """set(value) - Set progress bar position""" if max != None: self.maxval = max if value < 0: value = 0 if value > self.maxval: value = self.maxval self.curval = value self._update(value) | 16b3c5a666fe0052001a2d6a5906ff2b9c20e75c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/16b3c5a666fe0052001a2d6a5906ff2b9c20e75c/EasyDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
460,
16,
943,
33,
7036,
4672,
3536,
542,
12,
1132,
13,
300,
1000,
4007,
4653,
1754,
8395,
309,
943,
480,
599,
30,
365,
18,
1896,
1125,
273,
943,
4653,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
460,
16,
943,
33,
7036,
4672,
3536,
542,
12,
1132,
13,
300,
1000,
4007,
4653,
1754,
8395,
309,
943,
480,
599,
30,
365,
18,
1896,
1125,
273,
943,
4653,
273,
365,
18... |
ensemble=NetworkArray(name,[self.make('%d'%i,neurons,1,add_to_network=False,**args) for i in range(length)]) | ensemble=NetworkArray(name,[self.make('%d'%i,neurons,dimensions,add_to_network=False,**args) for i in range(length)]) | def make_array(self,name,neurons,length,**args): """Create and return an array of ensembles. Each ensemble will be 1-dimensional. All of the parameters from Network.make() can be used.""" #ensemble=EnsembleArray(name,[self.make('%d'%i,neurons,1,add_to_network=False,**args) for i in range(length)]) ensemble=NetworkArr... | efb839c5379e40113984c5668952a679b1239349 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/553/efb839c5379e40113984c5668952a679b1239349/nef.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1126,
12,
2890,
16,
529,
16,
4644,
295,
7008,
16,
2469,
16,
636,
1968,
4672,
3536,
1684,
471,
327,
392,
526,
434,
570,
5747,
1040,
18,
225,
8315,
24385,
903,
506,
404,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1126,
12,
2890,
16,
529,
16,
4644,
295,
7008,
16,
2469,
16,
636,
1968,
4672,
3536,
1684,
471,
327,
392,
526,
434,
570,
5747,
1040,
18,
225,
8315,
24385,
903,
506,
404,
17,
... |
for line in lines: if not line.startswith('--- '): continue words = line.split(None, 2) filename, fromrev = words[1], 'old' groups, blocks = None, None | try: | def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * ' ' + mod * ' ' | c3f3250176a1bf58fcba199c885986b4ab85819c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/c3f3250176a1bf58fcba199c885986b4ab85819c/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
... |
return NotifySeverity.NSError | return NSError | def getSeverity(self): from pandac.PandaModules import NotifySeverity if self.getDebug(): return NotifySeverity.NSDebug elif self.getInfo(): return NotifySeverity.NSInfo elif self.getWarning(): return NotifySeverity.NSWarning else: return NotifySeverity.NSError | 54a803d3583837c665d2ab85fb64a3ff3879d532 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/54a803d3583837c665d2ab85fb64a3ff3879d532/Notifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
6084,
560,
12,
2890,
4672,
628,
293,
464,
1077,
18,
52,
464,
69,
7782,
1930,
10918,
21630,
309,
365,
18,
588,
2829,
13332,
327,
10918,
21630,
18,
3156,
2829,
1327,
365,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
6084,
560,
12,
2890,
4672,
628,
293,
464,
1077,
18,
52,
464,
69,
7782,
1930,
10918,
21630,
309,
365,
18,
588,
2829,
13332,
327,
10918,
21630,
18,
3156,
2829,
1327,
365,
18,
588,
... |
url="http://%s:%d/stop" % (machine, port) | url="http://%s:%s/stop" % (machine, port) | def stop(machine="localhost",port=4812, user = "",password=""): if user: url="http://%s:%d/stop?USER=%s&PASS=%s" \ % (machine, port, user, password) else: url="http://%s:%d/stop" % (machine, port) try: url=urllib.urlopen (url) except IOError, message: print "Cannot connect to %s, error:%s"%(machine, message) sys.exit (... | aefe40e1215ac3738f47b12b533b7e082b659ac8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3918/aefe40e1215ac3738f47b12b533b7e082b659ac8/stopEngine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
9149,
1546,
13014,
3113,
655,
33,
8875,
2138,
16,
729,
273,
23453,
3664,
1546,
6,
4672,
309,
729,
30,
880,
1546,
2505,
23155,
87,
5319,
72,
19,
5681,
35,
4714,
5095,
87,
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,
2132,
12,
9149,
1546,
13014,
3113,
655,
33,
8875,
2138,
16,
729,
273,
23453,
3664,
1546,
6,
4672,
309,
729,
30,
880,
1546,
2505,
23155,
87,
5319,
72,
19,
5681,
35,
4714,
5095,
87,
10,
... |
if not other: other = coord(0, 0) | if not other: other = Coord(0, 0) | def distance(self, other=None): if not other: other = coord(0, 0) return math.sqrt((self.i - other.i)**2 + (self.j - other.j)**2) | e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3888,
12,
2890,
16,
1308,
33,
7036,
4672,
309,
486,
1308,
30,
1308,
273,
10320,
12,
20,
16,
374,
13,
327,
4233,
18,
24492,
12443,
2890,
18,
77,
300,
1308,
18,
77,
13,
636,
22,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3888,
12,
2890,
16,
1308,
33,
7036,
4672,
309,
486,
1308,
30,
1308,
273,
10320,
12,
20,
16,
374,
13,
327,
4233,
18,
24492,
12443,
2890,
18,
77,
300,
1308,
18,
77,
13,
636,
22,
397,
... |
def __init__(self, n): | def __init__(self, n, max_entry=None): | def __init__(self, n): """ TESTS:: sage: SST = SemistandardTableaux(3) sage: SST == loads(dumps(SST)) True """ self.n = n | dc756d26ea922387ee74781c3b99359e739e8c01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/dc756d26ea922387ee74781c3b99359e739e8c01/tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
16,
943,
67,
4099,
33,
7036,
4672,
3536,
22130,
55,
2866,
225,
272,
410,
30,
348,
882,
273,
15661,
376,
2958,
1388,
18196,
12,
23,
13,
272,
410,
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,
290,
16,
943,
67,
4099,
33,
7036,
4672,
3536,
22130,
55,
2866,
225,
272,
410,
30,
348,
882,
273,
15661,
376,
2958,
1388,
18196,
12,
23,
13,
272,
410,
3... |
row['stable_version'] = 'No builds tagged with' % tag | row['stable_version'] = 'No builds tagged with %s' % tag | def query_active_releases(self, filters=None, **params): releases = [] if not filters: filters = {} | 1a37f309890d1c5d23e798799055c91b5c48319d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/1a37f309890d1c5d23e798799055c91b5c48319d/bodhiconnector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
3535,
67,
28416,
12,
2890,
16,
3415,
33,
7036,
16,
2826,
2010,
4672,
14824,
273,
5378,
309,
486,
3415,
30,
3415,
273,
2618,
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,
843,
67,
3535,
67,
28416,
12,
2890,
16,
3415,
33,
7036,
16,
2826,
2010,
4672,
14824,
273,
5378,
309,
486,
3415,
30,
3415,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(self,host=None): cmd.Cmd.__init__(self) | def __init__( self, host = None ): cmd.Cmd.__init__( self ) | def __init__(self,host=None): cmd.Cmd.__init__(self) self.host = host self.prompt = 'nohost >' if self.host: self.prompt = '%s >' % self.host self.rootPwd = '' | b68208f4ea74e3c61aead9e641ff73054212c46c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b68208f4ea74e3c61aead9e641ff73054212c46c/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
1479,
273,
599,
262,
30,
1797,
18,
5931,
16186,
2738,
972,
12,
365,
262,
365,
18,
2564,
273,
1479,
365,
18,
13325,
273,
296,
2135,
2564,
23752,
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,
1001,
2738,
972,
12,
365,
16,
1479,
273,
599,
262,
30,
1797,
18,
5931,
16186,
2738,
972,
12,
365,
262,
365,
18,
2564,
273,
1479,
365,
18,
13325,
273,
296,
2135,
2564,
23752,
309,
365,
... |
def testTimeoutDefault(self): smtp = smtplib.SMTP(HOST, PORT) self.assertTrue(smtp.sock.gettimeout() is None) smtp.sock.close() def testTimeoutValue(self): smtp = smtplib.SMTP(HOST, PORT, timeout=30) self.assertEqual(smtp.sock.gettimeout(), 30) smtp.sock.close() def testTimeoutNone(self): previous = socket.getdefa... | def testTimeoutDefault(self): # default smtp = smtplib.SMTP(HOST, PORT) self.assertTrue(smtp.sock.gettimeout() is None) smtp.sock.close() | f3dbd94ca4cfb5b9221c4651ce7cd9a359514698 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/f3dbd94ca4cfb5b9221c4651ce7cd9a359514698/test_smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2694,
1868,
12,
2890,
4672,
468,
805,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
13,
365,
18,
11231,
5510,
12,
20278,
18,
15031,
18,
588,
4538,
1435,
353,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
2694,
1868,
12,
2890,
4672,
468,
805,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
13,
365,
18,
11231,
5510,
12,
20278,
18,
15031,
18,
588,
4538,
1435,
353,
5... | |
tableName = self.__getTableName( "bucket", typeName ) | tableName = _getTableName( "bucket", typeName ) | def __slowCompactBucketsForType( self, typeName ): """ Compact all buckets for a given type """ tableName = self.__getTableName( "bucket", typeName ) nowEpoch = Time.toEpoch() retVal = self._getConnection() if not retVal[ 'OK' ]: return retVal connObj = retVal[ 'Value' ] for bPos in range( len( self.dbBucketsLength[ ty... | 5644734dd5f9b2176cf1b7afc4f6ab55941c88f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5644734dd5f9b2176cf1b7afc4f6ab55941c88f0/AccountingDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
87,
821,
16863,
14517,
22405,
12,
365,
16,
8173,
262,
30,
3536,
23823,
777,
9169,
364,
279,
864,
618,
3536,
4775,
273,
389,
588,
7147,
12,
315,
7242,
3113,
8173,
262,
2037,
14638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
821,
16863,
14517,
22405,
12,
365,
16,
8173,
262,
30,
3536,
23823,
777,
9169,
364,
279,
864,
618,
3536,
4775,
273,
389,
588,
7147,
12,
315,
7242,
3113,
8173,
262,
2037,
14638,
... |
+time.strftime("%H:%M:%S", time.localtime(lastMaxChangeTime))) | +time.strftime("%d.%m.%Y %H:%M:%S", time.localtime(lastMaxChangeTime))) | def _nextMemSample(self): curUsage = self._getValue() self._usage.append(curUsage) maxUsage = self._maxUsage[-1] if curUsage>maxUsage: maxUsage = curUsage lastMaxChangeTime = time.time() self._textNode1.text = ("Last increase in maximum: " +time.strftime("%H:%M:%S", time.localtime(lastMaxChangeTime))) self._maxUsage.ap... | 5db631b9081e9af0ba5615613d6fbe26fed5b363 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/5db631b9081e9af0ba5615613d6fbe26fed5b363/AVGAppStarter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4285,
3545,
8504,
12,
2890,
4672,
662,
5357,
273,
365,
6315,
24805,
1435,
365,
6315,
9167,
18,
6923,
12,
1397,
5357,
13,
943,
5357,
273,
365,
6315,
1896,
5357,
18919,
21,
65,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4285,
3545,
8504,
12,
2890,
4672,
662,
5357,
273,
365,
6315,
24805,
1435,
365,
6315,
9167,
18,
6923,
12,
1397,
5357,
13,
943,
5357,
273,
365,
6315,
1896,
5357,
18919,
21,
65,
309,
... |
result[name] = BuiltinModule(name, self.submodules) | result[name] = BuiltinModule(modname, self.submodules) | def attributes(self): result = _object_attributes(self.module, self) result.update(self.initial) for modname in self.submodules: name = modname.split('.')[-1] result[name] = BuiltinModule(name, self.submodules) return result | 0eb3cb58493cdaea83a4e24d47b5bd4dbd19f963 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/0eb3cb58493cdaea83a4e24d47b5bd4dbd19f963/builtins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1677,
12,
2890,
4672,
563,
273,
389,
1612,
67,
4350,
12,
2890,
18,
2978,
16,
365,
13,
563,
18,
2725,
12,
2890,
18,
6769,
13,
364,
16037,
316,
365,
18,
1717,
6400,
30,
508,
273,
16037... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1677,
12,
2890,
4672,
563,
273,
389,
1612,
67,
4350,
12,
2890,
18,
2978,
16,
365,
13,
563,
18,
2725,
12,
2890,
18,
6769,
13,
364,
16037,
316,
365,
18,
1717,
6400,
30,
508,
273,
16037... |
tag = Tag('old', lambda: None) | tag = Tag('old', self.req) | def test_set_name_attribute_does_nothing(self): # The 'name' attribute is set by the constructor. After it is set, it # cannot be changed with further calls to set_attribute. tag = Tag('old', lambda: None) tag.set_attribute('name', 'new') self.assertEqual('old', tag.get_name()) self.assertEqual('old', tag.get_attribute... | 4f3fb2cb6a4f4dabf95423a7f77dd8f80e29e8d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/4f3fb2cb6a4f4dabf95423a7f77dd8f80e29e8d0/test_tagstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
529,
67,
4589,
67,
20657,
67,
30874,
12,
2890,
4672,
468,
1021,
296,
529,
11,
1566,
353,
444,
635,
326,
3885,
18,
7360,
518,
353,
444,
16,
518,
468,
2780,
506,
355... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
529,
67,
4589,
67,
20657,
67,
30874,
12,
2890,
4672,
468,
1021,
296,
529,
11,
1566,
353,
444,
635,
326,
3885,
18,
7360,
518,
353,
444,
16,
518,
468,
2780,
506,
355... |
WHERE aal.account_id=aaa.id AND aal.id IN ("+','.join(map(str,selected_ids))+") GROUP BY aal.account_id,aaa.name,aal.ref ORDER BY aal.account_id" | WHERE aal.account_id=aaa.id AND aal.id IN ("+','.join(map(str,selected_ids))+") GROUP BY aal.account_id,aaa.name ORDER BY aal.account_id" | def find_children(ref_id): | 532918ff607371da467e3a144f3afb1d2987f63d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/532918ff607371da467e3a144f3afb1d2987f63d/cci_crossovered_analytic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
5906,
12,
1734,
67,
350,
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,
1104,
67,
5906,
12,
1734,
67,
350,
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,
... |
class UserFixture(Fixture): | class UserFixture(AspyFixture): | def run(self): music = self.load_music() music.position = 135 self.assertTrue(unicode(music.title) == u"Like Eating Glass", "Music title") self.assertTrue(unicode(music.artist) == u"Bloc Party", "Music artist") self.assertTrue(unicode(music.album) == u"Silent Alarm [Japan Bonus Trac", "Music Album") length_formatted ... | 43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
26225,
273,
365,
18,
945,
67,
81,
14894,
1435,
26225,
18,
3276,
273,
404,
4763,
225,
365,
18,
11231,
5510,
12,
9124,
12,
81,
14894,
18,
2649,
13,
422,
582,
6,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
26225,
273,
365,
18,
945,
67,
81,
14894,
1435,
26225,
18,
3276,
273,
404,
4763,
225,
365,
18,
11231,
5510,
12,
9124,
12,
81,
14894,
18,
2649,
13,
422,
582,
6,
8... |
sage: print genus(T1, T2) | sage: genus(T1, T2) | def genus(T1, T2): """ Returns the genus of hypermap embedding associated with the bitrade (T1, T2). Informally, we compute the [tau_1, tau_2, tau_3] permutation representation of the bitrade. Each cycle of tau_1, tau_2, and tau_3 gives a rotation scheme for a black, white, and star vertex (respectively). The genus the... | 9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
407,
12,
56,
21,
16,
399,
22,
4672,
3536,
2860,
326,
3157,
407,
434,
9512,
1458,
15853,
3627,
598,
326,
2831,
354,
323,
261,
56,
21,
16,
399,
22,
2934,
657,
687,
1230,
16,
732,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
407,
12,
56,
21,
16,
399,
22,
4672,
3536,
2860,
326,
3157,
407,
434,
9512,
1458,
15853,
3627,
598,
326,
2831,
354,
323,
261,
56,
21,
16,
399,
22,
2934,
657,
687,
1230,
16,
732,... |
libvlc.libvlc_media_player_set_hwnd(self.media_player, 0, self.exc.ref()) | libvlc.libvlc_media_player_set_hwnd( self.media_player, self._hidden_window.handle, self.exc.ref()) | def unset_widget(self): libvlc.libvlc_media_player_set_hwnd(self.media_player, 0, self.exc.ref()) self.exc.check() | 1378bdd34ae01d881c97749db6c0db7ff524245b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/1378bdd34ae01d881c97749db6c0db7ff524245b/vlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2646,
67,
6587,
12,
2890,
4672,
2561,
27362,
18,
2941,
27362,
67,
5829,
67,
14872,
67,
542,
67,
20701,
4880,
12,
365,
18,
5829,
67,
14872,
16,
365,
6315,
6345,
67,
5668,
18,
4110,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2646,
67,
6587,
12,
2890,
4672,
2561,
27362,
18,
2941,
27362,
67,
5829,
67,
14872,
67,
542,
67,
20701,
4880,
12,
365,
18,
5829,
67,
14872,
16,
365,
6315,
6345,
67,
5668,
18,
4110,
16,
... |
return True | return True | def update_statusbar(self): """ Updates the status bar. """ if not self.is_visible: return True | 6d5a78b124a60e7ada33b1a74337e1c5fad1e70b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12280/6d5a78b124a60e7ada33b1a74337e1c5fad1e70b/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2327,
3215,
12,
2890,
4672,
3536,
15419,
326,
1267,
4653,
18,
3536,
309,
486,
365,
18,
291,
67,
8613,
30,
327,
1053,
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,
1089,
67,
2327,
3215,
12,
2890,
4672,
3536,
15419,
326,
1267,
4653,
18,
3536,
309,
486,
365,
18,
291,
67,
8613,
30,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
match = _hostprog.match(url) | match = _hostprog.match(url) | def splithost(url): """splithost('//host[:port]/path') --> 'host[:port]', '/path'.""" global _hostprog if _hostprog is None: import re _hostprog = re.compile('^//([^/]*)(.*)$') match = _hostprog.match(url) if match: return match.group(1, 2) return None, url | b49f88bfc122440e6b056b3c051ac3f928a1df92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b49f88bfc122440e6b056b3c051ac3f928a1df92/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6121,
483,
669,
12,
718,
4672,
3536,
13106,
483,
669,
2668,
759,
2564,
10531,
655,
18537,
803,
6134,
15431,
296,
2564,
10531,
655,
65,
2187,
1173,
803,
11,
12123,
2552,
389,
2564,
14654,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6121,
483,
669,
12,
718,
4672,
3536,
13106,
483,
669,
2668,
759,
2564,
10531,
655,
18537,
803,
6134,
15431,
296,
2564,
10531,
655,
65,
2187,
1173,
803,
11,
12123,
2552,
389,
2564,
14654,
... |
''' Render the interval between the date and now. | """ Render the interval between the date and now. | def reldate(self, pretty=1): ''' Render the interval between the date and now. | 16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1279,
712,
12,
2890,
16,
7517,
33,
21,
4672,
9163,
6987,
326,
3673,
3086,
326,
1509,
471,
2037,
18,
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,
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,
1279,
712,
12,
2890,
16,
7517,
33,
21,
4672,
9163,
6987,
326,
3673,
3086,
326,
1509,
471,
2037,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
__pattern__ = r"http://hotfile.com/dl/" | __pattern__ = r"http://(www.)?hotfile\.com/dl/\d+/[0-9a-zA-Z]+/" | def getInfo(urls): api_url_base = "http://api.hotfile.com/" for chunk in chunks(urls, 90): api_param_file = {"action":"checklinks","links": ",".join(chunk),"fields":"id,status,name,size"} #api only supports old style links src = getURL(api_url_base, post=api_param_file) result = [] for i, res in enumerate(src.split("\... | fd53554581476212d337b788db6b83fa5ddfc14c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/fd53554581476212d337b788db6b83fa5ddfc14c/HotfileCom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
12,
10518,
4672,
1536,
67,
718,
67,
1969,
273,
315,
2505,
2207,
2425,
18,
15224,
768,
18,
832,
4898,
225,
364,
2441,
316,
6055,
12,
10518,
16,
8566,
4672,
1536,
67,
891,
67,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
12,
10518,
4672,
1536,
67,
718,
67,
1969,
273,
315,
2505,
2207,
2425,
18,
15224,
768,
18,
832,
4898,
225,
364,
2441,
316,
6055,
12,
10518,
16,
8566,
4672,
1536,
67,
891,
67,
768... |
for host, (at, profiler_dir) in self.installed_hosts.items(): | for host, at, profiler_dir in self.installed_hosts.values(): | def _install(self): """ Install autotest on any current job hosts. """ in_use_hosts = set(host.hostname for host in self.job.hosts if not (host.get_autodir() and host.get_autodir().startswith(PROFILER_TMPDIR))) logging.debug('Hosts currently in use: %s', in_use_hosts) | ff19f5f24bcb393ece8b98216938f887984eba8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/ff19f5f24bcb393ece8b98216938f887984eba8a/profiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
12,
2890,
4672,
3536,
10284,
2059,
352,
395,
603,
1281,
783,
1719,
7206,
18,
3536,
316,
67,
1202,
67,
11588,
273,
444,
12,
2564,
18,
10358,
364,
1479,
316,
365,
18,
4688,
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,
389,
5425,
12,
2890,
4672,
3536,
10284,
2059,
352,
395,
603,
1281,
783,
1719,
7206,
18,
3536,
316,
67,
1202,
67,
11588,
273,
444,
12,
2564,
18,
10358,
364,
1479,
316,
365,
18,
4688,
18... |
newurl = '//' + host + selector return self.open_http(newurl) | newurl = 'http://' + host + selector return self.open(newurl) | def retry_http_basic_auth(self, url, realm): host, selector = splithost(url) i = string.find(host, '@') + 1 host = host[i:] user, passwd = self.get_user_passwd(host, realm, i) if not (user or passwd): return None host = user + ':' + passwd + '@' + host newurl = '//' + host + selector return self.open_http(newurl) | e0c0da98d85a343ec0578ce8ce690fb952118a0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e0c0da98d85a343ec0578ce8ce690fb952118a0b/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
2505,
67,
13240,
67,
1944,
12,
2890,
16,
880,
16,
11319,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
277,
273,
533,
18,
4720,
12,
2564,
16,
4622,
6134,
397,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
2505,
67,
13240,
67,
1944,
12,
2890,
16,
880,
16,
11319,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
277,
273,
533,
18,
4720,
12,
2564,
16,
4622,
6134,
397,
404... |
for group in groups: can_see = can_see or access_pool.check_groups(cr, user, group) if can_see: break | can_see = any(access_pool.check_groups(cr, user, group) for group in groups) | def check_group(node): if node.get('groups'): groups = node.get('groups').split(',') can_see = False access_pool = self.pool.get('ir.model.access') for group in groups: can_see = can_see or access_pool.check_groups(cr, user, group) if can_see: break if not can_see: node.set('invisible', '1') if 'attrs' in node.attrib: ... | b9dd45f648a49937dfe83b5fbbcc22ac7c3d8252 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/b9dd45f648a49937dfe83b5fbbcc22ac7c3d8252/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1655,
12,
2159,
4672,
309,
756,
18,
588,
2668,
4650,
11,
4672,
3252,
273,
756,
18,
588,
2668,
4650,
16063,
4939,
12,
2187,
6134,
848,
67,
5946,
273,
1083,
2006,
67,
6011,
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,
866,
67,
1655,
12,
2159,
4672,
309,
756,
18,
588,
2668,
4650,
11,
4672,
3252,
273,
756,
18,
588,
2668,
4650,
16063,
4939,
12,
2187,
6134,
848,
67,
5946,
273,
1083,
2006,
67,
6011,
273,... |
except: have_ssl = False | except ImportError: has_ssl = False | def test_ssl_presence(self): try: import ssl except: have_ssl = False else: has_ssl = True try: xmlrpc.client.ServerProxy('https://localhost:9999').bad_function() except NotImplementedError: self.assertFalse(has_ssl, "xmlrpc client's error with SSL support") except socket.error: self.assertTrue(has_ssl) | e1cbd2fdb08886384251b0fa24f83b9ac17a58c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e1cbd2fdb08886384251b0fa24f83b9ac17a58c0/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8157,
67,
21731,
12,
2890,
4672,
775,
30,
1930,
5832,
1335,
11308,
30,
711,
67,
8157,
273,
1083,
469,
30,
711,
67,
8157,
273,
1053,
775,
30,
31811,
18,
2625,
18,
2081,
3886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8157,
67,
21731,
12,
2890,
4672,
775,
30,
1930,
5832,
1335,
11308,
30,
711,
67,
8157,
273,
1083,
469,
30,
711,
67,
8157,
273,
1053,
775,
30,
31811,
18,
2625,
18,
2081,
3886,
... |
self.assertRaises(TypeError, chain, N(s)) | self.assertRaises(TypeError, list, chain(N(s))) | def test_chain(self): for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(chain(g(s))), list(g(s))) self.assertEqual(list(chain(g(s), g(s))), list(g(s))+list(g(s))) self.assertRaises(TypeError, list, chain(X(s))) self.assertRaises(TypeError, chain, N(s... | 26a96fa493361ca098e3df3ab0e04c75e694b6ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/26a96fa493361ca098e3df3ab0e04c75e694b6ab/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5639,
12,
2890,
4672,
364,
272,
316,
7566,
12936,
3113,
23453,
1048,
12,
18088,
3631,
7707,
2896,
2187,
404,
18,
22,
3631,
1048,
12,
17172,
16,
3787,
713,
16,
25,
3719,
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,
1842,
67,
5639,
12,
2890,
4672,
364,
272,
316,
7566,
12936,
3113,
23453,
1048,
12,
18088,
3631,
7707,
2896,
2187,
404,
18,
22,
3631,
1048,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
3... |
self.params['SELECT_FROM_POLICIES'] = self.request.serverVariables['SCRIPT_NAME'] + '/policies' | self.params['SELECT_FROM_POLICIES'] = 'policies' | def setParams(self): self.response.setExpiration(1200) oUser = security.User() self.params['CC'] = oUser.contentclass self.params['URI'] = self.request.serverVariables['SCRIPT_NAME'] + '/' + self.item.id self.params['REL_CC'] = '|'.join(oUser.memberof.relCc) self.params['ICON'] = oUser.__image__ | 9a2f8b99a4794ca66a515bfe9ca832718bd20756 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/9a2f8b99a4794ca66a515bfe9ca832718bd20756/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31705,
12,
2890,
4672,
365,
18,
2740,
18,
542,
12028,
12,
2138,
713,
13,
225,
15380,
273,
4373,
18,
1299,
1435,
365,
18,
2010,
3292,
6743,
3546,
273,
15380,
18,
26053,
365,
18,
2010,
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,
31705,
12,
2890,
4672,
365,
18,
2740,
18,
542,
12028,
12,
2138,
713,
13,
225,
15380,
273,
4373,
18,
1299,
1435,
365,
18,
2010,
3292,
6743,
3546,
273,
15380,
18,
26053,
365,
18,
2010,
3... |
def __call__(self, attr, data): if data.domain[attr].varType == orange.VarTypes.Discrete: | self.sortedAttrList = None def __call__(self, attribute, data): if data.domain[attribute].varType == orange.VarTypes.Discrete: | def __init__(self): S2NMeasure.__init__(self) self.attrInfoMix = {} self.dataMix = None | 26d741f3cc960895833942ba0fa8e057b9e5b3dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/26d741f3cc960895833942ba0fa8e057b9e5b3dd/OWVisAttrSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
348,
22,
50,
7197,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1747,
966,
21294,
273,
2618,
365,
18,
892,
21294,
273,
599,
225,
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,
4672,
348,
22,
50,
7197,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1747,
966,
21294,
273,
2618,
365,
18,
892,
21294,
273,
599,
225,
2,
-100,
-100,
-100,
-100,... |
createTreemap() | self.createTreemap() | def ShowDuplicatesTreemap(self): assert(self.foundMatches()==True) self.initTk() createTreemap() self.showDupListTree() | 0cff537d812915efac60da6f6d243e51cef34d72 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10712/0cff537d812915efac60da6f6d243e51cef34d72/cdd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
23897,
56,
266,
25248,
12,
2890,
4672,
1815,
12,
2890,
18,
7015,
6869,
1435,
631,
5510,
13,
365,
18,
2738,
56,
79,
1435,
365,
18,
2640,
56,
266,
25248,
1435,
365,
18,
4500,
30419... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
23897,
56,
266,
25248,
12,
2890,
4672,
1815,
12,
2890,
18,
7015,
6869,
1435,
631,
5510,
13,
365,
18,
2738,
56,
79,
1435,
365,
18,
2640,
56,
266,
25248,
1435,
365,
18,
4500,
30419... |
if (cvs.has_key(file)==0): | if (file not in cvs): | def GetDirectoryContents(dir, filters="*", skip=[]): if (type(filters)==str): filters = [filters] actual = {} files = os.listdir(dir) for filter in filters: for file in fnmatch.filter(files, filter): if (skip.count(file)==0) and (os.path.isfile(dir + "/" + file)): actual[file] = 1 if (os.path.isfile(dir + "/CVS/Entries... | e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2853,
6323,
12,
1214,
16,
3415,
1546,
14,
3113,
2488,
33,
8526,
4672,
309,
261,
723,
12,
6348,
13,
631,
701,
4672,
3415,
273,
306,
6348,
65,
3214,
273,
2618,
1390,
273,
1140,
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,
968,
2853,
6323,
12,
1214,
16,
3415,
1546,
14,
3113,
2488,
33,
8526,
4672,
309,
261,
723,
12,
6348,
13,
631,
701,
4672,
3415,
273,
306,
6348,
65,
3214,
273,
2618,
1390,
273,
1140,
18,
... |
writer.addheader('Form', self.ISSUE_TRACKER_EMAIL) | writer.addheader('From', self.ISSUE_TRACKER_EMAIL) | def sendmessage(self, nodeid, msgid): """Send a message to the members of an issue's nosy list. | 4cbee40405fd1cb40ebe907d1da43bc5fa3150f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4cbee40405fd1cb40ebe907d1da43bc5fa3150f6/roundupdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2150,
12,
2890,
16,
756,
350,
16,
24389,
4672,
3536,
3826,
279,
883,
358,
326,
4833,
434,
392,
5672,
1807,
26628,
93,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2150,
12,
2890,
16,
756,
350,
16,
24389,
4672,
3536,
3826,
279,
883,
358,
326,
4833,
434,
392,
5672,
1807,
26628,
93,
666,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.param = self.anyLanguageHubResponse['param'] self.input = self.anyLanguageHubResponse['input'] self.output = self.anyLanguageHubResponse['output'] self.run() outputFile.close() | command = "{0} {1} {2}".format( quote(pathToRuby), quote(hubPath), quote(controlFilePath) ) | def __init__(self): commands = copy(sys.argv) scriptDir,scriptFilename = os.path.split(commands.pop(0)) #currentDir = os.path.abspath(currentDir) #completeScriptPath = os.path.join(currentDir,scriptFilename) #os.chdir(currentDir) pathToRuby = "ruby" if "--pathToRuby" in commands: pos = commands.index("--pathToRuby") ... | f7963bc0eec3e2063fa3ee9d99234a5cfae5d1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14380/f7963bc0eec3e2063fa3ee9d99234a5cfae5d1e5/proteomatic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
4364,
273,
1610,
12,
9499,
18,
19485,
13,
2728,
1621,
16,
4263,
5359,
273,
1140,
18,
803,
18,
4939,
12,
7847,
18,
5120,
12,
20,
3719,
468,
2972,
1621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
4364,
273,
1610,
12,
9499,
18,
19485,
13,
2728,
1621,
16,
4263,
5359,
273,
1140,
18,
803,
18,
4939,
12,
7847,
18,
5120,
12,
20,
3719,
468,
2972,
1621,
... |
func.im_func.class_ = func.im_class | try: func.im_func.class_ = func.im_class except AttributeError: pass | classdef = self.bookkeeper.getclassdef(cls) | 54f3c9c3a58c696a9b551d7248c6bcb420de87cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/54f3c9c3a58c696a9b551d7248c6bcb420de87cc/factory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
536,
273,
365,
18,
3618,
79,
9868,
18,
588,
1106,
536,
12,
6429,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
667,
536,
273,
365,
18,
3618,
79,
9868,
18,
588,
1106,
536,
12,
6429,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'NamingConvention': 'String', 'PercentFraction': 'Double', 'MIMEtype': 'String', 'Leader': 'Experimenter', 'Contact': 'Experimenter', 'Pump': 'Laser', | def updateTypeMaps(namespace): """ Updates the type maps with a new namespace. **Must** be executed at least once, **before** node class file generation. """ global JAVA_TYPE_MAP JAVA_TYPE_MAP = { # Base types namespace + 'boolean': 'Boolean', namespace + 'dateTime': 'String', namespace + 'string': 'String', namespace ... | 8f9e8d2e2e54bb6661b3348cad502cc36e858dc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12127/8f9e8d2e2e54bb6661b3348cad502cc36e858dc4/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
559,
8903,
12,
4937,
4672,
3536,
15419,
326,
618,
7565,
598,
279,
394,
1981,
18,
2826,
10136,
636,
506,
7120,
622,
4520,
3647,
16,
2826,
5771,
636,
756,
667,
585,
9377,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
559,
8903,
12,
4937,
4672,
3536,
15419,
326,
618,
7565,
598,
279,
394,
1981,
18,
2826,
10136,
636,
506,
7120,
622,
4520,
3647,
16,
2826,
5771,
636,
756,
667,
585,
9377,
18,
3536,
... | |
sage: E.Lseries_values_along_line(0.5, 0.5+20*I, 5) | sage: E.Lseries_values_along_line(1, 0.5+20*I, 5) | def Lseries_values_along_line(self, s0, s1, number_samples): """ Return values of $L(E, s)$ at \code{number_samples} equally-spaced sample points along the line from $s_0$ to $s_1$ in the complex plane. | 31152c486f24362572cfc998f0a87b58bbfaf4ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/31152c486f24362572cfc998f0a87b58bbfaf4ea/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
511,
10222,
67,
2372,
67,
287,
932,
67,
1369,
12,
2890,
16,
272,
20,
16,
272,
21,
16,
1300,
67,
7319,
4672,
3536,
2000,
924,
434,
271,
48,
12,
41,
16,
272,
21877,
622,
521,
710,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
511,
10222,
67,
2372,
67,
287,
932,
67,
1369,
12,
2890,
16,
272,
20,
16,
272,
21,
16,
1300,
67,
7319,
4672,
3536,
2000,
924,
434,
271,
48,
12,
41,
16,
272,
21877,
622,
521,
710,
95... |
cachePath = os.path.join(filetool.normalize(options.cacheDirectory), fileId + "-tokens.pcl") | def getTokens(fileDb, fileId, options): if not fileDb[fileId].has_key("tokens"): if options.verbose: print " - Generating tokens for %s..." % fileId useCache = False loadCache = False fileEntry = fileDb[fileId] filePath = fileEntry["path"] fileEncoding = fileEntry["encoding"] cachePath = os.path.join(filetool.no... | ffbbadaece14e7ffbd14ffda51af4e69b7c98909 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/ffbbadaece14e7ffbd14ffda51af4e69b7c98909/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18349,
12,
768,
4331,
16,
21223,
16,
702,
4672,
309,
486,
585,
4331,
63,
768,
548,
8009,
5332,
67,
856,
2932,
7860,
6,
4672,
309,
702,
18,
11369,
30,
1172,
315,
565,
300,
3055,
1776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18349,
12,
768,
4331,
16,
21223,
16,
702,
4672,
309,
486,
585,
4331,
63,
768,
548,
8009,
5332,
67,
856,
2932,
7860,
6,
4672,
309,
702,
18,
11369,
30,
1172,
315,
565,
300,
3055,
1776,
... | |
batching /opt/sage/local/share/maxima/5.16.2/demo/array.dem | batching /opt/sage/local/share/maxima/5.16.3/demo/array.dem | def demo(self, s): """ EXAMPLES: sage: maxima.demo('array') # not tested batching /opt/sage/local/share/maxima/5.16.2/demo/array.dem | 96739341641dd031ea13b5d1959ba42d488b04f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/96739341641dd031ea13b5d1959ba42d488b04f5/maxima.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
12,
2890,
16,
272,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
943,
13888,
18,
27928,
2668,
1126,
6134,
468,
486,
18432,
2581,
310,
342,
3838,
19,
87,
410,
19,
3729,
19,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
12,
2890,
16,
272,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
943,
13888,
18,
27928,
2668,
1126,
6134,
468,
486,
18432,
2581,
310,
342,
3838,
19,
87,
410,
19,
3729,
19,
14... |
2) 'group" or P2IT.PROFILE (2) for a profile | 2) 'group' or P2IT.PROFILE (2) for a profile | def delImageToTarget(self, item_uuid, target_uuid, target_type): """ remove an image from a boot menu | f92ceeba4937d7650685e4df7ba272f835343770 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/f92ceeba4937d7650685e4df7ba272f835343770/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
2040,
774,
2326,
12,
2890,
16,
761,
67,
7080,
16,
1018,
67,
7080,
16,
1018,
67,
723,
4672,
3536,
1206,
392,
1316,
628,
279,
4835,
3824,
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,
1464,
2040,
774,
2326,
12,
2890,
16,
761,
67,
7080,
16,
1018,
67,
7080,
16,
1018,
67,
723,
4672,
3536,
1206,
392,
1316,
628,
279,
4835,
3824,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.charEncoding = (encoding, "certian") | self.charEncoding = (encoding, "certain") | def __init__(self, source, encoding=None, parseMeta=True, chardet=True): """Initialises the HTMLInputStream. | cb0530fca4daeaf549bec7fc3a5acdcb9161f86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10463/cb0530fca4daeaf549bec7fc3a5acdcb9161f86a/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1084,
16,
2688,
33,
7036,
16,
1109,
2781,
33,
5510,
16,
462,
1060,
278,
33,
5510,
4672,
3536,
4435,
6141,
326,
3982,
4348,
18,
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,
1084,
16,
2688,
33,
7036,
16,
1109,
2781,
33,
5510,
16,
462,
1060,
278,
33,
5510,
4672,
3536,
4435,
6141,
326,
3982,
4348,
18,
2,
-100,
-100,
-100,
-100,... |
if not pid: signal_queue = [signal.SIGTERM, signal.SIGKILL] for sig in signal_queue: try: os.kill(sp.pid, sig) except OSError: pass for i in range(5): (pid, exit_status_indication ) = os.waitpid(sp.pid, os.WNOHANG) | while time_left > 0: (retval, tmp, tmp) = select.select( [sp.stdout], [], [], time_left) if len(retval): result.stdout += os.read( sp.stdout.fileno(), 1024) (pid, exit_status_indication) = os.waitpid( sp.pid, os.WNOHANG) if pid: stop_time= time.time() time_left= stop_time - time.time() if not pid: signal_queu... | def run(command, timeout=None, ignore_status=False): """Run a command on the host. Args: command: the command line string timeout: time limit in seconds before attempting to kill the running process. The run() function will take a few seconds longer than 'timeout' to complete if it has to kill the process. Returns: a... | 2bf76c38a7c0f45a965f2dcc502c37c225f4eb20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/2bf76c38a7c0f45a965f2dcc502c37c225f4eb20/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
3076,
16,
2021,
33,
7036,
16,
2305,
67,
2327,
33,
8381,
4672,
3536,
1997,
279,
1296,
603,
326,
1479,
18,
225,
6634,
30,
1296,
30,
326,
1296,
980,
533,
2021,
30,
813,
1800,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
3076,
16,
2021,
33,
7036,
16,
2305,
67,
2327,
33,
8381,
4672,
3536,
1997,
279,
1296,
603,
326,
1479,
18,
225,
6634,
30,
1296,
30,
326,
1296,
980,
533,
2021,
30,
813,
1800,
... |
for directory in self.config[filetype]: | if self.absolutepath: if not len(self.config['localpaths'][filetype]): return relpath directories = self.config['localpaths'][filetype] else: directories = self.config[filetype] for directory in directories: | def rtnAbsolutePath(self, relpath, filetype): '''Check if there is a Storage Group for the file type (mythvideo, coverfile, banner, fanart, screenshot) and form an appropriate absolute path and file name. return an absolute path and file name return the relpath sting if the file does not actually exist in the absolute ... | 6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12119,
10368,
743,
12,
2890,
16,
14614,
16,
18902,
4672,
9163,
1564,
309,
1915,
353,
279,
5235,
3756,
364,
326,
585,
618,
261,
4811,
451,
9115,
16,
5590,
768,
16,
14090,
16,
26154,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12119,
10368,
743,
12,
2890,
16,
14614,
16,
18902,
4672,
9163,
1564,
309,
1915,
353,
279,
5235,
3756,
364,
326,
585,
618,
261,
4811,
451,
9115,
16,
5590,
768,
16,
14090,
16,
26154,
485,
... |
generateUIDs.append(icalUID) | generatedUIDs.append(icalUID) | def generateItemsInRange(date, nextDate): | f9498f620986808f9202f0acd457ca3f5519ff68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f9498f620986808f9202f0acd457ca3f5519ff68/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
3126,
25277,
12,
712,
16,
1024,
1626,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
3126,
25277,
12,
712,
16,
1024,
1626,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.disconnect(self.defaultAction,SIGNAL("activated()"), self.grade_0_button.animateClick) | try: self.disconnect(self.defaultAction,SIGNAL("activated()"), self.grade_0_button.animateClick) except: pass | def updateDialog(self): | 1334529172468a3d7e03743ffb2fe2711cc038a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1240/1334529172468a3d7e03743ffb2fe2711cc038a7/main_dlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6353,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6353,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
alpha = log10(s1400/s0610)/log10(1400./610.) | alpha = (s1400-s0610)/log10(1400./610.) | def getTabName(x,y,type): ''' Return a SKADS S3SEX components table name based on the position offset and the source type ''' xsign='' if(x<0): xsign='m' elif(x>0): xsign='p' ysign='' if(y<0): ysign='m' elif(y>0): ysign='p' name="Components_%s_%s%d_%s%d"%(type,xsign,abs(x),ysign,abs(y)) return name | f5cd03f39395f2c5ed93df46fd918b7d5b1d371e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6216/f5cd03f39395f2c5ed93df46fd918b7d5b1d371e/createSKADS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
378,
461,
12,
92,
16,
93,
16,
723,
4672,
9163,
2000,
279,
12038,
1880,
55,
348,
23,
1090,
60,
4085,
1014,
508,
2511,
603,
326,
1754,
1384,
471,
326,
1084,
618,
9163,
619,
2977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
378,
461,
12,
92,
16,
93,
16,
723,
4672,
9163,
2000,
279,
12038,
1880,
55,
348,
23,
1090,
60,
4085,
1014,
508,
2511,
603,
326,
1754,
1384,
471,
326,
1084,
618,
9163,
619,
2977,
... |
_keep_alive(state, memo) | def _deepcopy_inst(x, memo): if hasattr(x, '__deepcopy__'): return x.__deepcopy__(memo) if hasattr(x, '__getinitargs__'): args = x.__getinitargs__() _keep_alive(args, memo) args = deepcopy(args, memo) y = apply(x.__class__, args) else: y = _EmptyClass() y.__class__ = x.__class__ memo[id(x)] = y if hasattr(x, '__getstat... | 611546005ba27bdaf81eb14f625fde0a362ba261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/611546005ba27bdaf81eb14f625fde0a362ba261/copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16589,
3530,
67,
8591,
12,
92,
16,
11063,
4672,
309,
3859,
12,
92,
16,
4940,
16589,
3530,
7250,
4672,
327,
619,
16186,
16589,
3530,
972,
12,
19521,
13,
309,
3859,
12,
92,
16,
4940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16589,
3530,
67,
8591,
12,
92,
16,
11063,
4672,
309,
3859,
12,
92,
16,
4940,
16589,
3530,
7250,
4672,
327,
619,
16186,
16589,
3530,
972,
12,
19521,
13,
309,
3859,
12,
92,
16,
4940... | |
if len(args) == 1: | if len(args) == 0: | def openFile(self, *args): if self.modified: ret = QMessageBox.warning(self, 'Save Changes?', 'Some changes may not have been saved. Are you sure you want to discard these changes?', 'Yes', 'No') if ret == 1: return if len(args) == 1: templatedir = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), 'templates'... | 91c8df1f41cfc1add7f8ea2e9f243a03f2ec33fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/91c8df1f41cfc1add7f8ea2e9f243a03f2ec33fd/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31622,
12,
2890,
16,
380,
1968,
4672,
309,
365,
18,
7342,
30,
325,
273,
30728,
18,
8551,
12,
2890,
16,
296,
4755,
17776,
35,
2187,
296,
17358,
3478,
2026,
486,
1240,
2118,
5198,
18,
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,
31622,
12,
2890,
16,
380,
1968,
4672,
309,
365,
18,
7342,
30,
325,
273,
30728,
18,
8551,
12,
2890,
16,
296,
4755,
17776,
35,
2187,
296,
17358,
3478,
2026,
486,
1240,
2118,
5198,
18,
12... |
do_exec("mv reportlab %s" dst) | do_exec("mv reportlab %s" % dst) | 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... | 7f75089dc8dcb77865c0c0b155ac1ac5bc8cc5f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/7f75089dc8dcb77865c0c0b155ac1ac5bc8cc5f4/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... |
'teachers': list( teacher_dict[s.anchor_id] ), | 'teachers': teacher_dict[s.anchor_id], | def ajax_sections(self, request, tl, one, two, module, extra, prog): sections = prog.sections().select_related('category') | 11313c057d7812f621983d84275d2615573267fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/11313c057d7812f621983d84275d2615573267fe/ajaxschedulingmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
11657,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
7178,
273,
11243,
18,
11657,
7675,
4025,
67,
9243,
2668,
4743,
6134,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10733,
67,
11657,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
7178,
273,
11243,
18,
11657,
7675,
4025,
67,
9243,
2668,
4743,
6134,
2,
-100,
-1... |
if re.search('FAIL -', cmd.logs['stdio'].getText()): | if re.search('TEST-UNEXPECTED-', cmd.logs['stdio'].getText()): | def evaluateCommand(self, cmd): superResult = ShellCommandReportTimeout.evaluateCommand(self, cmd) if SUCCESS != superResult: return WARNINGS if re.search('FAIL -', cmd.logs['stdio'].getText()): return WARNINGS if re.search('FAIL Exited', cmd.logs['stdio'].getText()): return WARNINGS return SUCCESS | 7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2/steps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
4820,
2694,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
283,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
4820,
2694,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
283,
18,
3... |
'zope.testbrowser', 'zope.lifecycleevent', 'zope.securitypolicy', 'zope.app.zcmlfiles', | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | d243e3d77295b0b9bd6fb37c73069b6b59de417b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9617/d243e3d77295b0b9bd6fb37c73069b6b59de417b/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,... | |
def run_task(self, task): recipe_id = self.db.get_recipe_id(task=task) recipe = self.cookbook[recipe_id] task_name = self.db.get_task(task=task) return exec_func(task_name, recipe.data) | def bake(self, options, args): | 76eb1f70b4623f9091724f04add1689f7822eb9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5897/76eb1f70b4623f9091724f04add1689f7822eb9b/baker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
911,
12,
2890,
16,
702,
16,
833,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
911,
12,
2890,
16,
702,
16,
833,
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,
-... | |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 818) else quickfix.StringField.__init__(self, 818, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
2643,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
2643,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
n = repo.commit(filelist, message, user, match=matchfn, | n = repo.commit(filelist, message, user, date, match=matchfn, | def refresh(self, repo, pats=None, **opts): if len(self.applied) == 0: self.ui.write("No patches applied\n") return 1 wlock = repo.wlock() try: self.check_toppatch(repo) (top, patchfn) = (self.applied[-1].rev, self.applied[-1].name) top = revlog.bin(top) cparents = repo.changelog.parents(top) patchparent = self.qparent... | e47ebfc9e955e2c96e6eff7c7947fe9179ba6168 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/e47ebfc9e955e2c96e6eff7c7947fe9179ba6168/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
3538,
16,
293,
2323,
33,
7036,
16,
2826,
4952,
4672,
309,
562,
12,
2890,
18,
438,
3110,
13,
422,
374,
30,
365,
18,
4881,
18,
2626,
2932,
2279,
16482,
6754,
64,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
3538,
16,
293,
2323,
33,
7036,
16,
2826,
4952,
4672,
309,
562,
12,
2890,
18,
438,
3110,
13,
422,
374,
30,
365,
18,
4881,
18,
2626,
2932,
2279,
16482,
6754,
64,
82... |
return self._target.data(self._fixtext(text)) | return self._target.data(text) | def _data(self, text): return self._target.data(self._fixtext(text)) | f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e/ElementTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
892,
12,
2890,
16,
977,
4672,
327,
365,
6315,
3299,
18,
892,
12,
2890,
6315,
904,
955,
12,
955,
3719,
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,
389,
892,
12,
2890,
16,
977,
4672,
327,
365,
6315,
3299,
18,
892,
12,
2890,
6315,
904,
955,
12,
955,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Point4TranslatorAssignment = {timeVariable: timeArray[0]} | Point4TranslatorAssignment = {} | def __init__(self, equations, startPoint, timeVariable, timeArray, *args, **kwargs): if len(args) > 0: FuncDesignerException('incorrect ode definition, too many args are obtained') if not isinstance(equations, dict): raise FuncDesignerException('1st argument of ode constructor should be Python dict') | 86780e6a1c8ff8db89bad73d3145404217dc7c42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/86780e6a1c8ff8db89bad73d3145404217dc7c42/ode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
30369,
16,
787,
2148,
16,
813,
3092,
16,
813,
1076,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
562,
12,
1968,
13,
405,
374,
30,
225,
6165,
15478,
264,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30369,
16,
787,
2148,
16,
813,
3092,
16,
813,
1076,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
562,
12,
1968,
13,
405,
374,
30,
225,
6165,
15478,
264,
5... |
elif(re.match(dm['resume_cpu'], msg)): data.tSuspended = ktime data.dmesg["suspend_cpu"]['end'] = ktime phase = "resume_cpu" | elif(re.match(dm['resume_machine'], msg)): if(sysvals.suspendmode in ['freeze', 'standby']): data.tSuspended = prevktime data.dmesg['suspend_machine']['end'] = prevktime else: data.tSuspended = ktime data.dmesg['suspend_machine']['end'] = ktime phase = 'resume_machine' data.tResumed = ktime data.tLow = data.tResumed -... | def analyzeKernelLog(): global sysvals, data print("PROCESSING DATA") data.vprint("Analyzing the dmesg data...") if(os.path.exists(sysvals.dmesgfile) == False): print("ERROR: %s doesn't exist") % sysvals.dmesgfile return False lf = sortKernelLog() phase = "suspend_runtime" dm = { 'suspend_general': r"PM: Syncing fil... | 0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
11286,
1343,
13332,
2552,
2589,
4524,
16,
501,
225,
1172,
2932,
16560,
1360,
8730,
7923,
501,
18,
90,
1188,
2932,
979,
4647,
310,
326,
9113,
281,
75,
501,
7070,
13,
309,
12,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
11286,
1343,
13332,
2552,
2589,
4524,
16,
501,
225,
1172,
2932,
16560,
1360,
8730,
7923,
501,
18,
90,
1188,
2932,
979,
4647,
310,
326,
9113,
281,
75,
501,
7070,
13,
309,
12,
538,
... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 635) else quickfix.StringField.__init__(self, 635, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
4763,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
4763,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.