rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
if not resultDict.has_key(owner):
if not resultDict.has_key( owner ):
def getUserSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of user jobs in a standard form for the Web portal. Pagination and global sorting is supported. """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 729, 6550, 316, 279, 4529, 646, 364, 326, 2999, 11899, 18, 16942, 471, 2552, 9602, 353, 3260, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
keys = map(unquote, results.pop(0))
keys = results.pop(0)
def getMeta(self, value): keysOnly = False results = self.request("GetMeta", value, keysOnly)
86f0a999c63b82e317f1396b6ffc1ae44bbf38ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/86f0a999c63b82e317f1396b6ffc1ae44bbf38ab/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11312, 12, 2890, 16, 460, 4672, 1311, 3386, 273, 1083, 1686, 273, 365, 18, 2293, 2932, 967, 2781, 3113, 460, 16, 1311, 3386, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 967, 2781, 3113, 460, 16, 1311, 3386, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
times = 0
def build_hk(self, entry, metadata): '''This binds host key data into entries''' client = metadata.hostname filename = "%s.H_%s" % (entry.get('name').split('/')[-1], client) if filename not in self.repository.entries.keys(): self.GenerateHostKeys(client) if hasattr(self, 'static_skn'): del self.static_skn times = 0 if not self.repository.entries.has_key(filename): self.LogError("%s still not registered" % filename) raise PluginExecutionError keydata = self.repository.entries[filename].data perms = '0600' if entry.get('name')[-4:] == '.pub': perms = '0644' entry.attrib.update({'owner':'root', 'group':'root', 'perms':perms}) entry.text = keydata if "ssh_host_key.H_" == filename[:15]: entry.attrib['encoding'] = 'base64' entry.text = b2a_base64(keydata)
73898c3d20de00f39d5144b55318bc7ded89de23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/73898c3d20de00f39d5144b55318bc7ded89de23/SSHbase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 76, 79, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 2503, 16129, 1479, 498, 501, 1368, 3222, 26418, 1004, 273, 1982, 18, 10358, 1544, 273, 2213, 87, 18, 44, 10185, 87, 6, 738, 261, 4099, 18, 588, 2668, 529, 16063, 4939, 2668, 2473, 13, 18919, 21, 6487, 1004, 13, 309, 1544, 486, 316, 365, 18, 9071, 18, 8219, 18, 2452, 13332, 365, 18, 4625, 2594, 2396, 12, 2625, 13, 309, 3859, 12, 2890, 16, 296, 3845, 67, 7771, 82, 11, 4672, 1464, 365, 18, 3845, 67, 7771, 82, 309, 486, 365, 18, 9071, 18, 8219, 18, 5332, 67, 856, 12, 3459, 4672, 365, 18, 1343, 668, 27188, 87, 4859, 486, 4104, 6, 738, 1544, 13, 1002, 6258, 3210, 668, 498, 892, 273, 365, 18, 9071, 18, 8219, 63, 3459, 8009, 892, 13793, 273, 296, 7677, 713, 11, 309, 1241, 18, 588, 2668, 529, 6134, 18919, 24, 26894, 422, 2418, 10174, 4278, 13793, 273, 296, 20, 22087, 11, 1241, 18, 14588, 18, 2725, 12590, 11, 8443, 11, 2497, 3085, 2187, 296, 1655, 11, 2497, 3085, 2187, 296, 15969, 4278, 15969, 6792, 1241, 18, 955, 273, 498, 892, 309, 315, 10975, 67, 2564, 67, 856, 18, 44, 9548, 422, 1544, 10531, 3600, 14542, 1241, 18, 14588, 3292, 5999, 3546, 273, 296, 1969, 1105, 11, 1241, 18, 955, 273, 324, 22, 69, 67, 1969, 1105, 12, 856, 892, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 76, 79, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 2503, 16129, 1479, 498, 501, 1368, 3222, 26418, 1004, 273, 1982, 18, 10358, 1544, 273, 2213, 87, 18, 44, 10185, 87, 6, 738, 261, 4099, 18, 588, 2668, 529, 16063, 4939, 2668, 2473, 13, 18919, 21, 6487, 1004, 13, 309, 1544, 486, 316, 365, 18, 9071, 18, 8219, 18, 2452, 13332, 365, 18, 4625, 2594, 2396, 12, 2625, 13, 309, 3859, 12, 2890, 16, 296, 3845, 67, 7771, 82, 11, 4672, 1464, 365, 18, 3845, 67, 7771, 82, 309, 486, 365, 18, 9071, 18, 8219, 18, 5332, 67, 856, 12, 3459, 4672, 365, 18, 1343, 668, 27188, 87, 4859, 486, 4104, 6, 738, 1544, 13, 1002, 2 ]
self.oldText = ""
self.enteredText = ""
def __init__(self, parent): QLineEdit.__init__(self, parent) QObject.connect(self, SIGNAL("textEdited(const QString &)"), self.textEdited) self.oldText = "" self.itemList = [] self.useRE = 0 self.emptyText = "" self.callbackOnComplete = None self.listUpdateCallback = None self.autoSizeListWidget = 0 self.caseSensitive = 1 self.matchAnywhere = 0 self.nrOfSuggestions = 10 #self.setDelimiters(",; ") self.delimiters = None # by default, we only allow selection of one element self.itemsAsStrings = [] # a list of strings that appear in the list widget self.itemsAsItems = [] # can be a list of QListWidgetItems or a list of strings (the same as self.itemsAsStrings) self.listWidget = QListWidget() self.listWidget.setMouseTracking(1) self.listWidget.installEventFilter(self) self.listWidget.setWindowFlags(Qt.Popup) self.listWidget.setFocusPolicy(Qt.NoFocus) QObject.connect(self.listWidget, SIGNAL("itemClicked (QListWidgetItem *)"), self.doneCompletion)
4dd2601ce487793400c1f7e5247f0850daac5006 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/4dd2601ce487793400c1f7e5247f0850daac5006/OWGUIEx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 2238, 1670, 4666, 16186, 2738, 972, 12, 2890, 16, 982, 13, 2238, 921, 18, 3612, 12, 2890, 16, 12057, 1013, 2932, 955, 4666, 329, 12, 10248, 2238, 780, 473, 2225, 3631, 365, 18, 955, 4666, 329, 13, 365, 18, 2328, 329, 1528, 273, 1408, 365, 18, 1726, 682, 273, 5378, 365, 18, 1202, 862, 273, 374, 365, 18, 5531, 1528, 273, 1408, 365, 18, 3394, 1398, 6322, 273, 599, 365, 18, 1098, 1891, 2428, 273, 599, 365, 18, 6079, 1225, 682, 4609, 273, 374, 365, 18, 3593, 14220, 273, 404, 365, 18, 1916, 2961, 6051, 273, 374, 365, 18, 11611, 951, 26273, 273, 1728, 468, 2890, 18, 542, 23531, 414, 2932, 16, 31, 9369, 365, 18, 3771, 1038, 414, 273, 599, 1850, 468, 635, 805, 16, 732, 1338, 1699, 4421, 434, 1245, 930, 365, 18, 3319, 1463, 7957, 273, 5378, 3639, 468, 279, 666, 434, 2064, 716, 9788, 316, 326, 666, 3604, 365, 18, 3319, 1463, 3126, 273, 5378, 1850, 468, 848, 506, 279, 666, 434, 2238, 682, 4609, 3126, 578, 279, 666, 434, 2064, 261, 5787, 1967, 487, 365, 18, 3319, 1463, 7957, 13, 365, 18, 1098, 4609, 273, 2238, 682, 4609, 1435, 365, 18, 1098, 4609, 18, 542, 9186, 12642, 12, 21, 13, 365, 18, 1098, 4609, 18, 5425, 1133, 1586, 12, 2890, 13, 365, 18, 1098, 4609, 18, 542, 3829, 5094, 12, 23310, 18, 13770, 13, 365, 18, 1098, 4609, 18, 542, 9233, 2582, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 2238, 1670, 4666, 16186, 2738, 972, 12, 2890, 16, 982, 13, 2238, 921, 18, 3612, 12, 2890, 16, 12057, 1013, 2932, 955, 4666, 329, 12, 10248, 2238, 780, 473, 2225, 3631, 365, 18, 955, 4666, 329, 13, 365, 18, 2328, 329, 1528, 273, 1408, 365, 18, 1726, 682, 273, 5378, 365, 18, 1202, 862, 273, 374, 365, 18, 5531, 1528, 273, 1408, 365, 18, 3394, 1398, 6322, 273, 599, 365, 18, 1098, 1891, 2428, 273, 599, 365, 18, 6079, 1225, 682, 4609, 273, 374, 365, 18, 3593, 14220, 273, 404, 365, 18, 1916, 2961, 6051, 273, 374, 365, 18, 11611, 951, 26273, 273, 1728, 468, 2890, 18, 542, 23531, 414, 2 ]
r=str(inst)
r=str(inst)
def __getitem__(self,key):
33f60964c7587575f853594704f00add969b7126 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/33f60964c7587575f853594704f00add969b7126/pDocumentTemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 856, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 30, 1652, 1001, 31571, 972, 12, 2890, 16, 856, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out = line.split('scsi_device/')
out = line.split('/')
def pscsi_createvirtdev(path, params):
d05a73a285262c8c803be130efd73e3d6562be6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/d05a73a285262c8c803be130efd73e3d6562be6f/tcm_pscsi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 1017, 7722, 67, 2640, 14035, 5206, 12, 803, 16, 859, 4672, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 1017, 7722, 67, 2640, 14035, 5206, 12, 803, 16, 859, 4672, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def MakeGuard(self, filename): """Creates a header guard id.""" base = os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))) hpath = os.path.abspath(filename)[len(base) + 1:] return self._non_alnum_re.sub('_', hpath).upper()
def WriteNamespaceClose(self, file): """Writes the code to close the namespace.""" file.Write("} // namespace gles2\n") file.Write("} // namespace gpu\n") file.Write("\n")
20d6af8de9f49c5a4b9a5d098840a1523ad90cb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/20d6af8de9f49c5a4b9a5d098840a1523ad90cb6/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 3402, 4605, 12, 2890, 16, 585, 4672, 3536, 8368, 326, 981, 358, 1746, 326, 1981, 12123, 585, 18, 3067, 2932, 97, 225, 368, 1981, 314, 1040, 22, 64, 82, 7923, 585, 18, 3067, 2932, 97, 225, 368, 1981, 21810, 64, 82, 7923, 585, 18, 3067, 31458, 82, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 3402, 4605, 12, 2890, 16, 585, 4672, 3536, 8368, 326, 981, 358, 1746, 326, 1981, 12123, 585, 18, 3067, 2932, 97, 225, 368, 1981, 314, 1040, 22, 64, 82, 7923, 585, 18, 3067, 2932, 97, 225, 368, 1981, 21810, 64, 82, 7923, 585, 18, 3067, 31458, 82, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.CtermResNameLabel = QtGui.QLabel('?') self.CtermSpinBox = QtGui.QSpinBox() self.CtermSpinBox.setRange(1, 10000) self.decreasePositionButton = QtGui.QPushButton('-') self.decreasePositionButton.setMaximumWidth(30)
self.helixCtermResNameLabel = QtGui.QLabel('?') self.helixCtermSpinBox = QtGui.QSpinBox() self.helixCtermSpinBox.setRange(1, 10000) self.helixDecreasePositionButton = QtGui.QPushButton('-') self.helixDecreasePositionButton.setMaximumWidth(30)
def setupHelixTab(self): #These go in the Helix tab self.modifyRadioButton = QtGui.QRadioButton(self.tr('Modify')) self.newRadioButtion = QtGui.QRadioButton(self.tr('New')) NterminusLabel = QtGui.QLabel('N term') self.NtermResNameLabel = QtGui.QLabel('?') self.NtermSpinBox = QtGui.QSpinBox() self.NtermSpinBox.setRange(1, 10000) CterminusLabel = QtGui.QLabel('C term') self.CtermResNameLabel = QtGui.QLabel('?') self.CtermSpinBox = QtGui.QSpinBox() self.CtermSpinBox.setRange(1, 10000) self.decreasePositionButton = QtGui.QPushButton('-') self.decreasePositionButton.setMaximumWidth(30) positionLabel = QtGui.QLabel(self.tr('Position')) self.increasePositionButton = QtGui.QPushButton('+') self.increasePositionButton.setMaximumWidth(30) self.createCAHelixButton = QtGui.QPushButton(self.tr('Create C-alpha Helix')) self.removeButton = QtGui.QPushButton(self.tr('Remove')) self.flipButton = QtGui.QPushButton(self.tr('Flip')) radioLayout = QtGui.QHBoxLayout() radioLayout.addWidget(self.modifyRadioButton) radioLayout.addWidget(self.newRadioButtion) radioLayout.addStretch() NtermLayout = QtGui.QHBoxLayout() NtermLayout.addWidget(NterminusLabel) NtermLayout.addWidget(self.NtermResNameLabel) NtermLayout.addWidget(self.NtermSpinBox) NtermLayout.addStretch() CtermLayout = QtGui.QHBoxLayout() CtermLayout.addWidget(CterminusLabel) CtermLayout.addWidget(self.CtermResNameLabel) CtermLayout.addWidget(self.CtermSpinBox) CtermLayout.addStretch() positionLayout = QtGui.QHBoxLayout() positionLayout.addWidget(self.decreasePositionButton) positionLayout.addWidget(positionLabel) positionLayout.addWidget(self.increasePositionButton) positionLayout.addStretch() createLayout = QtGui.QHBoxLayout() createLayout.addWidget(self.createCAHelixButton) createLayout.addStretch() removeLayout = QtGui.QHBoxLayout() removeLayout.addWidget(self.removeButton) removeLayout.addStretch() flipLayout = QtGui.QHBoxLayout() flipLayout.addWidget(self.flipButton) flipLayout.addStretch() helixLayout = QtGui.QVBoxLayout() helixLayout.addLayout(radioLayout) helixLayout.addLayout(NtermLayout) helixLayout.addLayout(CtermLayout) helixLayout.addLayout(positionLayout) helixLayout.addLayout(createLayout) helixLayout.addLayout(removeLayout) helixLayout.addLayout(flipLayout) self.helixTab.setLayout(helixLayout)
e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9/structure_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 44, 26342, 5661, 12, 2890, 4672, 468, 29690, 1960, 316, 326, 670, 26342, 3246, 365, 18, 17042, 19984, 3616, 273, 23425, 18, 53, 19984, 3616, 12, 2890, 18, 313, 2668, 11047, 26112, 365, 18, 2704, 19984, 31167, 24252, 273, 23425, 18, 53, 19984, 3616, 12, 2890, 18, 313, 2668, 1908, 26112, 423, 9505, 407, 2224, 273, 23425, 18, 2024, 873, 2668, 50, 2481, 6134, 365, 18, 50, 6408, 607, 461, 2224, 273, 23425, 18, 2024, 873, 2668, 4899, 13, 365, 18, 50, 6408, 3389, 267, 3514, 273, 23425, 18, 53, 3389, 267, 3514, 1435, 365, 18, 50, 6408, 3389, 267, 3514, 18, 542, 2655, 12, 21, 16, 12619, 13, 385, 9505, 407, 2224, 273, 23425, 18, 2024, 873, 2668, 39, 2481, 6134, 365, 18, 76, 26342, 39, 6408, 607, 461, 2224, 273, 23425, 18, 2024, 873, 2668, 4899, 13, 365, 18, 76, 26342, 39, 6408, 3389, 267, 3514, 273, 23425, 18, 53, 3389, 267, 3514, 1435, 365, 18, 76, 26342, 39, 6408, 3389, 267, 3514, 18, 542, 2655, 12, 21, 16, 12619, 13, 225, 365, 18, 76, 26342, 23326, 448, 2555, 3616, 273, 23425, 18, 53, 7621, 3616, 2668, 17, 6134, 365, 18, 76, 26342, 23326, 448, 2555, 3616, 18, 542, 13528, 2384, 12, 5082, 13, 1754, 2224, 273, 23425, 18, 2024, 873, 12, 2890, 18, 313, 2668, 2555, 26112, 365, 18, 267, 11908, 2555, 3616, 273, 23425, 18, 53, 7621, 3616, 2668, 15, 6134, 365, 18, 267, 11908, 2555, 3616, 18, 542, 13528, 2384, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 44, 26342, 5661, 12, 2890, 4672, 468, 29690, 1960, 316, 326, 670, 26342, 3246, 365, 18, 17042, 19984, 3616, 273, 23425, 18, 53, 19984, 3616, 12, 2890, 18, 313, 2668, 11047, 26112, 365, 18, 2704, 19984, 31167, 24252, 273, 23425, 18, 53, 19984, 3616, 12, 2890, 18, 313, 2668, 1908, 26112, 423, 9505, 407, 2224, 273, 23425, 18, 2024, 873, 2668, 50, 2481, 6134, 365, 18, 50, 6408, 607, 461, 2224, 273, 23425, 18, 2024, 873, 2668, 4899, 13, 365, 18, 50, 6408, 3389, 267, 3514, 273, 23425, 18, 53, 3389, 267, 3514, 1435, 365, 18, 50, 6408, 3389, 267, 3514, 18, 542, 2655, 12, 21, 16, 12619, 13, 385, 9505, 407, 2224, 273, 23425, 18, 2024, 2 ]
do_exec(cvs+' co reportlab', 'the checkout phase')
def cvs_checkout(d): os.chdir(d) recursive_rmdir(cvsdir) cvs = find_exe('cvs') if cvs is None: os.exit(1) os.environ['CVSROOT']=':pserver:%[email protected]:/cvsroot/reportlab' % USER if release: do_exec(cvs+(' export -r %s reportlab' % tagname), 'the export phase') else: if py2pdf: do_exec(cvs+' co reportlab', 'the checkout phase') # now we need to move the files & delete those we don't need dst = py2pdf_dir recursive_rmdir(dst) os.mkdir(dst) do_exec("mv reportlab/demos/py2pdf/py2pdf.py %s"%dst, "mv py2pdf.py") do_exec("mv reportlab/demos/py2pdf/PyFontify.py %s" % dst, "mv pyfontify.py") do_exec("rm -r reportlab/demos reportlab/platypus reportlab/lib/styles.py reportlab/README.pdfgen.txt", "rm") do_exec("mv reportlab %s" % dst) CVS_remove(dst) else: do_exec(cvs+' co reportlab', 'the checkout phase')
7847c3dfe100d88a859c3f440a9dee0bff61d3cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/7847c3dfe100d88a859c3f440a9dee0bff61d3cb/daily.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 276, 6904, 353, 599, 30, 1140, 18, 8593, 12, 21, 13, 225, 1140, 18, 28684, 3292, 39, 14640, 9185, 3546, 2218, 30, 84, 3567, 5319, 87, 36, 71, 6904, 18, 6006, 7411, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 19, 6006, 7411, 11, 738, 7443, 309, 3992, 30, 741, 67, 4177, 12, 71, 6904, 15, 2668, 3359, 300, 86, 738, 87, 2605, 7411, 11, 738, 25586, 3631, 296, 5787, 3359, 6855, 6134, 469, 30, 309, 2395, 22, 7699, 30, 468, 2037, 732, 1608, 358, 3635, 326, 1390, 473, 1430, 5348, 732, 2727, 1404, 1608, 3046, 273, 2395, 22, 7699, 67, 1214, 5904, 67, 8864, 1214, 12, 11057, 13, 1140, 18, 26686, 12, 11057, 13, 741, 67, 4177, 2932, 17509, 2605, 7411, 19, 19117, 538, 19, 2074, 22, 7699, 19, 2074, 22, 7699, 18, 2074, 738, 87, 28385, 11057, 16, 315, 17509, 2395, 22, 7699, 18, 2074, 7923, 741, 67, 4177, 2932, 17509, 2605, 7411, 19, 19117, 538, 19, 2074, 22, 7699, 19, 9413, 5711, 1164, 18, 2074, 738, 87, 6, 738, 3046, 16, 315, 17509, 2395, 5776, 1164, 18, 2074, 7923, 741, 67, 4177, 2932, 8864, 300, 86, 2605, 7411, 19, 19117, 538, 2605, 7411, 19, 412, 270, 879, 407, 2605, 7411, 19, 2941, 19, 10218, 18, 2074, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 276, 6904, 353, 599, 30, 1140, 18, 8593, 12, 21, 13, 225, 1140, 18, 28684, 3292, 39, 14640, 9185, 3546, 2218, 30, 84, 3567, 5319, 87, 36, 71, 6904, 18, 6006, 7411, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 19, 6006, 7411, 11, 738, 7443, 309, 3992, 30, 741, 67, 4177, 12, 71, 6904, 15, 2668, 3359, 300, 86, 738, 87, 2605, 7411, 11, 738, 25586, 3631, 296, 5787, 3359, 6855, 6134, 469, 30, 309, 2395, 22, 7699, 30, 468, 2 ]
i = find_token(document.body, "LatexCommand href", i) if i == -1: return document.body[i] = "LatexCommand url" i = i + 1
i = find_token(document.body, "\\begin_inset CommandInset href", i) if i == -1: return document.body[i : i + 2] = ["\\begin_inset CommandInset url", "LatexCommand url"] i = i + 2
def revert_href(document): 'Reverts hyperlink insets (href) to url insets (url)' i = 0 while True: i = find_token(document.body, "LatexCommand href", i) if i == -1: return document.body[i] = "LatexCommand url" i = i + 1
bfbf9c14e227685f4e6ae2acbb0cd66c28315f6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/bfbf9c14e227685f4e6ae2acbb0cd66c28315f6d/lyx_1_6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7547, 12, 5457, 4672, 296, 426, 31537, 9512, 1232, 23576, 261, 7547, 13, 358, 880, 23576, 261, 718, 2506, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 8422, 10086, 67, 267, 542, 3498, 382, 542, 3897, 3113, 277, 13, 309, 277, 422, 300, 21, 30, 327, 1668, 18, 3432, 63, 77, 294, 277, 397, 576, 65, 273, 8247, 1695, 10086, 67, 267, 542, 3498, 382, 542, 880, 3113, 315, 6607, 338, 2189, 880, 11929, 277, 273, 277, 397, 576, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7547, 12, 5457, 4672, 296, 426, 31537, 9512, 1232, 23576, 261, 7547, 13, 358, 880, 23576, 261, 718, 2506, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 8422, 10086, 67, 267, 542, 3498, 382, 542, 3897, 3113, 277, 13, 309, 277, 422, 300, 21, 30, 327, 1668, 18, 3432, 63, 77, 294, 277, 397, 576, 65, 273, 8247, 1695, 10086, 67, 267, 542, 3498, 382, 542, 880, 3113, 315, 6607, 338, 2189, 880, 11929, 277, 273, 277, 397, 576, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
class HanDeDictTranslationSearchStrategy(ExactTranslationSearchStrategy):
class CEDICTWildcardTranslationSearchStrategy( WildcardTranslationSearchStrategy, CEDICTTranslationSearchStrategy): """ CEDICT translation based search strategy with support for wildcards. Takes into account additions put in parentheses and appended information separated by a comma. """ def _getWildcardRegex(self, searchStr): regexStr = self._prepareWildcardRegex(searchStr) if not searchStr.startswith('%'): regexStr = '(\s+|\([^\)]+\))*' + regexStr if not searchStr.endswith('%'): regexStr = regexStr + '(\s+|\([^\)]+\))*' return re.compile('/' + regexStr + '[/,]') def getMatchFunction(self, searchStr): if self.hasWildcardCharacters(searchStr): regex = self._getWildcardRegex(searchStr) return lambda translation: regex.search(translation) is not None else: return CEDICTTranslationSearchStrategy.getMatchFunction(self, searchStr) class HanDeDictTranslationSearchStrategy(SingleEntryTranslationSearchStrategy):
def getMatchFunction(self, searchStr): # start with a slash '/', make sure any opening parenthesis is # closed and match search string. Finish with other content in # parantheses and a slash regex = re.compile('/' + '(\s+|\([^\)]+\))*' + re.escape(searchStr) + '(\s+|\([^\)]+\))*' + '[/,]')
7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2060, 2083, 12, 2890, 16, 1623, 1585, 4672, 468, 787, 598, 279, 9026, 2023, 16, 1221, 3071, 1281, 10890, 22311, 353, 468, 282, 4375, 471, 845, 1623, 533, 18, 18560, 598, 1308, 913, 316, 468, 282, 779, 304, 7915, 281, 471, 279, 9026, 3936, 273, 283, 18, 11100, 2668, 2473, 397, 296, 4713, 87, 15, 8960, 19042, 13, 26446, 3719, 4035, 397, 283, 18, 6939, 12, 3072, 1585, 13, 397, 296, 4713, 87, 15, 8960, 19042, 13, 26446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2060, 2083, 12, 2890, 16, 1623, 1585, 4672, 468, 787, 598, 279, 9026, 2023, 16, 1221, 3071, 1281, 10890, 22311, 353, 468, 282, 4375, 471, 845, 1623, 533, 18, 18560, 598, 1308, 913, 316, 468, 282, 779, 304, 7915, 281, 471, 279, 9026, 3936, 273, 283, 18, 11100, 2668, 2473, 397, 296, 4713, 87, 15, 8960, 19042, 13, 26446, 3719, 4035, 397, 283, 18, 6939, 12, 3072, 1585, 13, 397, 296, 4713, 87, 15, 8960, 19042, 13, 26446, 3719, 4035, 397, 5271, 19, 16, 3864, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for b in boolean_keys: self.assert_(type(o.get(b)) is bool)
for bkey in boolean_keys: self.assert_(type(o.get(bkey)) is bool)
def test_Options(self): o = options v = o.get("check_online_updates")
392feeb3d25aea6fbc3df3a165f808024bc54e84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/392feeb3d25aea6fbc3df3a165f808024bc54e84/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1320, 12, 2890, 4672, 320, 273, 702, 331, 273, 320, 18, 588, 2932, 1893, 67, 21026, 67, 14703, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1320, 12, 2890, 4672, 320, 273, 702, 331, 273, 320, 18, 588, 2932, 1893, 67, 21026, 67, 14703, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
game.quad[e.kloc.x][e.kloc.y] = IHS
game.quad[e.kloc.i][e.kloc.j] = IHS
def newqad(): "Set up a new state of quadrant, for when we enter or re-enter it." game.justin = True game.iplnet = None game.neutz = game.inorbit = game.landed = False game.ientesc = game.iseenit = False # Create a blank quadrant game.quad = fill2d(QUADSIZE, lambda i, j: IHDOT) if game.iscate: # Attempt to escape Super-commander, so tbeam back! game.iscate = False game.ientesc = True q = game.state.galaxy[game.quadrant.x][game.quadrant.y] # cope with supernova if q.supernova: return game.klhere = q.klingons game.irhere = q.romulans # Position Starship game.quad[game.sector.x][game.sector.y] = game.ship game.enemies = [] if q.klingons: # Position ordinary Klingons for i in range(game.klhere): newkling() # If we need a commander, promote a Klingon for cmdr in game.state.kcmdr: if cmdr == game.quadrant: e = game.enemies[game.klhere-1] game.quad[e.kloc.x][e.kloc.y] = IHC e.kpower = randreal(950,1350) + 50.0*game.skill break # If we need a super-commander, promote a Klingon if game.quadrant == game.state.kscmdr: e = game.enemies[0] game.quad[e.kloc.x][e.kloc.y] = IHS e.kpower = randreal(1175.0, 1575.0) + 125.0*game.skill game.iscate = (game.state.remkl > 1) # Put in Romulans if needed for i in range(q.romulans): enemy(IHR, loc=dropin(), power=randreal(400.0,850.0)+50.0*game.skill) # If quadrant needs a starbase, put it in if q.starbase: game.base = dropin(IHB) # If quadrant needs a planet, put it in if q.planet: game.iplnet = q.planet if not q.planet.inhabited: game.plnet = dropin(IHP) else: game.plnet = dropin(IHW) # Check for condition newcnd() # Check for RNZ if game.irhere > 0 and game.klhere == 0: game.neutz = True if not damaged(DRADIO): skip(1) prout(_("LT. Uhura- \"Captain, an urgent message.")) prout(_(" I'll put it on audio.\" CLICK")) skip(1) prout(_("INTRUDER! YOU HAVE VIOLATED THE ROMULAN NEUTRAL ZONE.")) prout(_("LEAVE AT ONCE, OR YOU WILL BE DESTROYED!")) # Put in THING if needed if thing == game.quadrant: enemy(type=IHQUEST, loc=dropin(), power=randreal(6000,6500.0)+250.0*game.skill) if not damaged(DSRSENS): skip(1) prout(_("Mr. Spock- \"Captain, this is most unusual.")) prout(_(" Please examine your short-range scan.\"")) # Decide if quadrant needs a Tholian; lighten up if skill is low if game.options & OPTION_THOLIAN: if (game.skill < SKILL_GOOD and withprob(0.02)) or \ (game.skill == SKILL_GOOD and withprob(0.05)) or \ (game.skill > SKILL_GOOD and withprob(0.08)): w = coord() while True: w.x = withprob(0.5) * (QUADSIZE-1) w.y = withprob(0.5) * (QUADSIZE-1) if game.quad[w.x][w.y] == IHDOT: break game.tholian = enemy(type=IHT, loc=w, power=randrange(100, 500) + 25.0*game.skill) # Reserve unoccupied corners if game.quad[0][0]==IHDOT: game.quad[0][0] = 'X' if game.quad[0][QUADSIZE-1]==IHDOT: game.quad[0][QUADSIZE-1] = 'X' if game.quad[QUADSIZE-1][0]==IHDOT: game.quad[QUADSIZE-1][0] = 'X' if game.quad[QUADSIZE-1][QUADSIZE-1]==IHDOT: game.quad[QUADSIZE-1][QUADSIZE-1] = 'X' game.enemies.sort(lambda x, y: cmp(x.kdist, y.kdist)) # And finally the stars for i in range(q.stars): dropin(IHSTAR) # Put in a few black holes for i in range(1, 3+1): if withprob(0.5): dropin(IHBLANK) # Take out X's in corners if Tholian present if game.tholian: if game.quad[0][0]=='X': game.quad[0][0] = IHDOT if game.quad[0][QUADSIZE-1]=='X': game.quad[0][QUADSIZE-1] = IHDOT if game.quad[QUADSIZE-1][0]=='X': game.quad[QUADSIZE-1][0] = IHDOT if game.quad[QUADSIZE-1][QUADSIZE-1]=='X': game.quad[QUADSIZE-1][QUADSIZE-1] = IHDOT
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 85, 361, 13332, 315, 694, 731, 279, 394, 919, 434, 9474, 6890, 16, 364, 1347, 732, 6103, 578, 283, 17, 2328, 518, 1199, 7920, 18, 3732, 267, 273, 1053, 7920, 18, 77, 412, 2758, 273, 599, 7920, 18, 4644, 322, 94, 273, 7920, 18, 267, 280, 3682, 273, 7920, 18, 80, 5860, 273, 1083, 7920, 18, 1979, 742, 273, 7920, 18, 784, 275, 305, 273, 1083, 468, 1788, 279, 7052, 9474, 6890, 7920, 18, 21733, 273, 3636, 22, 72, 12, 3500, 1880, 4574, 16, 3195, 277, 16, 525, 30, 467, 44, 17591, 13, 309, 7920, 18, 291, 71, 340, 30, 468, 12864, 358, 4114, 14845, 17, 3076, 264, 16, 1427, 268, 27385, 1473, 5, 7920, 18, 291, 71, 340, 273, 1083, 7920, 18, 1979, 742, 273, 1053, 1043, 273, 7920, 18, 2019, 18, 25030, 31851, 63, 13957, 18, 21733, 6890, 18, 92, 6362, 13957, 18, 21733, 6890, 18, 93, 65, 468, 276, 1306, 598, 2240, 82, 16739, 309, 1043, 18, 2859, 8865, 16739, 30, 327, 7920, 18, 16391, 14852, 273, 1043, 18, 79, 2456, 7008, 7920, 18, 481, 14852, 273, 1043, 18, 520, 332, 634, 468, 11010, 934, 976, 625, 7920, 18, 21733, 63, 13957, 18, 5709, 280, 18, 92, 6362, 13957, 18, 5709, 280, 18, 93, 65, 273, 7920, 18, 3261, 7920, 18, 275, 351, 606, 273, 5378, 309, 1043, 18, 79, 2456, 7008, 30, 468, 11010, 4642, 2101, 1475, 2456, 7008, 364, 277, 316, 1048, 12, 13957, 18, 16391, 14852, 4672, 394, 79, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 85, 361, 13332, 315, 694, 731, 279, 394, 919, 434, 9474, 6890, 16, 364, 1347, 732, 6103, 578, 283, 17, 2328, 518, 1199, 7920, 18, 3732, 267, 273, 1053, 7920, 18, 77, 412, 2758, 273, 599, 7920, 18, 4644, 322, 94, 273, 7920, 18, 267, 280, 3682, 273, 7920, 18, 80, 5860, 273, 1083, 7920, 18, 1979, 742, 273, 7920, 18, 784, 275, 305, 273, 1083, 468, 1788, 279, 7052, 9474, 6890, 7920, 18, 21733, 273, 3636, 22, 72, 12, 3500, 1880, 4574, 16, 3195, 277, 16, 525, 30, 467, 44, 17591, 13, 309, 7920, 18, 291, 71, 340, 30, 468, 12864, 358, 4114, 14845, 17, 3076, 264, 16, 1427, 268, 27385, 1473, 5, 7920, 18, 291, 2 ]
log.info(u"Successfully posted url %s to delicious, posted in channel %s by nick %s at time %s",
log.debug(u"Successfully posted url %s to delicious, posted in channel %s by nick %s at time %s",
def add_post(self, username, password, event, url=None): "Posts a URL to delicious.com"
4da7d9f9e059fb70ba2728c41171e9a149250951 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/4da7d9f9e059fb70ba2728c41171e9a149250951/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2767, 12, 2890, 16, 2718, 16, 2201, 16, 871, 16, 880, 33, 7036, 4672, 315, 24983, 279, 1976, 358, 1464, 28728, 18,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2767, 12, 2890, 16, 2718, 16, 2201, 16, 871, 16, 880, 33, 7036, 4672, 315, 24983, 279, 1976, 358, 1464, 28728, 18, 832, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.journal_name = guess_journal_name(argd['ln'])
journal_name = guess_journal_name(argd['ln'])
def __call__(self, req, form): """ Maybe resolve the final / of a directory """ ## Support for legacy journal/[empty]?(args*) urls. There are ## these parameters only in that case argd = wash_urlargd(form, {'name': (str, ""), 'issue': (str, ""), 'category': (str, ""), 'ln': (str, CFG_SITE_LANG), 'number': (int, None), 'verbose': (int, 0)} )
bae57c8d54f081029ed46e6fc1bac54d5858c064 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/bae57c8d54f081029ed46e6fc1bac54d5858c064/webjournal_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 14024, 2245, 326, 727, 342, 434, 279, 1867, 3536, 7541, 13619, 364, 8866, 13001, 19, 63, 5531, 26717, 12, 1968, 12437, 6903, 18, 6149, 854, 7541, 4259, 1472, 1338, 316, 716, 648, 1501, 72, 273, 341, 961, 67, 718, 3175, 72, 12, 687, 16, 13666, 529, 4278, 261, 701, 16, 1408, 3631, 296, 13882, 4278, 261, 701, 16, 1408, 3631, 296, 4743, 4278, 261, 701, 16, 1408, 3631, 296, 2370, 4278, 261, 701, 16, 7577, 67, 20609, 67, 10571, 3631, 296, 2696, 4278, 261, 474, 16, 599, 3631, 296, 11369, 4278, 261, 474, 16, 374, 16869, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 14024, 2245, 326, 727, 342, 434, 279, 1867, 3536, 7541, 13619, 364, 8866, 13001, 19, 63, 5531, 26717, 12, 1968, 12437, 6903, 18, 6149, 854, 7541, 4259, 1472, 1338, 316, 716, 648, 1501, 72, 273, 341, 961, 67, 718, 3175, 72, 12, 687, 16, 13666, 529, 4278, 261, 701, 16, 1408, 3631, 296, 13882, 4278, 261, 701, 16, 1408, 3631, 296, 4743, 4278, 261, 701, 16, 1408, 3631, 296, 2370, 4278, 261, 701, 16, 7577, 67, 20609, 67, 10571, 3631, 296, 2696, 4278, 261, 474, 16, 599, 3631, 296, 11369, 4278, 261, 474, 16, 374, 16869, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._profileDt = dt
profileInfo.dt = dt
def __executeTask(self, task): task.setCurrentTimeFrame(self.currentTime, self.currentFrame)
51c598f3d6d44b31957175306331fbe8df200336 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/51c598f3d6d44b31957175306331fbe8df200336/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8837, 2174, 12, 2890, 16, 1562, 4672, 1562, 18, 542, 3935, 950, 3219, 12, 2890, 18, 2972, 950, 16, 365, 18, 2972, 3219, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8837, 2174, 12, 2890, 16, 1562, 4672, 1562, 18, 542, 3935, 950, 3219, 12, 2890, 18, 2972, 950, 16, 365, 18, 2972, 3219, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
addNodeField(ORIGINAL_LABEL_FIELD_NAME, Types.VARCHAR, "") setattr(g.nodes, ORIGINAL_LABEL_FIELD_NAME, g.nodes.label) addEdgeField(ORIGINAL_LABEL_FIELD_NAME, Types.VARCHAR, "") setattr(g.edges, ORIGINAL_LABEL_FIELD_NAME, g.edges.label)
def initializeGlobalVariables(): # put all the color names into an array for i in colorInfo: colorList.append(i[0]) gStuff = globals() # all variables that have been declared # the properties of nodes and edges specified in the gdf file originalGraphProperties = [] wantedDefaultProperties = [] # get all methods and variables #MAXIMUM HACKITUDE TO FIX DESPERATE BUG addNodeField(ORIGINAL_LABEL_FIELD_NAME, Types.VARCHAR, "") setattr(g.nodes, ORIGINAL_LABEL_FIELD_NAME, g.nodes.label) addEdgeField(ORIGINAL_LABEL_FIELD_NAME, Types.VARCHAR, "") setattr(g.edges, ORIGINAL_LABEL_FIELD_NAME, g.edges.label) for i in globalDir: if gStuff.has_key(i) and not i == "Edge" and not i == "Node" and not i in colorList: # check to see if it is a variable if str(gStuff[i]) == i: if i in doNotIncludeProperties: #ignore it foo = 2 elif i in defaultProperties: wantedDefaultProperties.append(i) else: originalGraphProperties.append(i) #makes it so original graph properties appear first wantedProperties = originalGraphProperties + wantedDefaultProperties # check to see which properties belong to what for i in wantedProperties: # check to see if it's a node property try: property = "g.nodes[0]." + i eval(property) # will throw an error if it is not a property of a node # find out what type of variable it is nodeProperties[i] = type(eval(property)) nodePropertiesList.append(i) # add to the list of node properties nodePropertyValues[i] = [] # store all the values of that property # find all the values for that node property if it is a string if nodeProperties[i] == type("string"): allvalues = eval("g.nodes."+ i) alluniquevalues = unique(allvalues) nodePropertyValues[i] = alluniquevalues # else find the range if the property is a flot or an integer elif nodeProperties[i] == type(1) or nodeProperties[i] == type(1.5): all_values = eval("g.nodes." + i) if len(all_values) > 0: smallest = min(all_values) largest = max(all_values) else: smallest = 0 largest = 0 nodePropertyValues[i].append(smallest) nodePropertyValues[i].append(largest) # there is an attribute error => i is not a property of a node except AttributeError: # check to see if it is an edge property try: property = "g.edges[0]." + i eval(property) # will throw an error if it is not a property of an edge edgeProperties[i] = type(eval(property)) edgePropertiesList.append(i) edgePropertyValues[i] = [] # find all the values for that edge property if property is a string if edgeProperties[i] == type("string"): allvalues = eval("g.edges."+ i) alluniquevalues = unique(allvalues) edgePropertyValues[i] = alluniquevalues # find the range of values for an edge if it is an integer or float elif edgeProperties[i] == type(1) or edgeProperties[i] == type(1.5): all_values = eval("g.edges." + i) if len(all_values) > 0: smallest = min(all_values) largest = max(all_values) else: smallest = 0 largest = 0 edgePropertyValues[i].append(smallest) edgePropertyValues[i].append(largest) # there is an attribute error => i is not a property of an edge except AttributeError: print i + " is not a property of a node or an edge" # sort the node list counter = 0 for i in g.nodes: nodeIndex.append((i.getName(), counter)) counter = counter + 1 nodeIndex.sort() # sort the edge list counter = 0 for i in g.edges: edgeIndex.append((i.node1.getName() + " - " + i.node2.getName(), counter)) counter = counter + 1 edgeIndex.sort() # Setting the default color of edges & nodes to black. g.edges.labelColor = '0, 0, 0, 255' g.nodes.labelColor = '0, 0, 0, 255'
f9a3e158289d1f03c636bc1b8e9bd9a6cbb0bebf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2706/f9a3e158289d1f03c636bc1b8e9bd9a6cbb0bebf/graphModifier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 5160, 6158, 13332, 468, 1378, 777, 326, 2036, 1257, 1368, 392, 526, 364, 277, 316, 2036, 966, 30, 2036, 682, 18, 6923, 12, 77, 63, 20, 5717, 225, 314, 510, 3809, 273, 10941, 1435, 468, 777, 3152, 716, 1240, 2118, 7886, 468, 326, 1790, 434, 2199, 471, 5231, 1269, 316, 326, 314, 2180, 585, 2282, 4137, 2297, 273, 5378, 15504, 1868, 2297, 273, 5378, 468, 336, 777, 2590, 471, 3152, 225, 468, 6694, 18605, 670, 3649, 29108, 8493, 8563, 2030, 3118, 654, 1777, 10937, 43, 1850, 364, 277, 316, 2552, 1621, 30, 309, 314, 510, 3809, 18, 5332, 67, 856, 12, 77, 13, 471, 486, 277, 422, 315, 6098, 6, 471, 486, 277, 422, 315, 907, 6, 471, 486, 277, 316, 2036, 682, 30, 468, 866, 358, 2621, 309, 518, 353, 279, 2190, 309, 609, 12, 75, 510, 3809, 63, 77, 5717, 422, 277, 30, 309, 277, 316, 741, 1248, 8752, 2297, 30, 468, 6185, 518, 8431, 273, 576, 1327, 277, 316, 805, 2297, 30, 15504, 1868, 2297, 18, 6923, 12, 77, 13, 469, 30, 2282, 4137, 2297, 18, 6923, 12, 77, 13, 225, 468, 81, 3223, 518, 1427, 2282, 2667, 1790, 9788, 1122, 15504, 2297, 273, 2282, 4137, 2297, 397, 15504, 1868, 2297, 468, 866, 358, 2621, 1492, 1790, 10957, 358, 4121, 364, 277, 316, 15504, 2297, 30, 468, 866, 358, 2621, 309, 518, 1807, 279, 756, 1272, 775, 30, 1272, 273, 315, 75, 18, 4690, 63, 20, 65, 1199, 397, 277, 5302, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 5160, 6158, 13332, 468, 1378, 777, 326, 2036, 1257, 1368, 392, 526, 364, 277, 316, 2036, 966, 30, 2036, 682, 18, 6923, 12, 77, 63, 20, 5717, 225, 314, 510, 3809, 273, 10941, 1435, 468, 777, 3152, 716, 1240, 2118, 7886, 468, 326, 1790, 434, 2199, 471, 5231, 1269, 316, 326, 314, 2180, 585, 2282, 4137, 2297, 273, 5378, 15504, 1868, 2297, 273, 5378, 468, 336, 777, 2590, 471, 3152, 225, 468, 6694, 18605, 670, 3649, 29108, 8493, 8563, 2030, 3118, 654, 1777, 10937, 43, 1850, 364, 277, 316, 2552, 1621, 30, 309, 314, 510, 3809, 18, 5332, 67, 856, 12, 77, 13, 471, 486, 277, 422, 315, 6098, 6, 471, 486, 277, 422, 315, 907, 6, 2 ]
if domain == "": domain = "*"
def _genDomains(self): """ Generate dict with domain by level. """ if len(self._domains) > 0: self._domains = { } for level in xrange(self.FATAL, self.DEBUG_MAX+1): if not self._logging.has_key(level): continue for (domain, target, _format) in self._logging[level]: if domain == "": domain = "*" if domain not in self._domains: self._domains.setdefault(level, [ ]).append(domain)
5e21eaf199cb2a3a81aefe5be1fd9cac8312f653 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/5e21eaf199cb2a3a81aefe5be1fd9cac8312f653/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 15531, 12, 2890, 4672, 3536, 6654, 2065, 598, 2461, 635, 1801, 18, 3536, 309, 562, 12, 2890, 6315, 14180, 13, 405, 374, 30, 365, 6315, 14180, 273, 288, 289, 364, 1801, 316, 12314, 12, 2890, 18, 29891, 16, 365, 18, 9394, 67, 6694, 15, 21, 4672, 309, 486, 365, 6315, 11167, 18, 5332, 67, 856, 12, 2815, 4672, 1324, 364, 261, 4308, 16, 1018, 16, 389, 2139, 13, 316, 365, 6315, 11167, 63, 2815, 14542, 309, 2461, 486, 316, 365, 6315, 14180, 30, 365, 6315, 14180, 18, 542, 1886, 12, 2815, 16, 306, 308, 2934, 6923, 12, 4308, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4507, 15531, 12, 2890, 4672, 3536, 6654, 2065, 598, 2461, 635, 1801, 18, 3536, 309, 562, 12, 2890, 6315, 14180, 13, 405, 374, 30, 365, 6315, 14180, 273, 288, 289, 364, 1801, 316, 12314, 12, 2890, 18, 29891, 16, 365, 18, 9394, 67, 6694, 15, 21, 4672, 309, 486, 365, 6315, 11167, 18, 5332, 67, 856, 12, 2815, 4672, 1324, 364, 261, 4308, 16, 1018, 16, 389, 2139, 13, 316, 365, 6315, 11167, 63, 2815, 14542, 309, 2461, 486, 316, 365, 6315, 14180, 30, 365, 6315, 14180, 18, 542, 1886, 12, 2815, 16, 306, 308, 2934, 6923, 12, 4308, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.display_heading(tag.string, "minor")
self.display_heading(text, "minor")
def parse_old_sitting_part(self, soup): """Parse and convert a new-style (1/2001-3/2006) Standing Committee transcript to XML""" #Tuesday 16 January 2001|Tuesday 16 January 2001(Afternoon) pDate = '\S*?\s+\d\d?\s+\S*?\s+\d\d\d\d(\(\S*?\))?' pTimeOfDay = '(\(Morning\)|\(Afternoon\))' tags = soup({'h1':True, 'h2':True, 'h3':True, 'h4':True, 'h5':True, 'page':True, 'table':True, 'p': True, 'b':True }) for tag in tags: text = ''.join(tag(text=True)).strip() if not text: continue if tag.name == 'b': if re.match('Column number: (\d+)', text): self.parse_column(text) elif tag.name == 'p': if tag.get('class', None): if tag['class'] == 'smallcaps': self.display_heading(tag.string, "minor") elif tag['class'] == 'class': self.display_para(tag, indent=False, amendmentText=True) elif re.match("The Committee consisted of the following Members:\s*?$", text): self.parse_committee(tag) elif re.match("The following (M|m)embers attended the Committ?ee:?", text): self.parse_old_committee(tag) elif re.match('Column (N|n)umber:? (\d+)', text): self.parse_column(text) elif re.match('Examination of Witnesses', text): self.external_speakers = True self.display_heading(tag.string, "minor") elif tag.get('align', None) and tag['align'] == 'center': self.display_heading(tag.string, "minor") else: self.display_para(tag) if tag.name == 'h1': self.parse_h1_tag(tag) elif tag.name == 'h2': self.display_heading(text, 'major') elif tag.name == 'h3': if re.match(pDate, text) or re.match(pTimeOfDay, text): pass else: self.display_heading(text, "major") elif tag.name == 'h4': if re.match(pDate, text) or re.match(pTimeOfDay, text): pass elif re.search('in\s+the\s+Chair', text): self.display_chair(tag) elif re.match('\s*\[?(New)?\s*(c|C)lause', text): self.display_heading(tag.string, "minor") elif re.match('\[?(New)?\s*Schedule', text): self.display_heading(tag.string, "minor") elif re.match('\[?Part', text): self.display_heading(tag.string, "minor") elif re.match('(\d\d?)\.?(\d\d)?\s*?(a|p)m', text) or re.match ('12\s*?noon|12\s*?midnight', text): self.parse_timeline(tag) elif re.match('The Committee consisted of the following Members:', text): self.parse_committee(tag) elif re.match('Examination of Witnesses', text): self.external_speakers = True self.display_heading(tag.string, "minor") else: self.display_heading(tag.string, "minor") elif tag.name == 'h5': self.parse_timeline(tag) elif tag.name == 'page': self.url = tag['url'] elif tag.name == 'table': self.out.write(self.render_table(tag))
6f5d3aa05f0dcde05fa26d65e6d987be8dbcf0d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8428/6f5d3aa05f0dcde05fa26d65e6d987be8dbcf0d2/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1673, 67, 25404, 1787, 67, 2680, 12, 2890, 16, 15418, 4672, 3536, 3201, 471, 1765, 279, 394, 17, 4060, 261, 21, 19, 6976, 21, 17, 23, 19, 6976, 26, 13, 934, 464, 310, 10269, 22579, 15194, 358, 3167, 8395, 225, 468, 56, 3610, 2881, 2872, 23214, 24335, 4044, 21, 96, 56, 3610, 2881, 2872, 23214, 24335, 4044, 21, 12, 12664, 798, 83, 265, 13, 293, 1626, 273, 2337, 55, 14, 10936, 87, 16971, 72, 64, 72, 10936, 87, 16971, 55, 14, 10936, 87, 16971, 72, 64, 72, 64, 72, 64, 72, 4713, 4713, 55, 14, 10936, 3719, 4899, 293, 950, 17263, 273, 296, 4713, 12, 49, 280, 2093, 64, 13, 8960, 12, 12664, 798, 83, 265, 64, 13, 2506, 225, 2342, 273, 15418, 12590, 11, 76, 21, 4278, 5510, 16, 296, 76, 22, 4278, 5510, 16, 296, 76, 23, 4278, 5510, 16, 296, 76, 24, 4278, 5510, 16, 296, 76, 25, 4278, 5510, 16, 296, 2433, 4278, 5510, 16, 296, 2121, 4278, 5510, 16, 296, 84, 4278, 1053, 16, 296, 70, 4278, 5510, 289, 13, 364, 1047, 316, 2342, 30, 977, 273, 875, 18, 5701, 12, 2692, 12, 955, 33, 5510, 13, 2934, 6406, 1435, 309, 486, 977, 30, 1324, 309, 1047, 18, 529, 422, 296, 70, 4278, 309, 283, 18, 1916, 2668, 1494, 1300, 30, 17938, 72, 6975, 2187, 977, 4672, 365, 18, 2670, 67, 2827, 12, 955, 13, 1327, 1047, 18, 529, 422, 296, 84, 4278, 309, 1047, 18, 588, 2668, 1106, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1673, 67, 25404, 1787, 67, 2680, 12, 2890, 16, 15418, 4672, 3536, 3201, 471, 1765, 279, 394, 17, 4060, 261, 21, 19, 6976, 21, 17, 23, 19, 6976, 26, 13, 934, 464, 310, 10269, 22579, 15194, 358, 3167, 8395, 225, 468, 56, 3610, 2881, 2872, 23214, 24335, 4044, 21, 96, 56, 3610, 2881, 2872, 23214, 24335, 4044, 21, 12, 12664, 798, 83, 265, 13, 293, 1626, 273, 2337, 55, 14, 10936, 87, 16971, 72, 64, 72, 10936, 87, 16971, 55, 14, 10936, 87, 16971, 72, 64, 72, 64, 72, 64, 72, 4713, 4713, 55, 14, 10936, 3719, 4899, 293, 950, 17263, 273, 296, 4713, 12, 49, 280, 2093, 64, 13, 8960, 12, 12664, 798, 83, 265, 2 ]
try: examples = examples.select(orange.Domain(attributes, examples.domain.classVar)) except: print list(attributes)
tmpDomain = orange.Domain(attributes, examples.domain.classVar) tmpDomain.addmetas(examples.domain.getmetas()) examples = examples.select(tmpDomain)
def __call__(self, examples, weight=0): imputer = getattr(self, "imputer", None) or None if getattr(self, "removeMissing", 0): examples = orange.Preprocessor_dropMissing(examples)
0e4f76dd13d5f45584af852f0427ed96b8901487 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e4f76dd13d5f45584af852f0427ed96b8901487/orngLR.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 10991, 16, 3119, 33, 20, 4672, 709, 458, 264, 273, 3869, 12, 2890, 16, 315, 381, 458, 264, 3113, 599, 13, 578, 599, 309, 3869, 12, 2890, 16, 315, 4479, 4841, 3113, 374, 4672, 10991, 273, 578, 726, 18, 1386, 8700, 67, 7285, 4841, 12, 16858, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 10991, 16, 3119, 33, 20, 4672, 709, 458, 264, 273, 3869, 12, 2890, 16, 315, 381, 458, 264, 3113, 599, 13, 578, 599, 309, 3869, 12, 2890, 16, 315, 4479, 4841, 3113, 374, 4672, 10991, 273, 578, 726, 18, 1386, 8700, 67, 7285, 4841, 12, 16858, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out = open("/tmp/install_grub.sh", "w") out.write(" out.write("mount --bind /dev/ /target/dev\n") out.write("mount --bind /dev/pts /target/dev/shm\n") out.write("mount --bind /dev/shm /target/dev/shm\n") out.write("mount --bind /proc /target/proc\n") out.write("mount --bind /sys /target/sys\n") out.write("chroot /target/ grub-install %s\n" % self.grub_device) out.write("chroot /target/ grub-mkconfig -o /boot/grub/grub.cfg\n") out.write("umount --force /target/dev/pts\n") out.write("umount --force /target/dev/shm\n") out.write("umount --force /target/dev\n") out.write("umount --force /target/proc\n") out.write("umount --force /target/sys\n") out.close() os.system("chmod +x /tmp/install_grub.sh") os.system("/tmp/install_grub.sh") os.system("rm -rf /tmp/install_grub.sh")
os.system("chroot /target/ /bin/sh -c \"grub-install %s\"" % self.grub_device) os.system("chroot /target/ /bin/sh -c \"grub-mkconfig -o /boot/grub/grub.cfg\"").
def install(self):
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, aspect_ratio=[1,1,1], **kwds)
if 'aspect_ratio' not in kwds: kwds['aspect_ratio'] = [1,1,1] return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, **kwds)
def tetrahedron(center=(0,0,0), size=1, **kwds): """ A 3d tetrahedron. INPUTS: center -- (default: (0,0,0)) size -- (default: 1) color -- a word that describes a color rgbcolor -- (r,g,b) with r, g, b between 0 and 1 that describes a color opacity -- (default: 1) if less than 1 then is transparent EXAMPLES: A default colored tetrahedron at the origin: sage: tetrahedron() A transparent green tetrahedron in front of a solid red one: sage: tetrahedron(opacity=0.8, color='green') + tetrahedron((-2,1,0),color='red') A translucent tetrahedron sharing space with a sphere: sage: tetrahedron(color='yellow',opacity=0.7) + sphere(r=.5, color='red') A big tetrahedron: sage: tetrahedron(size=10) A wide tetrahedron: sage: tetrahedron(aspect_ratio=[1,1,1]).scale((4,4,1)) A red and blue tetrahedron touching noses: sage: tetrahedron(color='red') + tetrahedron((0,0,-2)).scale([1,1,-1]) AUTHOR: -- Robert Bradshaw and William Stein """ RR = RDF one = RR(1) sqrt2 = RR(2).sqrt() sqrt6 = RR(6).sqrt() point_list = [(0,0,1), (2*sqrt2/3, 0, -one/3), ( -sqrt2/3, sqrt6/3, -one/3), ( -sqrt2/3, -sqrt6/3, -one/3)] face_list = [[0,1,2],[1,3,2],[0,2,3],[0,3,1]] return index_face_set(face_list, point_list, enclosed=True, center=center, size=size, aspect_ratio=[1,1,1], **kwds)
07274b99546f470d1c33d23188ff2f7d6d632ca9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/07274b99546f470d1c33d23188ff2f7d6d632ca9/platonic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 30710, 18550, 1949, 12, 5693, 28657, 20, 16, 20, 16, 20, 3631, 963, 33, 21, 16, 2826, 25577, 4672, 3536, 432, 890, 72, 268, 30710, 18550, 1949, 18, 225, 12943, 55, 30, 4617, 1493, 261, 1886, 30, 261, 20, 16, 20, 16, 20, 3719, 963, 1493, 261, 1886, 30, 404, 13, 2036, 1493, 279, 2076, 716, 19605, 279, 2036, 6917, 3266, 1493, 261, 86, 16, 75, 16, 70, 13, 598, 436, 16, 314, 16, 324, 3086, 374, 471, 404, 716, 19605, 279, 2036, 12636, 1493, 261, 1886, 30, 404, 13, 309, 5242, 2353, 404, 1508, 353, 17270, 225, 5675, 8900, 11386, 30, 432, 805, 19757, 268, 30710, 18550, 1949, 622, 326, 4026, 30, 272, 410, 30, 268, 30710, 18550, 1949, 1435, 225, 432, 17270, 10004, 268, 30710, 18550, 1949, 316, 6641, 434, 279, 18035, 1755, 1245, 30, 272, 410, 30, 268, 30710, 18550, 1949, 12, 19515, 33, 20, 18, 28, 16, 2036, 2218, 11571, 6134, 397, 268, 30710, 18550, 1949, 12443, 17, 22, 16, 21, 16, 20, 3631, 3266, 2218, 1118, 6134, 225, 432, 2162, 89, 2998, 268, 30710, 18550, 1949, 21001, 3476, 598, 279, 20041, 30, 272, 410, 30, 268, 30710, 18550, 1949, 12, 3266, 2218, 19227, 2187, 19515, 33, 20, 18, 27, 13, 397, 20041, 12, 86, 33, 18, 25, 16, 2036, 2218, 1118, 6134, 282, 432, 5446, 268, 30710, 18550, 1949, 30, 272, 410, 30, 268, 30710, 18550, 1949, 12, 1467, 33, 2163, 13, 225, 432, 14812, 268, 30710, 18550, 1949, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 30710, 18550, 1949, 12, 5693, 28657, 20, 16, 20, 16, 20, 3631, 963, 33, 21, 16, 2826, 25577, 4672, 3536, 432, 890, 72, 268, 30710, 18550, 1949, 18, 225, 12943, 55, 30, 4617, 1493, 261, 1886, 30, 261, 20, 16, 20, 16, 20, 3719, 963, 1493, 261, 1886, 30, 404, 13, 2036, 1493, 279, 2076, 716, 19605, 279, 2036, 6917, 3266, 1493, 261, 86, 16, 75, 16, 70, 13, 598, 436, 16, 314, 16, 324, 3086, 374, 471, 404, 716, 19605, 279, 2036, 12636, 1493, 261, 1886, 30, 404, 13, 309, 5242, 2353, 404, 1508, 353, 17270, 225, 5675, 8900, 11386, 30, 432, 805, 19757, 268, 30710, 18550, 1949, 622, 326, 4026, 30, 272, 410, 30, 268, 2 ]
print datas, ids, uid
def create(self, cr, uid, ids, datas, context={}): print datas, ids, uid
caf929146e3735faa27a2436c863df349bed11e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/caf929146e3735fa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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5386, 16, 819, 12938, 4672, 1172, 5386, 16, 3258, 16, 4555, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.initcode.write("\n%saname = '%%s' %% name" % ID4)
self.initcode.write("\n%saname = '%s' %% name" % (ID4, self.aname_func("%s")))
def _complexTypecodeLogic( self, typecodelist, tns ):
77307e905cc88f00fb8aa43ce789b1d4e314eba7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/77307e905cc88f00fb8aa43ce789b1d4e314eba7/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14259, 559, 710, 20556, 12, 365, 16, 618, 71, 24221, 16, 268, 2387, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14259, 559, 710, 20556, 12, 365, 16, 618, 71, 24221, 16, 268, 2387, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return SYSTEM_ENCODING and string.decode(SYSTEM_ENCODING) or string
if self._is_jython22(): return string return string.decode(sys.stdin.encoding) def _is_jython22(self): return sys.platform.startswith('java') and sys.version_info[:2] == (2,2)
def _decode_from_system(self, string): return SYSTEM_ENCODING and string.decode(SYSTEM_ENCODING) or string
bea27516544b74f2074404d3a8f9688afa30acef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/bea27516544b74f2074404d3a8f9688afa30acef/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 67, 2080, 67, 4299, 12, 2890, 16, 533, 4672, 327, 18786, 67, 14672, 471, 533, 18, 3922, 12, 14318, 67, 14672, 13, 578, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 67, 2080, 67, 4299, 12, 2890, 16, 533, 4672, 327, 18786, 67, 14672, 471, 533, 18, 3922, 12, 14318, 67, 14672, 13, 578, 533, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 """q(uit) Quit from the debugger.
print """q(uit) or exit - Quit from the debugger.
def help_q(self): print """q(uit) Quit from the debugger.
e38d650436c94cba619caf73de53af0db8844dbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e38d650436c94cba619caf73de53af0db8844dbb/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 85, 12, 2890, 4672, 1172, 3536, 85, 12, 14945, 13, 4783, 305, 628, 326, 19977, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.display_head() w("BLOCKED", str(self._blocked)) all = {} all.update(self._blocked_on) all.update(self._blocked_byneed) w(str(all)) raise
raise OperationError(self.space.w_RuntimeError, self.space.wrap("scheduler is in an incoherent state"))
def _check_initial_conditions(self): try: assert self._head._next == self._head._prev == self._head assert self._head not in self._blocked assert self._head not in self._blocked_on assert self._head not in self._blocked_byneed except: self.display_head() w("BLOCKED", str(self._blocked)) all = {} all.update(self._blocked_on) all.update(self._blocked_byneed) w(str(all)) raise
3005040e4765a3c81c3c0a77c03010ad156c89a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3005040e4765a3c81c3c0a77c03010ad156c89a4/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 6769, 67, 6381, 12, 2890, 4672, 775, 30, 1815, 365, 6315, 1978, 6315, 4285, 422, 365, 6315, 1978, 6315, 10001, 422, 365, 6315, 1978, 1815, 365, 6315, 1978, 486, 316, 365, 6315, 23156, 1815, 365, 6315, 1978, 486, 316, 365, 6315, 23156, 67, 265, 1815, 365, 6315, 1978, 486, 316, 365, 6315, 23156, 67, 70, 878, 73, 329, 1335, 30, 225, 1002, 4189, 668, 12, 2890, 18, 2981, 18, 91, 67, 5576, 668, 16, 365, 18, 2981, 18, 4113, 2932, 19972, 353, 316, 392, 316, 2894, 1614, 319, 919, 6, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 6769, 67, 6381, 12, 2890, 4672, 775, 30, 1815, 365, 6315, 1978, 6315, 4285, 422, 365, 6315, 1978, 6315, 10001, 422, 365, 6315, 1978, 1815, 365, 6315, 1978, 486, 316, 365, 6315, 23156, 1815, 365, 6315, 1978, 486, 316, 365, 6315, 23156, 67, 265, 1815, 365, 6315, 1978, 486, 316, 365, 6315, 23156, 67, 70, 878, 73, 329, 1335, 30, 225, 1002, 4189, 668, 12, 2890, 18, 2981, 18, 91, 67, 5576, 668, 16, 365, 18, 2981, 18, 4113, 2932, 19972, 353, 316, 392, 316, 2894, 1614, 319, 919, 6, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
log.error("file %s is already part of this source package" % path)
log.error("file %s is already part of this source component" % path)
def addFile(file): try: state = SourceStateFromFile("SRS") except OSError: return try: os.lstat(file) except OSError: log.error("files must be created before they can be added") return for (fileId, path, version) in state.iterFileList(): if path == file: log.error("file %s is already part of this source package" % path) return fileId = cook.makeFileId(os.getcwd(), file) state.addFile(fileId, file, versions.NewVersion()) state.write("SRS")
0d349da7ed7ebeb171b782f8b44ad9e0c81f1443 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/0d349da7ed7ebeb171b782f8b44ad9e0c81f1443/checkin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18671, 12, 768, 4672, 775, 30, 919, 273, 4998, 1119, 13087, 2932, 10090, 55, 7923, 1335, 10002, 30, 327, 225, 775, 30, 1140, 18, 80, 5642, 12, 768, 13, 1335, 10002, 30, 613, 18, 1636, 2932, 2354, 1297, 506, 2522, 1865, 2898, 848, 506, 3096, 7923, 327, 225, 364, 261, 768, 548, 16, 589, 16, 1177, 13, 316, 919, 18, 2165, 26098, 13332, 309, 589, 422, 585, 30, 613, 18, 1636, 2932, 768, 738, 87, 353, 1818, 1087, 434, 333, 1084, 1794, 6, 738, 589, 13, 327, 225, 21223, 273, 15860, 18, 6540, 812, 548, 12, 538, 18, 588, 11089, 9334, 585, 13, 225, 919, 18, 1289, 812, 12, 768, 548, 16, 585, 16, 5244, 18, 1908, 1444, 10756, 919, 18, 2626, 2932, 10090, 55, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18671, 12, 768, 4672, 775, 30, 919, 273, 4998, 1119, 13087, 2932, 10090, 55, 7923, 1335, 10002, 30, 327, 225, 775, 30, 1140, 18, 80, 5642, 12, 768, 13, 1335, 10002, 30, 613, 18, 1636, 2932, 2354, 1297, 506, 2522, 1865, 2898, 848, 506, 3096, 7923, 327, 225, 364, 261, 768, 548, 16, 589, 16, 1177, 13, 316, 919, 18, 2165, 26098, 13332, 309, 589, 422, 585, 30, 613, 18, 1636, 2932, 768, 738, 87, 353, 1818, 1087, 434, 333, 1084, 1794, 6, 738, 589, 13, 327, 225, 21223, 273, 15860, 18, 6540, 812, 548, 12, 538, 18, 588, 11089, 9334, 585, 13, 225, 919, 18, 1289, 812, 12, 768, 548, 16, 585, 16, 5244, 18, 1908, 1444, 2 ]
isDefault = ns.currentOutgoingAccount.item == account and 1 or 0
currentOutgoing = getattr(ns.currentOutgoingAccount, "item", None) isDefault = currentOutgoing == account and 1 or 0
def export_smtp_account(self, account):
3e087cbdba92c2f6fcac818e14007ca4aee3e0c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 20278, 67, 4631, 12, 2890, 16, 2236, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 'date' in context: del context['date']
if 'date' in ctx: del ctx['date']
def get_credit_debit(self, cursor, user, ids, names, arg, context=None): ''' Function to compute debit, credit for account ids.
a3675d59e70bdb919282414bb87d5a72d2cc739d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/a3675d59e70bdb919282414bb87d5a72d2cc739d/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20688, 67, 323, 3682, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 1257, 16, 1501, 16, 819, 33, 7036, 4672, 9163, 4284, 358, 3671, 443, 3682, 16, 12896, 364, 2236, 3258, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20688, 67, 323, 3682, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 1257, 16, 1501, 16, 819, 33, 7036, 4672, 9163, 4284, 358, 3671, 443, 3682, 16, 12896, 364, 2236, 3258, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
The log function also works in finite fields as long as the base is generator of the multiplicative group::
The log function also works in finite fields as long as the argument lies in the multiplicative group generated by the base::
def log(x, base=None): """ Return the logarithm of x to the given base. Calls the ``log`` method of the object x when computing the logarithm, thus allowing use of logarithm on any object containing a ``log`` method. In other words, log works on more than just real numbers. EXAMPLES:: sage: log(e^2) 2 sage: log(1024, 2); RDF(log(1024, 2)) 10 10.0 sage: log(10, 4); RDF(log(10, 4)) log(10)/log(4) 1.66096404744 :: sage: log(10, 2) log(10)/log(2) sage: n(log(10, 2)) 3.32192809488736 sage: log(10, e) log(10) sage: n(log(10, e)) 2.30258509299405 The log function works for negative numbers, complex numbers, and symbolic numbers too, picking the branch with angle between `-pi` and `pi`:: sage: log(-1+0*I) I*pi sage: log(CC(-1)) 3.14159265358979*I sage: log(-1.0) 3.14159265358979*I For input zero, the following behavior occurs:: sage: log(0) -Infinity sage: log(CC(0)) -infinity sage: log(0.0) -infinity The log function also works in finite fields as long as the base is generator of the multiplicative group:: sage: F = GF(13); g = F.multiplicative_generator(); g 2 sage: a = F(8) sage: log(a,g); g^log(a,g) 3 8 sage: log(a,3) Traceback (most recent call last): ... ValueError: base (=3) for discrete log must generate multiplicative group The log function also works for p-adics (see documentation for p-adics for more information):: sage: R = Zp(5); R 5-adic Ring with capped relative precision 20 sage: a = R(16); a 1 + 3*5 + O(5^20) sage: log(a) 3*5 + 3*5^2 + 3*5^4 + 3*5^5 + 3*5^6 + 4*5^7 + 2*5^8 + 5^9 + 5^11 + 2*5^12 + 5^13 + 3*5^15 + 2*5^16 + 4*5^17 + 3*5^18 + 3*5^19 + O(5^20) """ if base is None: try: return x.log() except AttributeError: return ln(x) else: try: return x.log(base) except (AttributeError, TypeError): return log(x) / log(base)
140617a3e31911a7749de408ecf99386f5317208 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/140617a3e31911a7749de408ecf99386f5317208/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 92, 16, 1026, 33, 7036, 4672, 3536, 2000, 326, 613, 31249, 434, 619, 358, 326, 864, 1026, 18, 225, 23665, 326, 12176, 1330, 10335, 707, 434, 326, 733, 619, 1347, 20303, 326, 613, 31249, 16, 12493, 15632, 999, 434, 613, 31249, 603, 1281, 733, 4191, 279, 12176, 1330, 10335, 707, 18, 657, 1308, 4511, 16, 613, 6330, 603, 1898, 2353, 2537, 2863, 5600, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 613, 12, 73, 66, 22, 13, 576, 272, 410, 30, 613, 12, 2163, 3247, 16, 576, 1769, 13539, 12, 1330, 12, 2163, 3247, 16, 576, 3719, 1728, 1728, 18, 20, 272, 410, 30, 613, 12, 2163, 16, 1059, 1769, 13539, 12, 1330, 12, 2163, 16, 1059, 3719, 613, 12, 2163, 13176, 1330, 12, 24, 13, 404, 18, 26, 4848, 29, 1105, 3028, 5608, 24, 225, 493, 225, 272, 410, 30, 613, 12, 2163, 16, 576, 13, 613, 12, 2163, 13176, 1330, 12, 22, 13, 272, 410, 30, 290, 12, 1330, 12, 2163, 16, 576, 3719, 890, 18, 1578, 15561, 3672, 11290, 5482, 27, 5718, 272, 410, 30, 613, 12, 2163, 16, 425, 13, 613, 12, 2163, 13, 272, 410, 30, 290, 12, 1330, 12, 2163, 16, 425, 3719, 576, 18, 5082, 2947, 28, 5995, 22, 2733, 24, 6260, 225, 1021, 613, 445, 6330, 364, 6092, 5600, 16, 7233, 5600, 16, 471, 16754, 5600, 4885, 16, 6002, 310, 326, 3803, 598, 5291, 3086, 1375, 17, 7259, 68, 471, 1375, 7259, 68, 2866, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 92, 16, 1026, 33, 7036, 4672, 3536, 2000, 326, 613, 31249, 434, 619, 358, 326, 864, 1026, 18, 225, 23665, 326, 12176, 1330, 10335, 707, 434, 326, 733, 619, 1347, 20303, 326, 613, 31249, 16, 12493, 15632, 999, 434, 613, 31249, 603, 1281, 733, 4191, 279, 12176, 1330, 10335, 707, 18, 657, 1308, 4511, 16, 613, 6330, 603, 1898, 2353, 2537, 2863, 5600, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 613, 12, 73, 66, 22, 13, 576, 272, 410, 30, 613, 12, 2163, 3247, 16, 576, 1769, 13539, 12, 1330, 12, 2163, 3247, 16, 576, 3719, 1728, 1728, 18, 20, 272, 410, 30, 613, 12, 2163, 16, 1059, 1769, 13539, 12, 1330, 12, 2 ]
shutil.rmtree(base_path)
support.rmtree(base_path)
def _create_and_do_getcwd(dirname, current_path_length = 0): try: os.mkdir(dirname) except: raise support.TestSkipped("mkdir cannot create directory sufficiently deep for getcwd test")
4bc266f6f8d4a579841898968a2ce26b1a66dd17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/4bc266f6f8d4a579841898968a2ce26b1a66dd17/test_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 464, 67, 2896, 67, 588, 11089, 12, 12287, 16, 783, 67, 803, 67, 2469, 273, 374, 4672, 775, 30, 1140, 18, 26686, 12, 12287, 13, 1335, 30, 1002, 2865, 18, 4709, 16425, 2932, 26686, 2780, 752, 1867, 18662, 715, 4608, 364, 13323, 1842, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 464, 67, 2896, 67, 588, 11089, 12, 12287, 16, 783, 67, 803, 67, 2469, 273, 374, 4672, 775, 30, 1140, 18, 26686, 12, 12287, 13, 1335, 30, 1002, 2865, 18, 4709, 16425, 2932, 26686, 2780, 752, 1867, 18662, 715, 4608, 364, 13323, 1842, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data(rva),
self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data( rva, Structure(self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__).sizeof() ),
def parse_resource_entry(self, rva): """Parse a directory entry from the resources directory.""" resource = self.__unpack_data__( self.__IMAGE_RESOURCE_DIRECTORY_ENTRY_format__, self.get_data(rva), file_offset = self.get_offset_from_rva(rva) ) if resource is None: return None #resource.NameIsString = (resource.Name & 0x80000000L) >> 31 resource.NameOffset = resource.Name & 0x7FFFFFFFL resource.__pad = resource.Name & 0xFFFF0000L resource.Id = resource.Name & 0x0000FFFFL resource.DataIsDirectory = (resource.OffsetToData & 0x80000000L) >> 31 resource.OffsetToDirectory = resource.OffsetToData & 0x7FFFFFFFL return resource
1d5b4f161f415406d1d384dc2319874979bcdef8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/1d5b4f161f415406d1d384dc2319874979bcdef8/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3146, 67, 4099, 12, 2890, 16, 5633, 69, 4672, 3536, 3201, 279, 1867, 1241, 628, 326, 2703, 1867, 12123, 225, 1058, 273, 365, 16186, 17309, 67, 892, 972, 12, 365, 16186, 13603, 67, 11395, 67, 17229, 67, 19083, 67, 2139, 972, 16, 365, 18, 588, 67, 892, 12, 5633, 69, 16, 13348, 12, 2890, 16186, 13603, 67, 11395, 67, 17229, 67, 19083, 67, 2139, 972, 2934, 1467, 792, 1435, 262, 16, 585, 67, 3348, 273, 365, 18, 588, 67, 3348, 67, 2080, 67, 4962, 69, 12, 4962, 69, 13, 262, 225, 309, 1058, 353, 599, 30, 327, 599, 225, 468, 3146, 18, 461, 2520, 780, 273, 261, 3146, 18, 461, 473, 374, 92, 28, 17877, 48, 13, 1671, 8231, 1058, 18, 461, 2335, 273, 1058, 18, 461, 473, 374, 92, 27, 18343, 19054, 225, 1058, 16186, 6982, 273, 1058, 18, 461, 473, 374, 21718, 2787, 48, 1058, 18, 548, 273, 1058, 18, 461, 473, 374, 92, 2787, 8998, 48, 225, 1058, 18, 751, 2520, 2853, 273, 261, 3146, 18, 2335, 774, 751, 473, 374, 92, 28, 17877, 48, 13, 1671, 8231, 1058, 18, 2335, 774, 2853, 273, 1058, 18, 2335, 774, 751, 473, 374, 92, 27, 18343, 19054, 225, 327, 1058, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3146, 67, 4099, 12, 2890, 16, 5633, 69, 4672, 3536, 3201, 279, 1867, 1241, 628, 326, 2703, 1867, 12123, 225, 1058, 273, 365, 16186, 17309, 67, 892, 972, 12, 365, 16186, 13603, 67, 11395, 67, 17229, 67, 19083, 67, 2139, 972, 16, 365, 18, 588, 67, 892, 12, 5633, 69, 16, 13348, 12, 2890, 16186, 13603, 67, 11395, 67, 17229, 67, 19083, 67, 2139, 972, 2934, 1467, 792, 1435, 262, 16, 585, 67, 3348, 273, 365, 18, 588, 67, 3348, 67, 2080, 67, 4962, 69, 12, 4962, 69, 13, 262, 225, 309, 1058, 353, 599, 30, 327, 599, 225, 468, 3146, 18, 461, 2520, 780, 273, 261, 3146, 18, 461, 473, 374, 92, 28, 17877, 48, 2 ]
A symbolic unit.
A symbolic unit.
def unit_derivations_expr(v): """ Given derived units name, returns the corresponding units expression. For example, given 'acceleration' output the symbolic expression length/time^2. INPUT: - `v` -- string, name of a unit type such as 'area', 'volume', etc. OUTPUT: - symbolic expression EXAMPLES:: sage: sage.symbolic.units.unit_derivations_expr('volume') length^3 sage: sage.symbolic.units.unit_derivations_expr('electric_potential') length^2*mass/(current*time^3) If the unit name is unknown, a KeyError is raised:: sage: sage.symbolic.units.unit_derivations_expr('invalid') Traceback (most recent call last): ... KeyError: 'invalid' """ v = str(v) Z = unit_derivations[v] if isinstance(Z,str): d = dict([(x,str_to_unit(x)) for x in vars_in_str(Z)]) from sage.misc.all import sage_eval Z = sage_eval(Z, d) unit_derivations[v] = Z return Z
36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2836, 67, 20615, 1012, 67, 8638, 12, 90, 4672, 3536, 16803, 10379, 4971, 508, 16, 1135, 326, 4656, 4971, 2652, 18, 225, 2457, 3454, 16, 864, 296, 30737, 7067, 11, 876, 326, 16754, 2652, 769, 19, 957, 66, 22, 18, 225, 12943, 30, 225, 300, 1375, 90, 68, 1493, 533, 16, 508, 434, 279, 2836, 618, 4123, 487, 296, 5036, 2187, 296, 9491, 2187, 5527, 18, 225, 11550, 30, 225, 300, 16754, 2652, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 4873, 67, 20615, 1012, 67, 8638, 2668, 9491, 6134, 769, 66, 23, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 4873, 67, 20615, 1012, 67, 8638, 2668, 13759, 1512, 67, 26451, 6134, 769, 66, 22, 14, 10424, 19, 12, 2972, 14, 957, 66, 23, 13, 225, 971, 326, 2836, 508, 353, 5917, 16, 279, 4999, 353, 11531, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 4873, 67, 20615, 1012, 67, 8638, 2668, 5387, 6134, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, 4999, 30, 296, 5387, 11, 3536, 331, 273, 609, 12, 90, 13, 2285, 273, 2836, 67, 20615, 1012, 63, 90, 65, 309, 1549, 12, 62, 16, 701, 4672, 302, 273, 2065, 3816, 12, 92, 16, 701, 67, 869, 67, 4873, 12, 92, 3719, 364, 619, 316, 4153, 67, 267, 67, 701, 12, 62, 13, 5717, 628, 272, 410, 18, 23667, 18, 454, 1930, 272, 410, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2836, 67, 20615, 1012, 67, 8638, 12, 90, 4672, 3536, 16803, 10379, 4971, 508, 16, 1135, 326, 4656, 4971, 2652, 18, 225, 2457, 3454, 16, 864, 296, 30737, 7067, 11, 876, 326, 16754, 2652, 769, 19, 957, 66, 22, 18, 225, 12943, 30, 225, 300, 1375, 90, 68, 1493, 533, 16, 508, 434, 279, 2836, 618, 4123, 487, 296, 5036, 2187, 296, 9491, 2187, 5527, 18, 225, 11550, 30, 225, 300, 16754, 2652, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 4873, 67, 20615, 1012, 67, 8638, 2668, 9491, 6134, 769, 66, 23, 272, 410, 30, 272, 410, 18, 9009, 12164, 18, 7705, 18, 4873, 67, 20615, 1012, 67, 2 ]
Note that this construction results in n*|V| + 2*n*|E| + n*|E|
Note that this construction results in `n*|V| + 2*n*|E| + n*|E|`
def all_graph_colorings(G,n,count_only=False): """ Computes all n-colorings of the graph G by casting the graph coloring problem into an exact cover problem, and passing this into an implementation of the Dancing Links algorithm described by Knuth (who attributes the idea to Hitotumatu and Noshita). The construction works as follows: (columns) * The first |V| columns correspond to a vertex -- a 1 in this column indicates that that vertex has a color. * After those |V| columns, we add n*|E| columns -- a 1 in these columns indicate that a particular edge is incident to a vertex with a certain color. (rows) * For each vertex, add n rows; one for each color c. Place a 1 in the column corresponding to the vertex, and a 1 in the appropriate column for each edge incident to the vertex, indicating that that edge is incident to the color c. * If n > 2, the above construction cannot be exactly covered since each edge will be incident to only two vertices (and hence two colors) - so we add n*|E| rows, each one containing a 1 for each of the n*|E| columns. These get added to the cover solutions "for free" during the backtracking. Note that this construction results in n*|V| + 2*n*|E| + n*|E| entries in the matrix. The Dancing Links algorithm uses a sparse representation, so if the graph is simple, |E| <= |V|^2 and n <= |V|, this construction runs in O(|V|^3) time. Back-conversion to a coloring solution is a simple scan of the solutions, which will contain |V| + (n-2)*|E| entries, so runs in O(|V|^3) time also. For most graphs, the conversion will be much faster -- for example, a planar graph will be transformed for 4-coloring in linear time since |E| = O(|V|). REFERENCES: http://www-cs-staff.stanford.edu/~uno/papers/dancing-color.ps.gz EXAMPLES: sage: from sage.graphs.graph_coloring import all_graph_colorings sage: G = Graph({0:[1,2,3],1:[2]}) sage: n = 0 sage: for C in all_graph_colorings(G,3): ... parts = [C[k] for k in C] ... for P in parts: ... l = len(P) ... for i in range(l): ... for j in range(i+1,l): ... if G.has_edge(P[i],P[j]): ... raise RuntimeError, "Coloring Failed." ... n+=1 sage: print "G has %s 3-colorings."%n G has 12 3-colorings. TESTS: sage: G = Graph({0:[1,2,3],1:[2]}) sage: for C in all_graph_colorings(G,0): print C sage: for C in all_graph_colorings(G,-1): print C Traceback (most recent call last): ... ValueError: n must be non-negative. """ if n == 0: return if n < 0: raise ValueError, "n must be non-negative." V = G.vertices() E = G.edges() nV=len(V) nE=len(E) ones = [] N = xrange(n) Vd= {} colormap = {} k = 0 for i in range(nV): v = V[i] Vd[v] = i for c in N: ones.append([k, [i]]) colormap[k] = (v,c) k+=1 kk = nV for e in E: for c in N: v0 = n*Vd[e[0]]+c v1 = n*Vd[e[1]]+c ones[v0][1].append(kk+c) ones[v1][1].append(kk+c) kk+=n if n > 2: for i in range(n*nE): ones.append([k+i, [nV+i]]) colors = rainbow(n) for i in range(len(ones)): ones[i] = ones[i][1] try: for a in DLXCPP(ones): if count_only: yield 1 continue coloring = {} for x in a: if colormap.has_key(x): v,c = colormap[x] if coloring.has_key(colors[c]): coloring[colors[c]].append(v) else: coloring[colors[c]] = [v] yield coloring except RuntimeError: raise RuntimeError, "Too much recursion! Graph coloring failed."
ccfc053e0300fe1bc0d898174322301c9db7ff10 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ccfc053e0300fe1bc0d898174322301c9db7ff10/graph_coloring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 4660, 67, 3266, 899, 12, 43, 16, 82, 16, 1883, 67, 3700, 33, 8381, 4672, 3536, 14169, 281, 777, 290, 17, 3266, 899, 434, 326, 2667, 611, 635, 27660, 326, 2667, 2036, 310, 6199, 1368, 392, 5565, 5590, 6199, 16, 471, 9588, 333, 1368, 392, 4471, 434, 326, 463, 304, 2822, 21771, 4886, 11893, 635, 1475, 82, 795, 261, 3350, 83, 1677, 326, 21463, 358, 670, 305, 352, 379, 270, 89, 471, 423, 538, 15989, 69, 2934, 225, 1021, 16171, 6330, 487, 13040, 30, 261, 5112, 13, 380, 1021, 1122, 571, 58, 96, 2168, 4325, 358, 279, 5253, 1493, 279, 404, 316, 333, 1057, 8527, 716, 716, 5253, 711, 279, 2036, 18, 380, 7360, 5348, 571, 58, 96, 2168, 16, 732, 527, 290, 14, 96, 41, 96, 2168, 1493, 279, 404, 316, 4259, 2168, 10768, 716, 279, 6826, 3591, 353, 22933, 358, 279, 5253, 598, 279, 8626, 2036, 18, 225, 261, 3870, 13, 380, 2457, 1517, 5253, 16, 527, 290, 2595, 31, 1245, 364, 1517, 2036, 276, 18, 225, 13022, 279, 404, 316, 326, 1057, 4656, 358, 326, 5253, 16, 471, 279, 404, 316, 326, 5505, 1057, 364, 1517, 3591, 22933, 358, 326, 5253, 16, 11193, 716, 716, 3591, 353, 22933, 358, 326, 2036, 276, 18, 380, 971, 290, 405, 576, 16, 326, 5721, 16171, 2780, 506, 8950, 18147, 3241, 1517, 3591, 903, 506, 22933, 358, 1338, 2795, 6928, 261, 464, 20356, 2795, 5740, 13, 300, 1427, 732, 527, 290, 14, 96, 41, 96, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 4660, 67, 3266, 899, 12, 43, 16, 82, 16, 1883, 67, 3700, 33, 8381, 4672, 3536, 14169, 281, 777, 290, 17, 3266, 899, 434, 326, 2667, 611, 635, 27660, 326, 2667, 2036, 310, 6199, 1368, 392, 5565, 5590, 6199, 16, 471, 9588, 333, 1368, 392, 4471, 434, 326, 463, 304, 2822, 21771, 4886, 11893, 635, 1475, 82, 795, 261, 3350, 83, 1677, 326, 21463, 358, 670, 305, 352, 379, 270, 89, 471, 423, 538, 15989, 69, 2934, 225, 1021, 16171, 6330, 487, 13040, 30, 261, 5112, 13, 380, 1021, 1122, 571, 58, 96, 2168, 4325, 358, 279, 5253, 1493, 279, 404, 316, 333, 1057, 8527, 716, 716, 5253, 711, 279, 2036, 18, 380, 7360, 5348, 571, 2 ]
gLogger.error(errStr,'%s : %s' % (storageElementName,res['Message']))
gLogger.error( errStr, '%s : %s' % ( storageElementName, res['Message'] ) )
def _executeStorageElementFunction(self,storageElementName,pfn,method,argsDict={}): """ A simple wrapper around the storage element functionality """ # First check the supplied pfn(s) are the correct format. if type(pfn) in types.StringTypes: pfns = {pfn:False} elif type(pfn) == types.ListType: pfns = {} for url in pfn: pfns[url] = False elif type(pfn) == types.DictType: pfns = pfn.copy() else: errStr = "ReplicaManager._executeStorageElementFunction: Supplied pfns must be string or list of strings or a dictionary." gLogger.error(errStr) return S_ERROR(errStr) # Check we have some pfns if not pfns: errMessage = "ReplicaManager._executeStorageElementFunction: No pfns supplied." gLogger.error(errMessage) return S_ERROR(errMessage) gLogger.debug("ReplicaManager._executeStorageElementFunction: Attempting to perform '%s' operation with %s pfns." % (method,len(pfns))) # Check we can instantiate the storage element correctly storageElement = StorageElement(storageElementName) res = storageElement.isValid(method) if not res['OK']: errStr = "ReplicaManager._executeStorageElementFunction: Failed to instantiate Storage Element" gLogger.error(errStr, "for performing %s at %s." % (method,storageElementName)) return res # Generate the execution string if argsDict: execString = "res = storageElement.%s(pfns" % method for argument,value in argsDict.items(): if type(value) == types.StringType: execString = "%s, %s='%s'" % (execString,argument,value) else: execString = "%s, %s=%s" % (execString,argument,value) execString = "%s)" % execString else: execString = "res = storageElement.%s(pfns)" % method # Execute the execute string try: exec(execString) except AttributeError,errMessage: exceptStr = "ReplicaManager._executeStorageElementFunction: Exception while perfoming %s." % method gLogger.exception(exceptStr,str(errMessage)) return S_ERROR(exceptStr) # Return the output if not res['OK']: errStr = "ReplicaManager._executeStorageElementFunction: Completely failed to perform %s." % method gLogger.error(errStr,'%s : %s' % (storageElementName,res['Message'])) return res
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 3245, 1046, 2083, 12, 2890, 16, 5697, 30584, 16, 84, 4293, 16, 2039, 16, 1968, 5014, 12938, 4672, 3536, 432, 4143, 4053, 6740, 326, 2502, 930, 14176, 3536, 468, 5783, 866, 326, 4580, 293, 4293, 12, 87, 13, 854, 326, 3434, 740, 18, 309, 618, 12, 84, 4293, 13, 316, 1953, 18, 780, 2016, 30, 10811, 2387, 273, 288, 84, 4293, 30, 8381, 97, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 19366, 30, 10811, 2387, 273, 2618, 364, 880, 316, 293, 4293, 30, 10811, 2387, 63, 718, 65, 273, 1083, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 5014, 559, 30, 10811, 2387, 273, 293, 4293, 18, 3530, 1435, 469, 30, 393, 1585, 273, 315, 14222, 1318, 6315, 8837, 3245, 1046, 2083, 30, 3425, 3110, 10811, 2387, 1297, 506, 533, 578, 666, 434, 2064, 578, 279, 3880, 1199, 314, 3328, 18, 1636, 12, 370, 1585, 13, 327, 348, 67, 3589, 12, 370, 1585, 13, 468, 2073, 732, 1240, 2690, 10811, 2387, 309, 486, 10811, 2387, 30, 393, 1079, 273, 315, 14222, 1318, 6315, 8837, 3245, 1046, 2083, 30, 2631, 10811, 2387, 4580, 1199, 314, 3328, 18, 1636, 12, 370, 1079, 13, 327, 348, 67, 3589, 12, 370, 1079, 13, 314, 3328, 18, 4148, 2932, 14222, 1318, 6315, 8837, 3245, 1046, 2083, 30, 12864, 310, 358, 3073, 1995, 87, 11, 1674, 598, 738, 87, 10811, 2387, 1199, 738, 261, 2039, 16, 1897, 12, 14241, 2387, 20349, 468, 2073, 732, 848, 10275, 326, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 3245, 1046, 2083, 12, 2890, 16, 5697, 30584, 16, 84, 4293, 16, 2039, 16, 1968, 5014, 12938, 4672, 3536, 432, 4143, 4053, 6740, 326, 2502, 930, 14176, 3536, 468, 5783, 866, 326, 4580, 293, 4293, 12, 87, 13, 854, 326, 3434, 740, 18, 309, 618, 12, 84, 4293, 13, 316, 1953, 18, 780, 2016, 30, 10811, 2387, 273, 288, 84, 4293, 30, 8381, 97, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 19366, 30, 10811, 2387, 273, 2618, 364, 880, 316, 293, 4293, 30, 10811, 2387, 63, 718, 65, 273, 1083, 1327, 618, 12, 84, 4293, 13, 422, 1953, 18, 5014, 559, 30, 10811, 2387, 273, 293, 4293, 18, 3530, 1435, 469, 30, 393, 1585, 2 ]
found = 1 subst = ['\\begin_inset ERT', 'status collapsed', '', '\\begin_layout Standard', '', '', '\\backslash', 'nobreakdash-', '\\end_layout', '', '\\end_inset', ''] document.body[i:i+1] = subst if not found: return j = find_token(document.header, "\\use_amsmath", 0) if j == -1: document.warning("Malformed LyX document: Missing '\\use_amsmath'.") return document.header[j] = "\\use_amsmath 2"
subst = ['\\begin_inset ERT', 'status collapsed', '', '\\begin_layout Standard', '', '', '\\backslash', 'nobreakdash-', '\\end_layout', '', '\\end_inset', ''] document.body[i:i+1] = subst j = find_token(document.header, "\\use_amsmath", 0) if j == -1: document.warning("Malformed LyX document: Missing '\\use_amsmath'.") return document.header[j] = "\\use_amsmath 2"
def revert_nobreakdash(document): 'Revert \\SpecialChar \\nobreakdash- to ERT' found = 0 for i in range(len(document.body)): line = document.body[i] r = re.compile(r'\\SpecialChar \\nobreakdash-') m = r.match(line) if m: found = 1 subst = ['\\begin_inset ERT', 'status collapsed', '', '\\begin_layout Standard', '', '', '\\backslash', 'nobreakdash-', '\\end_layout', '', '\\end_inset', ''] document.body[i:i+1] = subst if not found: return j = find_token(document.header, "\\use_amsmath", 0) if j == -1: document.warning("Malformed LyX document: Missing '\\use_amsmath'.") return document.header[j] = "\\use_amsmath 2"
74141d4f72e1287c976bb033de1d376bfcc694d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/74141d4f72e1287c976bb033de1d376bfcc694d0/lyx_1_6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 82, 947, 870, 21817, 12, 5457, 4672, 296, 426, 1097, 1736, 12193, 2156, 1736, 82, 947, 870, 21817, 17, 358, 4232, 56, 11, 1392, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 5457, 18, 3432, 3719, 30, 980, 273, 1668, 18, 3432, 63, 77, 65, 436, 273, 283, 18, 11100, 12, 86, 11, 1695, 12193, 2156, 1736, 82, 947, 870, 21817, 17, 6134, 312, 273, 436, 18, 1916, 12, 1369, 13, 309, 312, 30, 27750, 273, 10228, 1695, 10086, 67, 267, 542, 4232, 56, 2187, 296, 2327, 17027, 2187, 10226, 3718, 10086, 67, 6741, 8263, 2187, 10226, 10226, 3718, 823, 12877, 2187, 296, 82, 947, 870, 21817, 17, 2187, 3718, 409, 67, 6741, 2187, 10226, 3718, 409, 67, 267, 542, 2187, 875, 65, 1668, 18, 3432, 63, 77, 30, 77, 15, 21, 65, 273, 27750, 525, 273, 1104, 67, 2316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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 82, 947, 870, 21817, 12, 5457, 4672, 296, 426, 1097, 1736, 12193, 2156, 1736, 82, 947, 870, 21817, 17, 358, 4232, 56, 11, 1392, 273, 374, 364, 277, 316, 1048, 12, 1897, 12, 5457, 18, 3432, 3719, 30, 980, 273, 1668, 18, 3432, 63, 77, 65, 436, 273, 283, 18, 11100, 12, 86, 11, 1695, 12193, 2156, 1736, 82, 947, 870, 21817, 17, 6134, 312, 273, 436, 18, 1916, 12, 1369, 13, 309, 312, 30, 27750, 273, 10228, 1695, 10086, 67, 267, 542, 4232, 56, 2187, 296, 2327, 17027, 2187, 10226, 3718, 10086, 67, 6741, 8263, 2187, 10226, 10226, 3718, 823, 12877, 2187, 296, 82, 947, 870, 21817, 17, 2187, 3718, 409, 67, 6741, 2187, 10226, 2 ]
None, [],
None, [],
def flimage_dup_(pImage, p2): """ flimage_dup_(pImage, p2) -> image """ retval = _flimage_dup_(pImage, p2) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 26427, 67, 12, 84, 2040, 16, 293, 22, 4672, 3536, 1183, 2730, 67, 26427, 67, 12, 84, 2040, 16, 293, 22, 13, 317, 1316, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 26427, 67, 12, 84, 2040, 16, 293, 22, 13, 327, 5221, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 26427, 67, 12, 84, 2040, 16, 293, 22, 4672, 3536, 1183, 2730, 67, 26427, 67, 12, 84, 2040, 16, 293, 22, 13, 317, 1316, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 26427, 67, 12, 84, 2040, 16, 293, 22, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._baseObjRef = ContainerRef(Indirection(evalStr='simbase.__dict__')) for i in self._nameContainerGen(simbase.__dict__, self._baseObjRef):
ref = ContainerRef(Indirection(evalStr='simbase.__dict__')) self._id2baseStartRef[id(simbase.__dict__)] = ref for i in self._addContainerGen(simbase.__dict__, ref):
def __init__(self, name, leakDetector): Job.__init__(self, name) self._leakDetector = leakDetector self._id2ref = self._leakDetector._id2ref self.notify = self._leakDetector.notify ContainerLeakDetector.addPrivateObj(self.__dict__)
d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 20891, 12594, 4672, 3956, 16186, 2738, 972, 12, 2890, 16, 508, 13, 365, 6315, 298, 581, 12594, 273, 20891, 12594, 365, 6315, 350, 22, 1734, 273, 365, 6315, 298, 581, 12594, 6315, 350, 22, 1734, 365, 18, 12336, 273, 365, 6315, 298, 581, 12594, 18, 12336, 4039, 1682, 581, 12594, 18, 1289, 6014, 2675, 12, 2890, 16186, 1576, 972, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 20891, 12594, 4672, 3956, 16186, 2738, 972, 12, 2890, 16, 508, 13, 365, 6315, 298, 581, 12594, 273, 20891, 12594, 365, 6315, 350, 22, 1734, 273, 365, 6315, 298, 581, 12594, 6315, 350, 22, 1734, 365, 18, 12336, 273, 365, 6315, 298, 581, 12594, 18, 12336, 4039, 1682, 581, 12594, 18, 1289, 6014, 2675, 12, 2890, 16186, 1576, 972, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gLogger.error("SEvsLFCAgent.execute: Failed to get metadata.","%s %s" % (lfn,res['Value']['Failed'][lfn]))
gLogger.error("SEvsLFCAgent.execute: Failed to get replica information.","%s %s" % (lfn,res['Value']['Failed'][lfn]))
def execute(self):
1b9d83d531f8db0d9d33db0e1e58e4f715d8c153 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/1b9d83d531f8db0d9d33db0e1e58e4f715d8c153/SEvsLFCAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
while 1: for i in range(self.decodingRate):
while not self.done: for i in xrange(self.decodingRate):
def _produceSoundBuffers(self): # Decode enough that we have at least one full sound buffer # ready in the queue if possible while 1: for i in range(self.decodingRate): soundBuffer = self._decodeStream() if soundBuffer: self.soundBuffers.insert(0, soundBuffer) if self.soundBuffers or self.done: break
fd83e7c1a811ef09c2d32488bf8a9a0efaef4aae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7946/fd83e7c1a811ef09c2d32488bf8a9a0efaef4aae/Audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11776, 311, 24331, 13699, 12, 2890, 4672, 468, 6209, 7304, 716, 732, 1240, 622, 4520, 1245, 1983, 14190, 1613, 468, 5695, 316, 326, 2389, 309, 3323, 1323, 486, 365, 18, 8734, 30, 364, 277, 316, 12314, 12, 2890, 18, 323, 2014, 4727, 4672, 14190, 1892, 273, 365, 6315, 3922, 1228, 1435, 309, 14190, 1892, 30, 365, 18, 29671, 13699, 18, 6387, 12, 20, 16, 14190, 1892, 13, 309, 365, 18, 29671, 13699, 578, 365, 18, 8734, 30, 898, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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18, 8734, 30, 364, 277, 316, 12314, 12, 2890, 18, 323, 2014, 4727, 4672, 14190, 1892, 273, 365, 6315, 3922, 1228, 1435, 309, 14190, 1892, 30, 365, 18, 29671, 13699, 18, 6387, 12, 20, 16, 14190, 1892, 13, 309, 365, 18, 29671, 13699, 578, 365, 18, 8734, 30, 898, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.isCollection(): uri += "/"
if self.isCollection() and not uri.endswith("/"): uri += "/"
def gotXML(doc): if doc is None: # No request body means get all properties. search_properties = "all" else: # # Parse request # find = doc.root_element if not isinstance(find, davxml.PropertyFind): error = ("Non-%s element in PROPFIND request body: %s" % (davxml.PropertyFind.sname(), find)) log.err(error) return StatusResponse(responsecode.BAD_REQUEST, error)
a6c476ac5160b038c024e883fb5484b300dea914 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a6c476ac5160b038c024e883fb5484b300dea914/propfind.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 4201, 12, 2434, 4672, 309, 997, 353, 599, 30, 468, 2631, 590, 1417, 4696, 336, 777, 1790, 18, 1623, 67, 4738, 273, 315, 454, 6, 469, 30, 468, 468, 2884, 590, 468, 1104, 273, 997, 18, 3085, 67, 2956, 309, 486, 1549, 12, 4720, 16, 302, 842, 2902, 18, 1396, 3125, 4672, 555, 273, 7566, 3989, 6456, 87, 930, 316, 16258, 42, 2356, 590, 1417, 30, 738, 87, 6, 738, 261, 20752, 2902, 18, 1396, 3125, 18, 87, 529, 9334, 1104, 3719, 613, 18, 370, 12, 1636, 13, 327, 2685, 1064, 12, 2740, 710, 18, 16234, 67, 5519, 16, 555, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 4201, 12, 2434, 4672, 309, 997, 353, 599, 30, 468, 2631, 590, 1417, 4696, 336, 777, 1790, 18, 1623, 67, 4738, 273, 315, 454, 6, 469, 30, 468, 468, 2884, 590, 468, 1104, 273, 997, 18, 3085, 67, 2956, 309, 486, 1549, 12, 4720, 16, 302, 842, 2902, 18, 1396, 3125, 4672, 555, 273, 7566, 3989, 6456, 87, 930, 316, 16258, 42, 2356, 590, 1417, 30, 738, 87, 6, 738, 261, 20752, 2902, 18, 1396, 3125, 18, 87, 529, 9334, 1104, 3719, 613, 18, 370, 12, 1636, 13, 327, 2685, 1064, 12, 2740, 710, 18, 16234, 67, 5519, 16, 555, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if linkto[:n] == pattern:
if prog.search(linkto) >= 0:
def visit(pattern, dirname, names): if os.path.islink(dirname): names[:] = [] return if os.path.ismount(dirname): print 'descend into', dirname n = len(pattern) for name in names: name = os.path.join(dirname, name) try: linkto = os.readlink(name) if linkto[:n] == pattern: print name, '->', linkto except os.error: pass
6bfb4c78de5f4239a8cfca0ac3635638e1fdfd38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6bfb4c78de5f4239a8cfca0ac3635638e1fdfd38/findlinksto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 12, 4951, 16, 4283, 16, 1257, 4672, 309, 1140, 18, 803, 18, 291, 1232, 12, 12287, 4672, 1257, 10531, 65, 273, 5378, 327, 309, 1140, 18, 803, 18, 291, 4778, 12, 12287, 4672, 1172, 296, 26236, 1368, 2187, 4283, 290, 273, 562, 12, 4951, 13, 364, 508, 316, 1257, 30, 508, 273, 1140, 18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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 12, 4951, 16, 4283, 16, 1257, 4672, 309, 1140, 18, 803, 18, 291, 1232, 12, 12287, 4672, 1257, 10531, 65, 273, 5378, 327, 309, 1140, 18, 803, 18, 291, 4778, 12, 12287, 4672, 1172, 296, 26236, 1368, 2187, 4283, 290, 273, 562, 12, 4951, 13, 364, 508, 316, 1257, 30, 508, 273, 1140, 18, 803, 18, 5701, 12, 12287, 16, 508, 13, 775, 30, 1692, 869, 273, 1140, 18, 896, 1232, 12, 529, 13, 309, 11243, 18, 3072, 12, 1232, 869, 13, 1545, 374, 30, 1172, 508, 16, 26010, 16, 1692, 869, 1335, 1140, 18, 1636, 30, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{-1/8,0}
{7/8,1}
def modular_symbol(self, x, check=True): """ Create a modular symbol in this space.
c2726358b2f1025f81eb75f22c648bce0095a09b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c2726358b2f1025f81eb75f22c648bce0095a09b/ambient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 2490, 67, 7175, 12, 2890, 16, 619, 16, 866, 33, 5510, 4672, 3536, 1788, 279, 681, 2490, 3273, 316, 333, 3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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 2490, 67, 7175, 12, 2890, 16, 619, 16, 866, 33, 5510, 4672, 3536, 1788, 279, 681, 2490, 3273, 316, 333, 3476, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return None
return False
def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage.
9c08cda4aa58cfa7cdbb6a02025a1219305ed383 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/9c08cda4aa58cfa7cdbb6a02025a1219305ed383/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
utils.system(var_ld_path + ' ' + cmd) report = open(self.debugdir + '/stderr') keyval = open(self.resultsdir + '/keyval', 'w') _format_results(report, keyval)
stderr = os.path.join(self.debugdir, 'stderr') utils.system('%s %s 2> %s' % (var_ld_path, cmd, stderr)) report = open(stderr) self.format_results(report)
def run_once(self, args = ''): os.chdir(self.tmpdir) libs = self.autodir+'/deps/libaio/lib/' ld_path = autotest_utils.prepend_path(libs, autotest_utils.environ('LD_LIBRARY_PATH')) var_ld_path = 'LD_LIBRARY_PATH=' + ld_path cmd = self.srcdir + '/aio-stress ' + args + ' poo'
fda84601a0757d996ecbccc2a8c6ab530af3a16e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/fda84601a0757d996ecbccc2a8c6ab530af3a16e/aiostress.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 833, 273, 875, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 5645, 1214, 13, 15042, 273, 365, 18, 5854, 369, 481, 6797, 19, 14877, 19, 2941, 69, 1594, 19, 2941, 2473, 16916, 67, 803, 273, 2059, 352, 395, 67, 5471, 18, 23100, 67, 803, 12, 21571, 16, 2059, 352, 395, 67, 5471, 18, 28684, 2668, 12069, 67, 2053, 28254, 67, 4211, 26112, 569, 67, 1236, 67, 803, 273, 296, 12069, 67, 2053, 28254, 67, 4211, 2218, 397, 16916, 67, 803, 1797, 273, 365, 18, 4816, 1214, 397, 1173, 69, 1594, 17, 334, 663, 296, 397, 833, 397, 296, 293, 5161, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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5471, 18, 23100, 67, 803, 12, 21571, 16, 2059, 352, 395, 67, 5471, 18, 28684, 2668, 12069, 67, 2053, 28254, 67, 4211, 26112, 569, 67, 1236, 67, 803, 273, 296, 12069, 67, 2053, 28254, 67, 4211, 2218, 397, 16916, 67, 803, 1797, 273, 365, 18, 4816, 1214, 397, 1173, 69, 1594, 17, 334, 663, 296, 397, 833, 397, 296, 293, 5161, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert a[2] != None return collections.namedtuple(
assert a[2] != None, "None is reserved for indicating uninitialized fields" return namedtuple(
def ClfsStructField(*args): a = list(args) if len(a) < 3: a.append(None) else: assert a[2] != None return collections.namedtuple( "ClfsStructField", ("name", "format", "initval") )(*a)
a2d8f4bc0f5dd94eba8767e5d77b1beb78415227 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4811/a2d8f4bc0f5dd94eba8767e5d77b1beb78415227/clfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3905, 2556, 3823, 974, 30857, 1968, 4672, 279, 273, 666, 12, 1968, 13, 309, 562, 12, 69, 13, 411, 890, 30, 279, 18, 6923, 12, 7036, 13, 469, 30, 1815, 279, 63, 22, 65, 480, 599, 16, 315, 7036, 353, 8735, 364, 11193, 640, 13227, 1466, 6, 327, 24650, 12, 315, 2009, 2556, 3823, 974, 3113, 7566, 529, 3113, 315, 2139, 3113, 315, 2738, 1125, 7923, 262, 30857, 69, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3905, 2556, 3823, 974, 30857, 1968, 4672, 279, 273, 666, 12, 1968, 13, 309, 562, 12, 69, 13, 411, 890, 30, 279, 18, 6923, 12, 7036, 13, 469, 30, 1815, 279, 63, 22, 65, 480, 599, 16, 315, 7036, 353, 8735, 364, 11193, 640, 13227, 1466, 6, 327, 24650, 12, 315, 2009, 2556, 3823, 974, 3113, 7566, 529, 3113, 315, 2139, 3113, 315, 2738, 1125, 7923, 262, 30857, 69, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.end_hook(process):
if self.end_hook:
def generate(self): self.process = process = Popen(self.args, stdout=open(os.devnull, 'w'), stderr=PIPE) if self.begin_hook: self.begin_hook(process) while process.poll() is None: rd, _, __ = select.select( [process.stderr], [], [], 0.05) if rd: self.notify(process.stderr.readline(), bad=True) sleep(0.02) yield if self.end_hook(process): self.end_hook(process)
792d6b23711c428a4a2b98537f44e2fbaed97fdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/792d6b23711c428a4a2b98537f44e2fbaed97fdd/loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 365, 18, 2567, 273, 1207, 273, 14339, 12, 2890, 18, 1968, 16, 3909, 33, 3190, 12, 538, 18, 5206, 2011, 16, 296, 91, 19899, 4514, 33, 27602, 13, 309, 365, 18, 10086, 67, 4476, 30, 365, 18, 10086, 67, 4476, 12, 2567, 13, 1323, 1207, 18, 13835, 1435, 353, 599, 30, 9437, 16, 389, 16, 1001, 273, 2027, 18, 4025, 12, 306, 2567, 18, 11241, 6487, 5378, 16, 5378, 16, 374, 18, 6260, 13, 309, 9437, 30, 365, 18, 12336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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 365, 18, 2567, 273, 1207, 273, 14339, 12, 2890, 18, 1968, 16, 3909, 33, 3190, 12, 538, 18, 5206, 2011, 16, 296, 91, 19899, 4514, 33, 27602, 13, 309, 365, 18, 10086, 67, 4476, 30, 365, 18, 10086, 67, 4476, 12, 2567, 13, 1323, 1207, 18, 13835, 1435, 353, 599, 30, 9437, 16, 389, 16, 1001, 273, 2027, 18, 4025, 12, 306, 2567, 18, 11241, 6487, 5378, 16, 5378, 16, 374, 18, 6260, 13, 309, 9437, 30, 365, 18, 12336, 12, 2567, 18, 11241, 18, 896, 1369, 9334, 5570, 33, 5510, 13, 5329, 12, 20, 18, 3103, 13, 2824, 309, 365, 18, 409, 67, 4476, 30, 365, 18, 409, 67, 4476, 12, 2567, 13, 2 ]
for line in r.read().split("\n"):
for line in results.read().split("\n"):
def get_data(id): """ get imdb data about the movie with the given id """ title = '' info = {} for t in imdb_info_tags: info[t] = "" image_urls = [] dvd = 0 regexp_title = re.compile('.*STRONG CLASS="title">(.*?)<', re.I) regexp_year = re.compile('.*<A HREF="/Sections/Years/.*?([0-9]*)<', re.I) regexp_genre = re.compile('.*href="/Sections/Genres(.*)$', re.I) regexp_tagline = re.compile('.*<B CLASS="ch">Tagline.*?</B>(.*?)<', re.I) regexp_plot1 = re.compile('.*<B CLASS="ch">Plot Outline.*?</B>(.*?)<', re.I) regexp_plot2 = re.compile('.*<B CLASS="ch">Plot Summary.*?</B>(.*?)<', re.I) regexp_rating = re.compile('.*<B>([0-9\.]*)/10</B> (.[0-9,]* votes.?)', re.I) regexp_image = re.compile('.*ALT="cover".*src="(http://.*?)"', re.I) regexp_runtime = re.compile('.*<b class="ch">Runtime', re.I) regexp_dvd = re.compile('.*<a href="/DVD\?', re.I) regexp_dvd_image = re.compile('.*(http://images.amazon.com.*?ZZZZZ.*?)"') regexp_url = re.compile('.*href="(http.*?)"', re.I) url = 'http://us.imdb.com/Title?%s' % id req = urllib2.Request(url, txdata, txheaders) try: r = urllib2.urlopen(req) except urllib2.HTTPError, error: print error return None next_line_is = None for line in r.read().split("\n"): if next_line_is == 'runtime': next_line_is = None info['runtime'] = str2XML(line) if regexp_runtime.match(line): next_line_is = 'runtime' continue m = regexp_title.match(line) if m: title = str2XML(m.group(1)) m = regexp_year.match(line) if m: info['year'] = m.group(1) m = regexp_genre.match(line) if m: for g in re.compile(' *</A>.*?> *', re.I).split(' </a>'+line+' > '): if info['genre'] == "": info['genre'] = g elif g != "" and g != "(more)": info['genre'] += " / "+ g m = regexp_tagline.match('%s<' % line) if m: info['tagline'] = str2XML(re.compile('[\t ]+').sub(" ", ' ' + m.group(1))[1:]) m = regexp_plot1.match('%s<' % line) if m: info['plot'] = str2XML(re.compile('[\t ]+').sub(" ", ' ' + m.group(1))[1:]) m = regexp_plot2.match('%s<' % line) if m: info['plot'] = str2XML(re.compile('[\t ]+').sub(" ", ' ' + m.group(1))[1:]) m = regexp_rating.match(line) if m: info['rating'] = m.group(1) + '/10 ' + m.group(2) m = regexp_dvd.match(line) if m: dvd = 1 m = regexp_image.match(line) if m: image_urls += [ m.group(1) ] if dvd: url = 'http://us.imdb.com/DVD?%s' % id req = urllib2.Request(url, txdata, txheaders) try: r = urllib2.urlopen(req) except urllib2.HTTPError, error: print error return None for line in r.read().split("\n"): m = regexp_dvd_image.match(line) if m: image_urls += [ m.group(1) ] global image_url_handler if not image_url_handler: return (title, info, image_urls) url = 'http://us.imdb.com/Posters?%s' % id req = urllib2.Request(url, txdata, txheaders) try: r = urllib2.urlopen(req) except urllib2.HTTPError, error: print error return (title, info, image_urls) for line in r.read().split("\n"): m = regexp_url.match(line) if m: url = urlparse.urlsplit(m.group(1)) if url[0] == 'http' and image_url_handler.has_key(url[1]): image_urls += image_url_handler[url[1]](url[1], url[2]) return (title, info, image_urls)
e00036671e126e280c06feccf239a5d998078ae8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e00036671e126e280c06feccf239a5d998078ae8/imdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 892, 12, 350, 4672, 3536, 336, 709, 1966, 501, 2973, 326, 21360, 598, 326, 864, 612, 3536, 225, 2077, 273, 875, 1123, 273, 2618, 225, 364, 268, 316, 709, 1966, 67, 1376, 67, 4156, 30, 1123, 63, 88, 65, 273, 1408, 225, 1316, 67, 10518, 273, 5378, 12494, 72, 273, 374, 225, 7195, 67, 2649, 282, 273, 283, 18, 11100, 2668, 4509, 3902, 7390, 7383, 1546, 2649, 6441, 21110, 32, 2187, 283, 18, 45, 13, 7195, 67, 6874, 565, 273, 283, 18, 11100, 2668, 4509, 32, 37, 670, 10771, 1546, 19, 15965, 19, 21945, 19, 23498, 3816, 20, 17, 29, 15471, 32, 2187, 283, 18, 45, 13, 7195, 67, 4507, 266, 282, 273, 283, 18, 11100, 2668, 4509, 7547, 1546, 19, 15965, 19, 7642, 455, 14361, 8, 2187, 283, 18, 45, 13, 7195, 67, 2692, 1369, 273, 283, 18, 11100, 2668, 4509, 32, 38, 7383, 1546, 343, 6441, 1805, 1369, 23498, 1757, 38, 34, 21110, 32, 2187, 283, 18, 45, 13, 7195, 67, 4032, 21, 282, 273, 283, 18, 11100, 2668, 4509, 32, 38, 7383, 1546, 343, 6441, 11532, 2976, 1369, 23498, 1757, 38, 34, 21110, 32, 2187, 283, 18, 45, 13, 7195, 67, 4032, 22, 282, 273, 283, 18, 11100, 2668, 4509, 32, 38, 7383, 1546, 343, 6441, 11532, 17967, 23498, 1757, 38, 34, 21110, 32, 2187, 283, 18, 45, 13, 7195, 67, 17326, 225, 273, 283, 18, 11100, 2668, 4509, 32, 38, 34, 3816, 20, 17, 29, 5834, 5772, 13176, 2163, 1757, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 892, 12, 350, 4672, 3536, 336, 709, 1966, 501, 2973, 326, 21360, 598, 326, 864, 612, 3536, 225, 2077, 273, 875, 1123, 273, 2618, 225, 364, 268, 316, 709, 1966, 67, 1376, 67, 4156, 30, 1123, 63, 88, 65, 273, 1408, 225, 1316, 67, 10518, 273, 5378, 12494, 72, 273, 374, 225, 7195, 67, 2649, 282, 273, 283, 18, 11100, 2668, 4509, 3902, 7390, 7383, 1546, 2649, 6441, 21110, 32, 2187, 283, 18, 45, 13, 7195, 67, 6874, 565, 273, 283, 18, 11100, 2668, 4509, 32, 37, 670, 10771, 1546, 19, 15965, 19, 21945, 19, 23498, 3816, 20, 17, 29, 15471, 32, 2187, 283, 18, 45, 13, 7195, 67, 4507, 266, 282, 273, 283, 18, 11100, 2 ]
stream.write("</%s>" % elem.tag)
if elem.tag != 'html': stream.write("</%s>" % elem.tag)
def dump_tree(elem, stream): if elem.tag.startswith('MAKO:'): dump_mako_tag(elem, stream) else: if elem.tag != 'html': if elem.attrib: stream.write("<%s %s>" % (elem.tag, " ".join(["%s=%s" % (key, repr(val)) for key, val in elem.attrib.iteritems()]))) else: stream.write("<%s>" % elem.tag) if elem.text: stream.write(elem.text) for child in elem: dump_tree(child, stream) if child.tail: stream.write(child.tail) stream.write("</%s>" % elem.tag)
cf9549854fb1e1e09128b30e9cada480d27761e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/cf9549854fb1e1e09128b30e9cada480d27761e3/read_markdown.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 3413, 12, 10037, 16, 1407, 4672, 309, 3659, 18, 2692, 18, 17514, 1918, 2668, 5535, 47, 51, 2497, 4672, 4657, 67, 81, 581, 83, 67, 2692, 12, 10037, 16, 1407, 13, 469, 30, 309, 3659, 18, 2692, 480, 296, 2620, 4278, 309, 3659, 18, 14588, 30, 1407, 18, 2626, 2932, 32, 9, 87, 738, 87, 2984, 738, 261, 10037, 18, 2692, 16, 315, 3552, 5701, 3816, 28385, 87, 5095, 87, 6, 738, 261, 856, 16, 8480, 12, 1125, 3719, 364, 498, 16, 1244, 316, 3659, 18, 14588, 18, 2165, 3319, 1435, 65, 20349, 469, 30, 1407, 18, 2626, 2932, 32, 9, 87, 2984, 738, 3659, 18, 2692, 13, 309, 3659, 18, 955, 30, 1407, 18, 2626, 12, 10037, 18, 955, 13, 364, 1151, 316, 3659, 30, 4657, 67, 3413, 12, 3624, 16, 1407, 13, 309, 1151, 18, 13101, 30, 1407, 18, 2626, 12, 3624, 18, 13101, 13, 309, 3659, 18, 2692, 480, 296, 2620, 4278, 1407, 18, 2626, 2932, 1757, 9, 87, 2984, 738, 3659, 18, 2692, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 3413, 12, 10037, 16, 1407, 4672, 309, 3659, 18, 2692, 18, 17514, 1918, 2668, 5535, 47, 51, 2497, 4672, 4657, 67, 81, 581, 83, 67, 2692, 12, 10037, 16, 1407, 13, 469, 30, 309, 3659, 18, 2692, 480, 296, 2620, 4278, 309, 3659, 18, 14588, 30, 1407, 18, 2626, 2932, 32, 9, 87, 738, 87, 2984, 738, 261, 10037, 18, 2692, 16, 315, 3552, 5701, 3816, 28385, 87, 5095, 87, 6, 738, 261, 856, 16, 8480, 12, 1125, 3719, 364, 498, 16, 1244, 316, 3659, 18, 14588, 18, 2165, 3319, 1435, 65, 20349, 469, 30, 1407, 18, 2626, 2932, 32, 9, 87, 2984, 738, 3659, 18, 2692, 13, 309, 3659, 18, 955, 30, 1407, 18, 2626, 2 ]
"""Toggles Ghostability.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) if len(data) == 1: menuItem = wx.MenuItem(menu,self.id,_("Don't Ghost"),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) self.allowGhosting = bosh.modInfos.table.getItem(data[0],'allowGhosting',True) menuItem.Check(not self.allowGhosting) else: subMenu = wx.Menu() menu.AppendMenu(-1,"Ghosting",subMenu) Mod_AllowAllGhosting().AppendToMenu(subMenu,window,data) Mod_AllowNoGhosting().AppendToMenu(subMenu,window,data) Mod_AllowInvertGhosting().AppendToMenu(subMenu,window,data) def Execute(self,event): fileName = self.data[0] fileInfo = bosh.modInfos[fileName] allowGhosting = self.allowGhosting ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileInfo.isGhost if fileInfo.setGhost(toGhost) != oldGhost: self.window.RefreshUI(fileName)
"""Toggles Ghostability.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) if len(data) == 1: menuItem = wx.MenuItem(menu,self.id,_("Don't Ghost"),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) self.allowGhosting = bosh.modInfos.table.getItem(data[0],'allowGhosting',True) menuItem.Check(not self.allowGhosting) else: subMenu = wx.Menu() menu.AppendMenu(-1,"Ghosting",subMenu) Mod_AllowAllGhosting().AppendToMenu(subMenu,window,data) Mod_AllowNoGhosting().AppendToMenu(subMenu,window,data) Mod_AllowInvertGhosting().AppendToMenu(subMenu,window,data) def Execute(self,event): fileName = self.data[0] fileInfo = bosh.modInfos[fileName] allowGhosting = self.allowGhosting ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileInfo.isGhost if fileInfo.setGhost(toGhost) != oldGhost: self.window.RefreshUI(fileName)
def Execute(self,event): for fileName in self.data: fileInfo = bosh.modInfos[fileName] allowGhosting = bosh.modInfos.table.getItem(fileName,'allowGhosting',True) ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileInfo.isGhost if fileInfo.setGhost(toGhost) != oldGhost: self.window.RefreshUI(fileName)
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 364, 3968, 316, 365, 18, 892, 30, 12538, 273, 324, 17636, 18, 1711, 7655, 63, 17812, 65, 1699, 43, 31415, 273, 324, 17636, 18, 1711, 7655, 18, 2121, 18, 588, 1180, 12, 17812, 11189, 5965, 43, 31415, 2187, 5510, 13, 3602, 1053, 324, 17636, 18, 1711, 7655, 18, 2121, 18, 542, 1180, 12, 17812, 11189, 5965, 43, 31415, 2187, 5965, 43, 31415, 13, 358, 43, 2564, 273, 1699, 43, 31415, 471, 3968, 486, 316, 324, 17636, 18, 1711, 7655, 18, 9885, 1592, 43, 2564, 273, 12538, 18, 291, 43, 2564, 309, 12538, 18, 542, 43, 2564, 12, 869, 43, 2564, 13, 480, 1592, 43, 2564, 30, 365, 18, 5668, 18, 8323, 5370, 12, 17812, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 364, 3968, 316, 365, 18, 892, 30, 12538, 273, 324, 17636, 18, 1711, 7655, 63, 17812, 65, 1699, 43, 31415, 273, 324, 17636, 18, 1711, 7655, 18, 2121, 18, 588, 1180, 12, 17812, 11189, 5965, 43, 31415, 2187, 5510, 13, 3602, 1053, 324, 17636, 18, 1711, 7655, 18, 2121, 18, 542, 1180, 12, 17812, 11189, 5965, 43, 31415, 2187, 5965, 43, 31415, 13, 358, 43, 2564, 273, 1699, 43, 31415, 471, 3968, 486, 316, 324, 17636, 18, 1711, 7655, 18, 9885, 1592, 43, 2564, 273, 12538, 18, 291, 43, 2564, 309, 12538, 18, 542, 43, 2564, 12, 869, 43, 2564, 13, 480, 1592, 43, 2564, 30, 365, 18, 5668, 18, 8323, 5370, 2 ]
fd = os.open(lockfn,os.O_CREAT | os.O_RDWR | os.O_NONBLOCK)
try: oldumask = os.umask(000) fd = os.open(lockfn,os.O_CREAT | os.O_RDWR | os.O_NONBLOCK, int('0666',8)) finally: os.umask(oldumask)
def getprocesslockflock(lockname): global oldfiledesc # the file we'll use lockfn = "/tmp/runoncelock."+lockname try: fd = os.open(lockfn,os.O_CREAT | os.O_RDWR | os.O_NONBLOCK) #print >> sys.stderr, 'flock get file descriptor == '+str(fd) except (OSError, IOError), e: if e[0] == errno.EACCES or e[0] == errno.EAGAIN: # okay, they must have started already. pass #print >> sys.stderr, 'Getting flock open failed, must have already started' else: #print >> sys.stderr, 'badness going down in opening for flock' raise else: try: import fcntl fcntl.flock(fd,fcntl.LOCK_EX | fcntl.LOCK_NB) # See above (under definition of pidendpadding) about why this is here... os.write(fd,str(os.getpid())+pidendpadding) #print >> sys.stderr, 'wrote pid ('+str(os.getpid())+') to flocked file' if lockname in oldfiledesc: os.close(oldfiledesc[lockname]) oldfiledesc[lockname] = fd return True except (OSError, IOError), e: os.close(fd) if e[0] == errno.EACCES or e[0] == errno.EAGAIN: # okay, they must have started already. pass #print >> sys.stderr, 'Getting flock fcntl.flock failed, must have already started' else: # we weren't expecting this... #print >> sys.stderr, 'badness going down in fcntl.flock for flock' raise # Let's return the PID fo = open(lockfn) pidstring = fo.read() fo.close() #print >> sys.stderr, 'pid '+pidstring+' has the flock for '+lockname return int(pidstring)
4d800553044ca4783ee75b7059611676c05ae73a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/4d800553044ca4783ee75b7059611676c05ae73a/runonce.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2567, 739, 74, 739, 12, 739, 529, 4672, 2552, 1592, 768, 5569, 468, 326, 585, 732, 5614, 999, 2176, 4293, 273, 2206, 5645, 19, 2681, 265, 2183, 975, 1199, 15, 739, 529, 225, 775, 30, 5194, 273, 1140, 18, 3190, 12, 739, 4293, 16, 538, 18, 51, 67, 5458, 789, 571, 1140, 18, 51, 67, 20403, 7181, 571, 1140, 18, 51, 67, 3993, 11403, 13, 468, 1188, 1671, 2589, 18, 11241, 16, 296, 74, 739, 336, 585, 4950, 422, 15126, 701, 12, 8313, 13, 1335, 261, 4618, 668, 16, 8340, 3631, 425, 30, 309, 425, 63, 20, 65, 422, 8402, 18, 41, 31110, 55, 578, 425, 63, 20, 65, 422, 8402, 18, 41, 1781, 6964, 30, 468, 21194, 16, 2898, 1297, 1240, 5746, 1818, 18, 1342, 468, 1188, 1671, 2589, 18, 11241, 16, 296, 19213, 27168, 1696, 2535, 16, 1297, 1240, 1818, 5746, 11, 469, 30, 468, 1188, 1671, 2589, 18, 11241, 16, 296, 8759, 4496, 8554, 2588, 316, 10890, 364, 27168, 11, 1002, 469, 30, 775, 30, 1930, 30894, 30894, 18, 74, 739, 12, 8313, 16, 7142, 16681, 18, 6589, 67, 2294, 571, 30894, 18, 6589, 67, 20626, 13, 468, 2164, 5721, 261, 9341, 2379, 434, 4231, 409, 9598, 13, 2973, 11598, 333, 353, 2674, 2777, 1140, 18, 2626, 12, 8313, 16, 701, 12, 538, 18, 588, 6610, 10756, 15, 6610, 409, 9598, 13, 468, 1188, 1671, 2589, 18, 11241, 16, 296, 91, 21436, 4231, 7707, 15, 701, 12, 538, 18, 588, 6610, 10756, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2567, 739, 74, 739, 12, 739, 529, 4672, 2552, 1592, 768, 5569, 468, 326, 585, 732, 5614, 999, 2176, 4293, 273, 2206, 5645, 19, 2681, 265, 2183, 975, 1199, 15, 739, 529, 225, 775, 30, 5194, 273, 1140, 18, 3190, 12, 739, 4293, 16, 538, 18, 51, 67, 5458, 789, 571, 1140, 18, 51, 67, 20403, 7181, 571, 1140, 18, 51, 67, 3993, 11403, 13, 468, 1188, 1671, 2589, 18, 11241, 16, 296, 74, 739, 336, 585, 4950, 422, 15126, 701, 12, 8313, 13, 1335, 261, 4618, 668, 16, 8340, 3631, 425, 30, 309, 425, 63, 20, 65, 422, 8402, 18, 41, 31110, 55, 578, 425, 63, 20, 65, 422, 8402, 18, 41, 1781, 6964, 30, 468, 2 ]
],'State', select=True, readonly=False), 'email':fields.char('Email Address', size=1024, required=True, readonly=False),
],'Repeat Every', select=True, readonly=False), 'notify':fields.selection([ ('email','Email Address'), ('mobile','Mobile Number'), ],'Notify On', select=True, reduired=True), 'email':fields.char('Email / Mobile', size=1024, help="This can be any things, it can be email address or mobile according to usage of action"),
def _call(self, cr, uid, ids=False, context={}): ''' Function called by the scheduler to process cases for date actions Only works on not done and cancelled cases ''' action_pool = model_pool = self.pool.get('ir.actions.server') if not ids: ids = self.search(cr, uid, [('state','=','done')])
9e0c19f5be5bc2bbb70446b01238feb0be4200c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9e0c19f5be5bc2bbb70446b01238feb0be4200c9/reminder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1991, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 33, 8381, 16, 819, 12938, 4672, 9163, 4284, 2566, 635, 326, 8129, 358, 1207, 6088, 364, 1509, 4209, 5098, 6330, 603, 486, 2731, 471, 13927, 6088, 9163, 1301, 67, 6011, 273, 938, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4905, 18, 3567, 6134, 309, 486, 3258, 30, 3258, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2019, 17023, 33, 17023, 8734, 6134, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1991, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 33, 8381, 16, 819, 12938, 4672, 9163, 4284, 2566, 635, 326, 8129, 358, 1207, 6088, 364, 1509, 4209, 5098, 6330, 603, 486, 2731, 471, 13927, 6088, 9163, 1301, 67, 6011, 273, 938, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4905, 18, 3567, 6134, 309, 486, 3258, 30, 3258, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2019, 17023, 33, 17023, 8734, 6134, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
from xml.dom.minidom import parse
try: from xml.dom.minidom import parse except ImportError: return
def _getSVNVersion(self): mod = sys.modules.get(self.package) if mod: ent = os.path.join(os.path.dirname(mod.__file__), '.svn', 'entries') if os.path.exists(ent): from xml.dom.minidom import parse doc = parse(file(ent)).documentElement for node in doc.childNodes: if hasattr(node, 'getAttribute'): rev = node.getAttribute('revision') if rev is not None: return rev.encode('ascii')
8f3be5cb40cc400469a255f5ca399ba13fd51e8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8f3be5cb40cc400469a255f5ca399ba13fd51e8f/versions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 23927, 50, 1444, 12, 2890, 4672, 681, 273, 2589, 18, 6400, 18, 588, 12, 2890, 18, 5610, 13, 309, 681, 30, 3281, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 1711, 16186, 768, 972, 3631, 2418, 31505, 2187, 296, 8219, 6134, 309, 1140, 18, 803, 18, 1808, 12, 319, 4672, 775, 30, 628, 2025, 18, 9859, 18, 1154, 350, 362, 1930, 1109, 1335, 11308, 30, 225, 327, 997, 273, 1109, 12, 768, 12, 319, 13, 2934, 5457, 1046, 364, 756, 316, 997, 18, 3624, 3205, 30, 309, 3859, 12, 2159, 16, 296, 588, 1499, 11, 4672, 5588, 273, 756, 18, 588, 1499, 2668, 13057, 6134, 309, 5588, 353, 486, 599, 30, 327, 5588, 18, 3015, 2668, 9184, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 981, 30, 1652, 389, 588, 23927, 50, 1444, 12, 2890, 4672, 681, 273, 2589, 18, 6400, 18, 588, 12, 2890, 18, 5610, 13, 309, 681, 30, 3281, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 1711, 16186, 768, 972, 3631, 2418, 31505, 2187, 296, 8219, 6134, 309, 1140, 18, 803, 18, 1808, 12, 319, 4672, 775, 30, 628, 2025, 18, 9859, 18, 1154, 350, 362, 1930, 1109, 1335, 11308, 30, 225, 327, 997, 273, 1109, 12, 768, 12, 319, 13, 2934, 5457, 1046, 364, 756, 316, 997, 18, 3624, 3205, 30, 309, 3859, 12, 2159, 16, 296, 588, 1499, 11, 4672, 5588, 273, 756, 18, 588, 1499, 2668, 13057, 6134, 309, 5588, 353, 486, 599, 30, 2 ]
print "WRITING", self._root
def write(self, file, encoding="us-ascii"): assert self._root is not None if not hasattr(file, "write"): file = open(file, "wb") if not encoding: encoding = "us-ascii" elif encoding != "utf-8" and encoding != "us-ascii": file.write("<?xml version='1.0' encoding='%s'?>\n" % encoding) print "WRITING", self._root self._write(file, self._root, encoding, NS2PREFIX) #self._write(file, self._root, encoding, {})
9876bdcc84778ec44f8a2ec0608c042fd79f81cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/9876bdcc84778ec44f8a2ec0608c042fd79f81cf/preso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 585, 16, 2688, 1546, 407, 17, 9184, 6, 4672, 1815, 365, 6315, 3085, 353, 486, 599, 309, 486, 3859, 12, 768, 16, 315, 2626, 6, 4672, 585, 273, 1696, 12, 768, 16, 315, 9464, 7923, 309, 486, 2688, 30, 2688, 273, 315, 407, 17, 9184, 6, 1327, 2688, 480, 315, 3158, 17, 28, 6, 471, 2688, 480, 315, 407, 17, 9184, 6877, 585, 18, 2626, 2932, 12880, 2902, 1177, 2218, 21, 18, 20, 11, 2688, 28713, 87, 11, 35, 5333, 82, 6, 738, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 585, 16, 2688, 1546, 407, 17, 9184, 6, 4672, 1815, 365, 6315, 3085, 353, 486, 599, 309, 486, 3859, 12, 768, 16, 315, 2626, 6, 4672, 585, 273, 1696, 12, 768, 16, 315, 9464, 7923, 309, 486, 2688, 30, 2688, 273, 315, 407, 17, 9184, 6, 1327, 2688, 480, 315, 3158, 17, 28, 6, 471, 2688, 480, 315, 407, 17, 9184, 6877, 585, 18, 2626, 2932, 12880, 2902, 1177, 2218, 21, 18, 20, 11, 2688, 28713, 87, 11, 35, 5333, 82, 6, 738, 2688, 13, 365, 6315, 2626, 12, 768, 16, 365, 6315, 3085, 16, 2688, 16, 11472, 22, 6307, 13, 468, 2890, 6315, 2626, 12, 768, 16, 365, 6315, 3085, 16, 2688, 16, 2 ]
thingie = pickle.load(open(self.infile, 'r')) if isinstance(thingie, dict): self.update(self.__class__(thingie)) elif isinstance(thingie, tuple) and len(thingie) == 2: counts, calledfuncs = thingie self.update(self.__class__(counts, calledfuncs)) except (IOError, EOFError), err:
counts, calledfuncs = pickle.load(open(self.infile, 'r')) self.update(self.__class__(counts, calledfuncs)) except (IOError, EOFError, ValueError), err:
def __init__(self, counts=None, calledfuncs=None, infile=None, outfile=None): self.counts = counts if self.counts is None: self.counts = {} self.counter = self.counts.copy() # map (filename, lineno) to count self.calledfuncs = calledfuncs if self.calledfuncs is None: self.calledfuncs = {} self.calledfuncs = self.calledfuncs.copy() self.infile = infile self.outfile = outfile if self.infile: # Try and merge existing counts file. # This code understand a couple of old trace.py formats. try: thingie = pickle.load(open(self.infile, 'r')) if isinstance(thingie, dict): self.update(self.__class__(thingie)) elif isinstance(thingie, tuple) and len(thingie) == 2: counts, calledfuncs = thingie self.update(self.__class__(counts, calledfuncs)) except (IOError, EOFError), err: print >> sys.stderr, ("Skipping counts file %r: %s" % (self.infile, err)) except pickle.UnpicklingError: self.update(self.__class__(marshal.load(open(self.infile))))
576118fffe82c1d7703640259bcab17205a335ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/576118fffe82c1d7703640259bcab17205a335ad/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6880, 33, 7036, 16, 2566, 17728, 33, 7036, 16, 14568, 33, 7036, 16, 8756, 33, 7036, 4672, 365, 18, 8008, 273, 6880, 309, 365, 18, 8008, 353, 599, 30, 365, 18, 8008, 273, 2618, 365, 18, 7476, 273, 365, 18, 8008, 18, 3530, 1435, 468, 852, 261, 3459, 16, 7586, 13, 358, 1056, 365, 18, 11777, 17728, 273, 2566, 17728, 309, 365, 18, 11777, 17728, 353, 599, 30, 365, 18, 11777, 17728, 273, 2618, 365, 18, 11777, 17728, 273, 365, 18, 11777, 17728, 18, 3530, 1435, 365, 18, 267, 768, 273, 14568, 365, 18, 26050, 273, 8756, 309, 365, 18, 267, 768, 30, 468, 6161, 471, 2691, 2062, 6880, 585, 18, 468, 1220, 981, 22413, 279, 1825, 2268, 434, 1592, 2606, 18, 2074, 6449, 18, 775, 30, 6880, 16, 2566, 17728, 273, 13379, 18, 945, 12, 3190, 12, 2890, 18, 267, 768, 16, 296, 86, 26112, 365, 18, 2725, 12, 2890, 16186, 1106, 972, 12, 8008, 16, 2566, 17728, 3719, 1335, 261, 4294, 668, 16, 6431, 668, 16, 2068, 3631, 393, 30, 1172, 1671, 2589, 18, 11241, 16, 7566, 16877, 6880, 585, 738, 86, 30, 738, 87, 6, 738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33, 7036, 16, 14568, 33, 7036, 16, 8756, 33, 7036, 4672, 365, 18, 8008, 273, 6880, 309, 365, 18, 8008, 353, 599, 30, 365, 18, 8008, 273, 2618, 365, 18, 7476, 273, 365, 18, 8008, 18, 3530, 1435, 468, 852, 261, 3459, 16, 7586, 13, 358, 1056, 365, 18, 11777, 17728, 273, 2566, 17728, 309, 365, 18, 11777, 17728, 353, 599, 30, 365, 18, 11777, 17728, 273, 2618, 365, 18, 11777, 17728, 273, 365, 18, 11777, 17728, 18, 3530, 1435, 365, 18, 267, 768, 273, 14568, 365, 18, 26050, 273, 8756, 309, 365, 18, 267, 768, 30, 468, 6161, 471, 2691, 2062, 6880, 585, 18, 468, 2 ]
QQ['x']
def charpoly(self, var): """ Returns the characteristic polynomial of this element.
7d0e75937f9b89525b8c6d2c166b888aa45d45aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/7d0e75937f9b89525b8c6d2c166b888aa45d45aa/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1149, 16353, 12, 2890, 16, 569, 4672, 3536, 2860, 326, 23158, 16991, 434, 333, 930, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1149, 16353, 12, 2890, 16, 569, 4672, 3536, 2860, 326, 23158, 16991, 434, 333, 930, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise PLCPermissionDenied, "Could not create dir %s"%tempdir
raise PLCPermissionDenied, "Could not create dir %s"%self.WORKDIR
def hexa2 (c): return chr((c>>4)+65) + chr ((c&16)+65)
c8a588799344db08a0317644ebb9ebfc6ebf9860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7598/c8a588799344db08a0317644ebb9ebfc6ebf9860/GetBootMedium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 69, 22, 261, 71, 4672, 327, 4513, 12443, 71, 9778, 24, 27921, 9222, 13, 397, 4513, 14015, 71, 10, 2313, 27921, 9222, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 69, 22, 261, 71, 4672, 327, 4513, 12443, 71, 9778, 24, 27921, 9222, 13, 397, 4513, 14015, 71, 10, 2313, 27921, 9222, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if timestamp != -1 and retpos == -1:
if timestamp != None and retpos == -1:
def _find_timer_PES_(self, buffer): """ Return position of timer in buffer or -1 if not found. This function is valid for PES files """ pos = buffer.find('\x00\x00\x01') offset = 0 if pos == -1 or offset + 1000 >= len(buffer): return -1
42acd927733011cf8240a16b5447261ed338ea48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/42acd927733011cf8240a16b5447261ed338ea48/mpeginfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 12542, 67, 1423, 55, 67, 12, 2890, 16, 1613, 4672, 3536, 2000, 1754, 434, 5441, 316, 1613, 578, 300, 21, 309, 486, 1392, 18, 1220, 445, 353, 923, 364, 453, 3991, 1390, 3536, 949, 565, 273, 1613, 18, 4720, 2668, 64, 92, 713, 64, 92, 713, 64, 92, 1611, 6134, 1384, 273, 374, 309, 949, 422, 300, 21, 578, 1384, 397, 4336, 1545, 562, 12, 4106, 4672, 327, 300, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 12542, 67, 1423, 55, 67, 12, 2890, 16, 1613, 4672, 3536, 2000, 1754, 434, 5441, 316, 1613, 578, 300, 21, 309, 486, 1392, 18, 1220, 445, 353, 923, 364, 453, 3991, 1390, 3536, 949, 565, 273, 1613, 18, 4720, 2668, 64, 92, 713, 64, 92, 713, 64, 92, 1611, 6134, 1384, 273, 374, 309, 949, 422, 300, 21, 578, 1384, 397, 4336, 1545, 562, 12, 4106, 4672, 327, 300, 21, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
blockingCallFromThread(reactor, reactor.connectTCP, self.server, self.port, self.factory)
blockingCallFromThread(reactor, reactor.connectTCP, self.server, self.port, self.factory)
def connect(self): """ This methods establishes the conection to the remote server.
4b8c14cab71d51848857a553320ed7033995fc6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/4b8c14cab71d51848857a553320ed7033995fc6d/dsage_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 3536, 1220, 2590, 18312, 281, 326, 356, 794, 358, 326, 2632, 1438, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 3536, 1220, 2590, 18312, 281, 326, 356, 794, 358, 326, 2632, 1438, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def startTagStyleScript(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagInput(self, token): if ("type" in token["data"] and token["data"]["type"].translate(asciiUpper2Lower) == "hidden"): self.parser.parseError("unexpected-hidden-input-in-table") self.tree.insertElement(token)
def startTagRowGroup(self, token): self.clearStackToTableContext() self.tree.insertElement(token) self.parser.phase = self.parser.phases["inTableBody"] def startTagImplyTbody(self, token): self.startTagRowGroup(impliedTagToken("tbody", "StartTag")) self.parser.phase.processStartTag(token) def startTagTable(self, token): self.parser.parseError("unexpected-start-tag-implies-end-tag", {"startName": "table", "endName": "table"}) self.parser.phase.processEndTag(impliedTagToken("table")) if not self.parser.innerHTML: self.parser.phase.processStartTag(token) def startTagStyleScript(self, token): self.parser.phases["inHead"].processStartTag(token) def startTagInput(self, token): if ("type" in token["data"] and token["data"]["type"].translate(asciiUpper2Lower) == "hidden"): self.parser.parseError("unexpected-hidden-input-in-table") self.tree.insertElement(token) self.tree.openElements.pop() else: self.startTagOther(token) def startTagForm(self, token): self.parser.parseError("unexpected-form-in-table") self.tree.insertElement(token)
def startTagStyleScript(self, token): self.parser.phases["inHead"].processStartTag(token)
5cc56a5db432ce478d90ee0dd744811935854947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/5cc56a5db432ce478d90ee0dd744811935854947/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 2885, 3651, 12, 2890, 16, 1147, 4672, 365, 18, 4288, 18, 844, 3304, 9614, 267, 1414, 6, 8009, 2567, 30512, 12, 2316, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1805, 2885, 3651, 12, 2890, 16, 1147, 4672, 365, 18, 4288, 18, 844, 3304, 9614, 267, 1414, 6, 8009, 2567, 30512, 12, 2316, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fdb = FdbCollector(proxy, dbpool)
fdb = FdbCollector(proxy, dbpool, self.normPort)
def collectData(self, ip, proxy, dbpool): ports = PortCollector(proxy, dbpool) fdb = FdbCollector(proxy, dbpool) arp = ArpCollector(proxy, dbpool) # LLDP disabled due to unstability # lldp = LldpCollector(proxy, dbpool) d = ports.collectData() d.addCallback(lambda x: fdb.collectData(write=False)) d.addCallback(lambda x: arp.collectData(write=False)) # d.addCallback(lambda x: lldp.collectData()) d.addCallback(lambda x: fdb.collectData()) d.addCallback(lambda x: arp.collectData()) return d
0f22d078d92418f98427927848bd42157142046e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13050/0f22d078d92418f98427927848bd42157142046e/extreme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 751, 12, 2890, 16, 2359, 16, 2889, 16, 1319, 6011, 4672, 9048, 273, 6008, 7134, 12, 5656, 16, 1319, 6011, 13, 284, 1966, 273, 478, 1966, 7134, 12, 5656, 16, 1319, 6011, 16, 365, 18, 7959, 2617, 13, 30539, 273, 1201, 84, 7134, 12, 5656, 16, 1319, 6011, 13, 468, 29863, 8640, 5673, 6541, 358, 640, 334, 2967, 468, 328, 18503, 273, 511, 18503, 7134, 12, 5656, 16, 1319, 6011, 13, 302, 273, 9048, 18, 14676, 751, 1435, 302, 18, 1289, 2428, 12, 14661, 619, 30, 284, 1966, 18, 14676, 751, 12, 2626, 33, 8381, 3719, 302, 18, 1289, 2428, 12, 14661, 619, 30, 30539, 18, 14676, 751, 12, 2626, 33, 8381, 3719, 468, 302, 18, 1289, 2428, 12, 14661, 619, 30, 328, 18503, 18, 14676, 751, 10756, 302, 18, 1289, 2428, 12, 14661, 619, 30, 284, 1966, 18, 14676, 751, 10756, 302, 18, 1289, 2428, 12, 14661, 619, 30, 30539, 18, 14676, 751, 10756, 327, 302, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 751, 12, 2890, 16, 2359, 16, 2889, 16, 1319, 6011, 4672, 9048, 273, 6008, 7134, 12, 5656, 16, 1319, 6011, 13, 284, 1966, 273, 478, 1966, 7134, 12, 5656, 16, 1319, 6011, 16, 365, 18, 7959, 2617, 13, 30539, 273, 1201, 84, 7134, 12, 5656, 16, 1319, 6011, 13, 468, 29863, 8640, 5673, 6541, 358, 640, 334, 2967, 468, 328, 18503, 273, 511, 18503, 7134, 12, 5656, 16, 1319, 6011, 13, 302, 273, 9048, 18, 14676, 751, 1435, 302, 18, 1289, 2428, 12, 14661, 619, 30, 284, 1966, 18, 14676, 751, 12, 2626, 33, 8381, 3719, 302, 18, 1289, 2428, 12, 14661, 619, 30, 30539, 18, 14676, 751, 12, 2626, 33, 8381, 3719, 468, 302, 18, 1289, 2 ]
self.log.verbose('Available slots=%d, TQ jobs=%d, Pilots to submit=%d' % (totalSlots,totalTQJobs,pilotsToSubmit) )
self.log.verbose( 'Available slots=%d, TQ jobs=%d, Pilots to submit=%d' % ( totalSlots, totalTQJobs, pilotsToSubmit ) )
def submitJobs( self ): """ Go through defined computing elements and submit jobs if necessary """
e99c1cc388c80826da2da9077d74d2e5b147e592 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e99c1cc388c80826da2da9077d74d2e5b147e592/SiteDirector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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 7276, 12, 365, 262, 30, 3536, 4220, 3059, 2553, 20303, 2186, 471, 4879, 6550, 309, 4573, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.w('<tt>')
self.w('<div style="Code">')
def visit_literal(self, node): self.w('<tt>')
46d27fd0988345162aa05e8c8214fca51757feb4 /local1/tlutelli/iss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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 13107, 12, 2890, 16, 756, 4672, 365, 18, 91, 2668, 32, 748, 1870, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
<menuitem action="Cut"/> <menuitem action="Copy"/> <menuitem action="Copy Tree"/> <menuitem action="Paste"/> <separator/>
def _get_ui(self): """Returns the UI XML""" # NOTE: I use a dummy menubar popup_menus so that I can have # accelerators on the menus. It is a hack.
2414fb05747095e498fcda291babe364bcf5b6ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/2414fb05747095e498fcda291babe364bcf5b6ea/three_pane_viewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4881, 12, 2890, 4672, 3536, 1356, 326, 6484, 3167, 8395, 225, 468, 5219, 30, 467, 999, 279, 9609, 21247, 373, 297, 10431, 67, 26065, 1427, 716, 467, 848, 1240, 468, 15153, 264, 3062, 603, 326, 21374, 18, 225, 2597, 353, 279, 11769, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4881, 12, 2890, 4672, 3536, 1356, 326, 6484, 3167, 8395, 225, 468, 5219, 30, 467, 999, 279, 9609, 21247, 373, 297, 10431, 67, 26065, 1427, 716, 467, 848, 1240, 468, 15153, 264, 3062, 603, 326, 21374, 18, 225, 2597, 353, 279, 11769, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._callHooks('prebuild')
self._callHooks('earlyprebuild')
def build(self, srpm, timeout): """build an srpm into binary rpms, capture log"""
5d6a076e7c312b386f263c85fc6631726036e731 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/5d6a076e7c312b386f263c85fc6631726036e731/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 9133, 7755, 16, 2021, 4672, 3536, 3510, 392, 9133, 7755, 1368, 3112, 8715, 959, 16, 7477, 613, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 9133, 7755, 16, 2021, 4672, 3536, 3510, 392, 9133, 7755, 1368, 3112, 8715, 959, 16, 7477, 613, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if hunknum == 0 and dopatch and not gitworkdone:
if (empty is None and not gitworkdone) or empty:
def iterhunks(ui, fp, sourcefile=None): """Read a patch and yield the following events: - ("file", afile, bfile, firsthunk): select a new target file. - ("hunk", hunk): a new hunk is ready to be applied, follows a "file" event. - ("git", gitchanges): current diff is in git format, gitchanges maps filenames to gitpatch records. Unique event. """ changed = {} current_hunk = None afile = "" bfile = "" state = None hunknum = 0 emitfile = False git = False # our states BFILE = 1 context = None lr = linereader(fp) dopatch = True # gitworkdone is True if a git operation (copy, rename, ...) was # performed already for the current file. Useful when the file # section may have no hunk. gitworkdone = False while True: newfile = newgitfile = False x = lr.readline() if not x: break if current_hunk: if x.startswith('\ '): current_hunk.fix_newline() yield 'hunk', current_hunk current_hunk = None gitworkdone = False if ((sourcefile or state == BFILE) and ((not context and x[0] == '@') or ((context is not False) and x.startswith('***************')))): try: if context is None and x.startswith('***************'): context = True gpatch = changed.get(bfile) create = afile == '/dev/null' or gpatch and gpatch.op == 'ADD' remove = bfile == '/dev/null' or gpatch and gpatch.op == 'DELETE' current_hunk = hunk(x, hunknum + 1, lr, context, create, remove) except PatchError, err: ui.debug(err) current_hunk = None continue hunknum += 1 if emitfile: emitfile = False yield 'file', (afile, bfile, current_hunk) elif state == BFILE and x.startswith('GIT binary patch'): current_hunk = binhunk(changed[bfile]) hunknum += 1 if emitfile: emitfile = False yield 'file', ('a/' + afile, 'b/' + bfile, current_hunk) current_hunk.extract(lr) elif x.startswith('diff --git'): # check for git diff, scanning the whole patch file if needed m = gitre.match(x) if m: afile, bfile = m.group(1, 2) if not git: git = True dopatch, gitpatches = scangitpatch(lr, x) yield 'git', gitpatches for gp in gitpatches: changed[gp.path] = gp # else error? # copy/rename + modify should modify target, not source gp = changed.get(bfile) if gp and gp.op in ('COPY', 'DELETE', 'RENAME', 'ADD'): afile = bfile gitworkdone = True newgitfile = True elif x.startswith('---'): # check for a unified diff l2 = lr.readline() if not l2.startswith('+++'): lr.push(l2) continue newfile = True context = False afile = parsefilename(x) bfile = parsefilename(l2) elif x.startswith('***'): # check for a context diff l2 = lr.readline() if not l2.startswith('---'): lr.push(l2) continue l3 = lr.readline() lr.push(l3) if not l3.startswith("***************"): lr.push(l2) continue newfile = True context = True afile = parsefilename(x) bfile = parsefilename(l2) if newgitfile or newfile: emitfile = True state = BFILE hunknum = 0 if current_hunk: if current_hunk.complete(): yield 'hunk', current_hunk else: raise PatchError(_("malformed patch %s %s") % (afile, current_hunk.desc)) if hunknum == 0 and dopatch and not gitworkdone: raise NoHunks
129a1fb327659ea0ed3bcb35f6db965e33976533 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/129a1fb327659ea0ed3bcb35f6db965e33976533/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 76, 1683, 87, 12, 4881, 16, 4253, 16, 1084, 768, 33, 7036, 4672, 3536, 1994, 279, 4729, 471, 2824, 326, 3751, 2641, 30, 300, 7566, 768, 3113, 279, 768, 16, 324, 768, 16, 1122, 76, 1683, 4672, 2027, 279, 394, 1018, 585, 18, 300, 7566, 76, 1683, 3113, 366, 1683, 4672, 279, 394, 366, 1683, 353, 5695, 358, 506, 6754, 16, 13040, 279, 315, 768, 6, 871, 18, 300, 7566, 6845, 3113, 314, 1437, 2054, 4672, 783, 3122, 353, 316, 5071, 740, 16, 314, 1437, 2054, 7565, 9066, 358, 5071, 2272, 3853, 18, 14584, 871, 18, 3536, 3550, 273, 2618, 783, 67, 76, 1683, 273, 599, 279, 768, 273, 1408, 324, 768, 273, 1408, 919, 273, 599, 366, 1683, 2107, 273, 374, 3626, 768, 273, 1083, 5071, 273, 1083, 225, 468, 3134, 5493, 605, 3776, 273, 404, 819, 273, 599, 12226, 273, 4739, 264, 18105, 12, 7944, 13, 302, 556, 505, 273, 1053, 468, 5071, 1252, 8734, 353, 1053, 309, 279, 5071, 1674, 261, 3530, 16, 6472, 16, 1372, 13, 1703, 468, 9591, 1818, 364, 326, 783, 585, 18, 19256, 1347, 326, 585, 468, 2442, 2026, 1240, 1158, 366, 1683, 18, 5071, 1252, 8734, 273, 1083, 225, 1323, 1053, 30, 394, 768, 273, 394, 6845, 768, 273, 1083, 619, 273, 12226, 18, 896, 1369, 1435, 309, 486, 619, 30, 898, 309, 783, 67, 76, 1683, 30, 309, 619, 18, 17514, 1918, 2668, 64, 296, 4672, 783, 67, 76, 1683, 18, 904, 67, 22861, 1435, 2824, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 76, 1683, 87, 12, 4881, 16, 4253, 16, 1084, 768, 33, 7036, 4672, 3536, 1994, 279, 4729, 471, 2824, 326, 3751, 2641, 30, 300, 7566, 768, 3113, 279, 768, 16, 324, 768, 16, 1122, 76, 1683, 4672, 2027, 279, 394, 1018, 585, 18, 300, 7566, 76, 1683, 3113, 366, 1683, 4672, 279, 394, 366, 1683, 353, 5695, 358, 506, 6754, 16, 13040, 279, 315, 768, 6, 871, 18, 300, 7566, 6845, 3113, 314, 1437, 2054, 4672, 783, 3122, 353, 316, 5071, 740, 16, 314, 1437, 2054, 7565, 9066, 358, 5071, 2272, 3853, 18, 14584, 871, 18, 3536, 3550, 273, 2618, 783, 67, 76, 1683, 273, 599, 279, 768, 273, 1408, 324, 768, 273, 1408, 919, 273, 599, 2 ]
box = '''<table class="navbox">
box = '''<table class="navbox" width="210">
def login(self, uri, user): if self.command_line==1: return '' if user: log(3, 'Creating active user box') box = '''<table class="navbox"> <tr><th>|stractive_user|</th></tr> <form name="logout" action="/data/session/logout"> <input name="username" type="hidden" value="%s"> <tr><td align="center"> <a href="/user/|session_username||uri.lang_ext|">|session_name|</a> </td></tr> <tr><td align="center"><input type="submit" name="logout" value="|strlog_out|"></td></tr> </form> </table> ''' % user.username else: log(3, 'Creating login box') box = '''<table class="navbox"> <tr><th colspan="2">|strlogin|</th></tr> <form name="login" action="/data/session/login" method="GET"> <tr> <td class="label">|strusername|</td> <td><input type="text" name="username" size="12"></td> </tr> <tr> <td class="label">|strpassword|</td> <td><input type="password" name="password" size="12"></td> </tr> <tr> <td align="center" colspan="2"> <input type=submit name="login" value="login"><br> <a href="/mailpass">|strmail_passwd||uri.lang_ext|</a><br> <a href="/newuser|uri.lang_ext|">|strcreate_acct|</a></td> </tr> </form> </table> ''' return box
912dd8d48a7fd0d5d2d9d1714e547c5a814754bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/912dd8d48a7fd0d5d2d9d1714e547c5a814754bf/HTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2003, 16, 729, 4672, 309, 365, 18, 3076, 67, 1369, 631, 21, 30, 327, 875, 309, 729, 30, 613, 12, 23, 16, 296, 11092, 2695, 729, 3919, 6134, 3919, 273, 9163, 32, 2121, 667, 1546, 11589, 2147, 6, 1835, 1546, 22, 2163, 6441, 411, 313, 4438, 451, 34, 96, 2876, 688, 67, 1355, 96, 1757, 451, 4695, 313, 34, 411, 687, 508, 1546, 21229, 6, 1301, 1546, 19, 892, 19, 3184, 19, 21229, 6441, 411, 2630, 508, 1546, 5053, 6, 618, 1546, 6345, 6, 460, 11613, 87, 6441, 411, 313, 4438, 4465, 5689, 1546, 5693, 6441, 411, 69, 3897, 1546, 19, 1355, 19, 96, 3184, 67, 5053, 20081, 1650, 18, 4936, 67, 408, 96, 6441, 96, 3184, 67, 529, 96, 1757, 69, 34, 7765, 4465, 4695, 313, 34, 411, 313, 4438, 4465, 5689, 1546, 5693, 14050, 2630, 618, 1546, 9297, 6, 508, 1546, 21229, 6, 460, 1546, 96, 701, 1330, 67, 659, 96, 13762, 4465, 4695, 313, 34, 7765, 687, 34, 7765, 2121, 34, 9163, 738, 729, 18, 5053, 469, 30, 613, 12, 23, 16, 296, 11092, 3925, 3919, 6134, 3919, 273, 9163, 32, 2121, 667, 1546, 11589, 2147, 6, 1835, 1546, 22, 2163, 6441, 411, 313, 4438, 451, 20856, 1546, 22, 6441, 96, 701, 5819, 96, 1757, 451, 4695, 313, 34, 411, 687, 508, 1546, 5819, 6, 1301, 1546, 19, 892, 19, 3184, 19, 5819, 6, 707, 1546, 3264, 6441, 411, 313, 34, 411, 4465, 667, 1546, 1925, 6441, 96, 701, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2003, 16, 729, 4672, 309, 365, 18, 3076, 67, 1369, 631, 21, 30, 327, 875, 309, 729, 30, 613, 12, 23, 16, 296, 11092, 2695, 729, 3919, 6134, 3919, 273, 9163, 32, 2121, 667, 1546, 11589, 2147, 6, 1835, 1546, 22, 2163, 6441, 411, 313, 4438, 451, 34, 96, 2876, 688, 67, 1355, 96, 1757, 451, 4695, 313, 34, 411, 687, 508, 1546, 21229, 6, 1301, 1546, 19, 892, 19, 3184, 19, 21229, 6441, 411, 2630, 508, 1546, 5053, 6, 618, 1546, 6345, 6, 460, 11613, 87, 6441, 411, 313, 4438, 4465, 5689, 1546, 5693, 6441, 411, 69, 3897, 1546, 19, 1355, 19, 96, 3184, 67, 5053, 20081, 1650, 18, 4936, 67, 408, 96, 2 ]
sizer.Add(analyser_box, 0, wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.EXPAND, 5)
analysissection.Add(analyser_box, 0, wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.EXPAND, 5) sizer.Add(analysissection, 0, wx.EXPAND|wx.ALL, 5)
def __init__(self, parent, dialog): ABCOptionPanel.__init__(self, parent, dialog) sizer = self.sizer
76862ea4579e5b42f076e233b20d63b7cbb789f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/76862ea4579e5b42f076e233b20d63b7cbb789f0/abcoption.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 6176, 4672, 29253, 1895, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 6176, 13, 272, 1824, 273, 365, 18, 87, 1824, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 6176, 4672, 29253, 1895, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 6176, 13, 272, 1824, 273, 365, 18, 87, 1824, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
msg = 'Traceback (most recent call last):' if self.__out.strip()[:len(msg)] == msg:
msg = TRACEBACK if self.__out.strip().startswith(msg):
def plain_text(self, ncols=0, prompts=True, max_out=None, wiki_out=False): if ncols == 0: ncols = self.word_wrap_cols() s = ''
f403620404e2fffc45865fb228d8e5e1ffeee4c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f403620404e2fffc45865fb228d8e5e1ffeee4c8/cell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7351, 67, 955, 12, 2890, 16, 21330, 33, 20, 16, 3012, 1092, 33, 5510, 16, 943, 67, 659, 33, 7036, 16, 9050, 67, 659, 33, 8381, 4672, 309, 21330, 422, 374, 30, 21330, 273, 365, 18, 1095, 67, 4113, 67, 6842, 1435, 272, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7351, 67, 955, 12, 2890, 16, 21330, 33, 20, 16, 3012, 1092, 33, 5510, 16, 943, 67, 659, 33, 7036, 16, 9050, 67, 659, 33, 8381, 4672, 309, 21330, 422, 374, 30, 21330, 273, 365, 18, 1095, 67, 4113, 67, 6842, 1435, 272, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
skin.PopupBox('%s\nnot found!' % filename)
skin.PopupBox('%s\nnot found!' % os.path.basename(filename))
def play(self, mode, file, playlist, repeat=0):
701b8178a3a3e97028428d103ae7e0c428f522b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/701b8178a3a3e97028428d103ae7e0c428f522b2/mplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 16, 1965, 16, 585, 16, 16428, 16, 7666, 33, 20, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 16, 1965, 16, 585, 16, 16428, 16, 7666, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
package_data = { "": ["*.txt", "*.zcml"], "ore.contentmirror": ["*.zcml", "*.txt"]},
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
833b478ea845034f70ec82255ba527432bc9f701 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4759/833b478ea845034f70ec82255ba527432bc9f701/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
destination = self.bookmarkReference(destinationname)
destination = self._bookmarkReference(destinationname)
def linkAnnotationAbsolute(self, contents, destinationname, Rect=None, addtopage=1, name=None, **kw): """link annotation positioned wrt the default user space""" destination = self.bookmarkReference(destinationname) # permitted to be undefined... must bind later... (w,h) = self._pagesize if not Rect: Rect = (0,0,w,h) kw["Rect"] = Rect kw["Contents"] = contents kw["Destination"] = destination annotation = apply(pdfdoc.LinkAnnotation, (), kw) self.addAnnotation(annotation, name, addtopage)
2424475e071e1c37b73f3c67658b0731bda9a15e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2424475e071e1c37b73f3c67658b0731bda9a15e/canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 3257, 10368, 12, 2890, 16, 2939, 16, 2929, 529, 16, 9315, 33, 7036, 16, 527, 3669, 410, 33, 21, 16, 508, 33, 7036, 16, 2826, 9987, 4672, 3536, 1232, 3204, 1754, 329, 31565, 326, 805, 729, 3476, 8395, 2929, 273, 365, 6315, 3618, 3355, 2404, 12, 10590, 529, 13, 468, 15498, 358, 506, 3109, 2777, 1297, 1993, 5137, 2777, 261, 91, 16, 76, 13, 273, 365, 6315, 7267, 554, 309, 486, 9315, 30, 9315, 273, 261, 20, 16, 20, 16, 91, 16, 76, 13, 5323, 9614, 6120, 11929, 273, 9315, 5323, 9614, 6323, 11929, 273, 2939, 5323, 9614, 5683, 11929, 273, 2929, 3204, 273, 2230, 12, 7699, 2434, 18, 2098, 3257, 16, 1832, 16, 5323, 13, 365, 18, 1289, 3257, 12, 11495, 16, 508, 16, 527, 3669, 410, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 3257, 10368, 12, 2890, 16, 2939, 16, 2929, 529, 16, 9315, 33, 7036, 16, 527, 3669, 410, 33, 21, 16, 508, 33, 7036, 16, 2826, 9987, 4672, 3536, 1232, 3204, 1754, 329, 31565, 326, 805, 729, 3476, 8395, 2929, 273, 365, 6315, 3618, 3355, 2404, 12, 10590, 529, 13, 468, 15498, 358, 506, 3109, 2777, 1297, 1993, 5137, 2777, 261, 91, 16, 76, 13, 273, 365, 6315, 7267, 554, 309, 486, 9315, 30, 9315, 273, 261, 20, 16, 20, 16, 91, 16, 76, 13, 5323, 9614, 6120, 11929, 273, 9315, 5323, 9614, 6323, 11929, 273, 2939, 5323, 9614, 5683, 11929, 273, 2929, 3204, 273, 2230, 12, 7699, 2434, 18, 2098, 3257, 16, 1832, 16, 5323, 13, 365, 2 ]
self.moveMolYAction.setIconSet(QIconSet(self.image82))
self.moveMolYAction.setIconSet(QIconSet(self.image83))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
1fffefaa2964961cbc9adc237e2fedcbaf53df97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1fffefaa2964961cbc9adc237e2fedcbaf53df97/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 2327, 5190, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return QWebView.wheelEvent(self, event)
ret = QWebView.wheelEvent(self, event) if self.manager is not None: self.manager.scrolled(self.scroll_fraction) return ret
def wheelEvent(self, event): if event.delta() < -14: if self.document.at_bottom: if self.manager is not None: self.manager.next_document() event.accept() return elif event.delta() > 14: if self.document.at_top: if self.manager is not None: self.manager.previous_document() event.accept() return return QWebView.wheelEvent(self, event)
62394454d5fda8425efc4f28e5f153855dd46ee2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/62394454d5fda8425efc4f28e5f153855dd46ee2/documentview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19100, 1133, 12, 2890, 16, 871, 4672, 309, 871, 18, 9878, 1435, 411, 300, 3461, 30, 309, 365, 18, 5457, 18, 270, 67, 9176, 30, 309, 365, 18, 4181, 353, 486, 599, 30, 365, 18, 4181, 18, 4285, 67, 5457, 1435, 871, 18, 9436, 1435, 327, 1327, 871, 18, 9878, 1435, 405, 5045, 30, 309, 365, 18, 5457, 18, 270, 67, 3669, 30, 309, 365, 18, 4181, 353, 486, 599, 30, 365, 18, 4181, 18, 11515, 67, 5457, 1435, 871, 18, 9436, 1435, 327, 325, 273, 2238, 4079, 1767, 18, 21344, 1133, 12, 2890, 16, 871, 13, 309, 365, 18, 4181, 353, 486, 599, 30, 365, 18, 4181, 18, 1017, 25054, 12, 2890, 18, 12033, 67, 16744, 13, 327, 325, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19100, 1133, 12, 2890, 16, 871, 4672, 309, 871, 18, 9878, 1435, 411, 300, 3461, 30, 309, 365, 18, 5457, 18, 270, 67, 9176, 30, 309, 365, 18, 4181, 353, 486, 599, 30, 365, 18, 4181, 18, 4285, 67, 5457, 1435, 871, 18, 9436, 1435, 327, 1327, 871, 18, 9878, 1435, 405, 5045, 30, 309, 365, 18, 5457, 18, 270, 67, 3669, 30, 309, 365, 18, 4181, 353, 486, 599, 30, 365, 18, 4181, 18, 11515, 67, 5457, 1435, 871, 18, 9436, 1435, 327, 325, 273, 2238, 4079, 1767, 18, 21344, 1133, 12, 2890, 16, 871, 13, 309, 365, 18, 4181, 353, 486, 599, 30, 365, 18, 4181, 18, 1017, 25054, 12, 2890, 18, 12033, 67, 16744, 13, 2 ]
self.doc.last_updated,
self.doc.last_update,
def __init__(self, doc_id): self.id = doc_id self.doc = lampadas.docs[doc_id] omf = WOStringIO('<resource id="%s">\n' '%s' '%s' '%s' '<title>%s</title>\n' '<date>%s</date>\n' '<versiongroup>\n' ' <version>\n' ' <id>%s</id>\n' ' <date>%s</date>\n' ' </version>\n' '</versiongroup>\n' '<type>%s</type>\n' '%s\n' '<identifier>%s</identifier>\n' '%s' '<source>%s (%s)</source>\n' '<language>%s</language>\n' '%s' '</resource>\n' % (self.id, self.creators(), self.maintainers(), self.contributors(), self.doc.title, self.doc.last_updated, self.doc.version, self.doc.last_updated, self.doc.type_code, self.format(), self.doc.sk_seriesid, self.description(), config.hostname, config.project_name, self.doc.lang, self.rights(), )) self.omf = omf.get_value()
5f5e9e97ca1268eae03f8ee340514d7952aa772f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/5f5e9e97ca1268eae03f8ee340514d7952aa772f/OMF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 67, 350, 4672, 365, 18, 350, 273, 997, 67, 350, 365, 18, 2434, 273, 328, 931, 361, 345, 18, 8532, 63, 2434, 67, 350, 65, 8068, 74, 273, 678, 51, 780, 4294, 2668, 32, 3146, 612, 11613, 87, 6, 5333, 82, 11, 1995, 87, 11, 1995, 87, 11, 1995, 87, 11, 2368, 2649, 9822, 87, 1757, 2649, 5333, 82, 11, 2368, 712, 9822, 87, 1757, 712, 5333, 82, 11, 2368, 1589, 1655, 5333, 82, 11, 296, 225, 411, 1589, 5333, 82, 11, 296, 565, 411, 350, 9822, 87, 1757, 350, 5333, 82, 11, 296, 565, 411, 712, 9822, 87, 1757, 712, 5333, 82, 11, 296, 225, 7765, 1589, 5333, 82, 11, 4357, 1589, 1655, 5333, 82, 11, 2368, 723, 9822, 87, 1757, 723, 5333, 82, 11, 1995, 87, 64, 82, 11, 2368, 5644, 9822, 87, 1757, 5644, 5333, 82, 11, 1995, 87, 11, 2368, 3168, 9822, 87, 6142, 87, 13, 1757, 3168, 5333, 82, 11, 2368, 4923, 9822, 87, 1757, 4923, 5333, 82, 11, 1995, 87, 11, 4357, 3146, 5333, 82, 11, 738, 261, 2890, 18, 350, 16, 365, 18, 1793, 3062, 9334, 365, 18, 81, 1598, 8234, 9334, 365, 18, 26930, 13595, 9334, 365, 18, 2434, 18, 2649, 16, 365, 18, 2434, 18, 2722, 67, 2725, 16, 365, 18, 2434, 18, 1589, 16, 365, 18, 2434, 18, 2722, 67, 2725, 16, 365, 18, 2434, 18, 723, 67, 710, 16, 365, 18, 2139, 9334, 365, 18, 2434, 18, 7771, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 67, 350, 4672, 365, 18, 350, 273, 997, 67, 350, 365, 18, 2434, 273, 328, 931, 361, 345, 18, 8532, 63, 2434, 67, 350, 65, 8068, 74, 273, 678, 51, 780, 4294, 2668, 32, 3146, 612, 11613, 87, 6, 5333, 82, 11, 1995, 87, 11, 1995, 87, 11, 1995, 87, 11, 2368, 2649, 9822, 87, 1757, 2649, 5333, 82, 11, 2368, 712, 9822, 87, 1757, 712, 5333, 82, 11, 2368, 1589, 1655, 5333, 82, 11, 296, 225, 411, 1589, 5333, 82, 11, 296, 565, 411, 350, 9822, 87, 1757, 350, 5333, 82, 11, 296, 565, 411, 712, 9822, 87, 1757, 712, 5333, 82, 11, 296, 225, 7765, 1589, 5333, 82, 11, 2 ]
raise ValueError("invalid `justify` specification") else: justify = ['left'] for ser in tseries: if str(ser.dtype)[:2] == '|S': justify.append('left') else: justify.append('right')
justify = ['left'] for ser in tseries: if str(ser.dtype)[:2] == '|S': justify.append('left') else: justify.append('right') else: justify = [None for x in range(len(tseries)+1)]
def option(kw): return option_dict.get(kw, _default_options[kw])
49f7cf850b803093831ddb07ea689be861903eaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/49f7cf850b803093831ddb07ea689be861903eaa/reportlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1456, 12, 9987, 4672, 327, 1456, 67, 1576, 18, 588, 12, 9987, 16, 389, 1886, 67, 2116, 63, 9987, 5717, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1456, 12, 9987, 4672, 327, 1456, 67, 1576, 18, 588, 12, 9987, 16, 389, 1886, 67, 2116, 63, 9987, 5717, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def usage:
def usage():
def usage: sys.stderr.write("Usage: %s [-l INFILE] OUTFILE ACCUMDIRS...\n" % (sys.argv[0]))
42dc1849d760ade35d9eb7aa268b3d4643a0a5bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6303/42dc1849d760ade35d9eb7aa268b3d4643a0a5bc/mllt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 2589, 18, 11241, 18, 2626, 2932, 5357, 30, 738, 87, 23059, 80, 2120, 3776, 65, 8210, 3776, 18816, 2799, 4537, 55, 2777, 64, 82, 6, 738, 261, 9499, 18, 19485, 63, 20, 22643, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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6, 738, 261, 9499, 18, 19485, 63, 20, 22643, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
security.declareProtected(permissions.View, 'Type')
security.declareProtected(CMFCorePermissions.View, 'Type')
def setId(self, value): """Sets the object id. """ if value != self.getId(): parent = aq_parent(aq_inner(self)) if parent is not None: # See Referenceable, keep refs on what is a move/rename self._v_cp_refs = 1 parent.manage_renameObject(self.id, value) self._setId(value)
460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10446, 12, 2890, 16, 460, 4672, 3536, 2785, 326, 733, 612, 18, 3536, 309, 460, 480, 365, 18, 26321, 13332, 982, 273, 279, 85, 67, 2938, 12, 69, 85, 67, 7872, 12, 2890, 3719, 309, 982, 353, 486, 599, 30, 468, 2164, 6268, 429, 16, 3455, 9047, 603, 4121, 353, 279, 3635, 19, 18539, 365, 6315, 90, 67, 4057, 67, 9316, 273, 404, 982, 18, 12633, 67, 18539, 921, 12, 2890, 18, 350, 16, 460, 13, 365, 6315, 542, 548, 12, 1132, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, 10446, 12, 2890, 16, 460, 4672, 3536, 2785, 326, 733, 612, 18, 3536, 309, 460, 480, 365, 18, 26321, 13332, 982, 273, 279, 85, 67, 2938, 12, 69, 85, 67, 7872, 12, 2890, 3719, 309, 982, 353, 486, 599, 30, 468, 2164, 6268, 429, 16, 3455, 9047, 603, 4121, 353, 279, 3635, 19, 18539, 365, 6315, 90, 67, 4057, 67, 9316, 273, 404, 982, 18, 12633, 67, 18539, 921, 12, 2890, 18, 350, 16, 460, 13, 365, 6315, 542, 548, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
server_http1('mysession', address='sage.math.washington.edu')
notebook('mysession', address='sage.math.washington.edu')
def notebook(dir ='sage_notebook', port = 8000, address = 'localhost', open_viewer = False, max_tries = 10, username = None, password = None, color = None, system = None, jsmath = True, show_debug = False, splashpage = None, warn = True, ignore_lock = False, log_server = False, kill_idle = 0, restart_on_crash = False, auto_restart = 1800): r""" Start a SAGE notebook web server at the given port. INPUT: dir -- (default: 'sage_notebook') name of the server directory; your sessions are saved in a directory with that name. If you restart the server with that same name then it will restart in the state you left it, but with none of the variables defined (you have to re-eval blocks). port -- (default: 8000) port on computer where the server is served address -- (default: 'localhost') address that the server will listen on open_viewer -- bool (default:False); if True, pop up a web browser at the URL max_tries -- (default: 10) maximum number of ports > port to try in case given port can't be opened. username -- user name used for authenticated logins password -- password used for authenticated logins color -- string or pair of html colors, e.g., 'gmail' 'grey' ('#ff0000', '#0000ff') system -- (string) default computer algebra system to use for new worksheets, e.g., 'maxima', 'gp', 'axiom', 'mathematica', 'macaulay2', 'singular', 'gap', 'octave', 'maple', etc. (even 'latex'!) jsmath -- whether not to enable javascript typset output for math. debug -- whether or not to show a javascript debugging window kill_idle -- if positive, kill any idle compute processes after this many auto saves. (NOT IMPLEMENTED) splashpage -- whether or not to show a splash page when no worksheet is specified. you can place a file named index.html into the notebook directory that will be shown in place of the default. restart_on_crash -- if True (the default is False), the server will be automatically restarted if it crashes in any way. Use this on a public servers that many people might use, and which might be subjected to intense usage. NOTE: Log messages are only displayed every 5 seconds in this mode. auto_restart -- if restart_on_crash is True, always restart the server every this many seconds. NOTES: When you type \code{notebook(...)} you start a web server on the machine you type that command on. You don't connect to another machine. So do this if you want to start a SAGE notebook accessible from anywhere: \begin{enumerate} \item Figure out the external address of your server, say 'sage.math.washington.edu', for example. \item On your server, type server_http1('mysession', address='sage.math.washington.edu') \item Assuming you have permission to open a port on that machine, it will startup and display a URL, e.g., \url{http://sage.math.washington.edu:8000} Note this URL. \item Go to any computer in the world (!), or at least behind your firewall, and use any web browser to visit the above URL. You're using \sage. \end{enumerate} \note{There are no security precautions in place \emph{yet}! If you open a server as above, and somebody figures this out, they could use their web browser to connect to the same sage session, and type something nasty like \code{os.system('cd; rm -rf *')} and your home directory would be hosed. I'll be adding an authentication screen in the near future. In the meantime (and even then), you should consider creating a user with very limited privileges (e.g., empty home directory).} FIREFOX ISSUE: If your default web browser if Firefox, then notebook will open a copy of Firefox at the given URL. You should definitely set the "open links in new tabs" option in Firefox, or you might loose a web page you were looking at. To do this, just go to Edit --> Preferences --> Tabs and in "Open links from other apps" select the middle button instead of the bottom button. """ if restart_on_crash: # Start a new subprocess def f(x): # format for passing on if x is None: return 'None' elif isinstance(x, str): return "'%s'"%x else: return str(x) while True: S = sage.interfaces.sage0.Sage() time.sleep(1) S.eval("from sage.server.notebook.notebook import notebook") cmd = "notebook(dir=%s,port=%s, address=%s, open_viewer=%s, max_tries=%s, username=%s, password=%s, color=%s, system=%s, jsmath=%s, show_debug=%s, splashpage=%s, warn=%s, ignore_lock=%s, log_server=%s, kill_idle=%s, restart_on_crash=False)"%( f(dir), f(port), f(address), f(open_viewer), f(max_tries), f(username), f(password), f(color), f(system), f(jsmath), f(show_debug), f(splashpage), f(warn), f(ignore_lock), f(log_server), f(kill_idle) ) print cmd S._send(cmd) tm = 0 while True: s = S._get()[1].strip() if len(s) > 0: print s if not S.is_running(): break time.sleep(5) tm += 5 if tm > auto_restart: S.quit() break # end while # end while S.quit() return if os.path.exists(dir): if not os.path.isdir(dir): raise RuntimeError, '"%s" is not a valid SAGE notebook directory (it is not even a directory).'%dir if not (os.path.exists('%s/nb.sobj'%dir) or os.path.exists('%s/nb-backup.sobj'%dir)): raise RuntimeError, '"%s" is not a valid SAGE notebook directory (missing nb.sobj).'%dir if os.path.exists('%s/pid'%dir) and not ignore_lock: f = file('%s/pid'%dir) p = f.read() f.close() try: #This is a hack to check whether or not the process is running. os.kill(int(p),0) print "\n".join([" This notebook appears to be running with PID %s. If it is"%p, " not responding, you will need to kill that process to continue.", " If another (non-sage) process is running with that PID, call", " notebook(..., ignore_lock = True, ...). " ]) return except OSError: pass f = file('%s/pid'%dir, 'w') f.write("%d"%os.getpid()) f.close() try: nb = load('%s/nb.sobj'%dir, compress=False) except: print "****************************************************************" print " * * * WARNING * * * WARNING * * * WARNING * * * " print "WARNING -- failed to load notebook data. Trying the backup file." print "****************************************************************" try: nb = load('%s/nb-backup.sobj'%dir, compress=False) except: print "Recovering from last op save failed." print "Trying save from last startup." nb = load('%s/nb-older-backup.sobj'%dir, compress=False) nb.delete_doc_browser_worksheets() nb.set_directory(dir) if not (username is None): nb.set_auth(username=username, password=password) if not (color is None): nb.set_color(color) if not system is None: nb.set_system(system) if not splashpage is None: nb.set_splashpage(splashpage) nb.set_not_computing() else: nb = Notebook(dir,username=username,password=password, color=color, system=system, kill_idle=kill_idle,splashpage=splashpage) nb.save() shutil.copy('%s/nb.sobj'%dir, '%s/nb-older-backup.sobj'%dir) nb.set_debug(show_debug) nb.set_log_server(log_server) if warn and address!='localhost' and username==None: print "WARNING -- it is *extremely* dangerous to let the server listen" print "on an external port without at least setting a username/password!!" nb.start(port, address, max_tries, open_viewer, jsmath=jsmath) from sage.interfaces.quit import expect_quitall expect_quitall(verbose=False) from sage.misc.misc import delete_tmpfiles delete_tmpfiles() if os.path.exists('%s/pid'%dir): os.remove('%s/pid'%dir) return nb
04162fd4940eae5d345d25e40c849345db7f4cde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/04162fd4940eae5d345d25e40c849345db7f4cde/notebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 12, 1214, 540, 273, 11, 87, 410, 67, 24422, 2187, 1756, 3639, 273, 1725, 3784, 16, 1758, 377, 273, 296, 13014, 2187, 1696, 67, 25256, 273, 1083, 16, 943, 67, 2007, 282, 273, 1728, 16, 2718, 565, 273, 599, 16, 2201, 565, 273, 599, 16, 2036, 4202, 273, 599, 16, 2619, 1377, 273, 599, 16, 3828, 15949, 1377, 273, 1053, 16, 2405, 67, 4148, 225, 273, 1083, 16, 6121, 961, 2433, 225, 273, 599, 16, 1894, 3639, 273, 1053, 16, 2305, 67, 739, 273, 1083, 16, 613, 67, 3567, 273, 1083, 16, 8673, 67, 20390, 282, 273, 374, 16, 7870, 67, 265, 67, 3353, 961, 273, 1083, 16, 3656, 67, 19164, 273, 6549, 713, 4672, 436, 8395, 3603, 279, 348, 2833, 14718, 3311, 1438, 622, 326, 864, 1756, 18, 225, 12943, 30, 1577, 1493, 261, 1886, 30, 296, 87, 410, 67, 24422, 6134, 508, 434, 326, 1438, 1867, 31, 3433, 8856, 854, 5198, 316, 279, 1867, 598, 716, 508, 18, 225, 971, 1846, 7870, 326, 1438, 598, 716, 1967, 508, 1508, 518, 903, 7870, 316, 326, 919, 1846, 2002, 518, 16, 1496, 598, 6555, 434, 326, 3152, 2553, 261, 19940, 1240, 358, 283, 17, 8622, 4398, 2934, 1756, 1493, 261, 1886, 30, 1725, 3784, 13, 1756, 603, 26579, 1625, 326, 1438, 353, 30722, 1758, 1493, 261, 1886, 30, 296, 13014, 6134, 1758, 716, 326, 1438, 903, 6514, 603, 1696, 67, 25256, 1493, 1426, 261, 1886, 30, 8381, 1769, 309, 1053, 16, 1843, 731, 279, 3311, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 12, 1214, 540, 273, 11, 87, 410, 67, 24422, 2187, 1756, 3639, 273, 1725, 3784, 16, 1758, 377, 273, 296, 13014, 2187, 1696, 67, 25256, 273, 1083, 16, 943, 67, 2007, 282, 273, 1728, 16, 2718, 565, 273, 599, 16, 2201, 565, 273, 599, 16, 2036, 4202, 273, 599, 16, 2619, 1377, 273, 599, 16, 3828, 15949, 1377, 273, 1053, 16, 2405, 67, 4148, 225, 273, 1083, 16, 6121, 961, 2433, 225, 273, 599, 16, 1894, 3639, 273, 1053, 16, 2305, 67, 739, 273, 1083, 16, 613, 67, 3567, 273, 1083, 16, 8673, 67, 20390, 282, 273, 374, 16, 7870, 67, 265, 67, 3353, 961, 273, 1083, 16, 3656, 67, 19164, 273, 6549, 713, 4672, 436, 8395, 2 ]
name = name[0]
def get(self, name): ''' Return Instrument object with name 'name'. Input: name of instrument (string) Output: Instrument object ''' if len(name) != 1: return None
dd752b52f404ddaa0c9b2e81c1a1fb6a483105bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/dd752b52f404ddaa0c9b2e81c1a1fb6a483105bf/instruments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 508, 4672, 9163, 2000, 25565, 733, 598, 508, 296, 529, 10332, 225, 2741, 30, 225, 508, 434, 10353, 261, 1080, 13, 3633, 30, 25565, 733, 9163, 225, 309, 562, 12, 529, 13, 480, 404, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 12, 2890, 16, 508, 4672, 9163, 2000, 25565, 733, 598, 508, 296, 529, 10332, 225, 2741, 30, 225, 508, 434, 10353, 261, 1080, 13, 3633, 30, 25565, 733, 9163, 225, 309, 562, 12, 529, 13, 480, 404, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
itemName=menu.entrycget(index,'label') event=''
itemName = menu.entrycget(index, 'label') event = ''
def ApplyKeybindings(self): "Update the keybindings after they are changed" # Called from configDialog.py self.Bindings.default_keydefs=idleConf.GetCurrentKeySet() self.apply_bindings() for extensionName in self.get_standard_extension_names(): keydefs = idleConf.GetExtensionBindings(extensionName) if keydefs: self.apply_bindings(keydefs) #update menu accelerators menuEventDict={} for menu in self.Bindings.menudefs: menuEventDict[menu[0]]={} for item in menu[1]: if item: menuEventDict[menu[0]][prepstr(item[0])[1]]=item[1] for menubarItem in self.menudict.keys(): menu=self.menudict[menubarItem] end=menu.index(END)+1 for index in range(0,end): if menu.type(index)=='command': accel=menu.entrycget(index,'accelerator') if accel: itemName=menu.entrycget(index,'label') event='' if menuEventDict.has_key(menubarItem): if menuEventDict[menubarItem].has_key(itemName): event=menuEventDict[menubarItem][itemName] if event: accel=get_accelerator(keydefs, event) menu.entryconfig(index,accelerator=accel)
e65ce4cbecc3f908527437923d4f0c2764be7cda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e65ce4cbecc3f908527437923d4f0c2764be7cda/EditorWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 653, 15863, 12, 2890, 4672, 315, 1891, 326, 498, 15863, 1839, 2898, 854, 3550, 6, 468, 11782, 628, 642, 6353, 18, 2074, 365, 18, 10497, 18, 1886, 67, 856, 12537, 33, 20390, 3976, 18, 967, 3935, 653, 694, 1435, 365, 18, 9010, 67, 15863, 1435, 364, 2710, 461, 316, 365, 18, 588, 67, 10005, 67, 6447, 67, 1973, 13332, 498, 12537, 273, 12088, 3976, 18, 967, 3625, 10497, 12, 6447, 461, 13, 309, 498, 12537, 30, 365, 18, 9010, 67, 15863, 12, 856, 12537, 13, 468, 2725, 3824, 15153, 264, 3062, 3824, 1133, 5014, 12938, 364, 3824, 316, 365, 18, 10497, 18, 5414, 12537, 30, 3824, 1133, 5014, 63, 5414, 63, 20, 13563, 12938, 364, 761, 316, 3824, 63, 21, 14542, 309, 761, 30, 3824, 1133, 5014, 63, 5414, 63, 20, 65, 6362, 19109, 701, 12, 1726, 63, 20, 5717, 63, 21, 13563, 33, 1726, 63, 21, 65, 364, 21247, 373, 297, 1180, 316, 365, 18, 27617, 1100, 933, 18, 2452, 13332, 3824, 33, 2890, 18, 27617, 1100, 933, 63, 27617, 373, 297, 1180, 65, 679, 33, 5414, 18, 1615, 12, 4415, 27921, 21, 364, 770, 316, 1048, 12, 20, 16, 409, 4672, 309, 3824, 18, 723, 12, 1615, 13, 18920, 3076, 4278, 15153, 33, 5414, 18, 4099, 71, 588, 12, 1615, 11189, 30737, 7385, 6134, 309, 15153, 30, 23488, 273, 3824, 18, 4099, 71, 588, 12, 1615, 16, 296, 1925, 6134, 871, 273, 875, 309, 3824, 1133, 5014, 18, 5332, 67, 856, 12, 27617, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 653, 15863, 12, 2890, 4672, 315, 1891, 326, 498, 15863, 1839, 2898, 854, 3550, 6, 468, 11782, 628, 642, 6353, 18, 2074, 365, 18, 10497, 18, 1886, 67, 856, 12537, 33, 20390, 3976, 18, 967, 3935, 653, 694, 1435, 365, 18, 9010, 67, 15863, 1435, 364, 2710, 461, 316, 365, 18, 588, 67, 10005, 67, 6447, 67, 1973, 13332, 498, 12537, 273, 12088, 3976, 18, 967, 3625, 10497, 12, 6447, 461, 13, 309, 498, 12537, 30, 365, 18, 9010, 67, 15863, 12, 856, 12537, 13, 468, 2725, 3824, 15153, 264, 3062, 3824, 1133, 5014, 12938, 364, 3824, 316, 365, 18, 10497, 18, 5414, 12537, 30, 3824, 1133, 5014, 63, 5414, 63, 20, 13563, 12938, 364, 761, 316, 2 ]
auth = base64.b64encode(user_passwd.encode()).strip()
auth = base64.b64encode(user_passwd.encode()).decode('ascii')
def _open_generic_http(self, connection_factory, url, data): """Make an HTTP connection using connection_class.
5626eec0c2f62999967eff0ab6aa8ad329e8571b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/5626eec0c2f62999967eff0ab6aa8ad329e8571b/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 67, 13540, 67, 2505, 12, 2890, 16, 1459, 67, 6848, 16, 880, 16, 501, 4672, 3536, 6464, 392, 2239, 1459, 1450, 1459, 67, 1106, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 67, 13540, 67, 2505, 12, 2890, 16, 1459, 67, 6848, 16, 880, 16, 501, 4672, 3536, 6464, 392, 2239, 1459, 1450, 1459, 67, 1106, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
0125450000233d3e1b290821a4be9f6c7a827bd2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/0125450000233d3e1b290821a4be9f6c7a827bd2/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
entry_flags = ["Guard","Valid","Running"]
def reconfigure(self, sorted_r): """This function is called after a configuration change, to rebuild the RestrictionLists.""" plog("DEBUG", "Reconfigure") if self.use_all_exits: self.path_rstr = PathRestrictionList([UniqueRestriction()]) else: self.path_rstr = PathRestrictionList( [Subnet16Restriction(), UniqueRestriction()]) if self.use_guards: entry_flags = ["Guard", "Valid", "Running"] else: entry_flags = ["Valid", "Running"]
54b31d929cb8a89ba83fa73f0fd0357576405879 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/54b31d929cb8a89ba83fa73f0fd0357576405879/PathSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 14895, 12, 2890, 16, 3115, 67, 86, 4672, 3536, 2503, 445, 353, 2566, 1839, 279, 1664, 2549, 16, 358, 13419, 326, 1124, 6192, 7432, 12123, 293, 1330, 2932, 9394, 3113, 315, 426, 14895, 7923, 309, 365, 18, 1202, 67, 454, 67, 338, 1282, 30, 365, 18, 803, 67, 86, 701, 273, 2666, 11670, 682, 3816, 6303, 11670, 1435, 5717, 469, 30, 365, 18, 803, 67, 86, 701, 273, 2666, 11670, 682, 12, 306, 9577, 2313, 11670, 9334, 14584, 11670, 1435, 5717, 225, 309, 365, 18, 1202, 67, 6891, 14727, 30, 1241, 67, 7133, 273, 8247, 16709, 3113, 315, 1556, 3113, 315, 7051, 11929, 469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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 14895, 12, 2890, 16, 3115, 67, 86, 4672, 3536, 2503, 445, 353, 2566, 1839, 279, 1664, 2549, 16, 358, 13419, 326, 1124, 6192, 7432, 12123, 293, 1330, 2932, 9394, 3113, 315, 426, 14895, 7923, 309, 365, 18, 1202, 67, 454, 67, 338, 1282, 30, 365, 18, 803, 67, 86, 701, 273, 2666, 11670, 682, 3816, 6303, 11670, 1435, 5717, 469, 30, 365, 18, 803, 67, 86, 701, 273, 2666, 11670, 682, 12, 306, 9577, 2313, 11670, 9334, 14584, 11670, 1435, 5717, 225, 309, 365, 18, 1202, 67, 6891, 14727, 30, 1241, 67, 7133, 273, 8247, 16709, 3113, 315, 1556, 3113, 315, 7051, 11929, 469, 30, 1241, 67, 7133, 273, 8247, 1556, 3113, 315, 7051, 11929, 225, 2, -100 ]
return [node.getAllDisplayText()]
txt = node.getAllDisplayText().strip() if txt: return [txt]
def get_authors_from_template_args(template): args = get_template_args(template, expander)
6353c43e4cb7edc1fa52872b27d8f40a82b9f4de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/6353c43e4cb7edc1fa52872b27d8f40a82b9f4de/nuwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19368, 67, 2080, 67, 3202, 67, 1968, 12, 3202, 4672, 833, 273, 336, 67, 3202, 67, 1968, 12, 3202, 16, 4542, 264, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19368, 67, 2080, 67, 3202, 67, 1968, 12, 3202, 4672, 833, 273, 336, 67, 3202, 67, 1968, 12, 3202, 16, 4542, 264, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
extern int _QdRGB_Convert(PyObject *, RGBColorPtr *);
extern int _QdRGB_Convert(PyObject *, RGBColorPtr);
#ifdef USE_TOOLBOX_OBJECT_GLUE
f3eda93419ad9fc52724901c98f8fc5aafea7885 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f3eda93419ad9fc52724901c98f8fc5aafea7885/qdsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 14988, 67, 26263, 16876, 67, 9422, 67, 11261, 1821, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 14988, 67, 26263, 16876, 67, 9422, 67, 11261, 1821, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
buffers.append(data)
def readline(self, size=-1): data = self._rbuf if size < 0: # Read until \n or EOF, whichever comes first if self._rbufsize <= 1: # Speed up unbuffered case assert data == "" buffers = [] recv = self._sock.recv while data != "\n": data = recv(1) if not data: break buffers.append(data) return "".join(buffers) nl = data.find('\n') if nl >= 0: nl += 1 self._rbuf = data[nl:] return data[:nl] buffers = [] if data: buffers.append(data) self._rbuf = "" while True: data = self._sock.recv(self._rbufsize) if not data: break buffers.append(data) nl = data.find('\n') if nl >= 0: nl += 1 self._rbuf = data[nl:] buffers[-1] = data[:nl] break return "".join(buffers) else: # Read until size bytes or \n or EOF seen, whichever comes first nl = data.find('\n', 0, size) if nl >= 0: nl += 1 self._rbuf = data[nl:] return data[:nl] buf_len = len(data) if buf_len >= size: self._rbuf = data[size:] return data[:size] buffers = [] if data: buffers.append(data) self._rbuf = "" while True: data = self._sock.recv(self._rbufsize) if not data: break buffers.append(data) left = size - buf_len nl = data.find('\n', 0, left) if nl >= 0: nl += 1 self._rbuf = data[nl:] buffers[-1] = data[:nl] break n = len(data) if n >= left: self._rbuf = data[left:] buffers[-1] = data[:left] break buf_len += n return "".join(buffers)
5203dbadc432c6f2260803a4064375469d5ec7b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/5203dbadc432c6f2260803a4064375469d5ec7b6/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 501, 273, 365, 6315, 86, 4385, 309, 963, 411, 374, 30, 468, 2720, 3180, 521, 82, 578, 6431, 16, 600, 335, 580, 502, 14535, 1122, 309, 365, 6315, 86, 4385, 1467, 1648, 404, 30, 468, 348, 5868, 731, 640, 26385, 648, 1815, 501, 422, 1408, 9664, 273, 5378, 10665, 273, 365, 6315, 15031, 18, 18334, 1323, 501, 480, 1548, 82, 6877, 501, 273, 10665, 12, 21, 13, 309, 486, 501, 30, 898, 327, 1408, 18, 5701, 12, 28101, 13, 7741, 273, 501, 18, 4720, 2668, 64, 82, 6134, 309, 7741, 1545, 374, 30, 7741, 1011, 404, 365, 6315, 86, 4385, 273, 501, 63, 14039, 26894, 327, 501, 10531, 14039, 65, 9664, 273, 5378, 309, 501, 30, 365, 6315, 86, 4385, 273, 1408, 1323, 1053, 30, 501, 273, 365, 6315, 15031, 18, 18334, 12, 2890, 6315, 86, 4385, 1467, 13, 309, 486, 501, 30, 898, 7741, 273, 501, 18, 4720, 2668, 64, 82, 6134, 309, 7741, 1545, 374, 30, 7741, 1011, 404, 365, 6315, 86, 4385, 273, 501, 63, 14039, 26894, 9664, 18919, 21, 65, 273, 501, 10531, 14039, 65, 898, 327, 1408, 18, 5701, 12, 28101, 13, 469, 30, 468, 2720, 3180, 963, 1731, 578, 521, 82, 578, 6431, 5881, 16, 600, 335, 580, 502, 14535, 1122, 7741, 273, 501, 18, 4720, 2668, 64, 82, 2187, 374, 16, 963, 13, 309, 7741, 1545, 374, 30, 7741, 1011, 404, 365, 6315, 86, 4385, 273, 501, 63, 14039, 26894, 327, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 501, 273, 365, 6315, 86, 4385, 309, 963, 411, 374, 30, 468, 2720, 3180, 521, 82, 578, 6431, 16, 600, 335, 580, 502, 14535, 1122, 309, 365, 6315, 86, 4385, 1467, 1648, 404, 30, 468, 348, 5868, 731, 640, 26385, 648, 1815, 501, 422, 1408, 9664, 273, 5378, 10665, 273, 365, 6315, 15031, 18, 18334, 1323, 501, 480, 1548, 82, 6877, 501, 273, 10665, 12, 21, 13, 309, 486, 501, 30, 898, 327, 1408, 18, 5701, 12, 28101, 13, 7741, 273, 501, 18, 4720, 2668, 64, 82, 6134, 309, 7741, 1545, 374, 30, 7741, 1011, 404, 365, 6315, 86, 4385, 273, 501, 63, 14039, 26894, 327, 501, 10531, 14039, 65, 2 ]
it is a dictionary with the data as an ndarray in the ['data'] component. image2 : {dictionary}
image1_mat : {nd_array} image1_mat is the source image MAT image2 : {nd_array}
def python_coreg(image1, image2, imdata, ftype=1, smimage=0, lite=0, smhist=0, method='nmi', opt_method='powell'): """ parm_vector = python_coreg(image1, image2, imdata, ftype=1, smimage=0, lite=0, smhist=0, method='nmi', opt_method='powell'): takes two images and the image data descriptor (imdata) and determines the optimal alignment of the two images (measured by mutual information or cross correlation) using optimization search of 3 angle and 3 translation parameters. The optimization uses either the Powell or Conjugate Gradient methods in the scipy optimization package. The optimal parameter is returned. Parameters ---------- image1 : {dictionary} image1 is the source image to be remapped during the registration. it is a dictionary with the data as an ndarray in the ['data'] component. image2 : {dictionary} image2 is the reference image that image1 gets mapped to. imdata : {dictionary} image sampling and optimization information. ftype : {0, 1}, optional flag for type of low pass filter. 0 is Gauss-Spline 1 is pure Gauss. Sigma determined from volume sampling info. smimage : {0, 1}, optional flag for volume 3D low pass filtering of image 2. 0 for no filter, 1 for do filter. lite : {0, 1}, optional lite of 1 is to jitter both images during resampling. 0 is to not jitter. jittering is for non-aliased volumes. smhist: {0, 1}, optional flag for joint histogram low pass filtering. 0 for no filter, 1 for do filter. method: {'nmi', 'mi', 'ncc', 'ecc'}, optional flag for type of registration metric. nmi is normalized mutual information; mi is mutual information; ecc is entropy cross correlation; ncc is normalized cross correlation. opt_method: {'powell', 'hybrid'}, optional registration is two pass. Pass 1 is low res to get close to alignment and pass 2 starts at the pass 1 optimal alignment. In powell pass 1 and 2 are powell, in hybrid pass 2 is conjugate gradient. Returns ------- parm_vector : {nd_array} this is the optimal alignment (6-dim) array with 3 angles and 3 translations. Examples -------- >>> import numpy as NP >>> import _registration as reg >>> image1, image2, imdata = reg.demo_MRI_volume_align() >>> parm_vector = python_coreg(image1, image2, imdata) """ start = time.time() # smooth of the images if smimage: image_F_xyz2 = filter_image_3D(image2['data'], image2['fwhm'], ftype) image2['data'] = image_F_xyz2 parm_vector = multires_registration(image1, image2, imdata, lite, smhist, method, opt_method) stop = time.time() print 'Total Optimizer Time is ', (stop-start) return parm_vector
a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5790, 67, 3644, 75, 12, 2730, 21, 16, 1316, 22, 16, 709, 892, 16, 21219, 33, 21, 16, 3029, 2730, 33, 20, 16, 328, 1137, 33, 20, 16, 3029, 11488, 33, 20, 16, 707, 2218, 82, 9197, 2187, 2153, 67, 2039, 2218, 23509, 1165, 11, 4672, 3536, 19924, 67, 7737, 273, 5790, 67, 3644, 75, 12, 2730, 21, 16, 1316, 22, 16, 709, 892, 16, 21219, 33, 21, 16, 3029, 2730, 33, 20, 16, 328, 1137, 33, 20, 16, 3029, 11488, 33, 20, 16, 707, 2218, 82, 9197, 2187, 2153, 67, 2039, 2218, 23509, 1165, 11, 4672, 225, 5530, 2795, 4602, 471, 326, 1316, 501, 4950, 261, 381, 892, 13, 471, 12949, 326, 16413, 8710, 434, 326, 2795, 4602, 261, 21992, 2862, 635, 4318, 1462, 1779, 578, 6828, 12603, 13, 1450, 14850, 1623, 434, 890, 5291, 471, 890, 4794, 1472, 18, 1021, 14850, 4692, 3344, 326, 28509, 1165, 578, 735, 78, 31529, 25846, 2590, 316, 326, 10966, 14850, 2181, 18, 1021, 16413, 1569, 353, 2106, 18, 225, 7012, 12181, 1316, 21, 294, 288, 15556, 97, 1316, 21, 353, 326, 1084, 1316, 358, 506, 21674, 1845, 4982, 326, 7914, 18, 1316, 21, 67, 7373, 294, 288, 4880, 67, 1126, 97, 1316, 21, 67, 7373, 353, 326, 1084, 1316, 490, 789, 1316, 22, 294, 288, 4880, 67, 1126, 97, 1316, 22, 353, 326, 2114, 1316, 716, 1316, 21, 5571, 5525, 358, 18, 709, 892, 294, 288, 15556, 97, 1316, 11558, 471, 14850, 1779, 18, 21219, 294, 288, 20, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5790, 67, 3644, 75, 12, 2730, 21, 16, 1316, 22, 16, 709, 892, 16, 21219, 33, 21, 16, 3029, 2730, 33, 20, 16, 328, 1137, 33, 20, 16, 3029, 11488, 33, 20, 16, 707, 2218, 82, 9197, 2187, 2153, 67, 2039, 2218, 23509, 1165, 11, 4672, 3536, 19924, 67, 7737, 273, 5790, 67, 3644, 75, 12, 2730, 21, 16, 1316, 22, 16, 709, 892, 16, 21219, 33, 21, 16, 3029, 2730, 33, 20, 16, 328, 1137, 33, 20, 16, 3029, 11488, 33, 20, 16, 707, 2218, 82, 9197, 2187, 2153, 67, 2039, 2218, 23509, 1165, 11, 4672, 225, 5530, 2795, 4602, 471, 326, 1316, 501, 4950, 261, 381, 892, 13, 471, 12949, 326, 16413, 8710, 434, 326, 2795, 2 ]
start_pre = end_pre = '<programlisting>', '</programlisting>' start_div_note, end_div_note = '<note>', '</note>' start_li, end_li = '<listitem>', '</listitem>'
start_pre, end_pre = '<programlisting>', '</programlisting>' start_div_note, end_div_note = '<note><para>', '</para></note>' start_li, end_li = '<listitem><para>', '</para></listitem>'
def visitNode_a_name(self, node): self.visitNodeDefault(node)
3cf61b2d33db96a9e4660ec1551bbe58779db763 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3cf61b2d33db96a9e4660ec1551bbe58779db763/docbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 907, 67, 69, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 907, 67, 69, 67, 529, 12, 2890, 16, 756, 4672, 365, 18, 11658, 907, 1868, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', string='Customer'),
'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', store=True, string='Customer'),
def _number_packages(self, cr, uid, ids, field_name, arg, context=None): if context is None: context = {} res = {} for line in self.browse(cr, uid, ids, context=context): try: res[line.id] = int((line.product_uom_qty+line.product_packaging.qty-0.0001) / line.product_packaging.qty) except: res[line.id] = 1 return res
ca709f6ce807b488b0b1def5505433b4333651c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ca709f6ce807b488b0b1def5505433b4333651c4/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2696, 67, 10308, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 16, 1501, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 400, 273, 2618, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 775, 30, 400, 63, 1369, 18, 350, 65, 273, 509, 12443, 1369, 18, 5896, 67, 89, 362, 67, 85, 4098, 15, 1369, 18, 5896, 67, 2920, 5755, 18, 85, 4098, 17, 20, 18, 13304, 13, 342, 980, 18, 5896, 67, 2920, 5755, 18, 85, 4098, 13, 1335, 30, 400, 63, 1369, 18, 350, 65, 273, 404, 327, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2696, 67, 10308, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 16, 1501, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 400, 273, 2618, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 775, 30, 400, 63, 1369, 18, 350, 65, 273, 509, 12443, 1369, 18, 5896, 67, 89, 362, 67, 85, 4098, 15, 1369, 18, 5896, 67, 2920, 5755, 18, 85, 4098, 17, 20, 18, 13304, 13, 342, 980, 18, 5896, 67, 2920, 5755, 18, 85, 4098, 13, 1335, 30, 400, 63, 1369, 18, 350, 65, 273, 404, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
history = [""]
first_line = True history = []
def main(self): i = 0 line = ""
35d3a1bc061b83350bbe289c5c0bb8ffeb9b9674 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11578/35d3a1bc061b83350bbe289c5c0bb8ffeb9b9674/repl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 277, 273, 374, 980, 273, 1408, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 277, 273, 374, 980, 273, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logging.error("Requested detach while detached")
logging.warning("drbd%d: requested detach while detached", self.minor)
def RemoveChildren(self, devices): """Detach the drbd device from local storage.
82463074c0c011a83cf2239affbdb44cb2940801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/82463074c0c011a83cf2239affbdb44cb2940801/bdev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3581, 4212, 12, 2890, 16, 7166, 4672, 3536, 17650, 326, 5081, 16410, 2346, 628, 1191, 2502, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3581, 4212, 12, 2890, 16, 7166, 4672, 3536, 17650, 326, 5081, 16410, 2346, 628, 1191, 2502, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\
editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThis( fileOpenText ) #### Save File #### fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)</b></p><br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) ############################################## # Edit Toolbar ############################################## #### Make Checkpoint ### editMakeCheckpointText = "<u><b>Make Checkpoint</b></u>"\ "<p><img source=\"editMakeCheckpoint\"><br> "\ "Make Undo checkpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editMakeCheckpoint", self.editMakeCheckpointAction.iconSet().pixmap() ) self.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) #### Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = "<u><b>Automatic Checkpointing</b></u>"\ "<p>Enables/Disables <b>Automatic Checkpointing</b>. When enabled, the program "\ "maintains the Undo stack automatically. When disabled, the user is required to "\ "manually create Undo checkpoints using the <b>Make Checkpoint</b> button: </p>"\ "<p><img source=\"editMakeCheckpoint\"></p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. By disabling "\ "Automatic Checkpointing, the program will run faster.</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints manually when "\ "Automatic Checkpointing is disabled.</i></b>"\ "</p>" self.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) #### Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" self.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) #### Undo #### editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) self.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link #### Redo #### import platform if platform.is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s</b></p><br> "\ "<p><img source=\"editRedo\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) self.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link #### Cut #### editCutText = "<u><b>Cut</b></u> (Ctrl + X)</b></p><br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) #### Copy #### editCopyText = "<u><b>Copy</b></u> (Ctrl + C)</b></p><br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) #### Paste #### editPasteText = "<u><b>Paste</b></u> (Ctrl + V)</b></p><br> "\ "<p><img source=\"editPaste\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) #### Delete #### editDeleteText = "<u><b>Delete</b></u> (DEL)</b></p><br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) ############################################## # View Toolbar ############################################## #### Home View #### setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) #### Fit to Window #### setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) #### Recenter #### setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) #### Zoom Tool #### setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) #### Pan Tool #### setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) #### Rotate Tool #### setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) #### Orthographic Projection #### setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) #### Perspective Projection #### setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) #### Normal To #### setViewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) #### Parallel To #### setViewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) #### Save Named View #### saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"saveNamedView\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "saveNamedView", self.saveNamedViewAction.iconSet().pixmap() ) self.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) #### Front View #### setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) #### Back View #### setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) #### Top View #### setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) #### Bottom View #### setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) #### Left View #### setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) #### Right View #### setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) #### Rotate View 180 #### setViewOppositeActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) #### Rotate View +90 #### setViewPlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) #### Rotate View -90 #### setViewMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) ############################################## # Grids Toolbar ############################################## #### Surface 100 #### orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) #### Surface 110 #### orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) #### Surface 111 #### orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) ############################################## # Molecular Display toolbar ############################################## #### Display Default #### dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>General</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) #### Display Invisible #### dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) #### Display Lines #### dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) #### Display Tubes #### dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) #### Display Ball and Stick (was CPK) #### dispCPKActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) #### Display CPK (was VdW) #### [bruce extended and slightly corrected text, 060307] dispVdWActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispVdWAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispVdWAction", self.dispVdWAction.iconSet().pixmap() ) self.dispVdWAction.setWhatsThis(dispVdWActionText ) ############################################## # Select toolbar ############################################## #### Select All #### selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\ "<p><img source=\"selectAllAction\"><br> "\ "During <b>Select Atoms</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) #### Select None #### selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) #### Invert Selection #### selectInvertActionText = "<u><b>Invert Selection</b></u> <br> (Ctrl + Shift + I)</b></p><br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) #### Select Connected #### selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) #### Select Doubly #### selectDoublyActionText = "<u><b>Select Doubly</b></u></b></p><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection.</p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) #### Expand Selection #### selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)</b></p><br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) #### Contract Selection #### selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)</b></p><br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) ############################################## # Modify Toolbar ############################################## #### Minimize Selection #### modifyMinimizeSelActionText = "<u><b>Minimize Selection</b></u> (Ctrl + M)</b></p><br>"\ "<p><img source=\"modifyMinimizeSelAction\"><br> "\ "Arranges the atoms (<i>of the current selection</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeSelAction", self.modifyMinimizeSelAction.iconSet().pixmap() ) self.modifyMinimizeSelAction.setWhatsThis(modifyMinimizeSelActionText ) #### Minimize All #### modifyMinimizeAllActionText = "<u><b>Minimize All</b></u></p><br>"\ "<p><img source=\"modifyMinimizeAllAction\"><br> "\ "Arranges the atoms (<i>of the entire part</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeAllAction", self.modifyMinimizeAllAction.iconSet().pixmap() ) self.modifyMinimizeAllAction.setWhatsThis(modifyMinimizeAllActionText ) #### Hydrogenate #### modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> </b></p><br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) #### Dehydrogenate #### modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) #### Passivate #### modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)</b></p><br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) #### Stretch #### modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) #### Delete Bonds #### modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) #### Separate #### modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) #### Merge Chunks #### modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) #### Invert Chunks #### modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) #### Align to Common Axis #### modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) ############################################## # Tools Toolbar ############################################## #### Select Chunks #### toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) #### Select Atoms #### toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) #### Move Chunks #### toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) #### Build Atoms Tool #### toolsDepositAtomActionText = "<u><b>Build Tool</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Mode</b> allows you to build structures by depositing objects "\ "from the Molecular Modeling Kit, including atoms, clipboard objects and parts "\ "from the nanoENGINEER-1 Library.</p>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) #### Cookie Cutter #### toolsCookieCutActionText = "<u><b>Cookie Cutter Tool</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "Activates <b>Cookie Cutter</b> mode, allowing you to cut out 3-D shapes from a "\ "slab of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) #### Extrude Tool #### toolsExtrudeActionText = "<u><b>Extrude Tool</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) #### Fuse Chunks Tool #### toolsFuseChunksActionText = "<u><b>Fuse Chunks Tool</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two types of fusing are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints) "\ "of two or more chunks. Bonds are drawn (and undrawn) as chunks "\ "are moved together (and apart).<br><br>"\ "<b>Fuse Atoms</b> fuses overlapping atoms between chunks. Overlapping "\ "pairs of atoms are highlighted in green and blue to indicate which atoms "\ "will be fused.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) #### Fuse Atoms Tool #### toolsFuseAtomsActionText = "<u><b>Fuse Atoms Tool</b></u><!-- [[Feature:Fuse Atoms Mode]] (nim?) --><br>"\ "<p><img source=\" toolsFuseAtomsAction\"><br> "\ "<b>Fuse Atoms</b> fuses the overlapping atoms between two or more chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseAtomsAction", self. toolsFuseAtomsAction.iconSet().pixmap() ) self.toolsFuseAtomsAction.setWhatsThis( toolsFuseAtomsActionText ) #### Movie Player #### simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) #### Simulator #### simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) #### Plot Tool #### simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) ############################################## # Dashboard Buttons ############################################## #### Done #### toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) #### Cancel #### toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) #### Back up #### toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) #### Start Over #### toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) #### Add Layers #### ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) ############################################## # Jigs ############################################## #### Anchor #### jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches a <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Select Atoms</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) #### Rotary Motor #### jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) #### Linear Motor #### jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) #### Thermostat #### jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) #### Thermometer #### jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) #### ESP Image #### jigsESPImageActionText = "<u><b>ESP Image</b></u></b></p><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) #### Atom Set #### jigsAtomSetActionText = "<u><b>Atom Set</b></u></b></p><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Select Atoms</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) #### Measure Distance #### jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Select Atoms</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) #### Measure Angle #### jigsAngleActionText = "<u><b>Measure Angle Jig</b></u></b></p><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Select Atoms</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) #### Measure Dihedral #### jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Select Atoms</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) #### GAMESS Jig #### jigsGamessActionText = "<u><b>GAMESS Jig</b></u></b></p><br>"\ "<p><img source=\"jigsGamessAction\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Select Atoms</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGamessAction", self.jigsGamessAction.iconSet().pixmap() ) self.jigsGamessAction.setWhatsThis(jigsGamessActionText ) #### Grid Plane Jig #### jigsGridPlaneActionText = "<u><b>Grid Plane</b></u></b></p><br>"\ "<p><img source=\"jigsGridPlaneAction\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGridPlaneAction", self.jigsGridPlaneAction.iconSet().pixmap() ) self.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) ############################################## # Display ############################################## #### Display Object Color #### dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) #### Display Background Color #### dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) ############################################## # Help Toolbar ############################################## #### What's This #### helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) ############################################## # Datum Display Toolbar ############################################## #### Display Trihedron #### dispTrihedronText = "<u><b>Display Trihedron</b></u><br>"\ "<p><img source=\"dispTrihedron\"><br> "\ "Toggles the trihedron on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTrihedron", self.dispTrihedronAction.iconSet().pixmap() ) self.dispTrihedronAction.setWhatsThis(dispTrihedronText ) #### Display Csys #### dispCsysText = "<u><b>Display Csys Axis</b></u><br>"\ "<p><img source=\"dispCsys\"><br> "\ "Toggles the coordinate system axis on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCsys", self.dispCsysAction.iconSet().pixmap() ) self.dispCsysAction.setWhatsThis(dispCsysText ) #### Display Datum Lines #### dispDatumLinesText = "<u><b>Display Datum Lines</b></u><br>"\ "<p><img source=\"dispDatumLines\"><br> "\ "Toggles Datum Lines on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumLines", self.dispDatumLinesAction.iconSet().pixmap() ) self.dispDatumLinesAction.setWhatsThis(dispDatumLinesText ) #### Display Datum Planes #### dispDatumPlanesText = "<u><b>Display Datum Planes</b></u><br>"\ "<p><img source=\"dispDatumPlanes\"><br> "\ "Toggles Datum Planes on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumPlanes", self.dispDatumPlanesAction.iconSet().pixmap() ) self.dispDatumPlanesAction.setWhatsThis(dispDatumPlanesText ) #### Display Grid #### dispGridText = "<u><b>Display 3-D Grid</b></u><br>"\ "<p><img source=\"dispGrid\"><br> "\ "Toggles the 3-D grid on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispGrid", self.dispGridAction.iconSet().pixmap() ) self.dispGridAction.setWhatsThis(dispGridText )
778480334357616b82303c863b630decc9748d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/778480334357616b82303c863b630decc9748d34/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 225, 11849, 7, 7074, 1387, 11849, 7, 225, 585, 4755, 1528, 273, 3532, 89, 4438, 70, 34, 4755, 1387, 1757, 70, 4695, 89, 34, 377, 261, 12418, 397, 348, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 2354, 836, 2412, 4438, 2848, 34, 1548, 315, 13370, 326, 783, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 2354, 836, 3113, 365, 18, 768, 4755, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 4755, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 4755, 1528, 262, 225, 19709, 26487, 7, 468, 15328, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2 ]
self.pointer = self.moving_pointer
event.window.set_pointer(self.moving_pointer)
def normal_left_down(self, event): self.event_state = "moving" self.pointer = self.moving_pointer self.offset_x = event.x - self.x self.offset_y = event.y - self.y return
df2d18e3eb4701500d2784f693373240ce254608 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13166/df2d18e3eb4701500d2784f693373240ce254608/basic_move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2212, 67, 4482, 67, 2378, 12, 2890, 16, 871, 4672, 365, 18, 2575, 67, 2019, 273, 315, 81, 13767, 6, 871, 18, 5668, 18, 542, 67, 10437, 12, 2890, 18, 81, 13767, 67, 10437, 13, 365, 18, 3348, 67, 92, 273, 871, 18, 92, 300, 365, 18, 92, 365, 18, 3348, 67, 93, 273, 871, 18, 93, 300, 365, 18, 93, 327, 2, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2212, 67, 4482, 67, 2378, 12, 2890, 16, 871, 4672, 365, 18, 2575, 67, 2019, 273, 315, 81, 13767, 6, 871, 18, 5668, 18, 542, 67, 10437, 12, 2890, 18, 81, 13767, 67, 10437, 13, 365, 18, 3348, 67, 92, 273, 871, 18, 92, 300, 365, 18, 92, 365, 18, 3348, 67, 93, 273, 871, 18, 93, 300, 365, 18, 93, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populate() mydb.close() return if args[0] == 'init': if len(args) > 1: raise CommandException mydb.admin() mydb.create() mydb.connect() mydb.populate() mydb.close() return if args[0] == 'clean': if len(args) > 1: raise CommandException mydb.connect() mydb.clean() return raise CommandException import db, info info.source = db.Database() info.source.host = options.host info.source.db = options.db info.source.passwd = options.passwd info.source.user = options.user info.source.connect() info.source.update_dict(globals()) system = info.source.__dict__[options.system] if type(options.get) is str: info.source.get = options.get if options.runs is None: runs = info.source.allRuns else: rx = re.compile(options.runs) runs = [] for run in info.source.allRuns: if rx.match(run.name): runs.append(run) info.display_run = runs[0].run if command == 'runs': user = None opts, args = getopts(args, '-u') if len(args): raise CommandException for o,a in opts: if o == '-u': user = a info.source.listRuns(user) return if command == 'stats': if len(args) == 0: info.source.listStats() elif len(args) == 1: info.source.listStats(args[0]) else: raise CommandException return if command == 'stat': if len(args) != 1: raise CommandException stats = info.source.getStat(args[0]) for stat in stats: if graph: graphdata(runs, stat.name, stat.name, stat) else: print stat.name printdata(runs, stat) return if command == 'bins': if len(args) == 0: info.source.listBins() elif len(args) == 1: info.source.listBins(args[0]) else: raise CommandException return if command == 'formulas': if len(args) == 0: info.source.listFormulas() elif len(args) == 1: info.source.listFormulas(args[0]) else: raise CommandException return if command == 'samples': if len(args): raise CommandException info.source.listTicks(runs) return if len(args): raise CommandException if command == 'usertime': import copy kernel = copy.copy(system.full_cpu.numCycles) kernel.bins = 'kernel' user = copy.copy(system.full_cpu.numCycles) user.bins = 'user' if graph: graphdata(runs, 'usertime', 'User Fraction', user / system.full_cpu.numCycles) else: printdata(runs, user / system.full_cpu.numCycles) return if command == 'ticks': if binned: print 'kernel ticks' system.full_cpu.numCycles.bins = 'kernel' printdata(runs, system.full_cpu.numCycles) print 'idle ticks' system.full_cpu.numCycles.bins = 'idle' printdata(runs, system.full_cpu.numCycles) print 'user ticks' system.full_cpu.numCycles.bins = 'user' printdata(runs, system.full_cpu.numCycles) print 'total ticks' system.full_cpu.numCycles.bins = None printdata(runs, system.full_cpu.numCycles) return if command == 'packets': packets = system.tsunami.nsgige.rxPackets if graph: graphdata(runs, 'packets', 'Packets', packets) else: printdata(runs, packets) return if command == 'ppt' or command == 'tpp': ppt = system.tsunami.nsgige.rxPackets / sim_ticks printdata(runs, ppt, command == 'tpp') return if command == 'pps': pps = system.tsunami.nsgige.rxPackets / sim_seconds if graph: graphdata(runs, 'pps', 'Packets/s', pps) else: printdata(runs, pps) return if command == 'bpt' or command == 'tpb': bytes = system.tsunami.nsgige.rxBytes + system.tsunami.nsgige.txBytes bpt = bytes / sim_ticks * 8 if graph: graphdata(runs, 'bpt', 'bps / Hz', bpt) else: printdata(runs, bpt, command == 'tpb') return if command == 'bptb' or command == 'tpbb': bytes = system.tsunami.nsgige.rxBytes + system.tsunami.nsgige.txBytes print 'kernel stats' bytes.bins = 'kernel' printdata(runs, bytes / ticks) print 'idle stats' bytes.bins = 'idle' printdata(runs, bytes / ticks) print 'user stats' bytes.bins = 'user' printdata(runs, bytes / ticks) return if command == 'bytes': stat = system.tsunami.nsgige.rxBytes + system.tsunami.nsgige.txBytes if binned: print '%s kernel stats' % stat.name stat.bins = 'kernel' printdata(runs, stat) print '%s idle stats' % stat.name stat.bins = 'idle' printdata(runs, stat) print '%s user stats' % stat.name stat.bins = 'user' printdata(runs, stat) print '%s total stats' % stat.name stat.bins = None printdata(runs, stat) return if command == 'rxbps': gbps = system.tsunami.nsgige.rxBandwidth / 1e9 if graph: graphdata(runs, 'rxbps', 'Bandwidth (Gbps)', gbps) else: printdata(runs, gbps) return if command == 'txbps': gbps = system.tsunami.nsgige.txBandwidth / 1e9 if graph: graphdata(runs, 'txbps', 'Bandwidth (Gbps)', gbps) else: printdata(runs, gbps) return if command == 'bps': rxbps = system.tsunami.nsgige.rxBandwidth txbps = system.tsunami.nsgige.txBandwidth gbps = (rxbps + txbps) / 1e9 if graph: graphdata(runs, 'bps', 'Bandwidth (Gbps)', gbps) else: printdata(runs, gbps) return if command == 'misses': stat = system.L3.overall_mshr_misses if binned: print '%s kernel stats' % stat.name stat.bins = 'kernel' printdata(runs, stat) print '%s idle stats' % stat.name stat.bins = 'idle' printdata(runs, stat) print '%s user stats' % stat.name stat.bins = 'user' printdata(runs, stat) print '%s total stats' % stat.name stat.bins = None if graph: graphdata(runs, 'misses', 'Overall MSHR Misses', stat) else: printdata(runs, stat) return if command == 'mpkb': misses = system.L3.overall_mshr_misses rxbytes = system.tsunami.nsgige.rxBytes txbytes = system.tsunami.nsgige.txBytes if binned: print 'mpkb kernel stats' misses.bins = 'kernel' mpkb = misses / ((rxbytes + txbytes) / 1024) printdata(runs, mpkb) print 'mpkb idle stats' misses.bins = 'idle' mpkb = misses / ((rxbytes + txbytes) / 1024) printdata(runs, mpkb) print 'mpkb user stats' misses.bins = 'user' mpkb = misses / ((rxbytes + txbytes) / 1024) printdata(runs, mpkb) print 'mpkb total stats' mpkb = misses / ((rxbytes + txbytes) / 1024) misses.bins = None if graph: graphdata(runs, 'mpkb', 'Misses / KB', mpkb) else: printdata(runs, mpkb) return if command == 'execute': printdata(runs, system.full_cpu.ISSUE__count) return if command == 'commit': printdata(runs, system.full_cpu.COM__count) return if command == 'fetch': printdata(runs, system.full_cpu.FETCH__count) return if command == 'rxbpp': bpp = system.tsunami.nsgige.rxBytes / system.tsunami.nsgige.rxPackets printdata(run, 8 * bpp) return if command == 'txbpp': bpp = system.tsunami.nsgige.txBytes / system.tsunami.nsgige.txPackets printdata(run, 8 * bpp) return raise CommandException
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4364, 12, 2116, 16, 1296, 16, 833, 4672, 309, 1296, 422, 296, 6231, 4278, 309, 562, 12, 1968, 13, 422, 374, 30, 1002, 3498, 503, 225, 1930, 1319, 2738, 3399, 1966, 273, 1319, 2738, 18, 12062, 2290, 12, 2116, 13, 225, 309, 833, 63, 20, 65, 422, 296, 7285, 4278, 309, 562, 12, 1968, 13, 405, 576, 30, 1002, 3498, 503, 3399, 1966, 18, 3666, 1435, 3399, 1966, 18, 7285, 1435, 309, 562, 12, 1968, 13, 422, 576, 471, 833, 63, 21, 65, 422, 296, 2738, 4278, 3399, 1966, 18, 2640, 1435, 3399, 1966, 18, 3612, 1435, 3399, 1966, 18, 19936, 1435, 3399, 1966, 18, 4412, 1435, 327, 225, 309, 833, 63, 20, 65, 422, 296, 2738, 4278, 309, 562, 12, 1968, 13, 405, 404, 30, 1002, 3498, 503, 3399, 1966, 18, 3666, 1435, 3399, 1966, 18, 2640, 1435, 3399, 1966, 18, 3612, 1435, 3399, 1966, 18, 19936, 1435, 3399, 1966, 18, 4412, 1435, 327, 225, 309, 833, 63, 20, 65, 422, 296, 6200, 4278, 309, 562, 12, 1968, 13, 405, 404, 30, 1002, 3498, 503, 3399, 1966, 18, 3612, 1435, 3399, 1966, 18, 6200, 1435, 327, 225, 1002, 3498, 503, 225, 1930, 1319, 16, 1123, 1123, 18, 3168, 273, 1319, 18, 4254, 1435, 1123, 18, 3168, 18, 2564, 273, 702, 18, 2564, 1123, 18, 3168, 18, 1966, 273, 702, 18, 1966, 1123, 18, 3168, 18, 24002, 273, 702, 18, 24002, 1123, 18, 3168, 18, 1355, 273, 702, 18, 1355, 1123, 18, 3168, 18, 3612, 1435, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4364, 12, 2116, 16, 1296, 16, 833, 4672, 309, 1296, 422, 296, 6231, 4278, 309, 562, 12, 1968, 13, 422, 374, 30, 1002, 3498, 503, 225, 1930, 1319, 2738, 3399, 1966, 273, 1319, 2738, 18, 12062, 2290, 12, 2116, 13, 225, 309, 833, 63, 20, 65, 422, 296, 7285, 4278, 309, 562, 12, 1968, 13, 405, 576, 30, 1002, 3498, 503, 3399, 1966, 18, 3666, 1435, 3399, 1966, 18, 7285, 1435, 309, 562, 12, 1968, 13, 422, 576, 471, 833, 63, 21, 65, 422, 296, 2738, 4278, 3399, 1966, 18, 2640, 1435, 3399, 1966, 18, 3612, 1435, 3399, 1966, 18, 19936, 1435, 3399, 1966, 18, 4412, 1435, 327, 225, 309, 833, 63, 20, 65, 422, 296, 2738, 4278, 2 ]
'''
"""
def editCSVAction(self): ''' Performs an edit of all of a class' items in one go.
f11907437836b035b89a935141d5777def9d1278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f11907437836b035b89a935141d5777def9d1278/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 16570, 1803, 12, 2890, 4672, 3536, 27391, 392, 3874, 434, 777, 434, 279, 667, 11, 1516, 316, 1245, 1960, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 16570, 1803, 12, 2890, 4672, 3536, 27391, 392, 3874, 434, 777, 434, 279, 667, 11, 1516, 316, 1245, 1960, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, _subtype='mixed', boundary=None, *_subparts, **_params):
def __init__(self, _subtype='mixed', boundary=None, _subparts=None, **_params):
def __init__(self, _subtype='mixed', boundary=None, *_subparts, **_params): """Creates a multipart/* type message.
b8c24f675337403d66d32fc07b1cd53b7a1814f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b8c24f675337403d66d32fc07b1cd53b7a1814f0/MIMEMultipart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 389, 21974, 2218, 19562, 2187, 7679, 33, 7036, 16, 389, 1717, 6019, 33, 7036, 16, 2826, 67, 2010, 4672, 3536, 2729, 279, 10263, 20308, 618, 883, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_cleanup_stale_tokens(self.request)
self._cleanup_stale_tokens(self.request)
def xmlrpc_getAuthToken(self, username, password, *args): """ Returns a token which can be used for authentication in other XMLRPC calls. If the token is empty, the username or the password were wrong. """
ea29654602cc9815b3dc67cf6d4a18eb68b702d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/ea29654602cc9815b3dc67cf6d4a18eb68b702d8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31811, 67, 588, 28967, 12, 2890, 16, 2718, 16, 2201, 16, 380, 1968, 4672, 3536, 2860, 279, 1147, 1492, 848, 506, 1399, 364, 5107, 316, 1308, 3167, 8087, 4097, 18, 971, 326, 1147, 353, 1008, 16, 326, 2718, 578, 326, 2201, 4591, 7194, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31811, 67, 588, 28967, 12, 2890, 16, 2718, 16, 2201, 16, 380, 1968, 4672, 3536, 2860, 279, 1147, 1492, 848, 506, 1399, 364, 5107, 316, 1308, 3167, 8087, 4097, 18, 971, 326, 1147, 353, 1008, 16, 326, 2718, 578, 326, 2201, 4591, 7194, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rootfiles = container.find('rootfiles')
rootfiles = container.find(re.compile(r'rootfiles$', re.I))
def __init__(self, stream=None): if not stream: return soup = BeautifulStoneSoup(stream.read()) container = soup.find('container') if not container: raise OCFException("<container/> element missing") if container.get('version', None) != '1.0': raise EPubException("unsupported version of OCF") rootfiles = container.find('rootfiles') if not rootfiles: raise EPubException("<rootfiles/> element missing") for rootfile in rootfiles.findAll('rootfile'): try: self[rootfile['media-type']] = rootfile['full-path'] except KeyError: raise EPubException("<rootfile/> element malformed")
8050aac496e6cfb5cb90538900d8639c1ea91e45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/8050aac496e6cfb5cb90538900d8639c1ea91e45/epub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1407, 33, 7036, 4672, 309, 486, 1407, 30, 327, 15418, 273, 27358, 510, 476, 27069, 12, 3256, 18, 896, 10756, 1478, 273, 15418, 18, 4720, 2668, 3782, 6134, 309, 486, 1478, 30, 1002, 531, 8955, 503, 2932, 32, 3782, 21259, 930, 3315, 7923, 309, 1478, 18, 588, 2668, 1589, 2187, 599, 13, 480, 296, 21, 18, 20, 4278, 1002, 512, 9581, 503, 2932, 24666, 1177, 434, 531, 8955, 7923, 1365, 2354, 273, 1478, 18, 4720, 12, 266, 18, 11100, 12, 86, 11, 3085, 2354, 8, 2187, 283, 18, 45, 3719, 309, 486, 1365, 2354, 30, 1002, 512, 9581, 503, 2932, 32, 3085, 2354, 21259, 930, 3315, 7923, 364, 1365, 768, 316, 1365, 2354, 18, 4720, 1595, 2668, 3085, 768, 11, 4672, 775, 30, 365, 63, 3085, 768, 3292, 5829, 17, 723, 3546, 65, 273, 1365, 768, 3292, 2854, 17, 803, 3546, 1335, 4999, 30, 1002, 512, 9581, 503, 2932, 32, 3085, 768, 21259, 930, 17458, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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2738, 972, 12, 2890, 16, 1407, 33, 7036, 4672, 309, 486, 1407, 30, 327, 15418, 273, 27358, 510, 476, 27069, 12, 3256, 18, 896, 10756, 1478, 273, 15418, 18, 4720, 2668, 3782, 6134, 309, 486, 1478, 30, 1002, 531, 8955, 503, 2932, 32, 3782, 21259, 930, 3315, 7923, 309, 1478, 18, 588, 2668, 1589, 2187, 599, 13, 480, 296, 21, 18, 20, 4278, 1002, 512, 9581, 503, 2932, 24666, 1177, 434, 531, 8955, 7923, 1365, 2354, 273, 1478, 18, 4720, 12, 266, 18, 11100, 12, 86, 11, 3085, 2354, 8, 2187, 283, 18, 45, 3719, 309, 486, 1365, 2354, 30, 1002, 512, 9581, 503, 2932, 32, 3085, 2354, 21259, 930, 3315, 7923, 364, 1365, 768, 316, 1365, 2 ]