rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def on_window_configure(self, _widget, _event): width, height = self.window.get_size()
def on_window_configure(self, window, _event): if not window.props.visible: return width, height = window.get_size()
def on_window_configure(self, _widget, _event): width, height = self.window.get_size() if self.config.expanded: self.config.w, self.config.h = width, height else: self.config.w = width self.config.x, self.config.y = self.window.get_position() self.expander_ellipse_workaround()
b0b99b35bdaefb7821c419f18bec9f004375125d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/b0b99b35bdaefb7821c419f18bec9f004375125d/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5668, 67, 14895, 12, 2890, 16, 2742, 16, 389, 2575, 4672, 377, 309, 486, 2742, 18, 9693, 18, 8613, 30, 327, 225, 1835, 16, 2072, 273, 2742, 18, 588, 67, 1467, 1435, 309, 365, 18, 1425, 18, 17336, 30, 365, 18, 1425, 18, 91, 16, 365, 18, 1425, 18, 76, 273, 1835, 16, 2072, 469, 30, 365, 18, 1425, 18, 91, 273, 1835, 365, 18, 1425, 18, 92, 16, 365, 18, 1425, 18, 93, 273, 365, 18, 5668, 18, 588, 67, 3276, 1435, 365, 18, 12320, 264, 67, 292, 10472, 67, 1252, 12716, 1435, 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,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 1467, 1435, 309, 365, 18, 1425, 18, 17336, 30, 365, 18, 1425, 18, 91, 16, 365, 18, 1425, 18, 76, 273, 1835, 16, 2072, 469, 30, 365, 18, 1425, 18, 91, 273, 1835, 365, 18, 1425, 18, 92, 16, 365, 18, 1425, 18, 93, 273, 365, 18, 5668, 18, 588, 67, 3276, 1435, 365, 18, 12320, 264, 67, 292, 10472, 67, 1252, 12716, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
panelUp = pyPanelUp(splitter)
panel_up = upper_panel(splitter)
def __init__(self, parent, id, title="pyLoad"): wx.Frame.__init__(self,parent,id,title, size=(800,500)) appPath = dirname(abspath(__file__)) + sep
94c1c737c5455762bbea312f891856b5c0deb497 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/94c1c737c5455762bbea312f891856b5c0deb497/pyMainGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 350, 16, 2649, 16, 963, 28657, 17374, 16, 12483, 3719, 225, 28563, 273, 4283, 12, 5113, 803, 12, 972, 768, 972, 3719, 397, 5478, 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, 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 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 350, 16, 2649, 16, 963, 28657, 17374, 16, 12483, 3719, 225, 28563, 273, 4283, 12, 5113, 803, 12, 972, 768, 972, 3719, 397, 5478, 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 ]
def _cfg_string(self, prefix, print_descr=True):
def _cfg_string(self, prefix, print_desc=True):
def _cfg_string(self, prefix, print_descr=True): if not prefix.endswith(']'): prefix = prefix + self.name if hasattr(self.value, '_cfg_string'): return self.value._cfg_string(prefix, print_descr) descr = newline = '' if print_descr: descr = '# %s\n' % self.descr.encode(ENCODING, 'replace').\ replace('\n', '\n# ') newline = '\n' value = self.value if isinstance(self.value, unicode): # convert unicode to string value = self.value.encode(ENCODING, 'replace') if self.value == self.default: return '%s# %s = %s%s' % (descr, prefix, value, newline) return '%s%s = %s%s' % (descr, prefix, value, newline)
513f97ca83b44ea792b8e169cb28ed0b3e8c402e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/513f97ca83b44ea792b8e169cb28ed0b3e8c402e/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 1080, 12, 2890, 16, 1633, 16, 1172, 67, 5569, 33, 5510, 4672, 309, 486, 1633, 18, 5839, 1918, 2668, 3864, 4672, 1633, 273, 1633, 397, 365, 18, 529, 309, 3859, 12, 2890, 18, 1132, 16, 2070, 7066, 67, 1080, 11, 4672, 327, 365, 18, 1132, 6315, 7066, 67, 1080, 12, 3239, 16, 1172, 67, 28313, 13, 18426, 273, 9472, 273, 875, 309, 1172, 67, 28313, 30, 18426, 273, 2946, 738, 87, 64, 82, 11, 738, 365, 18, 28313, 18, 3015, 12, 14672, 16, 296, 2079, 16063, 64, 1453, 2668, 64, 82, 2187, 2337, 82, 7, 8624, 9472, 273, 2337, 82, 11, 460, 273, 365, 18, 1132, 309, 1549, 12, 2890, 18, 1132, 16, 5252, 4672, 468, 1765, 5252, 358, 533, 460, 273, 365, 18, 1132, 18, 3015, 12, 14672, 16, 296, 2079, 6134, 309, 365, 18, 1132, 422, 365, 18, 1886, 30, 327, 1995, 87, 7, 738, 87, 273, 738, 87, 9, 87, 11, 738, 261, 28313, 16, 1633, 16, 460, 16, 9472, 13, 327, 1995, 87, 9, 87, 273, 738, 87, 9, 87, 11, 738, 261, 28313, 16, 1633, 16, 460, 16, 9472, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 1080, 12, 2890, 16, 1633, 16, 1172, 67, 5569, 33, 5510, 4672, 309, 486, 1633, 18, 5839, 1918, 2668, 3864, 4672, 1633, 273, 1633, 397, 365, 18, 529, 309, 3859, 12, 2890, 18, 1132, 16, 2070, 7066, 67, 1080, 11, 4672, 327, 365, 18, 1132, 6315, 7066, 67, 1080, 12, 3239, 16, 1172, 67, 28313, 13, 18426, 273, 9472, 273, 875, 309, 1172, 67, 28313, 30, 18426, 273, 2946, 738, 87, 64, 82, 11, 738, 365, 18, 28313, 18, 3015, 12, 14672, 16, 296, 2079, 16063, 64, 1453, 2668, 64, 82, 2187, 2337, 82, 7, 8624, 9472, 273, 2337, 82, 11, 460, 273, 365, 18, 1132, 309, 1549, 12, 2890, 18, 1132, 16, 5252, 4672, 2 ]
excName = str(excClass)
excName = str(exception)
def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): """An extension of assertRaises, which also checks the exception message. We need this because we rely on exception messages when redirecting. """ try: callable(*args, **kwargs) except exception, msg: self.assertEqual(str(msg), message) else: if hasattr(excClass,'__name__'): excName = excClass.__name__ else: excName = str(excClass) raise self.failureException, excName
615ded3cb3db77c1ec25db75234fa0bd24d2e052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/615ded3cb3db77c1ec25db75234fa0bd24d2e052/test_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 12649, 6141, 1079, 12, 2890, 16, 1520, 16, 4140, 16, 883, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 979, 2710, 434, 1815, 12649, 6141, 16, 1492, 2546, 4271, 326, 1520, 883, 18, 1660, 1608, 333, 2724, 732, 21187, 603, 1520, 2743, 1347, 3136, 310, 18, 3536, 775, 30, 4140, 30857, 1968, 16, 2826, 4333, 13, 1335, 1520, 16, 1234, 30, 365, 18, 11231, 5812, 12, 701, 12, 3576, 3631, 883, 13, 469, 30, 309, 3859, 12, 10075, 797, 11189, 972, 529, 7250, 4672, 3533, 461, 273, 3533, 797, 16186, 529, 972, 469, 30, 3533, 461, 273, 609, 12, 4064, 13, 1002, 365, 18, 12251, 503, 16, 3533, 461, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 12649, 6141, 1079, 12, 2890, 16, 1520, 16, 4140, 16, 883, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 979, 2710, 434, 1815, 12649, 6141, 16, 1492, 2546, 4271, 326, 1520, 883, 18, 1660, 1608, 333, 2724, 732, 21187, 603, 1520, 2743, 1347, 3136, 310, 18, 3536, 775, 30, 4140, 30857, 1968, 16, 2826, 4333, 13, 1335, 1520, 16, 1234, 30, 365, 18, 11231, 5812, 12, 701, 12, 3576, 3631, 883, 13, 469, 30, 309, 3859, 12, 10075, 797, 11189, 972, 529, 7250, 4672, 3533, 461, 273, 3533, 797, 16186, 529, 972, 469, 30, 3533, 461, 273, 609, 12, 4064, 13, 1002, 365, 18, 12251, 503, 16, 3533, 461, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.trace += " +++++ %s added to %s\n" %(nid,str(p))
if DEBUG: self.trace += " +++++ %s added to %s\n" %(nid,str(p))
def __add_node(self,nid,paths=None): error = "Adding node %s to paths %s\n" %(nid,paths) self.trace += " "+error #we only add node that really need it. curdis = self.is_displayed(nid) newdis = self.__is_displayed(nid) #it should not be displayed, don't add it. if not newdis: return False if not paths: paths = self.__get_paths_for_node(nid) error += "%s got the paths %s\n" %(nid,paths) #We remove the paths that are already displayed if curdis: for pp in self.get_paths_for_node(nid): if pp in paths: paths.remove(pp) error += "path %s is already displayed. Not to add\n"%str(pp) self.trace += " we wont add path %s for %s\n" %(str(pp),nid) node_dic = self.cache_nodes[nid] else: #Not displayed, creating the node node_dic = {} node_dic['paths'] = [] node_dic['parents'] = [] node_dic['children'] = [] # childrens will add themselves afterward if self.cache_nodes.has_key(nid): raise Exception('%s was already a visible node when added' %nid) self.cache_nodes[nid] = node_dic #Now we add each path separately for p in paths: #check that the path is free other = self.get_node_for_path(p) to_readd = [] if other and other != nid: self.trace += " adding %s to path %s but occupied by %s\n"\ %(nid,str(p),other) to_readd = self.__next_nodes(other,p) to_readd.append([other,p]) for t in to_readd: self.__delete_node(t[0],[t[1]]) if p not in node_dic['paths']: #We do all the work only if the node doesn't already #has that path ! node_dic['paths'].append(p) if len(p) > 1: parent = self.get_node_for_path(p[:-1]) if not self.is_displayed(parent): #We should add a node to a non-existing parent break p_child = self.cache_nodes[parent]['children'] if parent not in node_dic['parents']: node_dic['parents'].append(parent) if nid not in p_child: p_child.append(nid)
3ea21cb81161e3d09b3e56c7f94d1f9b5e0adf83 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/3ea21cb81161e3d09b3e56c7f94d1f9b5e0adf83/filteredtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 67, 2159, 12, 2890, 16, 31030, 16, 4481, 33, 7036, 4672, 555, 273, 315, 13962, 756, 738, 87, 358, 2953, 738, 87, 64, 82, 6, 8975, 31030, 16, 4481, 13, 365, 18, 5129, 1011, 315, 1377, 13773, 1636, 468, 1814, 1338, 527, 756, 716, 8654, 1608, 518, 18, 662, 2251, 273, 365, 18, 291, 67, 5417, 329, 12, 31030, 13, 394, 2251, 273, 365, 16186, 291, 67, 5417, 329, 12, 31030, 13, 468, 305, 1410, 486, 506, 10453, 16, 2727, 1404, 527, 518, 18, 309, 486, 394, 2251, 30, 327, 1083, 309, 486, 2953, 30, 2953, 273, 365, 16186, 588, 67, 4481, 67, 1884, 67, 2159, 12, 31030, 13, 555, 1011, 2213, 87, 2363, 326, 2953, 738, 87, 64, 82, 6, 8975, 31030, 16, 4481, 13, 468, 3218, 1206, 326, 2953, 716, 854, 1818, 10453, 309, 662, 2251, 30, 364, 8228, 316, 365, 18, 588, 67, 4481, 67, 1884, 67, 2159, 12, 31030, 4672, 309, 8228, 316, 2953, 30, 2953, 18, 4479, 12, 11858, 13, 555, 1011, 315, 803, 738, 87, 353, 1818, 10453, 18, 2288, 358, 527, 64, 82, 28385, 701, 12, 11858, 13, 365, 18, 5129, 1011, 315, 565, 732, 341, 1580, 527, 589, 738, 87, 364, 738, 87, 64, 82, 6, 8975, 701, 12, 11858, 3631, 31030, 13, 756, 67, 15859, 273, 365, 18, 2493, 67, 4690, 63, 31030, 65, 469, 30, 468, 1248, 10453, 16, 4979, 326, 756, 756, 67, 15859, 273, 2618, 756, 67, 15859, 3292, 4481, 3546, 273, 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, 1289, 67, 2159, 12, 2890, 16, 31030, 16, 4481, 33, 7036, 4672, 555, 273, 315, 13962, 756, 738, 87, 358, 2953, 738, 87, 64, 82, 6, 8975, 31030, 16, 4481, 13, 365, 18, 5129, 1011, 315, 1377, 13773, 1636, 468, 1814, 1338, 527, 756, 716, 8654, 1608, 518, 18, 662, 2251, 273, 365, 18, 291, 67, 5417, 329, 12, 31030, 13, 394, 2251, 273, 365, 16186, 291, 67, 5417, 329, 12, 31030, 13, 468, 305, 1410, 486, 506, 10453, 16, 2727, 1404, 527, 518, 18, 309, 486, 394, 2251, 30, 327, 1083, 309, 486, 2953, 30, 2953, 273, 365, 16186, 588, 67, 4481, 67, 1884, 67, 2159, 12, 31030, 13, 555, 1011, 2213, 87, 2363, 326, 2953, 2 ]
return self.Header, self.Name, self.Comment, self.Exec, self.Icon, self.Type
return self.Header, self.Name, self.GenName, self.Exec, self.Icon, self.Type
def getDesktopFile(self): return self.Header, self.Name, self.Comment, self.Exec, self.Icon, self.Type
4fcbfbed60e511f85c58e074305411c99aa75ad7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7161/4fcbfbed60e511f85c58e074305411c99aa75ad7/genmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 281, 11869, 812, 12, 2890, 4672, 327, 365, 18, 1864, 16, 365, 18, 461, 16, 365, 18, 4469, 16, 365, 18, 1905, 16, 365, 18, 5554, 16, 365, 18, 559, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 281, 11869, 812, 12, 2890, 4672, 327, 365, 18, 1864, 16, 365, 18, 461, 16, 365, 18, 4469, 16, 365, 18, 1905, 16, 365, 18, 5554, 16, 365, 18, 559, 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 ]
(succeeded, send) = self.RemoveBouncingAddress(addr)
succeeded, send = self.RemoveBouncingAddress(addr) did = _('removed')
def HandleBouncingAddress(self, addr, msg): """Disable or remove addr according to bounce_action setting.""" if self.automatic_bounce_action == 0: return elif self.automatic_bounce_action == 1: # Only send if call works ok. (succeeded, send) = self.DisableBouncingAddress(addr) did = "disabled" elif self.automatic_bounce_action == 2: (succeeded, send) = self.DisableBouncingAddress(addr) did = "disabled" # Never send. send = 0 elif self.automatic_bounce_action == 3: (succeeded, send) = self.RemoveBouncingAddress(addr) # Always send. send = 1 did = "removed" if send: if succeeded != 1: negative=_("not ") else: negative="" recipient = self.GetAdminEmail() if addr in self.owner + [recipient]: # Whoops! This is a bounce of a bounce notice - do not # perpetuate the bounce loop! Log it prominently and be # satisfied with that. syslog("error", "%s: Bounce recipient loop" " encountered!\n\t%s\n\tBad admin recipient: %s" % (self.internal_name(), "(Ie, bounce notification addr, itself, bounces.)", addr)) return import mimetools boundary = mimetools.choose_boundary() # report about success but = '' if succeeded <> 1: but = 'BUT: %s' % succeeded # disabled? if did == 'disabled' and succeeded == 1: reenable = Utils.maketext( 'reenable.txt', {'admin_url': self.GetScriptURL('admin', absolute=1), }, lang=self.preferred_language) else: reenable = '' # the mail message text text = Utils.maketext( 'bounce.txt', {'boundary' : boundary, 'listname' : self.real_name, 'addr' : addr, 'negative' : negative, 'did' : did, 'but' : but, 'reenable' : reenable, 'owneraddr': mm_cfg.MAILMAN_OWNER, }, lang=self.preferred_language) # add this here so it doesn't get wrapped/filled # FIXME text = text + '\n\n--' + boundary + \ '\nContent-type: text/plain; charset=' + Utils.GetCharSet()
ddb4d86d1b32100ca8fe220c020da7ceda7a02c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/ddb4d86d1b32100ca8fe220c020da7ceda7a02c9/Bouncer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 38, 465, 2822, 1887, 12, 2890, 16, 3091, 16, 1234, 4672, 3536, 11879, 578, 1206, 3091, 4888, 358, 324, 8386, 67, 1128, 3637, 12123, 309, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 374, 30, 327, 1327, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 404, 30, 468, 5098, 1366, 309, 745, 6330, 1529, 18, 261, 87, 20983, 16, 1366, 13, 273, 365, 18, 11879, 38, 465, 2822, 1887, 12, 4793, 13, 5061, 273, 315, 9278, 6, 1327, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 576, 30, 261, 87, 20983, 16, 1366, 13, 273, 365, 18, 11879, 38, 465, 2822, 1887, 12, 4793, 13, 5061, 273, 315, 9278, 6, 468, 24496, 1366, 18, 1366, 273, 374, 1327, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 890, 30, 15784, 16, 1366, 273, 365, 18, 3288, 38, 465, 2822, 1887, 12, 4793, 13, 5061, 273, 389, 2668, 14923, 6134, 468, 14178, 1366, 18, 1366, 273, 404, 5061, 273, 315, 14923, 6, 309, 1366, 30, 309, 15784, 480, 404, 30, 6092, 33, 67, 2932, 902, 9369, 469, 30, 6092, 1546, 6, 8027, 273, 365, 18, 967, 4446, 4134, 1435, 309, 3091, 316, 365, 18, 8443, 397, 306, 20367, 14542, 468, 3497, 83, 4473, 5, 225, 1220, 353, 279, 324, 8386, 434, 279, 324, 8386, 11690, 300, 741, 486, 468, 1534, 6951, 89, 340, 326, 324, 8386, 2798, 5, 225, 1827, 518, 450, 1154, 23351, 471, 506, 468, 18958, 598, 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, 5004, 38, 465, 2822, 1887, 12, 2890, 16, 3091, 16, 1234, 4672, 3536, 11879, 578, 1206, 3091, 4888, 358, 324, 8386, 67, 1128, 3637, 12123, 309, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 374, 30, 327, 1327, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 404, 30, 468, 5098, 1366, 309, 745, 6330, 1529, 18, 261, 87, 20983, 16, 1366, 13, 273, 365, 18, 11879, 38, 465, 2822, 1887, 12, 4793, 13, 5061, 273, 315, 9278, 6, 1327, 365, 18, 5854, 4941, 67, 70, 8386, 67, 1128, 422, 576, 30, 261, 87, 20983, 16, 1366, 13, 273, 365, 18, 11879, 38, 465, 2822, 1887, 12, 4793, 13, 5061, 273, 315, 9278, 6, 468, 2 ]
memoryUnits[0] = '1'
memoryUnits[0] = '2**-10'
def getOvfMemory(virtualHardware, configId=None): """ Retrieves the maximum amount of memory (kB) to be allocated for the virtual machine from the Ovf file. @note: DSP0004 v2.5.0 outlines the Programmatic Unit forms for OVF. This pertains specifically to rasd:AllocationUnits, which accepts both the current and deprecated forms. New implementations should not use Unit Qualifiers as this form is deprecated. - PUnit form, as in "byte * 2^20" - PUnit form w/ Units Qualifier(deprecated), as in "MegaBytes" @param virtualHardware: Ovf VirtualSystem Node @type virtualHardware: DOM Element @param configId: configuration name @type configId: String @return: memory in kB @rtype: String """ memory = '' # TODO: needs to use bound:max, if it exists rasd = Ovf.getDict(virtualHardware, configId)['children'] for resource in rasd: if(resource.has_key('rasd:ResourceType') and resource['rasd:ResourceType'] == '4'): memoryQuantity = resource['rasd:VirtualQuantity'] memoryUnits = resource['rasd:AllocationUnits'] if(memoryUnits.startswith('byte') or memoryUnits.startswith('bit')): # Calculate PUnit numerical factor memoryUnits = memoryUnits.replace('^','**') # Determine PUnit Quantifier DMTF DSP0004, {byte, bit} memoryUnits = memoryUnits.split(' ', 1) quantifier = memoryUnits[0] if quantifier == 'byte': memoryUnits[0] = '1' elif quantifier == 'bit': memoryUnits[0] = '0.125' else: raise ValueError("Incompatible PUnit quantifier for memory.") memoryUnits = ' '.join(memoryUnits) memoryFactor = eval(memoryUnits) else: if memoryUnits.startswith('Kilo'): memoryFactor = 1024**0 elif memoryUnits.startswith('Mega'): memoryFactor = 1024**1 elif memoryUnits.startswith('Giga'): memoryFactor = 1024**2 else: raise ValueError("Incompatible PUnit quantifier for memory.") if memoryUnits.endswith('Bytes'): memoryFactor *= 1 elif memoryUnits.endswith('Bits'): memoryFactor *= 0.125 else: raise ValueError("Incompatible PUnit quantifier for memory.") warnings.warn("DSP0004 v2.5.0: use PUnit Qualifiers", DeprecationWarning) memory = str(int(memoryQuantity) * memoryFactor) return memory
9a3dfb5d70a0718a21504db41a86aad7ec160a32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/9a3dfb5d70a0718a21504db41a86aad7ec160a32/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17971, 90, 74, 6031, 12, 12384, 44, 14519, 16, 642, 548, 33, 7036, 4672, 3536, 20507, 326, 4207, 3844, 434, 3778, 261, 79, 38, 13, 358, 506, 11977, 364, 326, 5024, 5228, 628, 326, 531, 90, 74, 585, 18, 225, 632, 7652, 30, 463, 3118, 31262, 331, 22, 18, 25, 18, 20, 596, 3548, 326, 13586, 26500, 8380, 10138, 364, 531, 58, 42, 18, 1220, 24445, 4167, 21195, 358, 18306, 72, 30, 17353, 7537, 16, 1492, 8104, 3937, 326, 783, 471, 6849, 10138, 18, 1166, 16164, 1410, 486, 999, 8380, 15029, 3383, 487, 333, 646, 353, 6849, 18, 300, 453, 2802, 646, 16, 487, 316, 315, 7229, 380, 576, 66, 3462, 6, 300, 453, 2802, 646, 341, 19, 27845, 15029, 1251, 12, 14089, 3631, 487, 316, 315, 49, 11061, 2160, 6, 225, 632, 891, 5024, 44, 14519, 30, 531, 90, 74, 7269, 3163, 2029, 632, 723, 5024, 44, 14519, 30, 4703, 3010, 225, 632, 891, 642, 548, 30, 1664, 508, 632, 723, 642, 548, 30, 514, 225, 632, 2463, 30, 3778, 316, 417, 38, 632, 86, 723, 30, 514, 3536, 3778, 273, 875, 225, 468, 2660, 30, 4260, 358, 999, 2489, 30, 1896, 16, 309, 518, 1704, 18306, 72, 273, 531, 90, 74, 18, 588, 5014, 12, 12384, 44, 14519, 16, 642, 548, 13, 3292, 5906, 3546, 364, 1058, 316, 18306, 72, 30, 309, 12, 3146, 18, 5332, 67, 856, 2668, 21636, 72, 30, 15631, 6134, 471, 1058, 3292, 21636, 72, 30, 15631, 3546, 422, 296, 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, 17971, 90, 74, 6031, 12, 12384, 44, 14519, 16, 642, 548, 33, 7036, 4672, 3536, 20507, 326, 4207, 3844, 434, 3778, 261, 79, 38, 13, 358, 506, 11977, 364, 326, 5024, 5228, 628, 326, 531, 90, 74, 585, 18, 225, 632, 7652, 30, 463, 3118, 31262, 331, 22, 18, 25, 18, 20, 596, 3548, 326, 13586, 26500, 8380, 10138, 364, 531, 58, 42, 18, 1220, 24445, 4167, 21195, 358, 18306, 72, 30, 17353, 7537, 16, 1492, 8104, 3937, 326, 783, 471, 6849, 10138, 18, 1166, 16164, 1410, 486, 999, 8380, 15029, 3383, 487, 333, 646, 353, 6849, 18, 300, 453, 2802, 646, 16, 487, 316, 315, 7229, 380, 576, 66, 3462, 6, 300, 453, 2802, 646, 341, 19, 2 ]
- Unknown files: files marked with "?" by "hg status" - Empty directories: in fact Mercurial ignores directories unless they contain files under source control management
- Unknown files: files marked with "?" by "hg status" - Empty directories: in fact Mercurial ignores directories unless they contain files under source control management
def purge(ui, repo, *dirs, **opts): '''removes files not tracked by Mercurial Delete files not known to Mercurial. This is useful to test local and uncommitted changes in an otherwise-clean source tree. This means that purge will delete: - Unknown files: files marked with "?" by "hg status" - Empty directories: in fact Mercurial ignores directories unless they contain files under source control management But it will leave untouched: - Modified and unmodified tracked files - Ignored files (unless --all is specified) - New files added to the repository (with "hg add") If directories are given on the command line, only files in these directories are considered. Be careful with purge, as you could irreversibly delete some files you forgot to add to the repository. If you only want to print the list of files that this program would delete, use the --print option. ''' act = not opts['print'] eol = '\n' if opts['print0']: eol = '\0' act = False # --print0 implies --print def remove(remove_func, name): if act: try: remove_func(repo.wjoin(name)) except OSError: m = _('%s cannot be removed') % name if opts['abort_on_err']: raise util.Abort(m) ui.warn(_('warning: %s\n') % m) else: ui.write('%s%s' % (name, eol)) def removefile(path): try: os.remove(path) except OSError: # read-only files cannot be unlinked under Windows s = os.stat(path) if (s.st_mode & stat.S_IWRITE) != 0: raise os.chmod(path, stat.S_IMODE(s.st_mode) | stat.S_IWRITE) os.remove(path) directories = [] match = cmdutil.match(repo, dirs, opts) match.dir = directories.append status = repo.status(match=match, ignored=opts['all'], unknown=True) for f in sorted(status[4] + status[5]): ui.note(_('Removing file %s\n') % f) remove(removefile, f) for f in sorted(directories, reverse=True): if match(f) and not os.listdir(repo.wjoin(f)): ui.note(_('Removing directory %s\n') % f) remove(os.rmdir, f)
e5c4a8391cb9c899a8d4340e7c1b71e53aae86d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/e5c4a8391cb9c899a8d4340e7c1b71e53aae86d4/purge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 4881, 16, 3538, 16, 380, 8291, 16, 2826, 4952, 4672, 9163, 2764, 10829, 1390, 486, 15200, 635, 14940, 1397, 649, 225, 2504, 1390, 486, 4846, 358, 14940, 1397, 649, 18, 1220, 353, 5301, 358, 1842, 1191, 471, 12704, 7948, 3478, 316, 392, 3541, 17, 6200, 1084, 2151, 18, 225, 1220, 4696, 716, 11668, 903, 1430, 30, 225, 300, 9077, 1390, 30, 1390, 9350, 598, 13574, 635, 315, 26981, 1267, 6, 300, 8953, 6402, 30, 316, 5410, 14940, 1397, 649, 17868, 6402, 3308, 2898, 912, 1390, 3613, 1084, 3325, 11803, 225, 12484, 518, 903, 8851, 640, 869, 19370, 30, 300, 21154, 471, 30481, 15200, 1390, 300, 8049, 72, 1390, 261, 28502, 1493, 454, 353, 1269, 13, 300, 1166, 1390, 3096, 358, 326, 3352, 261, 1918, 315, 26981, 527, 7923, 225, 971, 6402, 854, 864, 603, 326, 1296, 980, 16, 1338, 1390, 316, 4259, 6402, 854, 7399, 18, 225, 4823, 26850, 598, 11668, 16, 487, 1846, 3377, 9482, 266, 2496, 24755, 1430, 2690, 1390, 1846, 364, 13212, 358, 527, 358, 326, 3352, 18, 971, 1846, 1338, 2545, 358, 1172, 326, 666, 434, 1390, 716, 333, 5402, 4102, 1430, 16, 999, 326, 1493, 1188, 1456, 18, 9163, 1328, 273, 486, 1500, 3292, 1188, 3546, 14775, 273, 2337, 82, 11, 309, 1500, 3292, 1188, 20, 3546, 30, 14775, 273, 2337, 20, 11, 1328, 273, 1083, 468, 1493, 1188, 20, 24168, 1493, 1188, 225, 1652, 1206, 12, 4479, 67, 644, 16, 508, 4672, 309, 1328, 30, 775, 30, 1206, 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, 11668, 12, 4881, 16, 3538, 16, 380, 8291, 16, 2826, 4952, 4672, 9163, 2764, 10829, 1390, 486, 15200, 635, 14940, 1397, 649, 225, 2504, 1390, 486, 4846, 358, 14940, 1397, 649, 18, 1220, 353, 5301, 358, 1842, 1191, 471, 12704, 7948, 3478, 316, 392, 3541, 17, 6200, 1084, 2151, 18, 225, 1220, 4696, 716, 11668, 903, 1430, 30, 225, 300, 9077, 1390, 30, 1390, 9350, 598, 13574, 635, 315, 26981, 1267, 6, 300, 8953, 6402, 30, 316, 5410, 14940, 1397, 649, 17868, 6402, 3308, 2898, 912, 1390, 3613, 1084, 3325, 11803, 225, 12484, 518, 903, 8851, 640, 869, 19370, 30, 300, 21154, 471, 30481, 15200, 1390, 300, 8049, 72, 1390, 261, 28502, 1493, 454, 353, 1269, 13, 300, 2 ]
logging.getLogger().debug("New command on host are created, its id is : %s" % myCommandOnHost.getId())
logger.debug("New command on host are created, its id is : %s" % myCommandOnHost.getId())
def dispatch(self, ctx): """ Inject as many lines in CommandsOnHost as required (i.e. one per target) """
4a59db1e070b2a71766a4543367b2f6c8f8b5247 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/4a59db1e070b2a71766a4543367b2f6c8f8b5247/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3435, 12, 2890, 16, 1103, 4672, 3536, 20085, 487, 4906, 2362, 316, 18034, 1398, 2594, 487, 1931, 261, 77, 18, 73, 18, 1245, 1534, 1018, 13, 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,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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, -100, -100, -100, -100, -100, -100, -100, -100 ]
obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'set', obj_) self.content_.append(obj_) if hasattr(self, 'add_set'): self.add_set(obj_.value) elif hasattr(self, 'set_set'): self.set_set(obj_.value) if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_)
self.set.append(obj_)
def buildChildren(self, child_, nodeName_, from_subclass=False): if nodeName_ == 'row': type_name_ = child_.attrib.get('{http://www.w3.org/2001/XMLSchema-instance}type') if type_name_ is None: type_name_ = child_.attrib.get('type') if type_name_ is not None: type_names_ = type_name_.split(':') if len(type_names_) == 1: type_name_ = type_names_[0] else: type_name_ = type_names_[1] class_ = globals()[type_name_] obj_ = class_.factory() obj_.build(child_) else: raise NotImplementedError( 'Class not implemented for <row> element') obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'row', obj_) self.content_.append(obj_) if hasattr(self, 'add_row'): self.add_row(obj_.value) elif hasattr(self, 'set_row'): self.set_row(obj_.value) elif nodeName_ == 'set': obj_ = RowSet.factory() obj_.build(child_) obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'set', obj_) self.content_.append(obj_) if hasattr(self, 'add_set'): self.add_set(obj_.value) elif hasattr(self, 'set_set'): self.set_set(obj_.value) if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) super(AbstractSeqMatrix, self).buildChildren(child_, nodeName_, True)
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 492, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 95, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 97, 723, 6134, 309, 618, 67, 529, 67, 353, 599, 30, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 723, 6134, 309, 618, 67, 529, 67, 353, 486, 599, 30, 618, 67, 1973, 67, 273, 618, 67, 529, 27799, 4939, 2668, 2497, 13, 309, 562, 12, 723, 67, 1973, 67, 13, 422, 404, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 63, 20, 65, 469, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 63, 21, 65, 667, 67, 273, 10941, 1435, 63, 723, 67, 529, 67, 65, 1081, 67, 273, 667, 27799, 6848, 1435, 1081, 27799, 3510, 12, 3624, 67, 13, 469, 30, 1002, 11206, 12, 296, 797, 486, 8249, 364, 411, 492, 34, 930, 6134, 1081, 67, 273, 365, 18, 19562, 1106, 67, 12, 19846, 2170, 18, 4457, 12795, 16, 24725, 2170, 18, 559, 7036, 16, 296, 492, 2187, 1081, 67, 13, 365, 18, 1745, 27799, 6923, 12, 2603, 67, 13, 309, 3859, 12, 2890, 16, 296, 1289, 67, 492, 11, 4672, 365, 18, 1289, 67, 492, 12, 2603, 27799, 1132, 13, 1327, 3859, 12, 2890, 16, 296, 542, 67, 492, 11, 4672, 365, 18, 542, 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, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 492, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 95, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 97, 723, 6134, 309, 618, 67, 529, 67, 353, 599, 30, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 723, 6134, 309, 618, 67, 529, 67, 353, 486, 599, 30, 618, 67, 1973, 67, 273, 618, 67, 529, 27799, 4939, 2668, 2497, 13, 309, 562, 12, 723, 67, 1973, 67, 13, 422, 404, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 2 ]
return item.getAttributeValue(self._translationDict[match.group(0)])
return item.getAttributeValue(self._translationDict[match.group(0)], default='')
def translate(match): return item.getAttributeValue(self._translationDict[match.group(0)])
a791f931f5eb734a2f1e53cd8e648ca5b9ba42fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a791f931f5eb734a2f1e53cd8e648ca5b9ba42fe/ZaoBaoUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 1916, 4672, 327, 761, 18, 588, 14942, 12, 2890, 6315, 10173, 5014, 63, 1916, 18, 1655, 12, 20, 13, 6487, 805, 2218, 6134, 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, 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 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 ]
encoded = simplejson.dumps(data)
encoded = JSONEncoder().encode(data)
def wishlist_remove_ajax(request, template="shop/json.html"): success, msg = _wishlist_remove(request) data = { 'success' : success, 'wishlist_message' : msg } encoded = simplejson.dumps(data) encoded = mark_safe(encoded) return render_to_response(template, {'json' : encoded})
8c5c95df6ac5e9459dc7e0c3ed9d8b505270e9c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/8c5c95df6ac5e9459dc7e0c3ed9d8b505270e9c7/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14302, 1098, 67, 4479, 67, 12813, 12, 2293, 16, 1542, 1546, 5020, 19, 1977, 18, 2620, 6, 4672, 2216, 16, 1234, 273, 389, 91, 1468, 1098, 67, 4479, 12, 2293, 13, 225, 501, 273, 288, 296, 4768, 11, 294, 2216, 16, 296, 91, 1468, 1098, 67, 2150, 11, 294, 1234, 289, 3749, 273, 1796, 7204, 7675, 3015, 12, 892, 13, 3749, 273, 2267, 67, 4626, 12, 10787, 13, 225, 327, 1743, 67, 869, 67, 2740, 12, 3202, 16, 13666, 1977, 11, 294, 3749, 6792, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14302, 1098, 67, 4479, 67, 12813, 12, 2293, 16, 1542, 1546, 5020, 19, 1977, 18, 2620, 6, 4672, 2216, 16, 1234, 273, 389, 91, 1468, 1098, 67, 4479, 12, 2293, 13, 225, 501, 273, 288, 296, 4768, 11, 294, 2216, 16, 296, 91, 1468, 1098, 67, 2150, 11, 294, 1234, 289, 3749, 273, 1796, 7204, 7675, 3015, 12, 892, 13, 3749, 273, 2267, 67, 4626, 12, 10787, 13, 225, 327, 1743, 67, 869, 67, 2740, 12, 3202, 16, 13666, 1977, 11, 294, 3749, 6792, 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 ]
return str(self.func)
return repr(self.func)
def __repr__(self): return str(self.func)
4fb61b9fde2c5f2910ac0efa15a69697c2e2498f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/4fb61b9fde2c5f2910ac0efa15a69697c2e2498f/proc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 609, 12, 2890, 18, 644, 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, 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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, 1001, 12715, 972, 12, 2890, 4672, 327, 609, 12, 2890, 18, 644, 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, -100, -100, -100 ]
self.upload(args, filename) except HTTPError, e:
(headers, data) = self.upload(args, filename) print 'Status code: ', headers.get("Dqm-Status-Code", "None") print 'Message: ', headers.get("Dqm-Status-Message", "None") print 'Detail: ', headers.get("Dqm-Status-Detail", "None") print data except urllib2.HTTPError, e:
def httpPost(self, analysisFile): """ _httpPost_
8aa0379b7ff693cb5ae777625af3f75853af35f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/8aa0379b7ff693cb5ae777625af3f75853af35f9/RuntimeOfflineDQM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27678, 12, 2890, 16, 6285, 812, 4672, 3536, 389, 2505, 3349, 67, 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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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27678, 12, 2890, 16, 6285, 812, 4672, 3536, 389, 2505, 3349, 67, 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 ]
mixer.setPcmVolume(100) mixer.setLineinVolume(0) mixer.setMicVolume(0)
if config.CONTROL_ALL_AUDIO: mixer.setLineinVolume( 0 ) mixer.setMicVolume( 0 ) if( config.MAJOR_AUDIO_CTRL == 'VOL' ): mixer.setPcmVolume( 100 ) elif( config.MAJOR_AUDIO_CTRL == 'PCM' ): mixer.setMainVolume( 100 ) mixer.setIgainVolume( 0 )
def play(self, mode, filename, playlist, repeat=0, mplayer_options=""):
8c475a8f7aaeaffa9df31a85353b09d008613999 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/8c475a8f7aaeaffa9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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 16, 1965, 16, 1544, 16, 16428, 16, 7666, 33, 20, 16, 312, 14872, 67, 2116, 1546, 6, 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 ]
sendtradepacket( player2.socket, 0, player1.serial, box2.serial, box1.serial, player1.name )
if box2new: sendtradepacket( player2.socket, 0, player1.serial, box2.serial, box1.serial, player1.name )
def onTradeStart( player1, player2, firstitem ): # If we are trading with someone else right now, # trading should be denied if player2.hastag('trade_partner'): partner = wolfpack.findchar(int(player2.gettag('trade_partner'))) if partner and partner != player1: player1.socket.sysmessage('Your trading partner is currently busy.') if not wolfpack.utilities.tobackpack(firstitem, player1): firstitem.update() return False if player1.hastag('trade_partner'): partner = wolfpack.findchar(int(player1.gettag('trade_partner'))) if partner and partner != player2: player1.socket.sysmessage('You are trading with someone else right now.') if not wolfpack.utilities.tobackpack(firstitem, player1): firstitem.update() return False #player1 : I am #player2 : Partner # Creating trade container for me box1 = player1.itemonlayer( LAYER_TRADING ) if not box1: box1 = wolfpack.additem( "e75" ) box1.owner = player1 player1.additem( LAYER_TRADING, box1 ) box1.update() # Same operation for partner box2 = player2.itemonlayer( LAYER_TRADING ) if not box2: box2 = wolfpack.additem("e75") box2.owner = player2 player2.additem( LAYER_TRADING, box2 ) box2.update() # Unable to create trade containers if not box1 or not box2: if not wolfpack.utilities.tobackpack(firstitem, player1): firstitem.update() return False #onLogout event should be executed for tradewindow disposing player1.addscript( 'system.trading' ) player2.addscript( 'system.trading' ) #We want to know serial of partner in future player1.settag( 'trade_partner', player2.serial ) player2.settag( 'trade_partner', player1.serial ) #We need to store button state of each player player1.settag( 'trade_button', 0 ) player2.settag( 'trade_button', 0 ) #Send trade window to both players #To me sendtradepacket( player1.socket, 0, player2.serial, box1.serial, box2.serial, player2.name ) #To partner sendtradepacket( player2.socket, 0, player1.serial, box2.serial, box1.serial, player1.name ) #Send buttons state #To me sendtradepacket( player1.socket, 2, box1.serial, 0, 0, "" ) #To partner sendtradepacket( player2.socket, 2, box2.serial, 0, 0, "" ) box1.additem( firstitem ) firstitem.update() return True
cea1c0798722ca2dfc98f409a8bc0cf75df8584a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/cea1c0798722ca2dfc98f409a8bc0cf75df8584a/trading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 22583, 1685, 12, 7291, 21, 16, 7291, 22, 16, 1122, 1726, 262, 30, 468, 971, 732, 854, 1284, 7459, 598, 18626, 469, 2145, 2037, 16, 468, 1284, 7459, 1410, 506, 15338, 309, 7291, 22, 18, 76, 689, 346, 2668, 20077, 67, 31993, 11, 4672, 19170, 273, 341, 355, 74, 2920, 18, 4720, 3001, 12, 474, 12, 14872, 22, 18, 588, 2692, 2668, 20077, 67, 31993, 11, 20349, 309, 19170, 471, 19170, 480, 7291, 21, 30, 7291, 21, 18, 7814, 18, 9499, 2150, 2668, 15446, 1284, 7459, 19170, 353, 4551, 21697, 1093, 13, 309, 486, 341, 355, 74, 2920, 18, 1367, 1961, 18, 869, 823, 2920, 12, 3645, 1726, 16, 7291, 21, 4672, 1122, 1726, 18, 2725, 1435, 327, 1083, 225, 309, 7291, 21, 18, 76, 689, 346, 2668, 20077, 67, 31993, 11, 4672, 19170, 273, 341, 355, 74, 2920, 18, 4720, 3001, 12, 474, 12, 14872, 21, 18, 588, 2692, 2668, 20077, 67, 31993, 11, 20349, 309, 19170, 471, 19170, 480, 7291, 22, 30, 7291, 21, 18, 7814, 18, 9499, 2150, 2668, 6225, 854, 1284, 7459, 598, 18626, 469, 2145, 2037, 1093, 13, 309, 486, 341, 355, 74, 2920, 18, 1367, 1961, 18, 869, 823, 2920, 12, 3645, 1726, 16, 7291, 21, 4672, 1122, 1726, 18, 2725, 1435, 327, 1083, 225, 468, 14872, 21, 294, 467, 2125, 468, 14872, 22, 294, 6393, 1224, 225, 468, 21837, 18542, 1478, 364, 1791, 3919, 21, 273, 7291, 21, 18, 1726, 265, 6363, 12, 25239, 654, 67, 4349, 30118, 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, 603, 22583, 1685, 12, 7291, 21, 16, 7291, 22, 16, 1122, 1726, 262, 30, 468, 971, 732, 854, 1284, 7459, 598, 18626, 469, 2145, 2037, 16, 468, 1284, 7459, 1410, 506, 15338, 309, 7291, 22, 18, 76, 689, 346, 2668, 20077, 67, 31993, 11, 4672, 19170, 273, 341, 355, 74, 2920, 18, 4720, 3001, 12, 474, 12, 14872, 22, 18, 588, 2692, 2668, 20077, 67, 31993, 11, 20349, 309, 19170, 471, 19170, 480, 7291, 21, 30, 7291, 21, 18, 7814, 18, 9499, 2150, 2668, 15446, 1284, 7459, 19170, 353, 4551, 21697, 1093, 13, 309, 486, 341, 355, 74, 2920, 18, 1367, 1961, 18, 869, 823, 2920, 12, 3645, 1726, 16, 7291, 21, 4672, 1122, 1726, 18, 2725, 1435, 2 ]
return zip(*map(_alb_line2coords, [start_line, end_line]))
return zip(*map(_alb_line2coords, [start_line, end_line])) def _any(seq, pred=bool): "Returns True if pred(x) is True at least one element in the iterable" return True in itertools.imap(pred, seq)
def _get_coords(filename): alb = file(filename) start_line = None end_line = None for line in alb: if line.startswith("["): if not start_line: start_line = line # rstrip not needed else: end_line = line return zip(*map(_alb_line2coords, [start_line, end_line]))
f212eb623e2a184cb189d483d087724d9b5a42c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/f212eb623e2a184cb189d483d087724d9b5a42c0/dnal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 9076, 12, 3459, 4672, 524, 70, 273, 585, 12, 3459, 13, 225, 787, 67, 1369, 273, 599, 679, 67, 1369, 273, 599, 225, 364, 980, 316, 524, 70, 30, 309, 980, 18, 17514, 1918, 2932, 9614, 4672, 309, 486, 787, 67, 1369, 30, 787, 67, 1369, 273, 980, 468, 10947, 486, 3577, 469, 30, 679, 67, 1369, 273, 980, 225, 327, 3144, 30857, 1458, 24899, 287, 70, 67, 1369, 22, 9076, 16, 306, 1937, 67, 1369, 16, 679, 67, 1369, 22643, 225, 1652, 389, 2273, 12, 5436, 16, 3479, 33, 6430, 4672, 315, 1356, 1053, 309, 3479, 12, 92, 13, 353, 1053, 622, 4520, 1245, 930, 316, 326, 6087, 6, 327, 1053, 316, 13315, 18, 12161, 12, 6510, 16, 3833, 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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, 70, 30, 309, 980, 18, 17514, 1918, 2932, 9614, 4672, 309, 486, 787, 67, 1369, 30, 787, 67, 1369, 273, 980, 468, 10947, 486, 3577, 469, 30, 679, 67, 1369, 273, 980, 225, 327, 3144, 30857, 1458, 24899, 287, 70, 67, 1369, 22, 9076, 16, 306, 1937, 67, 1369, 16, 679, 67, 1369, 22643, 225, 1652, 389, 2273, 12, 5436, 16, 3479, 33, 6430, 4672, 315, 1356, 1053, 309, 3479, 12, 92, 13, 353, 1053, 622, 4520, 1245, 930, 316, 326, 6087, 6, 327, 1053, 316, 13315, 18, 2 ]
if len(args) < 1:
if len(args) != 2:
def main(): usage = """%prog release_version next_dev_version
9dbb4cd44b3b61b6dea3181b24c1359b0a15d84e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12991/9dbb4cd44b3b61b6dea3181b24c1359b0a15d84e/makerelease.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 3536, 9, 14654, 3992, 67, 1589, 1024, 67, 5206, 67, 1589, 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,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332, 4084, 273, 3536, 9, 14654, 3992, 67, 1589, 1024, 67, 5206, 67, 1589, 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 ]
message is printed.]
message is printed [this is now implemented by a debug_pref, 060720].]
def _print_msg(self, msg): """Format and print one message (a string, usually not starting or ending with newline). Precede it with a timestamp. Most printing should go though this method. Client code should call a higher-level method which uses this one. [Someday we might also #e: - compress redundant messages which would otherwise be too verbose. - add html or xml formatting, differently for different kinds of messages, as indicated by optional args (not yet designed). - when debugging, print info about the call stack at the time the message is printed.] """ ###e in debug_stack mode, walk stack and compare to stored stack and print exit of old frames and enter of (some) new ones m1 = message(msg, hist = self) msg = m1.widget_html() # widget_text() or widget_html() self._append(msg) ##e need to pass the message object, since also puts it into the file, but text might be different! ###@@@ if 0 and platform.atom_debug: # this is redundant with __stderr__ in _append, so we no longer do it. print "(history:)", msg return
4922aa850a453a07fa9026da08adfd7a14634dcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/4922aa850a453a07fa9026da08adfd7a14634dcb/HistoryWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 3576, 12, 2890, 16, 1234, 4672, 3536, 1630, 471, 1172, 1245, 883, 261, 69, 533, 16, 11234, 486, 5023, 578, 11463, 598, 9472, 2934, 2962, 311, 323, 518, 598, 279, 2858, 18, 22099, 19171, 1410, 1960, 11376, 333, 707, 18, 2445, 981, 1410, 745, 279, 10478, 17, 2815, 707, 1492, 4692, 333, 1245, 18, 306, 55, 362, 329, 528, 732, 4825, 2546, 468, 73, 30, 300, 8099, 19530, 2743, 1492, 4102, 3541, 506, 4885, 3988, 18, 300, 527, 1729, 578, 2025, 10407, 16, 23621, 364, 3775, 21961, 434, 2743, 16, 487, 17710, 635, 3129, 833, 261, 902, 4671, 26584, 2934, 300, 1347, 10450, 16, 1172, 1123, 2973, 326, 745, 2110, 622, 326, 813, 326, 883, 353, 14099, 306, 2211, 353, 2037, 8249, 635, 279, 1198, 67, 25724, 16, 374, 4848, 27, 3462, 8009, 65, 3536, 11849, 73, 316, 1198, 67, 3772, 1965, 16, 5442, 2110, 471, 3400, 358, 4041, 2110, 471, 1172, 2427, 434, 1592, 7793, 471, 6103, 434, 261, 19068, 13, 394, 5945, 312, 21, 273, 883, 12, 3576, 16, 5356, 273, 365, 13, 1234, 273, 312, 21, 18, 6587, 67, 2620, 1435, 468, 3604, 67, 955, 1435, 578, 3604, 67, 2620, 1435, 365, 6315, 6923, 12, 3576, 13, 7541, 73, 1608, 358, 1342, 326, 883, 733, 16, 3241, 2546, 8200, 518, 1368, 326, 585, 16, 1496, 977, 4825, 506, 3775, 5, 11849, 30989, 36, 309, 374, 471, 4072, 18, 7466, 67, 4148, 30, 468, 333, 353, 19530, 598, 1001, 11241, 972, 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, 1188, 67, 3576, 12, 2890, 16, 1234, 4672, 3536, 1630, 471, 1172, 1245, 883, 261, 69, 533, 16, 11234, 486, 5023, 578, 11463, 598, 9472, 2934, 2962, 311, 323, 518, 598, 279, 2858, 18, 22099, 19171, 1410, 1960, 11376, 333, 707, 18, 2445, 981, 1410, 745, 279, 10478, 17, 2815, 707, 1492, 4692, 333, 1245, 18, 306, 55, 362, 329, 528, 732, 4825, 2546, 468, 73, 30, 300, 8099, 19530, 2743, 1492, 4102, 3541, 506, 4885, 3988, 18, 300, 527, 1729, 578, 2025, 10407, 16, 23621, 364, 3775, 21961, 434, 2743, 16, 487, 17710, 635, 3129, 833, 261, 902, 4671, 26584, 2934, 300, 1347, 10450, 16, 1172, 1123, 2973, 326, 745, 2110, 622, 326, 813, 326, 883, 2 ]
if role: reg+="/Role=%s"%role
if role: reg+="/Role=%s"%role
def checkAttribute( self, proxy=None, vo='cms', group=None, role=None): """ """ valid = True if proxy == None: proxy=self.getUserProxy()
321d0a2a330216db34ecb2beb7fb7be6fff38226 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/321d0a2a330216db34ecb2beb7fb7be6fff38226/Proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1499, 12, 365, 16, 2889, 33, 7036, 16, 19993, 2218, 6851, 2187, 1041, 33, 7036, 16, 2478, 33, 7036, 4672, 3536, 3536, 923, 273, 1053, 309, 2889, 422, 599, 30, 2889, 33, 2890, 18, 588, 1299, 3886, 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, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1499, 12, 365, 16, 2889, 33, 7036, 16, 19993, 2218, 6851, 2187, 1041, 33, 7036, 16, 2478, 33, 7036, 4672, 3536, 3536, 923, 273, 1053, 309, 2889, 422, 599, 30, 2889, 33, 2890, 18, 588, 1299, 3886, 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 ]
self.vo = self.am_getOption("/DIRAC/VirtualOrganization") if not self.vo: gLogger.fatal("No /DIRAC/VirtualOrganization option defined") return S_ERROR()
def initialize( self ): self.vo = self.am_getOption("/DIRAC/VirtualOrganization") if not self.vo: gLogger.fatal("No /DIRAC/VirtualOrganization option defined") return S_ERROR()
42aa4ddd05805da2e761607504a993c4416c58b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/42aa4ddd05805da2e761607504a993c4416c58b0/CE2CSAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 365, 262, 30, 365, 18, 12307, 273, 365, 18, 301, 67, 588, 1895, 2932, 19, 4537, 2226, 19, 6466, 8113, 7923, 309, 486, 365, 18, 12307, 30, 314, 3328, 18, 30709, 2932, 2279, 342, 4537, 2226, 19, 6466, 8113, 1456, 2553, 7923, 327, 348, 67, 3589, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4046, 12, 365, 262, 30, 365, 18, 12307, 273, 365, 18, 301, 67, 588, 1895, 2932, 19, 4537, 2226, 19, 6466, 8113, 7923, 309, 486, 365, 18, 12307, 30, 314, 3328, 18, 30709, 2932, 2279, 342, 4537, 2226, 19, 6466, 8113, 1456, 2553, 7923, 327, 348, 67, 3589, 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 ]
wrapped.func_name = func.func_name
wrapped.func_name = "wrap_prim_" + name
def wrapped(interp, argument_count): frame = interp.w_active_context assert argument_count == len_unwrap_spec if len(frame.stack) < len_unwrap_spec: raise PrimitiveFailedError() args = () for i, spec in unrolling_unwrap_spec: index = -len_unwrap_spec + i arg = frame.stack[index] if spec is int: args += (unwrap_int(arg), ) elif spec is float: args += (unwrap_float(arg), ) elif spec is object: args += (arg, ) else: assert 0, "this should never happen" res = func(interp, *args) frame.pop_n(len_unwrap_spec) # only if no exception occurs! return res
bac0d10c89c44228391f421400b82bc0fe4bbafa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/bac0d10c89c44228391f421400b82bc0fe4bbafa/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5805, 12, 24940, 16, 1237, 67, 1883, 4672, 2623, 273, 8174, 18, 91, 67, 3535, 67, 2472, 1815, 1237, 67, 1883, 422, 562, 67, 318, 4113, 67, 2793, 309, 562, 12, 3789, 18, 3772, 13, 411, 562, 67, 318, 4113, 67, 2793, 30, 1002, 14488, 2925, 668, 1435, 833, 273, 1832, 364, 277, 16, 857, 316, 640, 15742, 67, 318, 4113, 67, 2793, 30, 770, 273, 300, 1897, 67, 318, 4113, 67, 2793, 397, 277, 1501, 273, 2623, 18, 3772, 63, 1615, 65, 309, 857, 353, 509, 30, 833, 1011, 261, 318, 4113, 67, 474, 12, 3175, 3631, 262, 1327, 857, 353, 1431, 30, 833, 1011, 261, 318, 4113, 67, 5659, 12, 3175, 3631, 262, 1327, 857, 353, 733, 30, 833, 1011, 261, 3175, 16, 262, 469, 30, 1815, 374, 16, 315, 2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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5805, 12, 24940, 16, 1237, 67, 1883, 4672, 2623, 273, 8174, 18, 91, 67, 3535, 67, 2472, 1815, 1237, 67, 1883, 422, 562, 67, 318, 4113, 67, 2793, 309, 562, 12, 3789, 18, 3772, 13, 411, 562, 67, 318, 4113, 67, 2793, 30, 1002, 14488, 2925, 668, 1435, 833, 273, 1832, 364, 277, 16, 857, 316, 640, 15742, 67, 318, 4113, 67, 2793, 30, 770, 273, 300, 1897, 67, 318, 4113, 67, 2793, 397, 277, 1501, 273, 2623, 18, 3772, 63, 1615, 65, 309, 857, 353, 509, 30, 833, 1011, 261, 318, 4113, 67, 474, 12, 3175, 3631, 262, 1327, 857, 353, 1431, 30, 833, 1011, 261, 318, 4113, 67, 5659, 12, 3175, 3631, 262, 1327, 857, 353, 2 ]
self.db.analyze("Prefixes")
self.db.analyze("Prefixes")
def migrate2(self): # fix the dirnames and basenames column types for postgresql cu = self.db.cursor() if self.db.driver == 'postgresql': logMe(2, "fixing column types for pathfields") cu.execute("create table saveDirnames as select dirnameId, dirname from Dirnames") cu.execute("create table saveBasenames as select basenameId, basename from Basenames") cu.execute("create table savePrefixes as select dirnameId, prefixId from Prefixes") self.db.dropForeignKey("FilePaths", "dirnameId") self.db.dropForeignKey("FilePaths", "basenameId") cu.execute("drop table Prefixes") cu.execute("drop table Dirnames") cu.execute("drop table Basenames") self.db.loadSchema() schema.createTroves(self.db, createIndex = False) cu.execute("select dirnameId, dirname from saveDirnames") self.db.bulkload("Dirnames", ( (x[0], cu.binary(x[1])) for x in cu.fetchall() ), ["dirnameId", "dirname"]) cu.execute("select basenameId, basename from saveBasenames") self.db.bulkload("Basenames", ( (x[0], cu.binary(x[1])) for x in cu.fetchall() ), ["basenameId", "basename"]) cu.execute("insert into Prefixes(dirnameId, prefixId) " "select dirnameId, prefixId from savePrefixes") schema.createTroves(self.db, createIndex = True) self.db.addForeignKey("FilePaths", "dirnameId", "Dirnames", "dirnameId") self.db.addForeignKey("FilePaths", "basenameId", "Basenames", "basenameId") cu.execute("drop table saveDirnames") cu.execute("drop table saveBasenames") cu.execute("drop table savePrefixes") self.db.analyze("Dirnames") self.db.analyze("Basenames") self.db.setAutoIncrement("Dirnames", "dirnameId") self.db.setAutoIncrement("Basenames", "basenameId") # fix the missing dirnames/prefixes links schema.setupTempTables(self.db) logMe(2, "looking for missing dirnames/prefixes links") cu = self.db.cursor() cu.execute("""select d.dirnameId, d.dirname from Dirnames as d join ( select distinct fp.dirnameId as dirnameId from FilePaths as fp left join Prefixes as p using(dirnameId) where p.dirnameId is null ) as dq using(dirnameId) """) ret = cu.fetchall() if ret: logMe(2, "fixing missing dirnames/prefixes links in %d dirnames" % (len(ret),)) trovestore.addPrefixesFromList(self.db, ret) self.db.analyze("Prefixes") return True
3b13aa77709d644c3f7d31b6159a5c0a19727423 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/3b13aa77709d644c3f7d31b6159a5c0a19727423/migrate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 22, 12, 2890, 4672, 468, 2917, 326, 1577, 1973, 471, 2580, 6809, 1057, 1953, 364, 1603, 24330, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 309, 365, 18, 1966, 18, 7407, 422, 296, 2767, 24330, 4278, 613, 4667, 12, 22, 16, 315, 904, 310, 1057, 1953, 364, 589, 2821, 7923, 15985, 18, 8837, 2932, 2640, 1014, 1923, 1621, 1973, 487, 2027, 4283, 548, 16, 4283, 628, 8446, 1973, 7923, 15985, 18, 8837, 2932, 2640, 1014, 1923, 11494, 6809, 487, 2027, 4882, 548, 16, 4882, 628, 605, 345, 6809, 7923, 15985, 18, 8837, 2932, 2640, 1014, 1923, 11700, 487, 2027, 4283, 548, 16, 1633, 548, 628, 10139, 281, 7923, 365, 18, 1966, 18, 7285, 15420, 2932, 812, 4466, 3113, 315, 12287, 548, 7923, 365, 18, 1966, 18, 7285, 15420, 2932, 812, 4466, 3113, 315, 13909, 548, 7923, 15985, 18, 8837, 2932, 7285, 1014, 10139, 281, 7923, 15985, 18, 8837, 2932, 7285, 1014, 8446, 1973, 7923, 15985, 18, 8837, 2932, 7285, 1014, 605, 345, 6809, 7923, 365, 18, 1966, 18, 945, 3078, 1435, 1963, 18, 2640, 56, 303, 3324, 12, 2890, 18, 1966, 16, 25207, 273, 1083, 13, 15985, 18, 8837, 2932, 4025, 4283, 548, 16, 4283, 628, 1923, 1621, 1973, 7923, 365, 18, 1966, 18, 14597, 945, 2932, 1621, 1973, 3113, 261, 261, 92, 63, 20, 6487, 15985, 18, 8578, 12, 92, 63, 21, 22643, 364, 619, 316, 15985, 18, 5754, 454, 1435, 262, 16, 8247, 12287, 548, 3113, 315, 12287, 6, 5717, 15985, 18, 8837, 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, 13187, 22, 12, 2890, 4672, 468, 2917, 326, 1577, 1973, 471, 2580, 6809, 1057, 1953, 364, 1603, 24330, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 309, 365, 18, 1966, 18, 7407, 422, 296, 2767, 24330, 4278, 613, 4667, 12, 22, 16, 315, 904, 310, 1057, 1953, 364, 589, 2821, 7923, 15985, 18, 8837, 2932, 2640, 1014, 1923, 1621, 1973, 487, 2027, 4283, 548, 16, 4283, 628, 8446, 1973, 7923, 15985, 18, 8837, 2932, 2640, 1014, 1923, 11494, 6809, 487, 2027, 4882, 548, 16, 4882, 628, 605, 345, 6809, 7923, 15985, 18, 8837, 2932, 2640, 1014, 1923, 11700, 487, 2027, 4283, 548, 16, 1633, 548, 628, 10139, 281, 7923, 365, 18, 1966, 18, 7285, 15420, 2932, 812, 4466, 2 ]
res = self.write(cr, uid, ids, {'state':'done'}) for line in self.browse(cr,uid,ids,context):
res = self.write(cr, uid, ids, {'state': 'done'}) for line in self.browse(cr, uid, ids, context):
def button_done(self, cr, uid, ids, context={}): wf_service = netsvc.LocalService("workflow") res = self.write(cr, uid, ids, {'state':'done'}) for line in self.browse(cr,uid,ids,context): wf_service.trg_write(uid, 'sale.order', line.order_id.id, cr)
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 8734, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2932, 13815, 7923, 400, 273, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 4278, 296, 8734, 11, 6792, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 11578, 67, 3278, 18, 313, 75, 67, 2626, 12, 1911, 16, 296, 87, 5349, 18, 1019, 2187, 980, 18, 1019, 67, 350, 18, 350, 16, 4422, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 8734, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2932, 13815, 7923, 400, 273, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 4278, 296, 8734, 11, 6792, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 11578, 67, 3278, 18, 313, 75, 67, 2626, 12, 1911, 16, 296, 87, 5349, 18, 1019, 2187, 980, 18, 1019, 67, 350, 18, 350, 16, 4422, 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 ]
directory=get_bundle_path(), lastlog=False, utmp=False, wtmp=False)
directory=get_bundle_path())
def gobutton_cb(self, button): self._vte.grab_focus() self._vte.feed("\x1B[H\x1B[J\x1B[0;39m") # FIXME: We're losing an odd race here # gtk.main_iteration(block=False) start, end = self.text_buffer.get_bounds() text = self.text_buffer.get_text(start, end)
6b9a427f10ebf8b233c1640532ba7b5a9ae71315 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7610/6b9a427f10ebf8b233c1640532ba7b5a9ae71315/activity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20062, 2644, 67, 7358, 12, 2890, 16, 3568, 4672, 365, 6315, 90, 736, 18, 2752, 70, 67, 13923, 1435, 365, 6315, 90, 736, 18, 7848, 31458, 92, 21, 38, 63, 44, 64, 92, 21, 38, 63, 46, 64, 92, 21, 38, 63, 20, 31, 5520, 81, 7923, 225, 468, 9852, 30, 1660, 4565, 437, 2470, 392, 14800, 17996, 2674, 468, 22718, 18, 5254, 67, 16108, 12, 2629, 33, 8381, 13, 225, 787, 16, 679, 273, 365, 18, 955, 67, 4106, 18, 588, 67, 10576, 1435, 977, 273, 365, 18, 955, 67, 4106, 18, 588, 67, 955, 12, 1937, 16, 679, 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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14800, 17996, 2674, 468, 22718, 18, 5254, 67, 16108, 12, 2629, 33, 8381, 13, 225, 787, 16, 679, 273, 365, 18, 955, 67, 4106, 18, 588, 67, 10576, 1435, 977, 273, 365, 18, 955, 67, 4106, 18, 588, 67, 955, 12, 1937, 16, 679, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
g.draw()
def demo(self): D = Drawing(100, 100)
27b6bffb56ecaf66dee61eab61c6828d35de4558 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/27b6bffb56ecaf66dee61eab61c6828d35de4558/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 12, 2890, 4672, 463, 273, 10184, 310, 12, 6625, 16, 2130, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21477, 12, 2890, 4672, 463, 273, 10184, 310, 12, 6625, 16, 2130, 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, -100, -100, -100 ]
obj2 = self.pool.get(obj._inherit_fields[obj._order_name][0])
obj2 = self.pool.get( obj._inherit_fields[obj._order_name][0])
def _order_calc(self, cursor, user, field, otype, context=None): order_by = [] tables = [] field_name = None table_name = None link_field = None clause = ''
151ca4d00596ae2adeea6a9a25f559f6b8e7f729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/151ca4d00596ae2adeea6a9a25f559f6b8e7f729/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1019, 67, 12448, 12, 2890, 16, 3347, 16, 729, 16, 652, 16, 320, 723, 16, 819, 33, 7036, 4672, 1353, 67, 1637, 273, 5378, 4606, 273, 5378, 652, 67, 529, 273, 599, 1014, 67, 529, 273, 599, 1692, 67, 1518, 273, 599, 6591, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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1019, 67, 12448, 12, 2890, 16, 3347, 16, 729, 16, 652, 16, 320, 723, 16, 819, 33, 7036, 4672, 1353, 67, 1637, 273, 5378, 4606, 273, 5378, 652, 67, 529, 273, 599, 1014, 67, 529, 273, 599, 1692, 67, 1518, 273, 599, 6591, 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 ]
text1 += _("We hope that you will appreciate GTG. Please send us bug reports and ideas for improvement using : ")
text1 += _("We hope that you will appreciate GTG. Please send us bug reports and ideas for improvement using: ")
def populate() : doc,root = cleanxml.emptydoc("project") #Task 0@1 : Getting started with GTG title1 = _("Getting started with GTG") text1 = _("Welcome in Getting Things Gnome!, your new task manager.") text1 += "\n\n" text1 += _("In GTG, everything is a task. From building a bridge over the Pacific Ocean to changing a light bulb or organizing a party. When you edit a task, it is automatically saved.") text1 += "\n\n" text1 += _("Once a task is done, you can push the &quot;Mark as done&quot; button. If the task is not relevant any-more, simply press &quot;Dismiss&quot;.") text1 += "\n\n" text1 += _("A task might be composed of multiple subtasks that appear as links in the description. Simply click on the following link :") text1 += "\n" text1 += "<subtask>1@1</subtask>\n" text1 += "\n\n" text1 += _("Don't forget to mark this subtask as done !") text1 += "\n\n" text1 += _("Other stuff you should read :") text1 += "\n" text1 += "<subtask>2@1</subtask>\n" text1 += "<subtask>3@1</subtask>\n" text1 += "<subtask>4@1</subtask>\n" text1 += "\n\n" text1 += _("We hope that you will appreciate GTG. Please send us bug reports and ideas for improvement using : ") text1 += "https://bugs.launchpad.net/gtg" text1 += "\n\n" text1 += _("Thank you for trying out GTG :-)") t1 = addtask(doc,"0@1",title1,text1,["1@1","2@1","3@1","4@1"]) root.appendChild(t1) #Task 1@1 : Learn to use subtasks title2 = _("Learn to use subtasks") text2 = _("In the task description (this window), if you begin a line with &quot;-&quot;, it will be considered as a &quot;subtask&quot;, something that needs to be done in order to accomplish your task. Just try to write &quot;- test subtask&quot; on the next line and press enter.") text2 += "\n\n" text2 += _("You can also use the &quot;insert subtask&quot; button.") text2 += "\n\n\n" text2 += _("Task and subtasks can be re-organized by drag-n-drop in the tasks list.") text2 += "\n\n" text2 += _("Some concept come with subtasks : for example, a subtask due date can never be after its parent due date.") text2 += "\n\n" text2 += _("Also, marking a parent as done will mark all the subtasks as done.") t2 = addtask(doc,"1@1",title2,text2,[]) root.appendChild(t2) #Task 2@1 : Learn to use tags title3 = _("Learn to use tags") text3 = _("A tag is a simple word that begin with &quot;@&quot;.") text3 += "\n\n" text3 += _("Try to type a word beginning with @ here :") text3 += "\n\n" text3 += _("It becomes yellow, it's a tag.") text3 += "\n\n" text3 += _("Tags are useful to sort your tasks. In the view menu, you can enable a sidebar which displays all the tags you are using so you can easily see tasks for a given tag. There's no limit to the number of tags a task can have.") text3 += "\n\n" text3 += _("If you right click on a tag in the sidebar you can also set its color. It will permit you to have a more colorful list of tasks, if you want it that way.") text3 += "\n\n" text3 += _("A new tag is only added to the current task. There's no recursivity and the tag is not applied to subtasks. But when you create a new subtask, this subtask will inherit the tags of its parent as a good primary default (it will also be the case if you add a tag to a parent just after creating a subtask). Of course, you can modify at any time the tags of this particular subtask. It will never be changed by the parent.") t3 = addtask(doc,"2@1",title3,text3,[]) root.appendChild(t3) #Task 3@1 : Using the Workview title4 = _("Using the Workview") text4 = _("If you press the &quot;Workview&quot; button, only actionable tasks will be displayed.") text4 += "\n\n" text4 += _("What is an actionable task? It's a task you can do directly, right now.") text4 += "\n\n" text4 += _("It's a task that is already &quot;start-able&quot;, i.e. the start date is already over.") text4 += "\n\n" text4 += _("It's a task that doesn't have open subtasks, i.e. you can do the task itself directly.") text4 += "\n\n" text4 += _("Thus, the workview will only show you tasks you should do right now.") text4 += "\n\n" text4 += _("If you use tags, you can right click on a tag in the sidebar and choose to not display tasks with this particular tag in the workview. It's very useful if you have a tag like &quot;someday&quot; that you use for tasks you would like to do but are not particularly urgent.") t4 = addtask(doc,"3@1",title4,text4,[]) root.appendChild(t4) #Task 4@1 : Reporting bugs title5 = _("Reporting bugs") text5 = _("GTG is still very alpha software. We like it and use it everyday but you will encounter some bugs.") text5 += "\n\n" text5 += _("Please, report them ! We need you to make this software better. Any contribution, any idea is welcome.") text5 += "\n\n" text5 += _("If you have some trouble with GTG, we might be able to help you or to solve your problem really quickly.") t5 = addtask(doc,"4@1",title5,text5,[]) root.appendChild(t5) return doc
88f87d38f8969fbb3a1bb46f14b705ca8e310947 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/88f87d38f8969fbb3a1bb46f14b705ca8e310947/firstrun_tasks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 1435, 294, 997, 16, 3085, 273, 2721, 2902, 18, 5531, 2434, 2932, 4406, 7923, 468, 2174, 374, 36, 21, 294, 26602, 5746, 598, 19688, 43, 2077, 21, 273, 389, 2932, 19213, 5746, 598, 19688, 43, 7923, 977, 21, 273, 389, 2932, 59, 16312, 316, 26602, 935, 899, 611, 82, 1742, 5, 16, 3433, 394, 1562, 3301, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 382, 19688, 43, 16, 7756, 353, 279, 1562, 18, 6338, 10504, 279, 10105, 1879, 326, 453, 1077, 1507, 531, 31393, 358, 12770, 279, 9052, 30353, 70, 578, 15501, 6894, 279, 18285, 18, 5203, 1846, 3874, 279, 1562, 16, 518, 353, 6635, 5198, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 12212, 279, 1562, 353, 2731, 16, 1846, 848, 1817, 326, 473, 9270, 31, 3882, 487, 2731, 10, 9270, 31, 3568, 18, 971, 326, 1562, 353, 486, 9368, 1281, 17, 10161, 16, 8616, 11779, 473, 9270, 31, 1669, 3105, 10, 9270, 31, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 37, 1562, 4825, 506, 18673, 434, 3229, 720, 9416, 716, 9788, 487, 4716, 316, 326, 2477, 18, 9587, 1283, 4682, 603, 326, 3751, 1692, 294, 7923, 977, 21, 1011, 1548, 82, 6, 977, 21, 1011, 3532, 1717, 4146, 34, 21, 36, 21, 1757, 1717, 4146, 5333, 82, 6, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 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, 6490, 1435, 294, 997, 16, 3085, 273, 2721, 2902, 18, 5531, 2434, 2932, 4406, 7923, 468, 2174, 374, 36, 21, 294, 26602, 5746, 598, 19688, 43, 2077, 21, 273, 389, 2932, 19213, 5746, 598, 19688, 43, 7923, 977, 21, 273, 389, 2932, 59, 16312, 316, 26602, 935, 899, 611, 82, 1742, 5, 16, 3433, 394, 1562, 3301, 1199, 13, 977, 21, 1011, 1548, 82, 64, 82, 6, 977, 21, 1011, 389, 2932, 382, 19688, 43, 16, 7756, 353, 279, 1562, 18, 6338, 10504, 279, 10105, 1879, 326, 453, 1077, 1507, 531, 31393, 358, 12770, 279, 9052, 30353, 70, 578, 15501, 6894, 279, 18285, 18, 5203, 1846, 3874, 279, 1562, 16, 518, 353, 6635, 5198, 1199, 13, 977, 21, 2 ]
if opts.has_key('search'): opts['search_fields'] = ",".join(opts['search'])
if opts.has_key('search'): opts['search_fields'] = ",".join(opts['search']) opts['show_search'] = opts.get('show_search', True) else: opts['show_search'] = False
def render(self, context): opts = {} global disp_list_guid disp_list_guid = disp_list_guid + 1 # add dojo modules add_module("dojox.data.QueryReadStore") add_module("dojox.grid.DataGrid") # Setable options, not listed: label, query, search, nosort if self.model: opts['list_display'] = [x.attname for x in self.model._meta.fields] opts['width'] = {} opts['label'] = {} opts['default_width'] = "auto" opts['width'] = "100%" opts['height'] = "100%" opts['query']={} opts['query']['inclusions']=[] opts['id'] = "disp_list_%s_%s" % (disp_list_guid,random.randint(10000,99999)) try: # reverse lookup of the datagrid-list url (see dojango/urls.py) if self.model: opts['json_store_url'] = reverse("dojango-datagrid-list", args=(self.app_name, self.model_name)) except NoReverseMatch: pass # User overrides if self.options: opts.update(extract_nodelist_options(self.options,context)) if not opts['query'].has_key('inclusions'): opts['query']['inclusions'] = [] # we must ensure that the json_store_url is defined if not opts.get('json_store_url', False): raise TemplateSyntaxError, "Please enable the url 'dojango-datagrid-list' in your urls.py or pass a 'json_store_url' to the datagrid templatetag." # Incase list_display was passed as tuple, turn to list for mutability if not self.model and not opts.get('list_display', False): raise TemplateSyntaxError, "'list_display' not defined. If you use your own 'json_store_url' you have to define which fields are visible." opts['list_display'] = list(opts['list_display']) # Config for template opts['headers'] = []
0228a2b894fe2eca3c11a5a9838d9e78baf6d462 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12008/0228a2b894fe2eca3c11a5a9838d9e78baf6d462/dojango_grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 4672, 1500, 273, 2618, 2552, 16232, 67, 1098, 67, 14066, 16232, 67, 1098, 67, 14066, 273, 16232, 67, 1098, 67, 14066, 397, 404, 468, 527, 741, 30952, 4381, 527, 67, 2978, 2932, 2896, 78, 2409, 18, 892, 18, 1138, 1994, 2257, 7923, 527, 67, 2978, 2932, 2896, 78, 2409, 18, 5222, 18, 751, 6313, 7923, 225, 468, 1000, 429, 702, 16, 486, 12889, 30, 1433, 16, 843, 16, 1623, 16, 26628, 499, 309, 365, 18, 2284, 30, 1500, 3292, 1098, 67, 5417, 3546, 273, 306, 92, 18, 4558, 529, 364, 619, 316, 365, 18, 2284, 6315, 3901, 18, 2821, 65, 1500, 3292, 2819, 3546, 273, 2618, 1500, 3292, 1925, 3546, 273, 2618, 1500, 3292, 1886, 67, 2819, 3546, 273, 315, 6079, 6, 1500, 3292, 2819, 3546, 273, 315, 6625, 16407, 1500, 3292, 4210, 3546, 273, 315, 6625, 16407, 1500, 3292, 2271, 3546, 12938, 1500, 3292, 2271, 21712, 267, 25364, 3546, 33, 8526, 225, 1500, 3292, 350, 3546, 273, 315, 25453, 67, 1098, 10185, 87, 10185, 87, 6, 738, 261, 25453, 67, 1098, 67, 14066, 16, 9188, 18, 7884, 474, 12, 23899, 16, 31463, 3719, 775, 30, 468, 4219, 3689, 434, 326, 1150, 22239, 17, 1098, 880, 261, 5946, 741, 9142, 19, 10518, 18, 2074, 13, 309, 365, 18, 2284, 30, 1500, 3292, 1977, 67, 2233, 67, 718, 3546, 273, 4219, 2932, 2896, 9142, 17, 3404, 22239, 17, 1098, 3113, 833, 28657, 2890, 18, 2910, 67, 529, 16, 365, 18, 2284, 67, 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, 1743, 12, 2890, 16, 819, 4672, 1500, 273, 2618, 2552, 16232, 67, 1098, 67, 14066, 16232, 67, 1098, 67, 14066, 273, 16232, 67, 1098, 67, 14066, 397, 404, 468, 527, 741, 30952, 4381, 527, 67, 2978, 2932, 2896, 78, 2409, 18, 892, 18, 1138, 1994, 2257, 7923, 527, 67, 2978, 2932, 2896, 78, 2409, 18, 5222, 18, 751, 6313, 7923, 225, 468, 1000, 429, 702, 16, 486, 12889, 30, 1433, 16, 843, 16, 1623, 16, 26628, 499, 309, 365, 18, 2284, 30, 1500, 3292, 1098, 67, 5417, 3546, 273, 306, 92, 18, 4558, 529, 364, 619, 316, 365, 18, 2284, 6315, 3901, 18, 2821, 65, 1500, 3292, 2819, 3546, 273, 2618, 1500, 3292, 1925, 3546, 273, 2618, 1500, 2 ]
os.path.join(datadir, 'output',
join_path(datadir, 'output',
def test(self): """Process self.configfile.""" os.chdir(testroot) # Keyword parameters for publish_file: params = {} # Initialize 'settings_overrides' for test settings scripts, # and disable configuration files: params['settings_overrides'] = {'_disable_config': 1} # Read the variables set in the default config file and in # the current config file into params: execfile(os.path.join(datadir, 'tests', '_default.py'), params) execfile(self.configfile, params) # Check for required settings: assert params.has_key('test_source'),\ "No 'test_source' supplied in " + self.configfile assert params.has_key('test_destination'),\ "No 'test_destination' supplied in " + self.configfile # Set source_path and destination_path if not given: params.setdefault('source_path', os.path.join(datadir, 'input', params['test_source'])) # Path for actual output: params.setdefault('destination_path', os.path.join(datadir, 'output', params['test_destination'])) # Path for expected output: expected_path = os.path.join(datadir, 'expected', params['test_destination']) # test_source and test_destination aren't needed any more: del params['test_source'] del params['test_destination'] # Delete private stuff like params['__builtins__']: for key in params.keys(): if key.startswith('_'): del params[key] # Get output (automatically written to the output/ directory # by publish_file): output = docutils.core.publish_file(**params) # Get the expected output *after* writing the actual output. self.assert_(os.access(expected_path, os.R_OK),\ 'Cannot find expected output at\n' + expected_path) expected = open(expected_path).read() diff = ('Please compare the expected and actual output files:\n' 'diff %s %s\n' % (expected_path, params['destination_path'])) try: self.assertEquals(output, expected, diff) except AssertionError: if hasattr(difflib, 'unified_diff'): # Generate diff if unified_diff available: diff = ''.join( difflib.unified_diff(expected.splitlines(1), output.splitlines(1), expected_path, params['destination_path'])) print >>sys.stderr, '\n%s:' % (self,) print >>sys.stderr, diff raise
897dca2b1aba044313037b1f074a1f74fcf0903d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/897dca2b1aba044313037b1f074a1f74fcf0903d/test_functional.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 3536, 2227, 365, 18, 1425, 768, 12123, 1140, 18, 343, 1214, 12, 3813, 3085, 13, 468, 18317, 1472, 364, 3808, 67, 768, 30, 859, 273, 2618, 468, 9190, 296, 4272, 67, 19775, 11, 364, 1842, 1947, 8873, 16, 468, 471, 4056, 1664, 1390, 30, 859, 3292, 4272, 67, 19775, 3546, 273, 13666, 67, 8394, 67, 1425, 4278, 404, 97, 468, 2720, 326, 3152, 444, 316, 326, 805, 642, 585, 471, 316, 468, 326, 783, 642, 585, 1368, 859, 30, 1196, 768, 12, 538, 18, 803, 18, 5701, 12, 3404, 361, 481, 16, 296, 16341, 2187, 2070, 1886, 18, 2074, 19899, 859, 13, 1196, 768, 12, 2890, 18, 1425, 768, 16, 859, 13, 468, 2073, 364, 1931, 1947, 30, 1815, 859, 18, 5332, 67, 856, 2668, 3813, 67, 3168, 19899, 64, 315, 2279, 296, 3813, 67, 3168, 11, 4580, 316, 315, 397, 365, 18, 1425, 768, 1815, 859, 18, 5332, 67, 856, 2668, 3813, 67, 10590, 19899, 64, 315, 2279, 296, 3813, 67, 10590, 11, 4580, 316, 315, 397, 365, 18, 1425, 768, 468, 1000, 1084, 67, 803, 471, 2929, 67, 803, 309, 486, 864, 30, 859, 18, 542, 1886, 2668, 3168, 67, 803, 2187, 1140, 18, 803, 18, 5701, 12, 3404, 361, 481, 16, 296, 2630, 2187, 859, 3292, 3813, 67, 3168, 3546, 3719, 468, 2666, 364, 3214, 876, 30, 859, 18, 542, 1886, 2668, 10590, 67, 803, 2187, 1233, 67, 803, 12, 3404, 361, 481, 16, 296, 2844, 2187, 859, 3292, 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, 1842, 12, 2890, 4672, 3536, 2227, 365, 18, 1425, 768, 12123, 1140, 18, 343, 1214, 12, 3813, 3085, 13, 468, 18317, 1472, 364, 3808, 67, 768, 30, 859, 273, 2618, 468, 9190, 296, 4272, 67, 19775, 11, 364, 1842, 1947, 8873, 16, 468, 471, 4056, 1664, 1390, 30, 859, 3292, 4272, 67, 19775, 3546, 273, 13666, 67, 8394, 67, 1425, 4278, 404, 97, 468, 2720, 326, 3152, 444, 316, 326, 805, 642, 585, 471, 316, 468, 326, 783, 642, 585, 1368, 859, 30, 1196, 768, 12, 538, 18, 803, 18, 5701, 12, 3404, 361, 481, 16, 296, 16341, 2187, 2070, 1886, 18, 2074, 19899, 859, 13, 1196, 768, 12, 2890, 18, 1425, 768, 16, 859, 13, 468, 2073, 2 ]
def init(self):
def do_init(self):
def init(self): self.editor = None self.bufferlist = None self.currentbufnum = None
c8a04dbd147e55cb69aadf28e56d48a8f2959ffa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/c8a04dbd147e55cb69aadf28e56d48a8f2959ffa/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2738, 12, 2890, 4672, 365, 18, 9177, 273, 599, 365, 18, 4106, 1098, 273, 599, 365, 18, 2972, 4385, 2107, 273, 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, 0, 0, 0, 0, 0, 0, 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, 4106, 1098, 273, 599, 365, 18, 2972, 4385, 2107, 273, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.expand_directory(itempath, False, go_buttons_enabled)
self.expand_directory(itempath, False, go_buttons_enabled, False)
def expand_filelist_and_load_image(self, inputlist): self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found; returns new list self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) if not self.closing_app: while gtk.events_pending(): gtk.main_iteration() first_image = "" first_image_found = False first_image_loaded = False second_image = "" second_image_found = False second_image_preloaded = False self.randomlist = [] folderlist = [] self.image_list = [] self.curr_img_in_list = 0 go_buttons_enabled = False self.set_go_sensitivities(False) # Clean up list (remove preceding "file://" or "file:" and trailing "/") for itemnum in range(len(inputlist)): # Strip off preceding file.. if inputlist[itemnum].startswith('file://'): inputlist[itemnum] = inputlist[itemnum][7:] elif inputlist[itemnum].startswith('file:'): inputlist[itemnum] = inputlist[itemnum][5:] # Strip off trailing "/" if it exists: if inputlist[itemnum][len(inputlist[itemnum])-1] == "/": inputlist[itemnum] = inputlist[itemnum][:(len(inputlist[itemnum])-1)] inputlist[itemnum] = os.path.abspath(inputlist[itemnum]) # If open all images in dir... if self.open_all_images == True: for item in inputlist: if os.path.isfile(item): itempath = os.path.dirname(os.path.abspath(item)) temp = self.recursive self.recursive = False self.stop_now = False self.expand_directory(itempath, False, go_buttons_enabled) self.recursive = temp for item in self.image_list: # Make sure item is not already in list: duplicate_image = False for item2 in inputlist: if item == item2: duplicate_image = True if duplicate_image == False: inputlist.append(item) self.image_list = [] for item in inputlist: if item[0] != '.' and self.closing_app == False: if os.path.isfile(item): if self.valid_image(item): if second_image_found == False: if first_image_found == True: second_image_found = True second_image = item if first_image_found == False: first_image_found = True first_image = item first_image_came_from_dir = False self.image_list.append(item) if go_buttons_enabled == False: if len(self.image_list) > 1: self.set_go_navigation_sensitivities() go_buttons_enabled = True if self.verbose == True: self.images_found += 1 print _("Found:"), item_fullpath, "[" + str(self.images_found) + "]" else: # If it's a directory that was explicitly selected or passed to # the program, get all the files in the dir. # Retrieve only images in the top directory specified by the user # only explicitly told to recurse (via -R or in Settings>Preferences) folderlist.append(item) if second_image_found == False: # See if we can find an image in this directory: self.stop_now = False self.expand_directory(item, True, go_buttons_enabled) itemnum = 0 while itemnum < len(self.image_list) and second_image_found == False: if os.path.isfile(self.image_list[itemnum]): if second_image_found == False: if first_image_found == True: second_image_found = True second_image = self.image_list[itemnum] if first_image_found == False: first_image_found = True first_image = self.image_list[itemnum] first_image_came_from_dir = True itemnum += 1 # Load first image and display: if first_image_found == True and first_image_loaded == False: first_image_loaded = True if self.slideshow_mode == True: self.toggle_slideshow(None) if self.verbose == True and self.currimg_name != "": print _("Loading:"), self.currimg_name try: self.load_new_image(False, False, False, False) if self.currimg_is_animation == False: self.previmg_width = self.currimg_pixbuf.get_width() else: self.previmg_width = self.currimg_pixbuf.get_static_image().get_width() self.image_loaded = True if not self.closing_app: while gtk.events_pending(): gtk.main_iteration(True) except: self.image_load_failed(False) pass if first_image_came_from_dir == True: self.image_list = [] # Pre-load second image: if second_image_found == True and second_image_preloaded == False: second_image_preloaded = True try: self.load_new_image(False, True, False, False) except: pass if first_image_found == True: # Sort the filelist and folderlist alphabetically, and recurse into folderlist: if first_image_came_from_dir == True: self.add_folderlist_images(folderlist, go_buttons_enabled) self.do_image_list_stuff(first_image, second_image) else: self.do_image_list_stuff(first_image, second_image) self.add_folderlist_images(folderlist, go_buttons_enabled) self.set_window_title() if not self.closing_app: while gtk.events_pending(): gtk.main_iteration(True) if not self.closing_app: self.change_cursor(None)
f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 7540, 5449, 67, 464, 67, 945, 67, 2730, 12, 2890, 16, 810, 1098, 4672, 365, 18, 7369, 67, 7015, 273, 374, 365, 18, 5681, 67, 3338, 273, 1053, 468, 4344, 3071, 716, 1281, 2416, 1623, 1207, 353, 9627, 468, 23004, 326, 783, 666, 261, 77, 18, 73, 18, 8247, 20003, 18, 14362, 3113, 315, 20003, 22, 18, 13905, 3113, 315, 6216, 7369, 6, 5717, 471, 468, 4542, 87, 518, 1368, 279, 666, 434, 777, 293, 28636, 1392, 31, 1135, 394, 666, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 309, 486, 365, 18, 19506, 67, 2910, 30, 1323, 22718, 18, 5989, 67, 9561, 13332, 22718, 18, 5254, 67, 16108, 1435, 1122, 67, 2730, 273, 1408, 1122, 67, 2730, 67, 7015, 273, 1083, 1122, 67, 2730, 67, 4230, 273, 1083, 2205, 67, 2730, 273, 1408, 2205, 67, 2730, 67, 7015, 273, 1083, 2205, 67, 2730, 67, 1484, 4230, 273, 1083, 365, 18, 9188, 1098, 273, 5378, 3009, 1098, 273, 5378, 365, 18, 2730, 67, 1098, 273, 5378, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 273, 374, 1960, 67, 16016, 67, 5745, 273, 1083, 365, 18, 542, 67, 3240, 67, 87, 773, 305, 427, 1961, 12, 8381, 13, 468, 9645, 731, 666, 261, 4479, 19969, 315, 768, 14334, 578, 315, 768, 2773, 471, 7341, 4016, 13, 364, 761, 2107, 316, 1048, 12, 1897, 12, 2630, 1098, 3719, 30, 468, 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, 4542, 67, 7540, 5449, 67, 464, 67, 945, 67, 2730, 12, 2890, 16, 810, 1098, 4672, 365, 18, 7369, 67, 7015, 273, 374, 365, 18, 5681, 67, 3338, 273, 1053, 468, 4344, 3071, 716, 1281, 2416, 1623, 1207, 353, 9627, 468, 23004, 326, 783, 666, 261, 77, 18, 73, 18, 8247, 20003, 18, 14362, 3113, 315, 20003, 22, 18, 13905, 3113, 315, 6216, 7369, 6, 5717, 471, 468, 4542, 87, 518, 1368, 279, 666, 434, 777, 293, 28636, 1392, 31, 1135, 394, 666, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 309, 486, 365, 18, 19506, 67, 2910, 30, 1323, 22718, 18, 5989, 2 ]
""" gives the difference in offsets of one end of this object to one end of the other object.
""" compares an end of this object to an end of another object
def compareEndPoints(self,other,which): """ gives the difference in offsets of one end of this object to one end of the other object.
84979cbebda93a39a352185d4a96a2c6a3fa25b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/84979cbebda93a39a352185d4a96a2c6a3fa25b0/textHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 1638, 5636, 12, 2890, 16, 3011, 16, 12784, 4672, 3536, 14758, 326, 7114, 316, 8738, 434, 1245, 679, 434, 333, 733, 358, 1245, 679, 434, 326, 1308, 733, 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, 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 16, 3011, 16, 12784, 4672, 3536, 14758, 326, 7114, 316, 8738, 434, 1245, 679, 434, 333, 733, 358, 1245, 679, 434, 326, 1308, 733, 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 ]
sage: G.is_normal(H) True
sage: H.is_normal(G) False
def is_normal(self,other): """ Return True if the group self is a normal subgroup of other.
e7fb472aa4a510b0d654fccc28ac931eb8639d16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e7fb472aa4a510b0d654fccc28ac931eb8639d16/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 6130, 12, 2890, 16, 3011, 4672, 3536, 2000, 1053, 309, 326, 1041, 365, 353, 279, 2212, 720, 1655, 434, 1308, 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,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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 6130, 12, 2890, 16, 3011, 4672, 3536, 2000, 1053, 309, 326, 1041, 365, 353, 279, 2212, 720, 1655, 434, 1308, 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 ]
counter += 1
def __pair_arg_with_option(self):
8dd06ecea1ea403d62155706d3cdd2c7f4fb1a46 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/8dd06ecea1ea403d62155706d3cdd2c7f4fb1a46/options_trem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6017, 67, 3175, 67, 1918, 67, 3482, 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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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, 6017, 67, 3175, 67, 1918, 67, 3482, 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 ]
print old[1][0], new[1][0].split("'")[1].split(".")[1]
def different_attributes(old, new): # If they're not triples, just do normal comparison if not isinstance(old, (list, tuple)) or not isinstance(new, (list, tuple)): return old != new # If the first or third bits or end of second are different, it really is different. if old[0] != new[0] or old[2] != new[2] or old[1][1:] != new[1][1:]: return True if not old[1] and not new[1]: return False # Compare first positional arg if "orm" in new[1][0] and "orm" not in old[1][0]: # Do special comparison to fix #153 try: print old[1][0], new[1][0].split("'")[1].split(".")[1] return old[1][0] != new[1][0].split("'")[1].split(".")[1] except IndexError: pass # Fall back to next comparison return old[1][0] != new[1][0]
7194e9a40b9f9c4482774ff8e4243c0d683ee6ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/7194e9a40b9f9c4482774ff8e4243c0d683ee6ec/startmigration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3775, 67, 4350, 12, 1673, 16, 394, 4672, 468, 971, 2898, 4565, 486, 22388, 16, 2537, 741, 2212, 5826, 309, 486, 1549, 12, 1673, 16, 261, 1098, 16, 3193, 3719, 578, 486, 1549, 12, 2704, 16, 261, 1098, 16, 3193, 3719, 30, 327, 1592, 480, 394, 468, 971, 326, 1122, 578, 12126, 4125, 578, 679, 434, 2205, 854, 3775, 16, 518, 8654, 353, 3775, 18, 309, 1592, 63, 20, 65, 480, 394, 63, 20, 65, 578, 1592, 63, 22, 65, 480, 394, 63, 22, 65, 578, 1592, 63, 21, 6362, 21, 26894, 480, 394, 63, 21, 6362, 21, 30, 14542, 327, 1053, 309, 486, 1592, 63, 21, 65, 471, 486, 394, 63, 21, 14542, 327, 1083, 468, 11051, 1122, 16780, 1501, 309, 315, 535, 6, 316, 394, 63, 21, 6362, 20, 65, 471, 315, 535, 6, 486, 316, 1592, 63, 21, 6362, 20, 14542, 468, 2256, 4582, 5826, 358, 2917, 468, 30305, 775, 30, 327, 1592, 63, 21, 6362, 20, 65, 480, 394, 63, 21, 6362, 20, 8009, 4939, 2932, 4970, 25146, 21, 8009, 4939, 2932, 1199, 25146, 21, 65, 1335, 10195, 30, 1342, 468, 23647, 1473, 358, 1024, 5826, 327, 1592, 63, 21, 6362, 20, 65, 480, 394, 63, 21, 6362, 20, 65, 377, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3775, 67, 4350, 12, 1673, 16, 394, 4672, 468, 971, 2898, 4565, 486, 22388, 16, 2537, 741, 2212, 5826, 309, 486, 1549, 12, 1673, 16, 261, 1098, 16, 3193, 3719, 578, 486, 1549, 12, 2704, 16, 261, 1098, 16, 3193, 3719, 30, 327, 1592, 480, 394, 468, 971, 326, 1122, 578, 12126, 4125, 578, 679, 434, 2205, 854, 3775, 16, 518, 8654, 353, 3775, 18, 309, 1592, 63, 20, 65, 480, 394, 63, 20, 65, 578, 1592, 63, 22, 65, 480, 394, 63, 22, 65, 578, 1592, 63, 21, 6362, 21, 26894, 480, 394, 63, 21, 6362, 21, 30, 14542, 327, 1053, 309, 486, 1592, 63, 21, 65, 471, 486, 394, 63, 21, 14542, 327, 1083, 468, 11051, 2 ]
args = ex.args()
args = ex.operands()
def derivative(self, ex, operator): """ EXAMPLES::
e6f673e3980b94d07970b5010a76c00eb1fbfc97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/e6f673e3980b94d07970b5010a76c00eb1fbfc97/expression_conversions.py
[ 1, 8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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16417, 12, 2890, 16, 431, 16, 3726, 4672, 3536, 5675, 8900, 11386, 2866, 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 mean(values): return sum(values) / float(len(values)) def variance(values):
def _mean(values): return sum(values) / float(max(len(values), 1)) def _variance(values):
def mean(values): return sum(values) / float(len(values))
bc9d5a1d58b676e7cc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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3722, 12, 2372, 4672, 327, 2142, 12, 2372, 13, 342, 1431, 12, 1897, 12, 2372, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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): family.Family.__init__(self) self.name = 'wikiquote' self.langs = { 'minnan':'zh-min-nan.wikiquote.org', 'nb':'no.wikiquote.org', 'zh-cn':'zh.wikiquote.org', 'zh-tw':'zh.wikiquote.org' } for lang in self.knownlanguages: self.langs[lang] = lang+'.wikiquote.org'
d4d5b4a020a852c7a6a88ca621b8a14d165344aa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/d4d5b4a020a852c7a6a88ca621b8a14d165344aa/wikiquote_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 13044, 6889, 11, 225, 365, 18, 4936, 87, 273, 288, 296, 1154, 13569, 11, 2497, 23121, 17, 1154, 17, 13569, 18, 13044, 6889, 18, 3341, 2187, 296, 6423, 11, 2497, 2135, 18, 13044, 6889, 18, 3341, 2187, 296, 23121, 17, 10305, 11, 2497, 23121, 18, 13044, 6889, 18, 3341, 2187, 296, 23121, 17, 11246, 11, 2497, 23121, 18, 13044, 6889, 18, 3341, 11, 289, 364, 3303, 316, 365, 18, 2994, 14045, 30, 365, 18, 4936, 87, 63, 4936, 65, 273, 3303, 6797, 18, 13044, 6889, 18, 3341, 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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, 2187, 296, 6423, 11, 2497, 2135, 18, 13044, 6889, 18, 3341, 2187, 296, 23121, 17, 10305, 11, 2497, 23121, 18, 13044, 6889, 18, 3341, 2187, 296, 23121, 17, 11246, 11, 2497, 23121, 18, 13044, 6889, 18, 3341, 11, 289, 364, 3303, 316, 365, 18, 2994, 14045, 30, 365, 18, 4936, 87, 63, 4936, 65, 273, 3303, 6797, 18, 13044, 6889, 18, 3341, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self._clean: return self._clean = True self.stdin.close() self.drain() self.stdout.thread.join() self.stderr.thread.join()
self._clean_lock.acquire() try: if self._clean: return self._clean = True self.stdin.close() self.drain() self.stdout.thread.join() self.stderr.thread.join() finally: self._clean_lock.release()
def _cleanup(self): """Close pipes to sub-process""" if self._clean: return self._clean = True self.stdin.close() self.drain() # Drain output pipes. self.stdout.thread.join() # Drain thread closes pipe. self.stderr.thread.join()
7a04cce01ce4bf9e9d98cd2d28619c28938cd9e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/7a04cce01ce4bf9e9d98cd2d28619c28938cd9e7/brokertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16732, 12, 2890, 4672, 3536, 4605, 16062, 358, 720, 17, 2567, 8395, 309, 365, 6315, 6200, 30, 327, 365, 6315, 6200, 273, 1053, 365, 18, 21772, 18, 4412, 1435, 365, 18, 72, 7596, 1435, 10792, 468, 463, 7596, 876, 16062, 18, 365, 18, 10283, 18, 5930, 18, 5701, 1435, 4202, 468, 463, 7596, 2650, 13445, 6010, 18, 365, 18, 11241, 18, 5930, 18, 5701, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16732, 12, 2890, 4672, 3536, 4605, 16062, 358, 720, 17, 2567, 8395, 309, 365, 6315, 6200, 30, 327, 365, 6315, 6200, 273, 1053, 365, 18, 21772, 18, 4412, 1435, 365, 18, 72, 7596, 1435, 10792, 468, 463, 7596, 876, 16062, 18, 365, 18, 10283, 18, 5930, 18, 5701, 1435, 4202, 468, 463, 7596, 2650, 13445, 6010, 18, 365, 18, 11241, 18, 5930, 18, 5701, 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 ]
@param defval: the default identifier. This value will appear in
@param defval: the default identifier. This value will appear in
def AskIdent(defval, prompt): """ Ask the user to enter an identifier @param defval: the default identifier. This value will appear in the dialog box. @param prompt: the prompt to display in the dialog box @return: the entered identifier or 0. """ return idaapi.askident(defval, prompt)
507ea15b7a89e88e413b47a9fe03b571d956c14a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/507ea15b7a89e88e413b47a9fe03b571d956c14a/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25747, 6106, 12, 536, 1125, 16, 6866, 4672, 3536, 25747, 326, 729, 358, 6103, 392, 2756, 225, 632, 891, 1652, 1125, 30, 326, 805, 2756, 18, 1220, 460, 903, 9788, 316, 326, 6176, 3919, 18, 632, 891, 6866, 30, 326, 6866, 358, 2562, 316, 326, 6176, 3919, 225, 632, 2463, 30, 326, 16219, 2756, 578, 374, 18, 3536, 327, 612, 69, 2425, 18, 835, 6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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25747, 6106, 12, 536, 1125, 16, 6866, 4672, 3536, 25747, 326, 729, 358, 6103, 392, 2756, 225, 632, 891, 1652, 1125, 30, 326, 805, 2756, 18, 1220, 460, 903, 9788, 316, 326, 6176, 3919, 18, 632, 891, 6866, 30, 326, 6866, 358, 2562, 316, 326, 6176, 3919, 225, 632, 2463, 30, 326, 16219, 2756, 578, 374, 18, 3536, 327, 612, 69, 2425, 18, 835, 6392, 12, 536, 1125, 16, 6866, 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 ]
childobj_ = AbstractSeqMatrix.factory() childobj_.build(child_)
type_name_ = child_.attrib.get('{http://www.w3.org/2001/XMLSchema-instance}type') if type_name_ is None: type_name_ = child_.attrib.get('type') if type_name_ is not None: type_names_ = type_name_.split(':') if len(type_names_) == 1: type_name_ = type_names_[0] else: type_name_ = type_names_[1] class_ = globals()[type_name_] obj_ = class_.factory() obj_.build(child_) else: raise NotImplementedError( 'Class not implemented for <matrix> element')
def buildChildren(self, child_, nodeName_, from_subclass=False): if nodeName_ == 'matrix': childobj_ = AbstractSeqMatrix.factory() childobj_.build(child_) obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'matrix', childobj_) self.content_.append(obj_) if hasattr(self, 'add_matrix'): self.add_matrix(obj_.value) elif hasattr(self, 'set_matrix'): self.set_matrix(obj_.value) if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) super(AbstractSeqs, self).buildChildren(child_, nodeName_, True)
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 5667, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 95, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 97, 723, 6134, 309, 618, 67, 529, 67, 353, 599, 30, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 723, 6134, 309, 618, 67, 529, 67, 353, 486, 599, 30, 618, 67, 1973, 67, 273, 618, 67, 529, 27799, 4939, 2668, 2497, 13, 309, 562, 12, 723, 67, 1973, 67, 13, 422, 404, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 63, 20, 65, 469, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 63, 21, 65, 667, 67, 273, 10941, 1435, 63, 723, 67, 529, 67, 65, 1081, 67, 273, 667, 27799, 6848, 1435, 1081, 27799, 3510, 12, 3624, 67, 13, 469, 30, 1002, 11206, 12, 296, 797, 486, 8249, 364, 411, 5667, 34, 930, 6134, 1081, 67, 273, 365, 18, 19562, 1106, 67, 12, 19846, 2170, 18, 4457, 12795, 16, 24725, 2170, 18, 559, 7036, 16, 296, 5667, 2187, 1151, 2603, 67, 13, 365, 18, 1745, 27799, 6923, 12, 2603, 67, 13, 309, 3859, 12, 2890, 16, 296, 1289, 67, 5667, 11, 4672, 365, 18, 1289, 67, 5667, 12, 2603, 27799, 1132, 13, 1327, 3859, 12, 2890, 16, 296, 542, 67, 5667, 11, 4672, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 5667, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 95, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 97, 723, 6134, 309, 618, 67, 529, 67, 353, 599, 30, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 723, 6134, 309, 618, 67, 529, 67, 353, 486, 599, 30, 618, 67, 1973, 67, 273, 618, 67, 529, 27799, 4939, 2668, 2497, 13, 309, 562, 12, 723, 67, 1973, 67, 13, 422, 404, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 2 ]
@see: keywords @type duration: {unit : value} @keyword months: Months @keyword weeks: Weeks @keyword days: Days @keyword hours: Hours @keyword minutes: Minutes @keyword seconds: Seconds
The duration may be: (months|weeks|days|hours|minutes|seconds). @type duration: {unit:value}
def setduration(self, **duration): """ Set the caching duration which defines how long the file will be cached. @param duration: The cached file duration which defines how long the file will be cached. A duration=0 means forever. @see: keywords @type duration: {unit : value} @keyword months: Months @keyword weeks: Weeks @keyword days: Days @keyword hours: Hours @keyword minutes: Minutes @keyword seconds: Seconds """ if len(duration) == 1: arg = duration.items()[0] if not arg[0] in self.units: raise Exception('must be: ' % self.units) self.duration = arg return self
e192ac766e38768d31d61e7ecb63c36916e3c1c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1242/e192ac766e38768d31d61e7ecb63c36916e3c1c9/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8760, 12, 2890, 16, 2826, 8760, 4672, 3536, 1000, 326, 11393, 3734, 1492, 11164, 3661, 1525, 326, 585, 903, 506, 3472, 18, 632, 891, 3734, 30, 1021, 3472, 585, 3734, 1492, 11164, 3661, 1525, 326, 585, 903, 506, 3472, 18, 225, 432, 3734, 33, 20, 4696, 21238, 18, 1021, 3734, 2026, 506, 30, 261, 27584, 96, 10741, 87, 96, 9810, 96, 16814, 96, 17916, 96, 7572,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8760, 12, 2890, 16, 2826, 8760, 4672, 3536, 1000, 326, 11393, 3734, 1492, 11164, 3661, 1525, 326, 585, 903, 506, 3472, 18, 632, 891, 3734, 30, 1021, 3472, 585, 3734, 1492, 11164, 3661, 1525, 326, 585, 903, 506, 3472, 18, 225, 432, 3734, 33, 20, 4696, 21238, 18, 1021, 3734, 2026, 506, 30, 261, 27584, 96, 10741, 87, 96, 9810, 96, 16814, 96, 17916, 96, 7572, 2934, 632, 723, 3734, 30, 288, 4873, 30, 1132, 97, 3536, 309, 562, 12, 8760, 13, 422, 404, 30, 1501, 273, 3734, 18, 3319, 1435, 63, 20, 65, 309, 486, 1501, 63, 20, 65, 316, 365, 18, 7705, 30, 1002, 1185, 2668, 11926, 506, 30, 296, 738, 365, 18, 7705, 13, 2 ]
self._datasets = sets
def __init__(self, sets=None):
e3e6b656e32c64b7f4d5713ede350bb77506650b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14944/e3e6b656e32c64b7f4d5713ede350bb77506650b/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1678, 33, 7036, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1678, 33, 7036, 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 ]
def setGeomery(self, mask):
def setGeometry(self, mask):
def setGeomery(self, mask): mask.setTheZ(self.coord.theZ); mask.setTheT(self.coord.theZ); mask.setX(self.x); mask.setY(self.y); mask.setWidth(self.width); mask.setHeight(self.height); mask.setBytes(self.bytedata);
f0bdd8df3ad2c2d884653d30a298452010b0e426 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/f0bdd8df3ad2c2d884653d30a298452010b0e426/ROI_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 9823, 12, 2890, 16, 3066, 4672, 3066, 18, 542, 1986, 62, 12, 2890, 18, 5732, 18, 5787, 62, 1769, 3066, 18, 542, 1986, 56, 12, 2890, 18, 5732, 18, 5787, 62, 1769, 3066, 18, 542, 60, 12, 2890, 18, 92, 1769, 3066, 18, 542, 61, 12, 2890, 18, 93, 1769, 3066, 18, 542, 2384, 12, 2890, 18, 2819, 1769, 3066, 18, 542, 2686, 12, 2890, 18, 4210, 1769, 3066, 18, 542, 2160, 12, 2890, 18, 1637, 2344, 396, 1769, 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, 444, 9823, 12, 2890, 16, 3066, 4672, 3066, 18, 542, 1986, 62, 12, 2890, 18, 5732, 18, 5787, 62, 1769, 3066, 18, 542, 1986, 56, 12, 2890, 18, 5732, 18, 5787, 62, 1769, 3066, 18, 542, 60, 12, 2890, 18, 92, 1769, 3066, 18, 542, 61, 12, 2890, 18, 93, 1769, 3066, 18, 542, 2384, 12, 2890, 18, 2819, 1769, 3066, 18, 542, 2686, 12, 2890, 18, 4210, 1769, 3066, 18, 542, 2160, 12, 2890, 18, 1637, 2344, 396, 1769, 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 ]
return self._name in os.environ and self.value()
return bool(self.value())
def __nonzero__(self): return self._name in os.environ and self.value()
2c4a959643bdf7629553862e9350d58fac8e86ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14112/2c4a959643bdf7629553862e9350d58fac8e86ed/setpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 26449, 972, 12, 2890, 4672, 327, 365, 6315, 529, 316, 1140, 18, 28684, 471, 365, 18, 1132, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26449, 972, 12, 2890, 4672, 327, 365, 6315, 529, 316, 1140, 18, 28684, 471, 365, 18, 1132, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
writer.writerow([str(klass.get(itemid, col)) for col in columns])
self.client._socket_op(writer.writerow, [str(klass.get(itemid, col)) for col in columns])
def handle(self): ''' Export the specified search query as CSV. ''' # figure the request request = templating.HTMLRequest(self.client) filterspec = request.filterspec sort = request.sort group = request.group columns = request.columns klass = self.db.getclass(request.classname)
f8ec122352785350c2a05250e505d71de38b4810 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1906/f8ec122352785350c2a05250e505d71de38b4810/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 9163, 11054, 326, 1269, 1623, 843, 487, 10381, 18, 9163, 468, 7837, 326, 590, 590, 273, 28923, 18, 4870, 691, 12, 2890, 18, 2625, 13, 1034, 2793, 273, 590, 18, 2188, 2793, 1524, 273, 590, 18, 3804, 1041, 273, 590, 18, 1655, 2168, 273, 590, 18, 5112, 7352, 273, 365, 18, 1966, 18, 588, 1106, 12, 2293, 18, 18340, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 9163, 11054, 326, 1269, 1623, 843, 487, 10381, 18, 9163, 468, 7837, 326, 590, 590, 273, 28923, 18, 4870, 691, 12, 2890, 18, 2625, 13, 1034, 2793, 273, 590, 18, 2188, 2793, 1524, 273, 590, 18, 3804, 1041, 273, 590, 18, 1655, 2168, 273, 590, 18, 5112, 7352, 273, 365, 18, 1966, 18, 588, 1106, 12, 2293, 18, 18340, 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 ]
def buildUnitTestList(options):
def buildTestList(options, excludeTools=True): """ Build test list from singles or collect all unit tests. """
def buildUnitTestList(options): excludeDirs = [] if len(options.single) > 0: includePattern = options.single else: includePattern = 'Test*.py' for item in [ 'tools', 'util', 'projects', 'plugins', 'build', 'Chandler.egg-info' ]: excludeDirs.append('%s/%s' % (options.chandlerHome, item)) for item in [ 'release', 'debug' ]: excludeDirs.append('%s/%s' % (options.chandlerBin, item)) return findTestFiles(options.chandlerHome, excludeDirs, includePattern)
1fa50cc35d43e15872013fff7d8961677efb0593 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/1fa50cc35d43e15872013fff7d8961677efb0593/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4709, 682, 12, 2116, 16, 4433, 10348, 33, 5510, 4672, 3536, 3998, 1842, 666, 628, 4864, 1040, 578, 3274, 777, 2836, 7434, 18, 3536, 4433, 9872, 273, 5378, 225, 309, 562, 12, 2116, 18, 7526, 13, 405, 374, 30, 2341, 3234, 273, 702, 18, 7526, 469, 30, 2341, 3234, 273, 296, 4709, 11146, 2074, 11, 225, 364, 761, 316, 306, 296, 6642, 2187, 296, 1367, 2187, 296, 13582, 2187, 296, 8057, 2187, 296, 3510, 2187, 296, 782, 464, 749, 18, 23171, 17, 1376, 11, 308, 30, 4433, 9872, 18, 6923, 29909, 87, 5258, 87, 11, 738, 261, 2116, 18, 343, 464, 749, 8684, 16, 761, 3719, 225, 364, 761, 316, 306, 296, 9340, 2187, 296, 4148, 11, 308, 30, 4433, 9872, 18, 6923, 29909, 87, 5258, 87, 11,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4709, 682, 12, 2116, 16, 4433, 10348, 33, 5510, 4672, 3536, 3998, 1842, 666, 628, 4864, 1040, 578, 3274, 777, 2836, 7434, 18, 3536, 4433, 9872, 273, 5378, 225, 309, 562, 12, 2116, 18, 7526, 13, 405, 374, 30, 2341, 3234, 273, 702, 18, 7526, 469, 30, 2341, 3234, 273, 296, 4709, 11146, 2074, 11, 225, 364, 761, 316, 306, 296, 6642, 2187, 296, 1367, 2187, 296, 13582, 2187, 296, 8057, 2187, 296, 3510, 2187, 296, 782, 464, 749, 18, 23171, 17, 1376, 11, 308, 30, 4433, 9872, 18, 6923, 29909, 87, 5258, 87, 11, 738, 261, 2116, 18, 343, 464, 749, 8684, 16, 761, 3719, 225, 364, 761, 316, 306, 296, 9340, 2187, 296, 4148, 11, 2 ]
"""class to handle AP scanning"""
""" Class to handle AP scanning. """
def _parse(self, data): iwstruct = Iwstruct() result = iwstruct.parse_data(self.fmt, data) # XXX there is maybe a much more elegant way to do this self.throughput, self.min_nwid, self.max_nwid = result[0:3] self.old_num_channels, self.old_num_frequency = result[3:5] self.old_freq = result[5:11] self.sensitivity = result[11] self.max_qual.setValues(result[12:16]) self.avg_qual.setValues(result[16:20]) self.num_bitrates = result[20] # <- XXX raw_bitrates = result[21:21+self.num_bitrates] for rate in raw_bitrates: iwfreq = Iwfreq() iwfreq.frequency = rate btr = iwfreq.getBitrate() if btr is not None: self.bitrates.append(btr) self.min_rts, self.max_rts = result[53:55] self.min_frag, self.max_frag = result[55:57] self.min_pmp, self.max_pmp = result[57:59] self.min_pmt, self.max_pmt = result[59:61] self.pmp_flags, self.pmt_flags, self.pm_capa = result[61:64] self.encoding_size = result[64:72] self.num_encoding_sizes, self.max_encoding_tokens = result[72:74] self.encoding_login_index = result[74] self.txpower_capa, self.num_txpower = result[75:77] self.txpower = result[77:85] self.we_vers_compiled, self.we_vers_src = result[85:87] self.retry_capa, self.retry_flags, self.r_time_flags = result[87:90] self.min_retry, self.max_retry = result[90:92] self.min_r_time, self.max_r_time = result[92:94] self.num_channels = result[94] self.num_frequency = result[95] freq = result[96:224] i = self.num_frequency for x in range(0, len(freq), 4): iwfreq = Iwfreq() iwfreq._setFrequency(freq[x:x+4]) fq = iwfreq.getFrequency() if fq is not None: self.frequencies.append(fq) i -= 1 if i <= 0: break self.enc_capa = result[224] self.min_pms = result[225] self.max_pms = result[226] self.pms_flags = result[227] self.modul_capa = result[228] self.bitrate_capa = result[229]
05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 2890, 16, 501, 4672, 25522, 1697, 273, 467, 91, 1697, 1435, 563, 273, 25522, 1697, 18, 2670, 67, 892, 12, 2890, 18, 8666, 16, 501, 13, 225, 468, 11329, 1915, 353, 6944, 279, 9816, 1898, 415, 1332, 970, 4031, 358, 741, 333, 365, 18, 10064, 458, 16, 365, 18, 1154, 67, 82, 30902, 16, 365, 18, 1896, 67, 82, 30902, 273, 563, 63, 20, 30, 23, 65, 365, 18, 1673, 67, 2107, 67, 9114, 16, 365, 18, 1673, 67, 2107, 67, 14092, 273, 563, 63, 23, 30, 25, 65, 365, 18, 1673, 67, 10212, 273, 563, 63, 25, 30, 2499, 65, 365, 18, 87, 773, 20862, 273, 563, 63, 2499, 65, 365, 18, 1896, 67, 3369, 18, 542, 1972, 12, 2088, 63, 2138, 30, 2313, 5717, 365, 18, 14141, 67, 3369, 18, 542, 1972, 12, 2088, 63, 2313, 30, 3462, 5717, 365, 18, 2107, 67, 3682, 24285, 273, 563, 63, 3462, 65, 468, 3290, 11329, 1831, 67, 3682, 24285, 273, 563, 63, 5340, 30, 5340, 15, 2890, 18, 2107, 67, 3682, 24285, 65, 364, 4993, 316, 1831, 67, 3682, 24285, 30, 25522, 10212, 273, 467, 91, 10212, 1435, 25522, 10212, 18, 14092, 273, 4993, 324, 313, 273, 25522, 10212, 18, 588, 5775, 5141, 1435, 309, 324, 313, 353, 486, 599, 30, 365, 18, 3682, 24285, 18, 6923, 12, 70, 313, 13, 225, 365, 18, 1154, 67, 86, 3428, 16, 365, 18, 1896, 67, 86, 3428, 273, 563, 63, 8643, 30, 2539, 65, 365, 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, 2670, 12, 2890, 16, 501, 4672, 25522, 1697, 273, 467, 91, 1697, 1435, 563, 273, 25522, 1697, 18, 2670, 67, 892, 12, 2890, 18, 8666, 16, 501, 13, 225, 468, 11329, 1915, 353, 6944, 279, 9816, 1898, 415, 1332, 970, 4031, 358, 741, 333, 365, 18, 10064, 458, 16, 365, 18, 1154, 67, 82, 30902, 16, 365, 18, 1896, 67, 82, 30902, 273, 563, 63, 20, 30, 23, 65, 365, 18, 1673, 67, 2107, 67, 9114, 16, 365, 18, 1673, 67, 2107, 67, 14092, 273, 563, 63, 23, 30, 25, 65, 365, 18, 1673, 67, 10212, 273, 563, 63, 25, 30, 2499, 65, 365, 18, 87, 773, 20862, 273, 563, 63, 2499, 65, 365, 18, 1896, 67, 2 ]
score = str(ua_results.get(test_key).get('score')) test_scores.append([test_key, score]) logging.info('TEST_SCORES: %s' % test_scores)
display = str(ua_results.get(test_key).get('display')) test_scores.append([test_key, display])
def UpdateDatastore(request): """Generic datastore munging routine.""" # query = db.Query(models.user_agent.UserAgent) # query.filter('family =', 'IE') # query.filter('v1 =', '9') # key = request.GET.get('key') # if key: # query.filter('__key__ >', db.Key(key)) # query.order('__key__') # user_agent = query.get() # if not user_agent: # return http.HttpResponse('All Done!') # # Do something with user_agent here. # user_agent.family = 'IE Platform Preview' # user_agent.save() query = db.Query(models.user_test.Test) key = request.GET.get('key') if key: query.filter('__key__ >', db.Key(key)) query.order('__key__') test = query.get() if not test: return http.HttpResponse('All Done!') test_set = test.get_test_set_from_test_keys(test.test_keys) browsers = result_stats.CategoryBrowserManager.GetBrowsers( test_set.category, version_level='top') visible_test_keys = test.test_keys stats_data = result_stats.CategoryStatsManager.GetStats( test_set, browsers, visible_test_keys, use_memcache=True) for user_agent in browsers: row_stats = stats_data.get(user_agent) ua_results = row_stats.get('results') if ua_results: test_scores = [] for test_key in test.test_keys: score = str(ua_results.get(test_key).get('score')) test_scores.append([test_key, score]) logging.info('TEST_SCORES: %s' % test_scores) models.user_test.update_test_meta(test.key(), test_scores) #deferred.defer(models.user_test.update_test_meta, key, test_scores) params = { 'next_url': '/update_datastore?key=%s' % test.key(), 'current_name': test.name, 'next_name': 'nextosity' } return Render(request, 'update_datastore.html', params)
0f9fe80f14f31244dc044eefea4a8913a5c250ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5745/0f9fe80f14f31244dc044eefea4a8913a5c250ab/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 21191, 12, 2293, 4672, 3536, 7014, 9290, 312, 318, 1998, 12245, 12123, 225, 468, 843, 273, 1319, 18, 1138, 12, 7665, 18, 1355, 67, 5629, 18, 12276, 13, 468, 843, 18, 2188, 2668, 9309, 273, 2187, 296, 8732, 6134, 468, 843, 18, 2188, 2668, 90, 21, 273, 2187, 296, 29, 6134, 468, 498, 273, 590, 18, 3264, 18, 588, 2668, 856, 6134, 468, 309, 498, 30, 468, 282, 843, 18, 2188, 2668, 972, 856, 972, 405, 2187, 1319, 18, 653, 12, 856, 3719, 468, 843, 18, 1019, 2668, 972, 856, 972, 6134, 468, 729, 67, 5629, 273, 843, 18, 588, 1435, 468, 309, 486, 729, 67, 5629, 30, 468, 282, 327, 1062, 18, 19520, 2668, 1595, 8677, 5124, 13, 225, 468, 468, 2256, 5943, 598, 729, 67, 5629, 2674, 18, 468, 729, 67, 5629, 18, 9309, 273, 296, 8732, 11810, 22289, 11, 468, 729, 67, 5629, 18, 5688, 1435, 225, 843, 273, 1319, 18, 1138, 12, 7665, 18, 1355, 67, 3813, 18, 4709, 13, 498, 273, 590, 18, 3264, 18, 588, 2668, 856, 6134, 309, 498, 30, 843, 18, 2188, 2668, 972, 856, 972, 405, 2187, 1319, 18, 653, 12, 856, 3719, 843, 18, 1019, 2668, 972, 856, 972, 6134, 1842, 273, 843, 18, 588, 1435, 309, 486, 1842, 30, 327, 1062, 18, 19520, 2668, 1595, 8677, 5124, 13, 225, 1842, 67, 542, 273, 1842, 18, 588, 67, 3813, 67, 542, 67, 2080, 67, 3813, 67, 2452, 12, 3813, 18, 3813, 67, 2452, 13, 14993, 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, 2315, 21191, 12, 2293, 4672, 3536, 7014, 9290, 312, 318, 1998, 12245, 12123, 225, 468, 843, 273, 1319, 18, 1138, 12, 7665, 18, 1355, 67, 5629, 18, 12276, 13, 468, 843, 18, 2188, 2668, 9309, 273, 2187, 296, 8732, 6134, 468, 843, 18, 2188, 2668, 90, 21, 273, 2187, 296, 29, 6134, 468, 498, 273, 590, 18, 3264, 18, 588, 2668, 856, 6134, 468, 309, 498, 30, 468, 282, 843, 18, 2188, 2668, 972, 856, 972, 405, 2187, 1319, 18, 653, 12, 856, 3719, 468, 843, 18, 1019, 2668, 972, 856, 972, 6134, 468, 729, 67, 5629, 273, 843, 18, 588, 1435, 468, 309, 486, 729, 67, 5629, 30, 468, 282, 327, 1062, 18, 19520, 2668, 1595, 8677, 2 ]
if c == '5':
if c == b'5':
def getresp(self): """Internal: get a response from the server. Raise various errors if the response indicates an error.""" resp = self.getline() if self.debugging: print('*resp*', repr(resp)) c = resp[:1] if c == '4': raise NNTPTemporaryError(resp) if c == '5': raise NNTPPermanentError(resp) if c not in '123': raise NNTPProtocolError(resp) return resp
eb96c4e975fd746fcc8b85f47c3592472b8d6b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eb96c4e975fd746fcc8b85f47c3592472b8d6b15/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 1718, 273, 365, 18, 588, 1369, 1435, 309, 365, 18, 4148, 1998, 30, 1172, 2668, 14, 12243, 14, 2187, 8480, 12, 12243, 3719, 276, 273, 1718, 10531, 21, 65, 309, 276, 422, 296, 24, 4278, 1002, 423, 1784, 52, 11685, 668, 12, 12243, 13, 309, 276, 422, 324, 11, 25, 4278, 1002, 423, 1784, 6584, 1035, 12055, 668, 12, 12243, 13, 309, 276, 486, 316, 296, 12936, 4278, 1002, 423, 1784, 52, 5752, 668, 12, 12243, 13, 327, 1718, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 1718, 273, 365, 18, 588, 1369, 1435, 309, 365, 18, 4148, 1998, 30, 1172, 2668, 14, 12243, 14, 2187, 8480, 12, 12243, 3719, 276, 273, 1718, 10531, 21, 65, 309, 276, 422, 296, 24, 4278, 1002, 423, 1784, 52, 11685, 668, 12, 12243, 13, 309, 276, 422, 324, 11, 25, 4278, 1002, 423, 1784, 6584, 1035, 12055, 668, 12, 12243, 13, 309, 276, 486, 316, 296, 12936, 4278, 1002, 423, 1784, 52, 5752, 668, 12, 12243, 13, 327, 1718, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
__version__='$Revision: 1.36 $'[11:-2]
__version__='$Revision: 1.37 $'[11:-2]
def taste(spam): "a favorable reviewer" return spam,'yum yum, I like ' + spam
09f5b1db455435c5f09abbc280b9c25669d23fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/09f5b1db455435c5f09abbc280b9c25669d23fd1/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 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 ]
self.assertContains(response, person.location_display_name)
def test_guess_location_on_login(self): person = Person.objects.get(user__username="paulproteus") self.assertFalse(person.location_confirmed) self.assertFalse(person.location_display_name) client = self.login_with_client() response = client.get(reverse(mysite.profile.views.display_list_of_people)) self.assertContains(response, "OpenHatch") person = Person.objects.get(user__username="paulproteus") self.assertEqual(person.location_display_name, "Rochester, NY, United States") self.assertContains(response, person.location_display_name)
f87505ecc99975e914a674cb0ae047d363ef97ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/f87505ecc99975e914a674cb0ae047d363ef97ae/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 20885, 67, 3562, 67, 265, 67, 5819, 12, 2890, 4672, 6175, 273, 11573, 18, 6911, 18, 588, 12, 1355, 972, 5053, 1546, 8774, 332, 685, 736, 407, 7923, 365, 18, 11231, 8381, 12, 12479, 18, 3562, 67, 21606, 13, 365, 18, 11231, 8381, 12, 12479, 18, 3562, 67, 5417, 67, 529, 13, 225, 1004, 273, 365, 18, 5819, 67, 1918, 67, 2625, 1435, 766, 273, 1004, 18, 588, 12, 9845, 12, 81, 1900, 1137, 18, 5040, 18, 7061, 18, 5417, 67, 1098, 67, 792, 67, 28035, 3719, 365, 18, 11231, 10846, 12, 2740, 16, 315, 3678, 44, 505, 7923, 6175, 273, 11573, 18, 6911, 18, 588, 12, 1355, 972, 5053, 1546, 8774, 332, 685, 736, 407, 7923, 365, 18, 11231, 5812, 12, 12479, 18, 3562, 67, 5417, 67, 529, 16, 315, 54, 9842, 7654, 16, 423, 61, 16, 8380, 329, 29577, 7923, 365, 18, 11231, 10846, 12, 2740, 16, 6175, 18, 3562, 67, 5417, 67, 529, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 20885, 67, 3562, 67, 265, 67, 5819, 12, 2890, 4672, 6175, 273, 11573, 18, 6911, 18, 588, 12, 1355, 972, 5053, 1546, 8774, 332, 685, 736, 407, 7923, 365, 18, 11231, 8381, 12, 12479, 18, 3562, 67, 21606, 13, 365, 18, 11231, 8381, 12, 12479, 18, 3562, 67, 5417, 67, 529, 13, 225, 1004, 273, 365, 18, 5819, 67, 1918, 67, 2625, 1435, 766, 273, 1004, 18, 588, 12, 9845, 12, 81, 1900, 1137, 18, 5040, 18, 7061, 18, 5417, 67, 1098, 67, 792, 67, 28035, 3719, 365, 18, 11231, 10846, 12, 2740, 16, 315, 3678, 44, 505, 7923, 6175, 273, 11573, 18, 6911, 18, 588, 12, 1355, 972, 5053, 1546, 8774, 332, 685, 736, 407, 2 ]
maildir.remove_leftover_messages()
maildir.remove_leftover()
def backup(self, account): try: self.__config_logger(account) maildir = Maildir(self.__config.get_maildir(account), True) imap = IMAP(self.__config.get_host(account), self.__config.get_port(account), self.__config.get_username(account), self.__config.get_password(account)) fo_filter = self.__config.get_imapfilter(account) for folder in imap.get_folders(fo_filter): # create folder if needed cf = maildir.create_folder(folder) mlist = imap.get_messages(folder) for uid, hhd in mlist.iteritems(): has_msg = maildir.has_message_header(folder, hhd) if cf or not has_msg: # folder was newly created and header not in maildir index # so save message flags, body = imap.get_message(folder, uid) maildir.write_message(folder, body, flags) else: maildir.remove_from_index(folder, hhd)
a8e0f7ceeec47534bdceb754109f766d17d2e25f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2245/a8e0f7ceeec47534bdceb754109f766d17d2e25f/imapbackup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 12, 2890, 16, 2236, 4672, 775, 30, 365, 16186, 1425, 67, 4901, 12, 4631, 13, 10843, 545, 481, 273, 490, 69, 545, 481, 12, 2890, 16186, 1425, 18, 588, 67, 2540, 545, 481, 12, 4631, 3631, 1053, 13, 20226, 273, 6246, 2203, 12, 2890, 16186, 1425, 18, 588, 67, 2564, 12, 4631, 3631, 365, 16186, 1425, 18, 588, 67, 655, 12, 4631, 3631, 365, 16186, 1425, 18, 588, 67, 5053, 12, 4631, 3631, 365, 16186, 1425, 18, 588, 67, 3664, 12, 4631, 3719, 225, 18261, 67, 2188, 273, 365, 16186, 1425, 18, 588, 67, 12161, 2188, 12, 4631, 13, 364, 3009, 316, 20226, 18, 588, 67, 16064, 12, 617, 67, 2188, 4672, 468, 752, 3009, 309, 3577, 6080, 273, 10843, 545, 481, 18, 2640, 67, 5609, 12, 5609, 13, 225, 312, 1098, 273, 20226, 18, 588, 67, 6833, 12, 5609, 13, 364, 4555, 16, 18629, 72, 316, 312, 1098, 18, 2165, 3319, 13332, 711, 67, 3576, 273, 10843, 545, 481, 18, 5332, 67, 2150, 67, 3374, 12, 5609, 16, 18629, 72, 13, 309, 6080, 578, 486, 711, 67, 3576, 30, 468, 3009, 1703, 10894, 2522, 471, 1446, 486, 316, 10843, 545, 481, 770, 468, 1427, 1923, 883, 2943, 16, 1417, 273, 20226, 18, 588, 67, 2150, 12, 5609, 16, 4555, 13, 10843, 545, 481, 18, 2626, 67, 2150, 12, 5609, 16, 1417, 16, 2943, 13, 469, 30, 10843, 545, 481, 18, 4479, 67, 2080, 67, 1615, 12, 5609, 16, 18629, 72, 13, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 12, 2890, 16, 2236, 4672, 775, 30, 365, 16186, 1425, 67, 4901, 12, 4631, 13, 10843, 545, 481, 273, 490, 69, 545, 481, 12, 2890, 16186, 1425, 18, 588, 67, 2540, 545, 481, 12, 4631, 3631, 1053, 13, 20226, 273, 6246, 2203, 12, 2890, 16186, 1425, 18, 588, 67, 2564, 12, 4631, 3631, 365, 16186, 1425, 18, 588, 67, 655, 12, 4631, 3631, 365, 16186, 1425, 18, 588, 67, 5053, 12, 4631, 3631, 365, 16186, 1425, 18, 588, 67, 3664, 12, 4631, 3719, 225, 18261, 67, 2188, 273, 365, 16186, 1425, 18, 588, 67, 12161, 2188, 12, 4631, 13, 364, 3009, 316, 20226, 18, 588, 67, 16064, 12, 617, 67, 2188, 4672, 468, 752, 3009, 309, 3577, 2 ]
if os.path.exists("download.test"): shutil.rmtree("download.test") os.mkdir("download.test") shutil.copy("metainfo","download.test") tempdir = tempfile.mkdtemp()+"/" try: do_rsync(softwareurl, "download.test/",tempdir) except Exception: pass finally: shutil.rmtree(tempdir) shutil.rmtree("download.test")
def init(): """ <Purpose> This method is here to do a runthrough of trying to update. The idea is that if there is going to be a fatal error, we want to die immediately rather than later. This way, when a node is updating to a flawed version, the old one won't die until we know the new one is working. Also goes through the magic explained in the comment block above. <Arguments> None <Exceptions> See fresh_software_updater and software_updater_start. <Side Effects> If we can't get the lock, we will exit. We will hold the softwareupdater.new lock while trying to start, but if all goes well, we will release that lock and aquire the softwareupdater.old lock. <Returns> None """ gotlock = runonce.getprocesslock("softwareupdater.new") if gotlock == True: # I got the lock. All is well... pass else: # didn't get the lock, and we like to be real quiet, so lets # exit quietly sys.exit(55) # Close stdin because we don't read from stdin at all. We leave stdout and stderr # open because we haven't done anything to make sure that output to those (such as # uncaught python exceptions) go somewhere else useful. sys.stdin.close() # don't hang if the socket is slow (in some ways, this doesn't always work) # BUG: http://mail.python.org/pipermail/python-list/2008-January/471845.html socket.setdefaulttimeout(10) # remove any old / broken test dirs... if os.path.exists("download.test"): shutil.rmtree("download.test") # create the test dir... os.mkdir("download.test") # copy my metainfo file into there shutil.copy("metainfo","download.test") # do an update to that directory. If I don't see an unexpected error, we # should be in good shape tempdir = tempfile.mkdtemp()+"/" try: do_rsync(softwareurl, "download.test/",tempdir) except Exception: # We continue if this happens later, # so we should do so now as well pass finally: shutil.rmtree(tempdir) # remove the test directory shutil.rmtree("download.test") # time to handle startup (with respect to other copies of the updater if len(sys.argv) == 1: # I was called with no arguments, must be a fresh start... fresh_software_updater() else: # the first argument is our mutex number... software_updater_start(sys.argv[1])
f3b3993f3603e2426a15444c480d2e715151931b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/f3b3993f3603e2426a15444c480d2e715151931b/softwareupdater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 13332, 3536, 411, 10262, 4150, 34, 1220, 707, 353, 2674, 358, 741, 279, 1086, 10064, 434, 8374, 358, 1089, 18, 225, 1021, 21463, 353, 716, 309, 1915, 353, 8554, 358, 506, 279, 10081, 555, 16, 732, 2545, 358, 10387, 7636, 9178, 2353, 5137, 18, 225, 1220, 4031, 16, 1347, 279, 756, 353, 9702, 358, 279, 1183, 2219, 329, 1177, 16, 326, 1592, 1245, 8462, 1404, 10387, 3180, 732, 5055, 326, 394, 1245, 353, 5960, 18, 225, 8080, 13998, 3059, 326, 8146, 19765, 329, 316, 326, 2879, 1203, 5721, 18, 225, 411, 4628, 34, 599, 225, 411, 11416, 34, 2164, 12186, 67, 9269, 2726, 67, 25575, 471, 17888, 67, 25575, 67, 1937, 18, 225, 411, 8895, 30755, 87, 34, 971, 732, 848, 1404, 336, 326, 2176, 16, 732, 903, 2427, 18, 1660, 903, 6887, 326, 17888, 25575, 18, 2704, 2176, 1323, 8374, 358, 787, 16, 1496, 309, 777, 13998, 5492, 16, 732, 903, 3992, 716, 2176, 471, 279, 1039, 326, 17888, 25575, 18, 1673, 2176, 18, 225, 411, 1356, 34, 599, 3536, 2363, 739, 273, 1086, 8243, 18, 588, 2567, 739, 2932, 9269, 2726, 25575, 18, 2704, 7923, 309, 2363, 739, 422, 1053, 30, 468, 467, 2363, 326, 2176, 18, 282, 4826, 353, 5492, 2777, 1342, 469, 30, 468, 10242, 1404, 336, 326, 2176, 16, 471, 732, 3007, 358, 506, 2863, 10902, 16, 1427, 14557, 468, 2427, 10902, 715, 2589, 18, 8593, 12, 2539, 13, 225, 468, 3527, 8801, 2724, 732, 2727, 1404, 855, 628, 8801, 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, 1208, 13332, 3536, 411, 10262, 4150, 34, 1220, 707, 353, 2674, 358, 741, 279, 1086, 10064, 434, 8374, 358, 1089, 18, 225, 1021, 21463, 353, 716, 309, 1915, 353, 8554, 358, 506, 279, 10081, 555, 16, 732, 2545, 358, 10387, 7636, 9178, 2353, 5137, 18, 225, 1220, 4031, 16, 1347, 279, 756, 353, 9702, 358, 279, 1183, 2219, 329, 1177, 16, 326, 1592, 1245, 8462, 1404, 10387, 3180, 732, 5055, 326, 394, 1245, 353, 5960, 18, 225, 8080, 13998, 3059, 326, 8146, 19765, 329, 316, 326, 2879, 1203, 5721, 18, 225, 411, 4628, 34, 599, 225, 411, 11416, 34, 2164, 12186, 67, 9269, 2726, 67, 25575, 471, 17888, 67, 25575, 67, 1937, 18, 225, 411, 8895, 30755, 87, 2 ]
def handle_args(doc): rewrite_desc_entries(doc, "args") rewrite_desc_entries(doc, "constructor-args")
signature.appendChild(doc.createTextNode("\n ")) def methodline_to_signature(doc, methodline): signature = doc.createElement("signature") signature.appendChild(doc.createTextNode("\n ")) name = doc.createElement("name") name.appendChild(doc.createTextNode(methodline.getAttribute("name"))) signature.appendChild(name) methodline.parentNode.removeChild(methodline) if len(methodline.childNodes): methodline._node.name = "args" methodline.removeAttribute("name") signature.appendChild(doc.createTextNode("\n ")) signature.appendChild(methodline) signature.appendChild(doc.createTextNode("\n ")) return signature
def rewrite_desc_entries(doc, argname_gi): argnodes = doc.getElementsByTagName(argname_gi) for node in argnodes: parent = node.parentNode nodes = [] for n in parent.childNodes: if n.nodeType != xml.dom.core.ELEMENT or n.tagName != argname_gi: nodes.append(n) desc = doc.createElement("description") for n in nodes: parent.removeChild(n) desc.appendChild(n) if node.childNodes: # keep the <args>...</args>, newline & indent parent.insertBefore(doc.createText("\n "), node) else: # no arguments, remove the <args/> node parent.removeChild(node) parent.appendChild(doc.createText("\n ")) parent.appendChild(desc) parent.appendChild(doc.createText("\n"))
6fd3b456df1736e218c2900c3479631306a4f4d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6fd3b456df1736e218c2900c3479631306a4f4d7/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10738, 67, 5569, 67, 8219, 12, 2434, 16, 1501, 529, 67, 10052, 4672, 1501, 4690, 273, 997, 18, 588, 3471, 10401, 12, 3175, 529, 67, 10052, 13, 364, 756, 316, 1501, 4690, 30, 982, 273, 756, 18, 2938, 907, 2199, 273, 5378, 364, 290, 316, 982, 18, 3624, 3205, 30, 309, 290, 18, 2159, 559, 480, 2025, 18, 9859, 18, 3644, 18, 10976, 578, 290, 18, 2692, 461, 480, 1501, 529, 67, 10052, 30, 2199, 18, 6923, 12, 82, 13, 3044, 273, 997, 18, 2640, 1046, 2932, 3384, 7923, 364, 290, 316, 2199, 30, 982, 18, 4479, 1763, 12, 82, 13, 3044, 18, 6923, 1763, 12, 82, 13, 309, 756, 18, 3624, 3205, 30, 468, 3455, 326, 411, 1968, 34, 2777, 1757, 1968, 20401, 9472, 473, 3504, 982, 18, 6387, 4649, 12, 2434, 18, 2640, 1528, 31458, 82, 225, 315, 3631, 756, 13, 469, 30, 468, 1158, 1775, 16, 1206, 326, 411, 1968, 21259, 756, 982, 18, 4479, 1763, 12, 2159, 13, 982, 18, 6923, 1763, 12, 2434, 18, 2640, 1528, 31458, 82, 225, 315, 3719, 982, 18, 6923, 1763, 12, 5569, 13, 982, 18, 6923, 1763, 12, 2434, 18, 2640, 1528, 31458, 82, 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, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10738, 67, 5569, 67, 8219, 12, 2434, 16, 1501, 529, 67, 10052, 4672, 1501, 4690, 273, 997, 18, 588, 3471, 10401, 12, 3175, 529, 67, 10052, 13, 364, 756, 316, 1501, 4690, 30, 982, 273, 756, 18, 2938, 907, 2199, 273, 5378, 364, 290, 316, 982, 18, 3624, 3205, 30, 309, 290, 18, 2159, 559, 480, 2025, 18, 9859, 18, 3644, 18, 10976, 578, 290, 18, 2692, 461, 480, 1501, 529, 67, 10052, 30, 2199, 18, 6923, 12, 82, 13, 3044, 273, 997, 18, 2640, 1046, 2932, 3384, 7923, 364, 290, 316, 2199, 30, 982, 18, 4479, 1763, 12, 82, 13, 3044, 18, 6923, 1763, 12, 82, 13, 309, 756, 18, 3624, 3205, 30, 468, 3455, 326, 411, 2 ]
sys.stdout = Logger()
def any(iteravel): for item in iteravel: if item: return True
1435f5b16ab63c49eda8477605294e09eb8c9507 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8537/1435f5b16ab63c49eda8477605294e09eb8c9507/migracao_ldap_zimbra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 12, 2165, 7882, 4672, 364, 761, 316, 1400, 7882, 30, 309, 761, 30, 327, 1053, 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, 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, 1281, 12, 2165, 7882, 4672, 364, 761, 316, 1400, 7882, 30, 309, 761, 30, 327, 1053, 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 ]
"""Returns capacity of all batteries (in mAh)"""
"""Returns capacity of all batteries (in mWh)"""
def capacity(self): """Returns capacity of all batteries (in mAh)""" return self.acpi.capacity()
bc309ea49d9351f53989eddc8793a5c3182af5d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2969/bc309ea49d9351f53989eddc8793a5c3182af5d8/acpi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7519, 12, 2890, 4672, 3536, 1356, 7519, 434, 777, 324, 9293, 606, 261, 267, 312, 2888, 15574, 327, 365, 18, 1077, 7259, 18, 16017, 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, 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, -100, -100, -100, -100, -100, -100, -100 ]
rapid(x=(x_cen + bottom_r), y=y_cen) rapid(z=z_safe)
cone_feed = (step_down / math.tan(angle * math.pi / 180)) if angle < 0 : cone_feed = cone_feed * -1 flush_nc()
def cone(x_cen, y_cen, z_cen, tool_id, tooldiameter, spindle_speed, horizontal_feedrate, vertical_feedrate, depth, diameter, angle, z_safe, step_over, step_down):
7b1f7adcc50a8d0dbd3214cd964d89735652e76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12576/7b1f7adcc50a8d0dbd3214cd964d89735652e76a/cut-cone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 356, 73, 12, 92, 67, 71, 275, 16, 677, 67, 71, 275, 16, 998, 67, 71, 275, 16, 5226, 67, 350, 16, 358, 1673, 77, 16986, 16, 1694, 728, 298, 67, 13871, 16, 10300, 67, 7848, 5141, 16, 9768, 67, 7848, 5141, 16, 3598, 16, 26386, 16, 5291, 16, 998, 67, 4626, 16, 2235, 67, 1643, 16, 2235, 67, 2378, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 356, 73, 12, 92, 67, 71, 275, 16, 677, 67, 71, 275, 16, 998, 67, 71, 275, 16, 5226, 67, 350, 16, 358, 1673, 77, 16986, 16, 1694, 728, 298, 67, 13871, 16, 10300, 67, 7848, 5141, 16, 9768, 67, 7848, 5141, 16, 3598, 16, 26386, 16, 5291, 16, 998, 67, 4626, 16, 2235, 67, 1643, 16, 2235, 67, 2378, 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 ]
load(filename)
try: load(filename) except gobject.GError, e: traceback.print_exc() raise SaveLoadError, _('Error while loading: GError %s') % e except IOError, e: traceback.print_exc() raise SaveLoadError, _('Error while loading: IOError %s') % e
def load(self, filename): if not os.path.isfile(filename): raise SaveLoadError, _('File does not exist: %s') % repr(filename) if not os.access(filename,os.R_OK): raise SaveLoadError, _('You do not have the necessary permissions to open file: %s') % repr(filename) trash, ext = os.path.splitext(filename) ext = ext.lower().replace('.', '') load = getattr(self, 'load_' + ext, self.unsupported) load(filename) self.command_stack.clear() self.unsaved_painting_time = 0.0 self.call_doc_observers()
5ddd0d5190d8306aaecb08f7e2f896b8e858d0fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/5ddd0d5190d8306aaecb08f7e2f896b8e858d0fe/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 16, 1544, 4672, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 3459, 4672, 1002, 7074, 2563, 668, 16, 389, 2668, 812, 1552, 486, 1005, 30, 738, 87, 6134, 738, 8480, 12, 3459, 13, 309, 486, 1140, 18, 3860, 12, 3459, 16, 538, 18, 54, 67, 3141, 4672, 1002, 7074, 2563, 668, 16, 389, 2668, 6225, 741, 486, 1240, 326, 4573, 4371, 358, 1696, 585, 30, 738, 87, 6134, 738, 8480, 12, 3459, 13, 20703, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 3459, 13, 1110, 273, 1110, 18, 8167, 7675, 2079, 2668, 1093, 16, 28707, 1262, 273, 3869, 12, 2890, 16, 296, 945, 4623, 397, 1110, 16, 365, 18, 24666, 13, 775, 30, 1262, 12, 3459, 13, 1335, 314, 1612, 18, 43, 668, 16, 425, 30, 10820, 18, 1188, 67, 10075, 1435, 1002, 7074, 2563, 668, 16, 389, 2668, 668, 1323, 7153, 30, 611, 668, 738, 87, 6134, 738, 425, 1335, 8340, 16, 425, 30, 10820, 18, 1188, 67, 10075, 1435, 1002, 7074, 2563, 668, 16, 389, 2668, 668, 1323, 7153, 30, 8340, 738, 87, 6134, 738, 425, 365, 18, 3076, 67, 3772, 18, 8507, 1435, 365, 18, 318, 14077, 67, 84, 1598, 310, 67, 957, 273, 374, 18, 20, 365, 18, 1991, 67, 2434, 67, 12199, 2496, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 16, 1544, 4672, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 3459, 4672, 1002, 7074, 2563, 668, 16, 389, 2668, 812, 1552, 486, 1005, 30, 738, 87, 6134, 738, 8480, 12, 3459, 13, 309, 486, 1140, 18, 3860, 12, 3459, 16, 538, 18, 54, 67, 3141, 4672, 1002, 7074, 2563, 668, 16, 389, 2668, 6225, 741, 486, 1240, 326, 4573, 4371, 358, 1696, 585, 30, 738, 87, 6134, 738, 8480, 12, 3459, 13, 20703, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 3459, 13, 1110, 273, 1110, 18, 8167, 7675, 2079, 2668, 1093, 16, 28707, 1262, 273, 3869, 12, 2890, 16, 296, 945, 4623, 397, 1110, 16, 365, 18, 24666, 13, 775, 2 ]
'ext_modules': ('build_ext', 'modules'),
'ext_modules': ('build_ext', 'extensions'),
def setup (**attrs): """The gateway to the Distutils: do everything your setup script needs to do, in a highly flexible and user-driven way. Briefly: create a Distribution instance; parse the command-line, creating and customizing instances of the command class for each command found on the command-line; run each of those commands. The Distribution instance might be an instance of a class supplied via the 'distclass' keyword argument to 'setup'; if no such class is supplied, then the 'Distribution' class (also in this module) is instantiated. All other arguments to 'setup' (except for 'cmdclass') are used to set attributes of the Distribution instance. The 'cmdclass' argument, if supplied, is a dictionary mapping command names to command classes. Each command encountered on the command line will be turned into a command class, which is in turn instantiated; any class found in 'cmdclass' is used in place of the default, which is (for command 'foo_bar') class 'FooBar' in module 'distutils.command.foo_bar'. The command object must provide an 'options' attribute which is a list of option specifiers for 'distutils.fancy_getopt'. Any command-line options between the current and the next command are used to set attributes in the current command object. When the entire command-line has been successfully parsed, calls the 'run' method on each command object in turn. This method will be driven entirely by the Distribution object (which each command object has a reference to, thanks to its constructor), and the command-specific options that became attributes of each command object.""" # Determine the distribution class -- either caller-supplied or # our Distribution (see below). klass = attrs.get ('distclass') if klass: del attrs['distclass'] else: klass = Distribution # Create the Distribution instance, using the remaining arguments # (ie. everything except distclass) to initialize it dist = klass (attrs) # If we had a config file, this is where we would parse it: override # the client-supplied command options, but be overridden by the # command line. # Parse the command line; any command-line errors are the end-users # fault, so turn them into SystemExit to suppress tracebacks. try: dist.parse_command_line (sys.argv[1:]) except DistutilsArgError, msg: raise SystemExit, msg # And finally, run all the commands found on the command line. dist.run_commands ()
6a1a425ca56b0a5b61dcc9b37a6bf590aa74fd8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6a1a425ca56b0a5b61dcc9b37a6bf590aa74fd8b/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 261, 636, 7039, 4672, 3536, 1986, 6878, 358, 326, 19893, 5471, 30, 741, 7756, 3433, 3875, 2728, 4260, 358, 741, 16, 316, 279, 3551, 715, 16600, 1523, 471, 729, 17, 3069, 837, 4031, 18, 225, 605, 17802, 715, 30, 752, 279, 17547, 791, 31, 1109, 326, 1296, 17, 1369, 16, 4979, 471, 1679, 6894, 3884, 434, 326, 1296, 667, 364, 1517, 1296, 1392, 603, 326, 1296, 17, 1369, 31, 1086, 1517, 434, 5348, 4364, 18, 225, 1021, 17547, 791, 4825, 506, 392, 791, 434, 279, 667, 4580, 3970, 326, 296, 4413, 1106, 11, 4932, 1237, 358, 296, 8401, 13506, 309, 1158, 4123, 667, 353, 4580, 16, 1508, 326, 296, 9003, 11, 667, 261, 31144, 316, 333, 1605, 13, 353, 17651, 18, 225, 4826, 1308, 1775, 358, 296, 8401, 11, 261, 14137, 364, 296, 4172, 1106, 6134, 854, 1399, 358, 444, 1677, 434, 326, 17547, 791, 18, 225, 1021, 296, 4172, 1106, 11, 1237, 16, 309, 4580, 16, 353, 279, 3880, 2874, 1296, 1257, 358, 1296, 3318, 18, 225, 8315, 1296, 9919, 603, 326, 1296, 980, 903, 506, 21826, 1368, 279, 1296, 667, 16, 1492, 353, 316, 7005, 17651, 31, 1281, 667, 1392, 316, 296, 4172, 1106, 11, 353, 1399, 316, 3166, 434, 326, 805, 16, 1492, 353, 261, 1884, 1296, 296, 11351, 67, 3215, 6134, 667, 296, 42, 5161, 5190, 11, 316, 1605, 296, 4413, 5471, 18, 3076, 18, 11351, 67, 3215, 10332, 225, 1021, 1296, 733, 1297, 5615, 392, 296, 2116, 11, 1566, 1492, 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, 261, 636, 7039, 4672, 3536, 1986, 6878, 358, 326, 19893, 5471, 30, 741, 7756, 3433, 3875, 2728, 4260, 358, 741, 16, 316, 279, 3551, 715, 16600, 1523, 471, 729, 17, 3069, 837, 4031, 18, 225, 605, 17802, 715, 30, 752, 279, 17547, 791, 31, 1109, 326, 1296, 17, 1369, 16, 4979, 471, 1679, 6894, 3884, 434, 326, 1296, 667, 364, 1517, 1296, 1392, 603, 326, 1296, 17, 1369, 31, 1086, 1517, 434, 5348, 4364, 18, 225, 1021, 17547, 791, 4825, 506, 392, 791, 434, 279, 667, 4580, 3970, 326, 296, 4413, 1106, 11, 4932, 1237, 358, 296, 8401, 13506, 309, 1158, 4123, 667, 353, 4580, 16, 1508, 326, 296, 9003, 11, 667, 261, 31144, 316, 333, 1605, 2 ]
self.reload_acl()
result = self.reload_acl() if (result.text.find("format error",0,len(result.text)) != -1): self.fail(result)
def test_exchange_acl_deny(self): session = self.get_session('bob','bob') session.queue_declare(queue="baz")
8deee3fee6e04aee030aa54666955757b6b127dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/198/8deee3fee6e04aee030aa54666955757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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16641, 67, 10150, 67, 13002, 93, 12, 2890, 4672, 1339, 273, 365, 18, 588, 67, 3184, 2668, 70, 947, 17023, 70, 947, 6134, 1339, 18, 4000, 67, 29554, 12, 4000, 1546, 70, 1561, 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 ]
filename = "0-REGTYPE"
filename = "/0-REGTYPE"
def test_seek(self): """Test seek() method of _FileObject, incl. random reading. """ if self.sep != "|": filename = "0-REGTYPE" self.tar.extract(filename, dirname()) data = file(os.path.join(dirname(), filename), "rb").read()
6284c8dd59cadc161fe9dd2cc2eed2d6ac38a170 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6284c8dd59cadc161fe9dd2cc2eed2d6ac38a170/test_tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16508, 12, 2890, 4672, 3536, 4709, 6520, 1435, 707, 434, 389, 21471, 16, 2823, 18, 2744, 6453, 18, 3536, 309, 365, 18, 10814, 480, 11747, 6877, 1544, 273, 2206, 20, 17, 5937, 2399, 6, 365, 18, 11718, 18, 8004, 12, 3459, 16, 4283, 10756, 501, 273, 585, 12, 538, 18, 803, 18, 5701, 12, 12287, 9334, 1544, 3631, 315, 6731, 20387, 896, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16508, 12, 2890, 4672, 3536, 4709, 6520, 1435, 707, 434, 389, 21471, 16, 2823, 18, 2744, 6453, 18, 3536, 309, 365, 18, 10814, 480, 11747, 6877, 1544, 273, 2206, 20, 17, 5937, 2399, 6, 365, 18, 11718, 18, 8004, 12, 3459, 16, 4283, 10756, 501, 273, 585, 12, 538, 18, 803, 18, 5701, 12, 12287, 9334, 1544, 3631, 315, 6731, 20387, 896, 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 ]
"""<union>
"""<list>
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) self.content = [] self.attr_content = []
66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9fb0/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 365, 18, 1745, 273, 5378, 365, 18, 1747, 67, 1745, 273, 5378, 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, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 365, 18, 1745, 273, 5378, 365, 18, 1747, 67, 1745, 273, 5378, 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 ]
info['hosts'] = host_info
info['hosts'] = host_dicts
def get_info_for_clone(id): """\ Retrieves all the information needed to clone a job. """ info = {} job = models.Job.objects.get(id=id) query = job.hostqueueentry_set.filter(deleted=False) hosts = [queue_entry.host for queue_entry in query if queue_entry.host and not queue_entry.meta_host] meta_hosts = [queue_entry.meta_host.name for queue_entry in query if queue_entry.meta_host] host_info = get_hosts(hostname__in=[host.hostname for host in hosts]) for host in host_info: platform = host['platform'] if platform is not None and platform in host['labels']: host['labels'].remove(platform) host['other_labels'] = ', '.join(host['labels']) meta_host_counts = {} for meta_host in meta_hosts: meta_host_counts.setdefault(meta_host, 0) meta_host_counts[meta_host] += 1 info['job'] = job.get_object_dict() info['meta_host_counts'] = meta_host_counts info['hosts'] = host_info return rpc_utils.prepare_for_serialization(info)
5074e8dd5e83601a51c89a5bb27b545f00e838d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/5074e8dd5e83601a51c89a5bb27b545f00e838d5/rpc_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1376, 67, 1884, 67, 14056, 12, 350, 4672, 3536, 64, 20507, 777, 326, 1779, 3577, 358, 3236, 279, 1719, 18, 3536, 1123, 273, 2618, 1719, 273, 3679, 18, 2278, 18, 6911, 18, 588, 12, 350, 33, 350, 13, 843, 273, 1719, 18, 2564, 4000, 4099, 67, 542, 18, 2188, 12, 8600, 33, 8381, 13, 7206, 273, 306, 4000, 67, 4099, 18, 2564, 364, 2389, 67, 4099, 316, 843, 309, 2389, 67, 4099, 18, 2564, 471, 486, 2389, 67, 4099, 18, 3901, 67, 2564, 65, 2191, 67, 11588, 273, 306, 4000, 67, 4099, 18, 3901, 67, 2564, 18, 529, 364, 2389, 67, 4099, 316, 843, 309, 2389, 67, 4099, 18, 3901, 67, 2564, 65, 1479, 67, 1376, 273, 336, 67, 11588, 12, 10358, 972, 267, 22850, 2564, 18, 10358, 364, 1479, 316, 7206, 5717, 225, 364, 1479, 316, 1479, 67, 1376, 30, 4072, 273, 1479, 3292, 9898, 3546, 309, 4072, 353, 486, 599, 471, 4072, 316, 1479, 3292, 5336, 3546, 30, 1479, 3292, 5336, 29489, 4479, 12, 9898, 13, 1479, 3292, 3011, 67, 5336, 3546, 273, 2265, 2418, 5701, 12, 2564, 3292, 5336, 19486, 225, 2191, 67, 2564, 67, 8008, 273, 2618, 364, 2191, 67, 2564, 316, 2191, 67, 11588, 30, 2191, 67, 2564, 67, 8008, 18, 542, 1886, 12, 3901, 67, 2564, 16, 374, 13, 2191, 67, 2564, 67, 8008, 63, 3901, 67, 2564, 65, 1011, 404, 225, 1123, 3292, 4688, 3546, 273, 1719, 18, 588, 67, 1612, 67, 1576, 1435, 1123, 3292, 3901, 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, 1376, 67, 1884, 67, 14056, 12, 350, 4672, 3536, 64, 20507, 777, 326, 1779, 3577, 358, 3236, 279, 1719, 18, 3536, 1123, 273, 2618, 1719, 273, 3679, 18, 2278, 18, 6911, 18, 588, 12, 350, 33, 350, 13, 843, 273, 1719, 18, 2564, 4000, 4099, 67, 542, 18, 2188, 12, 8600, 33, 8381, 13, 7206, 273, 306, 4000, 67, 4099, 18, 2564, 364, 2389, 67, 4099, 316, 843, 309, 2389, 67, 4099, 18, 2564, 471, 486, 2389, 67, 4099, 18, 3901, 67, 2564, 65, 2191, 67, 11588, 273, 306, 4000, 67, 4099, 18, 3901, 67, 2564, 18, 529, 364, 2389, 67, 4099, 316, 843, 309, 2389, 67, 4099, 18, 3901, 67, 2564, 65, 1479, 67, 1376, 2 ]
def user(self, uri, user):
def user(self, uri):
def user(self, uri, user): box = '<table class="box">\n' if uri.username > '': user = lampadas.users[uri.username] box = box + '<form method=GET action="data/save/user" name="user">\n' else: user = User() box = box + '<form method=GET action="data/save/newuser" name="user">\n' box = box + '<input name="username" type=hidden value=' + uri.username + '></input>\n' box = box + '<tr><th colspan=2>|struserdetails|</th><th>|strcomments|</th></tr>\n' box = box + '<tr><th class="label">|strusername|</th><td>' + uri.username + '</td>\n' box = box + '<td rowspan=10 style="width:100%"><textarea name="notes" wrap=soft style="width:100%; height:100%">' + user.notes + '</textarea></td></tr>\n' box = box + '<tr><th class="label">|strfirst_name|</th><td><input type=text name=first_name value="' + user.first_name + '"></input></td></tr>\n' box = box + '<tr><th class="label">|strmiddle_name|</th><td><input type=text name=middle_name value="' + user.middle_name + '"></input></td></tr>\n' box = box + '<tr><th class="label">|strsurname|</th><td><input type=text name=surname value="' + user.surname + '"></input></td></tr>\n' box = box + '<tr><th class="label">|stremail|</th><td><input type=text name=email value="' + user.email + '"></input></td></tr>\n' box = box + '<tr><th class="label">|strstylesheet|</th><td><input type=text name=stylesheet value="' + user.stylesheet + '"></input></td></tr>\n' box = box + '<tr><th class="label">|strnewpassword|</th><td><input type=text name=password></input></td></tr>\n' box = box + '<tr><th class="label">|stradmin|</th><td>' + combo_factory.tf('admin', user.admin, uri.lang) + '</td></tr>\n' box = box + '<tr><th class="label">|strsysadmin|</th><td>' + combo_factory.tf('sysadmin', user.sysadmin, uri.lang) + '</td></tr>\n' box = box + '<tr><td></td><td><input type=submit name=save value=Save></td></tr>\n' box = box + '</form>\n' box = box + '</table>\n' return box
9618319c1fd328973a07d58cde7c01262bd1d9fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/9618319c1fd328973a07d58cde7c01262bd1d9fb/HTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 12, 2890, 16, 2003, 4672, 3919, 273, 2368, 2121, 667, 1546, 2147, 6, 5333, 82, 11, 309, 2003, 18, 5053, 405, 875, 30, 729, 273, 328, 931, 361, 345, 18, 5577, 63, 1650, 18, 5053, 65, 3919, 273, 3919, 397, 2368, 687, 707, 33, 3264, 1301, 1546, 892, 19, 5688, 19, 1355, 6, 508, 1546, 1355, 6, 5333, 82, 11, 469, 30, 729, 273, 2177, 1435, 3919, 273, 3919, 397, 2368, 687, 707, 33, 3264, 1301, 1546, 892, 19, 5688, 19, 2704, 1355, 6, 508, 1546, 1355, 6, 5333, 82, 11, 3919, 273, 3919, 397, 2368, 2630, 508, 1546, 5053, 6, 618, 33, 6345, 460, 2218, 397, 2003, 18, 5053, 397, 296, 4695, 2630, 5333, 82, 11, 3919, 273, 3919, 397, 2368, 313, 4438, 451, 20856, 33, 22, 34, 96, 701, 1355, 6395, 96, 1757, 451, 4438, 451, 34, 96, 701, 9231, 96, 1757, 451, 4695, 313, 5333, 82, 11, 3919, 273, 3919, 397, 2368, 313, 4438, 451, 667, 1546, 1925, 6441, 96, 701, 5053, 96, 1757, 451, 4438, 4465, 1870, 397, 2003, 18, 5053, 397, 4357, 4465, 5333, 82, 11, 3919, 273, 3919, 397, 2368, 4465, 1027, 3969, 33, 2163, 2154, 1546, 2819, 30, 6625, 9, 14050, 16701, 508, 1546, 12903, 6, 2193, 33, 9269, 2154, 1546, 2819, 30, 6625, 9, 31, 2072, 30, 6625, 9, 7918, 397, 729, 18, 12903, 397, 4357, 16701, 4695, 4465, 4695, 313, 5333, 82, 11, 3919, 273, 3919, 397, 2368, 313, 4438, 451, 667, 1546, 1925, 6441, 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, 729, 12, 2890, 16, 2003, 4672, 3919, 273, 2368, 2121, 667, 1546, 2147, 6, 5333, 82, 11, 309, 2003, 18, 5053, 405, 875, 30, 729, 273, 328, 931, 361, 345, 18, 5577, 63, 1650, 18, 5053, 65, 3919, 273, 3919, 397, 2368, 687, 707, 33, 3264, 1301, 1546, 892, 19, 5688, 19, 1355, 6, 508, 1546, 1355, 6, 5333, 82, 11, 469, 30, 729, 273, 2177, 1435, 3919, 273, 3919, 397, 2368, 687, 707, 33, 3264, 1301, 1546, 892, 19, 5688, 19, 2704, 1355, 6, 508, 1546, 1355, 6, 5333, 82, 11, 3919, 273, 3919, 397, 2368, 2630, 508, 1546, 5053, 6, 618, 33, 6345, 460, 2218, 397, 2003, 18, 5053, 397, 296, 4695, 2630, 5333, 82, 11, 2 ]
makedirs(self.bdir)
os.makedirs(self.bdir)
def __init__(self, sdir, bdir=""): self.sdir = os.path.join(self.topdir, sdir) if bdir != "": self.bdir = os.path.join(self.sdir, bdir) if not os.path.isdir(self.bdir): try: makedirs(self.bdir) except: fatal("error creating directory " + self.bdir) else: self.bdir = self.sdir
89b15e98275333525e3bccdd4be6b1cae64e3221 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5963/89b15e98275333525e3bccdd4be6b1cae64e3221/build_packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 272, 1214, 16, 324, 1214, 1546, 6, 4672, 365, 18, 87, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3669, 1214, 16, 272, 1214, 13, 309, 324, 1214, 480, 1408, 30, 365, 18, 70, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 87, 1214, 16, 324, 1214, 13, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 70, 1214, 4672, 775, 30, 1140, 18, 81, 9477, 10539, 12, 2890, 18, 70, 1214, 13, 1335, 30, 10081, 2932, 1636, 4979, 1867, 315, 397, 365, 18, 70, 1214, 13, 469, 30, 365, 18, 70, 1214, 273, 365, 18, 87, 1214, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 272, 1214, 16, 324, 1214, 1546, 6, 4672, 365, 18, 87, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3669, 1214, 16, 272, 1214, 13, 309, 324, 1214, 480, 1408, 30, 365, 18, 70, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 87, 1214, 16, 324, 1214, 13, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 70, 1214, 4672, 775, 30, 1140, 18, 81, 9477, 10539, 12, 2890, 18, 70, 1214, 13, 1335, 30, 10081, 2932, 1636, 4979, 1867, 315, 397, 365, 18, 70, 1214, 13, 469, 30, 365, 18, 70, 1214, 273, 365, 18, 87, 1214, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
else: for index, value in self.sms_map.iteritems(): if should_fragment_be_assembled(value, sms): completed = self.sms_map[index].append_sms(sms) debug("MAL::_add_sms multi part SMS with logical " "index %d, completed %s" % (index, completed))
for index, value in self.sms_map.iteritems(): if should_fragment_be_assembled(value, sms): completed = self.sms_map[index].append_sms(sms) debug("MAL::_add_sms multi part SMS with logical " "index %d, completed %s" % (index, completed)) if completed: notification = self.sms_map[index] if self._is_a_wap_push_notification(notification): self._process_wap_push_notification(index, emit) return if emit: self.wrappee.emit_signal(SIG_SMS, index, completed)
def _add_sms(self, sms, emit=False): """ Adds ``sms`` to the cache
8025c5a277afe71e867db2e6eebabd693f24d4b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/8025c5a277afe71e867db2e6eebabd693f24d4b4/mal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 20984, 12, 2890, 16, 16188, 16, 3626, 33, 8381, 4672, 3536, 15605, 12176, 20984, 10335, 358, 326, 1247, 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,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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, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.files_to_remove.append(file_path)
self._DeleteAfterShutdown(file_path)
def testCancelDownload(self): """Verify that we can cancel a download.""" # Create a big file (250 MB) on the fly, so that the download won't finish # before being cancelled. file_path = self._MakeFile(2**28) file_url = self.GetFileURLForPath(file_path) downloaded_pkg = os.path.join(self.GetDownloadDirectory().value(), os.path.basename(file_path)) os.path.exists(downloaded_pkg) and os.remove(downloaded_pkg) self.DownloadAndWaitForStart(file_url) self.PerformActionOnDownload(self._GetDownloadId(), 'cancel') self.files_to_remove.append(file_path)
9951757e1f667c18359da5732e2c0a70ed2be48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/9951757e1f667c18359da5732e2c0a70ed2be48e/downloads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6691, 7109, 12, 2890, 4672, 3536, 8097, 716, 732, 848, 3755, 279, 4224, 12123, 468, 1788, 279, 5446, 585, 261, 26520, 17897, 13, 603, 326, 21434, 16, 1427, 716, 326, 4224, 8462, 1404, 4076, 468, 1865, 3832, 13927, 18, 585, 67, 803, 273, 365, 6315, 6464, 812, 12, 22, 636, 6030, 13, 585, 67, 718, 273, 365, 18, 967, 812, 1785, 25589, 12, 768, 67, 803, 13, 13549, 67, 10657, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 967, 7109, 2853, 7675, 1132, 9334, 1140, 18, 803, 18, 13909, 12, 768, 67, 803, 3719, 1140, 18, 803, 18, 1808, 12, 2378,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6691, 7109, 12, 2890, 4672, 3536, 8097, 716, 732, 848, 3755, 279, 4224, 12123, 468, 1788, 279, 5446, 585, 261, 26520, 17897, 13, 603, 326, 21434, 16, 1427, 716, 326, 4224, 8462, 1404, 4076, 468, 1865, 3832, 13927, 18, 585, 67, 803, 273, 365, 6315, 6464, 812, 12, 22, 636, 6030, 13, 585, 67, 718, 273, 365, 18, 967, 812, 1785, 25589, 12, 768, 67, 803, 13, 13549, 67, 10657, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 967, 7109, 2853, 7675, 1132, 9334, 1140, 18, 803, 18, 13909, 12, 768, 67, 803, 3719, 1140, 18, 803, 18, 1808, 12, 2378, 4230, 67, 10657, 13, 471, 1140, 18, 4479, 12, 2378, 4230, 67, 10657, 13, 365, 2 ]
self._port_handle.BaudRate = self._baudrate
try: self._port_handle.BaudRate = self._baudrate except IOError, e: raise ValueError(str(e))
def _reconfigurePort(self): """Set communication parameters on opened port.""" if not self._port_handle: raise SerialException("Can only operate on a valid port handle") self.ReceivedBytesThreshold = 1 if self._timeout is None: self._port_handle.ReadTimeout = System.IO.Ports.SerialPort.InfiniteTimeout else: self._port_handle.ReadTimeout = int(self._timeout*1000) # if self._timeout != 0 and self._interCharTimeout is not None: # timeouts = (int(self._interCharTimeout * 1000),) + timeouts[1:] if self._writeTimeout is None: self._port_handle.WriteTimeout = System.IO.Ports.SerialPort.InfiniteTimeout else: self._port_handle.WriteTimeout = int(self._writeTimeout*1000)
c53a8cacf340c4f54dc16eb7107da9ddbbcbbeec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2937/c53a8cacf340c4f54dc16eb7107da9ddbbcbbeec/serialcli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 266, 14895, 2617, 12, 2890, 4672, 3536, 694, 18279, 1472, 603, 10191, 1756, 12123, 309, 486, 365, 6315, 655, 67, 4110, 30, 1002, 7366, 503, 2932, 2568, 1338, 20829, 603, 279, 923, 1756, 1640, 7923, 225, 365, 18, 8872, 2160, 7614, 273, 404, 225, 309, 365, 6315, 4538, 353, 599, 30, 365, 6315, 655, 67, 4110, 18, 1994, 2694, 273, 2332, 18, 4294, 18, 11107, 18, 6342, 2617, 18, 382, 9551, 2694, 469, 30, 365, 6315, 655, 67, 4110, 18, 1994, 2694, 273, 509, 12, 2890, 6315, 4538, 14, 18088, 13, 225, 468, 309, 365, 6315, 4538, 480, 374, 471, 365, 6315, 2761, 2156, 2694, 353, 486, 599, 30, 468, 20395, 273, 261, 474, 12, 2890, 6315, 2761, 2156, 2694, 380, 4336, 3631, 13, 397, 20395, 63, 21, 26894, 225, 309, 365, 6315, 2626, 2694, 353, 599, 30, 365, 6315, 655, 67, 4110, 18, 3067, 2694, 273, 2332, 18, 4294, 18, 11107, 18, 6342, 2617, 18, 382, 9551, 2694, 469, 30, 365, 6315, 655, 67, 4110, 18, 3067, 2694, 273, 509, 12, 2890, 6315, 2626, 2694, 14, 18088, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 266, 14895, 2617, 12, 2890, 4672, 3536, 694, 18279, 1472, 603, 10191, 1756, 12123, 309, 486, 365, 6315, 655, 67, 4110, 30, 1002, 7366, 503, 2932, 2568, 1338, 20829, 603, 279, 923, 1756, 1640, 7923, 225, 365, 18, 8872, 2160, 7614, 273, 404, 225, 309, 365, 6315, 4538, 353, 599, 30, 365, 6315, 655, 67, 4110, 18, 1994, 2694, 273, 2332, 18, 4294, 18, 11107, 18, 6342, 2617, 18, 382, 9551, 2694, 469, 30, 365, 6315, 655, 67, 4110, 18, 1994, 2694, 273, 509, 12, 2890, 6315, 4538, 14, 18088, 13, 225, 468, 309, 365, 6315, 4538, 480, 374, 471, 365, 6315, 2761, 2156, 2694, 353, 486, 599, 30, 468, 20395, 273, 261, 474, 12, 2890, 6315, 2 ]
menubar = Menu(self._top, borderwidth=2,
menubar = Menu(self._root, borderwidth=2,
def _init_menubar(self): menubar = Menu(self._top, borderwidth=2, background=BG_COLOR, activebackground=BG_COLOR) filemenu = Menu(menubar, tearoff=0) filemenu.add_command(label='Open Project', underline=0, command=self._open, accelerator='Ctrl-o') filemenu.add_command(label='Save Project', underline=0, command=self._save, accelerator='Ctrl-s') filemenu.add_command(label='Save As..', underline=5, command=self._saveas, accelerator='Ctrl-a') filemenu.add_separator() filemenu.add_command(label='Exit', underline=1, command=self.destroy, accelerator='Ctrl-x') menubar.add_cascade(label='File', underline=0, menu=filemenu) gomenu = Menu(menubar, tearoff=0) gomenu.add_command(label='Run Epydoc', command=self._open, underline=0, accelerator='Alt-g') menubar.add_cascade(label='Run', menu=gomenu, underline=0) self._top.config(menu=menubar)
4cf6d74130c32443c10897614b39d1c2c512796c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4cf6d74130c32443c10897614b39d1c2c512796c/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 27617, 373, 297, 12, 2890, 4672, 21247, 373, 297, 273, 9809, 12, 2890, 6315, 3085, 16, 5795, 2819, 33, 22, 16, 5412, 33, 30098, 67, 10989, 16, 2695, 9342, 33, 30098, 67, 10989, 13, 585, 5414, 273, 9809, 12, 27617, 373, 297, 16, 268, 2091, 3674, 33, 20, 13, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 3678, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 3190, 16, 15153, 7385, 2218, 12418, 17, 83, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 4755, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 5688, 16, 15153, 7385, 2218, 12418, 17, 87, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 4755, 2970, 838, 2187, 25985, 33, 25, 16, 1296, 33, 2890, 6315, 5688, 345, 16, 15153, 7385, 2218, 12418, 17, 69, 6134, 585, 5414, 18, 1289, 67, 11287, 1435, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 6767, 2187, 25985, 33, 21, 16, 1296, 33, 2890, 18, 11662, 16, 15153, 7385, 2218, 12418, 17, 92, 6134, 21247, 373, 297, 18, 1289, 67, 22277, 12, 1925, 2218, 812, 2187, 25985, 33, 20, 16, 3824, 33, 768, 5414, 13, 18827, 2104, 273, 9809, 12, 27617, 373, 297, 16, 268, 2091, 3674, 33, 20, 13, 18827, 2104, 18, 1289, 67, 3076, 12, 1925, 2218, 1997, 512, 2074, 2434, 2187, 225, 1296, 33, 2890, 6315, 3190, 16, 25985, 33, 20, 16, 15153, 7385, 2218, 10655, 17, 75, 6134, 21247, 373, 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, 2738, 67, 27617, 373, 297, 12, 2890, 4672, 21247, 373, 297, 273, 9809, 12, 2890, 6315, 3085, 16, 5795, 2819, 33, 22, 16, 5412, 33, 30098, 67, 10989, 16, 2695, 9342, 33, 30098, 67, 10989, 13, 585, 5414, 273, 9809, 12, 27617, 373, 297, 16, 268, 2091, 3674, 33, 20, 13, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 3678, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 3190, 16, 15153, 7385, 2218, 12418, 17, 83, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 4755, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 5688, 16, 15153, 7385, 2218, 12418, 17, 87, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2 ]
self.gridlayout9.addWidget(self.rotationSensitivity_txtlbl,3,0,1,1)
self.gridlayout7.addWidget(self.rotationSensitivity_txtlbl,3,0,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 4848, 29, 16, 1105, 22, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 3719, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 4848, 29, 16, 1105, 22, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 3719, 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 ]
subtitle = """<a name="11"></a>Collections Status"""
subtitle = """<a name="11"></a>Collections Status&nbsp;&nbsp&nbsp;[<a href="%s/admin/websearch/guide.html
def perform_validateconf(colID, ln, confirm=0, callback='yes'): """Validation of the configuration of the collections""" subtitle = """<a name="11"></a>Collections Status""" output = "" colID = int(colID) col_dict = dict(get_def_name('', "collection")) collections = run_sql("SELECT id, name, dbquery, restricted FROM collection ORDER BY id") header = ['Id', 'Name', 'Query', 'Subcollections', 'Restricted', 'I8N','Status'] rnk_list = get_def_name('', "rnkMETHOD") actions = [] for (id, name, dbquery, restricted) in collections: reg_sons = len(get_col_tree(id, 'r')) vir_sons = len(get_col_tree(id, 'v')) status = "" langs = run_sql("SELECT ln from collectionname where id_collection=%s" % id) i8n = "" if len(langs) > 0: for lang in langs: i8n += "%s, " % lang else: i8n = """<b><span class="info">None</span></b>""" if (reg_sons > 1 and dbquery) or dbquery=="": status = """<b><span class="warning">1:Query</span></b>""" elif dbquery is None and reg_sons == 1: status = """<b><span class="warning">2:Query</span></b>""" elif dbquery == "" and reg_sons == 1: status = """<b><span class="warning">3:Query</span></b>""" if (reg_sons > 1 or vir_sons > 1): subs = """<b><span class="info">Yes</span></b>""" else: subs = """<b><span class="info">No</span></b>""" if dbquery is None: dbquery = """<b><span class="info">No</span></b>""" if restricted == "": restricted = "" if status: status += """<b><span class="warning">,4:Restricted</span></b>""" else: status += """<b><span class="warning">4:Restricted</span></b>""" elif restricted is None: restricted = """<b><span class="info">No</span></b>""" if status == "": status = """<b><span class="info">OK</span></b>""" actions.append([id, """<a href="%s/admin/websearch/websearchadmin.py/editcollection?colID=%s&amp;ln=%s">%s</a>""" % (weburl, id, ln, name), dbquery, subs, restricted, i8n, status]) output += tupletotable(header=header, tuple=actions) try: body = [output, extra] except NameError: body = [output] return addadminbox(subtitle, body) if callback: return perform_index(colID, ln, "perform_validateconf", addadminbox(subtitle, body)) else: return addadminbox(subtitle, body)
754d19915d70f2e3a0364cac500bb203b82c6e16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/754d19915d70f2e3a0364cac500bb203b82c6e16/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 5662, 3923, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 4354, 434, 326, 1664, 434, 326, 6980, 8395, 225, 20281, 273, 3536, 32, 69, 508, 1546, 2499, 13762, 69, 34, 15150, 2685, 10, 10600, 23480, 10600, 10, 10600, 31, 63, 32, 69, 3897, 11613, 87, 19, 3666, 19, 4875, 3072, 19, 12118, 18, 2620, 876, 225, 273, 1408, 225, 645, 734, 273, 509, 12, 1293, 734, 13, 645, 67, 1576, 273, 2065, 12, 588, 67, 536, 67, 529, 2668, 2187, 315, 5548, 6, 3719, 6980, 273, 1086, 67, 4669, 2932, 4803, 612, 16, 508, 16, 1319, 2271, 16, 15693, 4571, 1849, 10205, 6953, 612, 7923, 225, 1446, 273, 10228, 548, 2187, 296, 461, 2187, 296, 1138, 2187, 296, 1676, 19246, 2187, 296, 18784, 2187, 296, 45, 28, 50, 17023, 1482, 3546, 20594, 79, 67, 1098, 273, 336, 67, 536, 67, 529, 2668, 2187, 315, 27639, 79, 5327, 7923, 4209, 273, 5378, 282, 364, 261, 350, 16, 508, 16, 1319, 2271, 16, 15693, 13, 316, 6980, 30, 960, 67, 816, 87, 273, 562, 12, 588, 67, 1293, 67, 3413, 12, 350, 16, 296, 86, 26112, 16831, 67, 816, 87, 273, 562, 12, 588, 67, 1293, 67, 3413, 12, 350, 16, 296, 90, 26112, 1267, 273, 1408, 225, 26467, 273, 1086, 67, 4669, 2932, 4803, 7211, 628, 1849, 529, 1625, 612, 67, 5548, 5095, 87, 6, 738, 612, 13, 277, 28, 82, 273, 1408, 225, 309, 562, 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, 3073, 67, 5662, 3923, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 4354, 434, 326, 1664, 434, 326, 6980, 8395, 225, 20281, 273, 3536, 32, 69, 508, 1546, 2499, 13762, 69, 34, 15150, 2685, 10, 10600, 23480, 10600, 10, 10600, 31, 63, 32, 69, 3897, 11613, 87, 19, 3666, 19, 4875, 3072, 19, 12118, 18, 2620, 876, 225, 273, 1408, 225, 645, 734, 273, 509, 12, 1293, 734, 13, 645, 67, 1576, 273, 2065, 12, 588, 67, 536, 67, 529, 2668, 2187, 315, 5548, 6, 3719, 6980, 273, 1086, 67, 4669, 2932, 4803, 612, 16, 508, 16, 1319, 2271, 16, 15693, 4571, 1849, 10205, 6953, 612, 7923, 225, 1446, 273, 2 ]
image = proj.imagedata
slice_data = slice_.Slice() n_array = slice_data.matrix spacing = slice_data.spacing slice_number = 0 orientation = 'AXIAL' image = imagedata_utils.to_vtk(n_array, spacing, slice_number, orientation) self.image = image
def LoadVolume(self): proj = prj.Project() image = proj.imagedata
da74828263b2fbca975ccf3e88db5ffdafbcfe89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/da74828263b2fbca975ccf3e88db5ffdafbcfe89/volume.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 4545, 12, 2890, 4672, 10296, 273, 27378, 18, 4109, 1435, 1316, 273, 10296, 18, 381, 11349, 396, 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 ]
[ 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 4545, 12, 2890, 4672, 10296, 273, 27378, 18, 4109, 1435, 1316, 273, 10296, 18, 381, 11349, 396, 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 ]
return cmp(t2_title, t1_title) elif not t1_dleft and t2_dleft: if order == gtk.SORT_ASCENDING: return 1 else: return -1 elif t1_dleft and not t2_dleft: if order == gtk.SORT_ASCENDING: return -1 else: return 1 else: return cmp(t2_dleft, t1_dleft)
sort = cmp(t2_title, t1_title) return sort
def dleft_sort_func(self, model, iter1, iter2, user_data=None): order = self.task_tv.get_model().get_sort_column_id()[1] task1 = model.get_value(iter1, tasktree.COL_OBJ) task2 = model.get_value(iter2, tasktree.COL_OBJ) t1_dleft = task1.get_due_date() t2_dleft = task2.get_due_date() if not t1_dleft and not t2_dleft: t1_title = task1.get_title() t2_title = task2.get_title() t1_title = locale.strxfrm(t1_title) t2_title = locale.strxfrm(t2_title) if order == gtk.SORT_ASCENDING: return cmp(t1_title, t2_title) else: return cmp(t2_title, t1_title) elif not t1_dleft and t2_dleft: if order == gtk.SORT_ASCENDING: return 1 else: return -1 elif t1_dleft and not t2_dleft: if order == gtk.SORT_ASCENDING: return -1 else: return 1 else: return cmp(t2_dleft, t1_dleft)
0065fb95ec5eca60c1fe1023388241f232d911f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/0065fb95ec5eca60c1fe1023388241f232d911f6/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 4482, 67, 3804, 67, 644, 12, 2890, 16, 938, 16, 1400, 21, 16, 1400, 22, 16, 729, 67, 892, 33, 7036, 4672, 1353, 273, 365, 18, 4146, 67, 24161, 18, 588, 67, 2284, 7675, 588, 67, 3804, 67, 2827, 67, 350, 1435, 63, 21, 65, 1562, 21, 273, 938, 18, 588, 67, 1132, 12, 2165, 21, 16, 1562, 3413, 18, 4935, 67, 24547, 13, 1562, 22, 273, 938, 18, 588, 67, 1132, 12, 2165, 22, 16, 1562, 3413, 18, 4935, 67, 24547, 13, 268, 21, 67, 72, 4482, 273, 1562, 21, 18, 588, 67, 24334, 67, 712, 1435, 268, 22, 67, 72, 4482, 273, 1562, 22, 18, 588, 67, 24334, 67, 712, 1435, 309, 486, 268, 21, 67, 72, 4482, 471, 486, 268, 22, 67, 72, 4482, 30, 268, 21, 67, 2649, 273, 1562, 21, 18, 588, 67, 2649, 1435, 268, 22, 67, 2649, 273, 1562, 22, 18, 588, 67, 2649, 1435, 268, 21, 67, 2649, 273, 2573, 18, 701, 92, 4840, 81, 12, 88, 21, 67, 2649, 13, 268, 22, 67, 2649, 273, 2573, 18, 701, 92, 4840, 81, 12, 88, 22, 67, 2649, 13, 309, 1353, 422, 22718, 18, 23988, 67, 8633, 12280, 30, 327, 9411, 12, 88, 21, 67, 2649, 16, 268, 22, 67, 2649, 13, 469, 30, 327, 9411, 12, 88, 22, 67, 2649, 16, 268, 21, 67, 2649, 13, 1327, 486, 268, 21, 67, 72, 4482, 471, 268, 22, 67, 72, 4482, 30, 309, 1353, 422, 22718, 18, 23988, 67, 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, 302, 4482, 67, 3804, 67, 644, 12, 2890, 16, 938, 16, 1400, 21, 16, 1400, 22, 16, 729, 67, 892, 33, 7036, 4672, 1353, 273, 365, 18, 4146, 67, 24161, 18, 588, 67, 2284, 7675, 588, 67, 3804, 67, 2827, 67, 350, 1435, 63, 21, 65, 1562, 21, 273, 938, 18, 588, 67, 1132, 12, 2165, 21, 16, 1562, 3413, 18, 4935, 67, 24547, 13, 1562, 22, 273, 938, 18, 588, 67, 1132, 12, 2165, 22, 16, 1562, 3413, 18, 4935, 67, 24547, 13, 268, 21, 67, 72, 4482, 273, 1562, 21, 18, 588, 67, 24334, 67, 712, 1435, 268, 22, 67, 72, 4482, 273, 1562, 22, 18, 588, 67, 24334, 67, 712, 1435, 309, 486, 268, 21, 2 ]
self.hostname = 'localhost'
self.hostname = '127.0.0.1'
def setUp(self): self.jobdb = JobDatabaseSQLite(test=True) self.monitordb = MonitorDatabase(test=True) self.clientdb = ClientDatabase(test=True) self.dsage_server = DSageServer(self.jobdb, self.monitordb, self.clientdb, log_level=5) self.realm = Realm(self.dsage_server) self.p = _SSHKeyPortalRoot(portal.Portal(Realm(self.dsage_server))) self.clientdb = ClientDatabase(test=True) self.p.portal.registerChecker(PublicKeyCredentialsCheckerDB( self.clientdb)) self.client_factory = pb.PBServerFactory(self.p) self.hostname = 'localhost' self.r = reactor.listenTCP(0, self.client_factory) self.port = self.r.getHost().port
7131940cc7bda42b7c11566db0754e224dbfa7b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7131940cc7bda42b7c11566db0754e224dbfa7b0/test_pubkeyauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 4688, 1966, 273, 3956, 4254, 3997, 1137, 12, 3813, 33, 5510, 13, 365, 18, 2586, 305, 517, 70, 273, 14086, 4254, 12, 3813, 33, 5510, 13, 365, 18, 2625, 1966, 273, 2445, 4254, 12, 3813, 33, 5510, 13, 365, 18, 2377, 410, 67, 3567, 273, 8678, 410, 2081, 12, 2890, 18, 4688, 1966, 16, 365, 18, 2586, 305, 517, 70, 16, 365, 18, 2625, 1966, 16, 613, 67, 2815, 33, 25, 13, 365, 18, 24056, 273, 15987, 81, 12, 2890, 18, 2377, 410, 67, 3567, 13, 365, 18, 84, 273, 389, 12559, 653, 24395, 2375, 12, 24386, 18, 24395, 12, 22545, 12, 2890, 18, 2377, 410, 67, 3567, 20349, 365, 18, 2625, 1966, 273, 2445, 4254, 12, 3813, 33, 5510, 13, 365, 18, 84, 18, 24386, 18, 4861, 8847, 12, 9632, 6163, 8847, 2290, 12, 365, 18, 2625, 1966, 3719, 365, 18, 2625, 67, 6848, 273, 6386, 18, 20724, 2081, 1733, 12, 2890, 18, 84, 13, 365, 18, 10358, 273, 296, 14260, 18, 20, 18, 20, 18, 21, 11, 365, 18, 86, 273, 19178, 18, 18085, 13891, 12, 20, 16, 365, 18, 2625, 67, 6848, 13, 365, 18, 655, 273, 365, 18, 86, 18, 588, 2594, 7675, 655, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 3813, 33, 5510, 13, 365, 18, 2377, 410, 67, 3567, 273, 8678, 410, 2081, 12, 2890, 18, 4688, 1966, 16, 365, 18, 2586, 305, 517, 70, 16, 365, 18, 2625, 1966, 16, 613, 67, 2815, 33, 25, 13, 365, 18, 24056, 273, 15987, 81, 12, 2890, 18, 2377, 410, 67, 3567, 13, 365, 18, 84, 273, 389, 12559, 653, 24395, 2375, 12, 24386, 18, 24395, 12, 22545, 12, 2890, 18, 2377, 410, 67, 3567, 20349, 365, 18, 2625, 2 ]
In addition to the data object, the following options can be given as keyword arguments:
In addition to the data object, the following options can be given as keyword arguments:
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert an argument tuple or a Fault instance to an XML-RPC request (or response, if the methodresponse option is used). In addition to the data object, the following options can be given as keyword arguments: methodname: the method name for a methodCall packet methodresponse: true to create a methodResponse packet. If this option is used with a tuple, the tuple must be a singleton (i.e. it can contain only one element). encoding: the packet encoding (default is UTF-8) All 8-bit strings in the data structure are assumed to use the packet encoding. Unicode strings are automatically converted, as necessary. """ assert isinstance(params, TupleType) or isinstance(params, Fault),\ "argument must be tuple or Fault instance" if isinstance(params, Fault): methodresponse = 1 elif methodresponse and isinstance(params, TupleType): assert len(params) == 1, "response tuple must be a singleton" if not encoding: encoding = "utf-8" m = Marshaller(encoding) data = m.dumps(params) if encoding != "utf-8": xmlheader = "<?xml version='1.0' encoding=%s?>\n" % repr(encoding) else: xmlheader = "<?xml version='1.0'?>\n" # utf-8 is default # standard XML-RPC wrappings if methodname: # a method call if not isinstance(methodname, StringType): methodname = methodname.encode(encoding) data = ( xmlheader, "<methodCall>\n" "<methodName>", methodname, "</methodName>\n", data, "</methodCall>\n" ) elif methodresponse: # a method response, or a fault structure data = ( xmlheader, "<methodResponse>\n", data, "</methodResponse>\n" ) else: return data # return as is return string.join(data, "")
3edebf5466fcffcb907147e1bee2a0d7cb258fc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3edebf5466fcffcb907147e1bee2a0d7cb258fc6/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, 25609, 791, 358, 392, 3167, 17, 8087, 590, 261, 280, 766, 16, 309, 326, 707, 2740, 1456, 353, 1399, 2934, 225, 657, 2719, 358, 326, 501, 733, 16, 326, 3751, 702, 848, 506, 864, 487, 4932, 1775, 30, 225, 707, 529, 30, 326, 707, 508, 364, 279, 707, 1477, 4414, 225, 707, 2740, 30, 638, 358, 752, 279, 707, 1064, 4414, 18, 971, 333, 1456, 353, 1399, 598, 279, 3193, 16, 326, 3193, 1297, 506, 279, 6396, 261, 77, 18, 73, 18, 518, 848, 912, 1338, 1245, 930, 2934, 225, 2688, 30, 326, 4414, 2688, 261, 1886, 353, 6380, 17, 28, 13, 225, 4826, 1725, 17, 3682, 2064, 316, 326, 501, 3695, 854, 12034, 358, 999, 326, 4414, 2688, 18, 225, 9633, 2064, 854, 6635, 5970, 16, 487, 4573, 18, 3536, 225, 1815, 1549, 12, 2010, 16, 7257, 559, 13, 578, 1549, 12, 2010, 16, 25609, 3631, 64, 315, 3446, 1297, 506, 3193, 578, 25609, 791, 6, 225, 309, 1549, 12, 2010, 16, 25609, 4672, 707, 2740, 273, 404, 1327, 707, 2740, 471, 1549, 12, 2010, 16, 7257, 559, 4672, 1815, 562, 12, 2010, 13, 422, 404, 16, 315, 2740, 3193, 1297, 506, 279, 6396, 6, 225, 309, 486, 2688, 30, 2688, 273, 315, 3158, 17, 28, 6, 225, 312, 273, 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, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, 25609, 791, 358, 392, 3167, 17, 8087, 590, 261, 280, 766, 16, 309, 326, 707, 2740, 1456, 353, 1399, 2934, 225, 657, 2719, 358, 326, 501, 733, 16, 326, 3751, 702, 848, 506, 864, 487, 4932, 1775, 30, 225, 707, 529, 30, 326, 707, 508, 364, 279, 707, 1477, 4414, 225, 707, 2740, 30, 638, 358, 752, 279, 707, 1064, 4414, 18, 971, 333, 1456, 353, 1399, 598, 279, 3193, 16, 326, 3193, 1297, 506, 279, 6396, 261, 77, 18, 73, 18, 518, 2 ]
print(cmd)
print(subprocess.list2cmdline(cmd))
def run_test(test, lib_dir): if test.tmflags: env = os.environ.copy() env['TMFLAGS'] = test.tmflags else: env = None cmd = get_test_cmd(test.path, lib_dir) if (test.valgrind and any([os.path.exists(os.path.join(d, 'valgrind')) for d in os.environ['PATH'].split(os.pathsep)])): valgrind_prefix = [ 'valgrind', '-q', '--smc-check=all', '--error-exitcode=1', '--leak-check=full'] if os.uname()[0] == 'Darwin': valgrind_prefix += ['--dsymutil=yes'] cmd = valgrind_prefix + cmd if OPTIONS.show_cmd: print(cmd) # close_fds is not supported on Windows and will cause a ValueError. close_fds = sys.platform != 'win32' p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=close_fds, env=env) out, err = p.communicate() out, err = out.decode(), err.decode() if OPTIONS.show_output: sys.stdout.write(out) sys.stdout.write(err) sys.stdout.write('Exit code: ' + str(p.returncode) + "\n") if test.valgrind: sys.stdout.write(err) return (check_output(out, err, p.returncode, test.allow_oom, test.error), out, err)
fa4836b91e9683181fa78d467af05cb7120f541e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/fa4836b91e9683181fa78d467af05cb7120f541e/trace-test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3813, 12, 3813, 16, 2561, 67, 1214, 4672, 309, 1842, 18, 16925, 7133, 30, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 1550, 3292, 22903, 17836, 3546, 273, 1842, 18, 16925, 7133, 469, 30, 1550, 273, 599, 1797, 273, 336, 67, 3813, 67, 4172, 12, 3813, 18, 803, 16, 2561, 67, 1214, 13, 225, 309, 261, 3813, 18, 1125, 3197, 728, 471, 1281, 3816, 538, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 72, 16, 296, 1125, 3197, 728, 26112, 364, 302, 316, 1140, 18, 28684, 3292, 4211, 29489, 4939, 12, 538, 18, 803, 10814, 13, 22643, 30, 1244, 3197, 728, 67, 3239, 273, 306, 296, 1125, 3197, 728, 2187, 2400, 85, 2187, 3534, 4808, 71, 17, 1893, 33, 454, 2187, 3534, 1636, 17, 8593, 710, 33, 21, 2187, 3534, 298, 581, 17, 1893, 33, 2854, 3546, 309, 1140, 18, 318, 339, 1435, 63, 20, 65, 422, 296, 40, 19992, 4278, 1244, 3197, 728, 67, 3239, 1011, 10228, 413, 2377, 2942, 1367, 33, 9707, 3546, 1797, 273, 1244, 3197, 728, 67, 3239, 397, 1797, 225, 309, 16726, 18, 4500, 67, 4172, 30, 1172, 12, 1717, 2567, 18, 1098, 22, 4172, 1369, 12, 4172, 3719, 468, 1746, 67, 74, 2377, 353, 486, 3260, 603, 8202, 471, 903, 4620, 279, 2068, 18, 1746, 67, 74, 2377, 273, 2589, 18, 9898, 480, 296, 8082, 1578, 11, 293, 273, 14339, 12, 4172, 16, 8801, 33, 27602, 16, 3909, 33, 27602, 16, 4514, 33, 27602, 16, 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, 1086, 67, 3813, 12, 3813, 16, 2561, 67, 1214, 4672, 309, 1842, 18, 16925, 7133, 30, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 1550, 3292, 22903, 17836, 3546, 273, 1842, 18, 16925, 7133, 469, 30, 1550, 273, 599, 1797, 273, 336, 67, 3813, 67, 4172, 12, 3813, 18, 803, 16, 2561, 67, 1214, 13, 225, 309, 261, 3813, 18, 1125, 3197, 728, 471, 1281, 3816, 538, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 72, 16, 296, 1125, 3197, 728, 26112, 364, 302, 316, 1140, 18, 28684, 3292, 4211, 29489, 4939, 12, 538, 18, 803, 10814, 13, 22643, 30, 1244, 3197, 728, 67, 3239, 273, 306, 296, 1125, 3197, 728, 2187, 2400, 85, 2187, 2 ]
elif ( type == 'zTXt' ): log.debug('Compressed Text found.') (data,crc) = struct.unpack('>%isI' % length,file.read(length+4)) split = data.split('\0') key = split[0] value = "".join(split[1:]) compression = ord(value[0]) value = value[1:] if compression == 0: decompressed = zlib.decompress(value) log.debug("%s (Compressed %i) -> %s" % \ (key,compression,decompressed)) else: log.debug("%s has unknown Compression %c" % (key,compression)) self.meta[key] = value
if type == 'IEND': return 0
def _readChunk(self,file): try: (length, type) = struct.unpack('>I4s', file.read(8)) except (OSError, IOError): return 0 if ( type == 'tEXt' ): log.debug('latin-1 Text found.') (data, crc) = struct.unpack('>%isI' % length,file.read(length+4)) (key, value) = data.split('\0') self.meta[key] = value
406ed256504f64178f5e0aaab56da54fbcbf4dcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/406ed256504f64178f5e0aaab56da54fbcbf4dcb/pnginfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 5579, 12, 2890, 16, 768, 4672, 775, 30, 261, 2469, 16, 618, 13, 273, 1958, 18, 17309, 2668, 34, 45, 24, 87, 2187, 585, 18, 896, 12, 28, 3719, 1335, 261, 4618, 668, 16, 8340, 4672, 327, 374, 309, 261, 618, 422, 296, 88, 2294, 88, 11, 262, 30, 613, 18, 4148, 2668, 26578, 17, 21, 3867, 1392, 1093, 13, 261, 892, 16, 10619, 13, 273, 1958, 18, 17309, 2668, 9822, 291, 45, 11, 738, 769, 16, 768, 18, 896, 12, 2469, 15, 24, 3719, 261, 856, 16, 460, 13, 273, 501, 18, 4939, 2668, 64, 20, 6134, 365, 18, 3901, 63, 856, 65, 273, 460, 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, 389, 896, 5579, 12, 2890, 16, 768, 4672, 775, 30, 261, 2469, 16, 618, 13, 273, 1958, 18, 17309, 2668, 34, 45, 24, 87, 2187, 585, 18, 896, 12, 28, 3719, 1335, 261, 4618, 668, 16, 8340, 4672, 327, 374, 309, 261, 618, 422, 296, 88, 2294, 88, 11, 262, 30, 613, 18, 4148, 2668, 26578, 17, 21, 3867, 1392, 1093, 13, 261, 892, 16, 10619, 13, 273, 1958, 18, 17309, 2668, 9822, 291, 45, 11, 738, 769, 16, 768, 18, 896, 12, 2469, 15, 24, 3719, 261, 856, 16, 460, 13, 273, 501, 18, 4939, 2668, 64, 20, 6134, 365, 18, 3901, 63, 856, 65, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.surface = pygame.Surface(self.get_size(), 0, 32)
self.surface = pygame.Surface(int(self.get_size()), 0, 32)
def _draw(self): """ The actual internal draw function.
983bd9dd7d7c99329fb151cc6c86951f735999f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/983bd9dd7d7c99329fb151cc6c86951f735999f0/PopupBox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9446, 12, 2890, 4672, 3536, 1021, 3214, 2713, 3724, 445, 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, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9446, 12, 2890, 4672, 3536, 1021, 3214, 2713, 3724, 445, 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, -100, -100, -100, -100 ]
self.pushBotJoin()
if self.syncd: self.pushBotJoin()
def handleCmd_KICK(self, prefix, args):
41cfee835992c192fb2464a231351b4271c46427 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8524/41cfee835992c192fb2464a231351b4271c46427/bridge_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 47, 16656, 12, 2890, 16, 1633, 16, 833, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1640, 5931, 67, 47, 16656, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
host = req.get_host()
host = urlparse.urlparse(req.get_full_url())[1]
def do_open(self, http_class, req): host = req.get_host() if not host: raise URLError('no host given')
a9622a9af8d20bbd03a15a63df4b8c3261cfa69f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a9622a9af8d20bbd03a15a63df4b8c3261cfa69f/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3190, 12, 2890, 16, 1062, 67, 1106, 16, 1111, 4672, 1479, 273, 15185, 18, 718, 2670, 12, 3658, 18, 588, 67, 2854, 67, 718, 10756, 63, 21, 65, 309, 486, 1479, 30, 1002, 1976, 668, 2668, 2135, 1479, 864, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 15185, 18, 718, 2670, 12, 3658, 18, 588, 67, 2854, 67, 718, 10756, 63, 21, 65, 309, 486, 1479, 30, 1002, 1976, 668, 2668, 2135, 1479, 864, 6134, 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 ]
if (len(cards)==0): return
if (len(cards)==0): self.task = 0 return Task.done
def maintainReadout(self, task): """Access: private. Whenever necessary, rebuilds the entire display from scratch. This is only done when the configuration parameters have changed."""
06dfeaba34b429b409c55e45dfc20b8deb66bf5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/06dfeaba34b429b409c55e45dfc20b8deb66bf5b/BufferViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17505, 1994, 659, 12, 2890, 16, 1562, 4672, 3536, 1862, 30, 3238, 18, 225, 3497, 4009, 502, 4573, 16, 13419, 87, 326, 7278, 2562, 628, 15289, 18, 225, 1220, 353, 1338, 2731, 1347, 326, 1664, 1472, 1240, 3550, 12123, 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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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, 17505, 1994, 659, 12, 2890, 16, 1562, 4672, 3536, 1862, 30, 3238, 18, 225, 3497, 4009, 502, 4573, 16, 13419, 87, 326, 7278, 2562, 628, 15289, 18, 225, 1220, 353, 1338, 2731, 1347, 326, 1664, 1472, 1240, 3550, 12123, 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 ]
libraries = ['gmp', 'm', 'readline', 'singular', 'singcf', 'singfac', 'omalloc', 'givaro', 'gmpxx'],
libraries = ['m', 'readline', 'singular', 'singcf', 'singfac', 'omalloc', 'givaro', 'gmpxx', 'gmp'],
def is_older(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
f85b3c20d444daeecb1bac8b89bd81c099632242 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f85b3c20d444daeecb1bac8b89bd81c099632242/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1498, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712, 327, 1083, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 21, 4672, 327, 1083, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 22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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1498, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712, 327, 1083, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 21, 4672, 327, 1083, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 22, 4672, 327, 1053, 309, 1140, 18, 803, 18, 588, 10838, 12, 768, 22, 13, 411, 1140, 18, 803, 18, 588, 10838, 12, 768, 21, 4672, 327, 1053, 327, 1083, 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 ]
key = string.upper(key)
def __setitem__(self, key, item): key = string.upper(key) putenv(key, item) self.data[key] = item
f4e72db40428bd47f54ddfb3fd610276a11c72f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f4e72db40428bd47f54ddfb3fd610276a11c72f5/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 761, 4672, 1378, 3074, 12, 856, 16, 761, 13, 365, 18, 892, 63, 856, 65, 273, 761, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 761, 4672, 1378, 3074, 12, 856, 16, 761, 13, 365, 18, 892, 63, 856, 65, 273, 761, 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 ]
return MySQLdb.connect(host=self.host, db=self.db,
return MySQLdb.connect(host=self.host, port=self.port, db=self.db,
def makeConnection(self): return MySQLdb.connect(host=self.host, db=self.db, user=self.user, passwd=self.password)
c6118b2b0daab1d4d5d41d38786f832d7c72a4f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/c6118b2b0daab1d4d5d41d38786f832d7c72a4f7/mysqlconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1952, 12, 2890, 4672, 327, 13485, 1966, 18, 3612, 12, 2564, 33, 2890, 18, 2564, 16, 1756, 33, 2890, 18, 655, 16, 1319, 33, 2890, 18, 1966, 16, 729, 33, 2890, 18, 1355, 16, 19093, 33, 2890, 18, 3664, 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 ]
if f_name:
if f_name and version:
def noninteractiveMode(self): """ noninteractiveMode() -> None Run the console in non-interactive mode """ usedb = False if self.temp_db_options.host: usedb = True if self.input: w_list = [] for filename in self.input: f_name, version = self._parse_vtinfo(filename, not usedb) if f_name: if not usedb: locator = FileLocator(os.path.abspath(f_name)) else: locator = DBLocator(host=self.temp_db_options.host, port=self.temp_db_options.port, database=self.temp_db_options.db, user=self.temp_db_options.user, passwd='', obj_id=f_name, obj_type=None, connection_id=None) w_list.append((locator, version)) import core.console_mode if self.temp_db_options.parameters == None: self.temp_db_options.parameters = '' workflowInfo = None if self.temp_configuration.check('workflowInfo'): workflow_info = self.temp_configuration.workflowInfo else: workflow_info = None errs = core.console_mode.run(w_list, self.temp_db_options.parameters, workflow_info) if len(errs) > 0: for err in errs: print "*** Error in %s:%s:%s -- %s" % err return False return True else: debug.critical("no input vistrails provided") return False
b5813d8a38e4e720cab29aac6d05cb4709b6be40 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/b5813d8a38e4e720cab29aac6d05cb4709b6be40/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 24761, 2309, 12, 2890, 4672, 3536, 1661, 24761, 2309, 1435, 317, 599, 1939, 326, 2983, 316, 1661, 17, 24761, 1965, 225, 3536, 1399, 70, 273, 1083, 309, 365, 18, 5814, 67, 1966, 67, 2116, 18, 2564, 30, 1399, 70, 273, 1053, 309, 365, 18, 2630, 30, 341, 67, 1098, 273, 5378, 364, 1544, 316, 365, 18, 2630, 30, 284, 67, 529, 16, 1177, 273, 365, 6315, 2670, 67, 11734, 1376, 12, 3459, 16, 486, 1399, 70, 13, 309, 284, 67, 529, 471, 1177, 30, 309, 486, 1399, 70, 30, 8871, 273, 26571, 12, 538, 18, 803, 18, 5113, 803, 12, 74, 67, 529, 3719, 469, 30, 8871, 273, 2383, 5786, 12, 2564, 33, 2890, 18, 5814, 67, 1966, 67, 2116, 18, 2564, 16, 1756, 33, 2890, 18, 5814, 67, 1966, 67, 2116, 18, 655, 16, 2063, 33, 2890, 18, 5814, 67, 1966, 67, 2116, 18, 1966, 16, 729, 33, 2890, 18, 5814, 67, 1966, 67, 2116, 18, 1355, 16, 19093, 2218, 2187, 1081, 67, 350, 33, 74, 67, 529, 16, 1081, 67, 723, 33, 7036, 16, 1459, 67, 350, 33, 7036, 13, 341, 67, 1098, 18, 6923, 12443, 20048, 16, 1177, 3719, 1930, 2922, 18, 8698, 67, 3188, 309, 365, 18, 5814, 67, 1966, 67, 2116, 18, 3977, 422, 599, 30, 365, 18, 5814, 67, 1966, 67, 2116, 18, 3977, 273, 875, 6095, 966, 273, 599, 309, 365, 18, 5814, 67, 7025, 18, 1893, 2668, 13815, 966, 11, 4672, 6095, 67, 1376, 273, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 24761, 2309, 12, 2890, 4672, 3536, 1661, 24761, 2309, 1435, 317, 599, 1939, 326, 2983, 316, 1661, 17, 24761, 1965, 225, 3536, 1399, 70, 273, 1083, 309, 365, 18, 5814, 67, 1966, 67, 2116, 18, 2564, 30, 1399, 70, 273, 1053, 309, 365, 18, 2630, 30, 341, 67, 1098, 273, 5378, 364, 1544, 316, 365, 18, 2630, 30, 284, 67, 529, 16, 1177, 273, 365, 6315, 2670, 67, 11734, 1376, 12, 3459, 16, 486, 1399, 70, 13, 309, 284, 67, 529, 471, 1177, 30, 309, 486, 1399, 70, 30, 8871, 273, 26571, 12, 538, 18, 803, 18, 5113, 803, 12, 74, 67, 529, 3719, 469, 30, 8871, 273, 2383, 5786, 12, 2564, 33, 2890, 18, 5814, 67, 2 ]
the standard deviation of the flattened array.
the mean of the flattened array.
def mean(a, axis=None, dtype=None, out=None): """Compute the mean along the specified axis. Returns the average of the array elements. The average is taken over the flattened array by default, otherwise over the specified axis. The dtype returned for integer type arrays is float Parameters ---------- a : {array_like} Array containing numbers whose mean is desired. If a is not an array, a conversion is attempted. axis : {None, integer}, optional Axis along which the means are computed. The default is to compute the standard deviation of the flattened array. dtype : {None, dtype}, optional Type to use in computing the means. For arrays of integer type the default is float32, for arrays of float types it is the same as the array type. out : {None, array}, optional Alternative output array in which to place the result. It must have the same shape as the expected output but the type will be cast if necessary. Returns ------- mean : {array, scalar}, see dtype parameter above If out=None, returns a new array containing the mean values, otherwise a reference to the output array is returned. See Also -------- var : Variance std : Standard deviation Notes ----- The mean is the sum of the elements along the axis divided by the number of elements. Examples -------- >>> a = array([[1,2],[3,4]]) >>> mean(a) 2.5 >>> mean(a,0) array([ 2., 3.]) >>> mean(a,1) array([ 1.5, 3.5]) """ try: mean = a.mean except AttributeError: return _wrapit(a, 'mean', axis, dtype, out) return mean(axis, dtype, out)
5fc40c054140b8f43eb2838f892367ca05bcf302 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/5fc40c054140b8f43eb2838f892367ca05bcf302/fromnumeric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3722, 12, 69, 16, 2654, 33, 7036, 16, 3182, 33, 7036, 16, 596, 33, 7036, 4672, 3536, 7018, 326, 3722, 7563, 326, 1269, 2654, 18, 225, 2860, 326, 8164, 434, 326, 526, 2186, 18, 225, 1021, 8164, 353, 9830, 1879, 326, 14171, 526, 635, 805, 16, 3541, 1879, 326, 1269, 2654, 18, 1021, 3182, 2106, 364, 3571, 618, 5352, 353, 1431, 225, 7012, 12181, 279, 294, 288, 1126, 67, 5625, 97, 1510, 4191, 5600, 8272, 3722, 353, 6049, 18, 971, 279, 353, 486, 392, 526, 16, 279, 4105, 353, 18121, 18, 2654, 294, 288, 7036, 16, 3571, 5779, 3129, 15509, 7563, 1492, 326, 4696, 854, 8470, 18, 1021, 805, 353, 358, 3671, 326, 3722, 434, 326, 14171, 526, 18, 3182, 294, 288, 7036, 16, 3182, 5779, 3129, 1412, 358, 999, 316, 20303, 326, 4696, 18, 2457, 5352, 434, 3571, 618, 326, 805, 353, 1431, 1578, 16, 364, 5352, 434, 1431, 1953, 518, 353, 326, 1967, 487, 326, 526, 618, 18, 596, 294, 288, 7036, 16, 526, 5779, 3129, 21498, 1535, 876, 526, 316, 1492, 358, 3166, 326, 563, 18, 2597, 1297, 1240, 326, 1967, 2179, 487, 326, 2665, 876, 1496, 326, 618, 903, 506, 4812, 309, 4573, 18, 225, 2860, 18365, 3722, 294, 288, 1126, 16, 4981, 5779, 2621, 3182, 1569, 5721, 971, 596, 33, 7036, 16, 1135, 279, 394, 526, 4191, 326, 3722, 924, 16, 3541, 279, 2114, 358, 326, 876, 526, 353, 2106, 18, 225, 2164, 8080, 27093, 569, 294, 11487, 1359, 2044, 294, 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, 3722, 12, 69, 16, 2654, 33, 7036, 16, 3182, 33, 7036, 16, 596, 33, 7036, 4672, 3536, 7018, 326, 3722, 7563, 326, 1269, 2654, 18, 225, 2860, 326, 8164, 434, 326, 526, 2186, 18, 225, 1021, 8164, 353, 9830, 1879, 326, 14171, 526, 635, 805, 16, 3541, 1879, 326, 1269, 2654, 18, 1021, 3182, 2106, 364, 3571, 618, 5352, 353, 1431, 225, 7012, 12181, 279, 294, 288, 1126, 67, 5625, 97, 1510, 4191, 5600, 8272, 3722, 353, 6049, 18, 971, 279, 353, 486, 392, 526, 16, 279, 4105, 353, 18121, 18, 2654, 294, 288, 7036, 16, 3571, 5779, 3129, 15509, 7563, 1492, 326, 4696, 854, 8470, 18, 1021, 805, 353, 358, 3671, 326, 3722, 434, 326, 14171, 526, 2 ]
PyErr_Mac(ErrorObject, err);
PyMac_Error(err);
#ifdef WITHOUT_FRAMEWORKS
0d3945c1b6ce8c3d7027bc8f9a84299861cf9b01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0d3945c1b6ce8c3d7027bc8f9a84299861cf9b01/filesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 13601, 5069, 67, 15072, 10566, 55, 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 ]
[ 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 13601, 5069, 67, 15072, 10566, 55, 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 ]
'Test name: %s ' % test_name,
'Test name: %s ' % label,
def measure(code_str,times=1,label=None): """ Return elapsed time for executing code_str in the namespace of the caller for given times. """ frame = sys._getframe(1) locs,globs = frame.f_locals,frame.f_globals code = compile(code_str, 'Test name: %s ' % test_name, 'exec') i = 0 elapsed = jiffies() while i<times: i += 1 exec code in globs,locs elapsed = jiffies() - elapsed return 0.01*elapsed
d88397baff7bed0d749c929e762d617bfd1bc223 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/d88397baff7bed0d749c929e762d617bfd1bc223/ntest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6649, 12, 710, 67, 701, 16, 8293, 33, 21, 16, 1925, 33, 7036, 4672, 3536, 2000, 9613, 813, 364, 11274, 981, 67, 701, 316, 326, 1981, 434, 326, 4894, 364, 864, 4124, 18, 3536, 2623, 273, 2589, 6315, 588, 3789, 12, 21, 13, 26357, 16, 10581, 87, 273, 2623, 18, 74, 67, 17977, 16, 3789, 18, 74, 67, 16227, 225, 981, 273, 4074, 12, 710, 67, 701, 16, 296, 4709, 508, 30, 738, 87, 296, 738, 1433, 16, 296, 4177, 6134, 277, 273, 374, 9613, 273, 525, 3048, 606, 1435, 1323, 277, 32, 8293, 30, 277, 1011, 404, 1196, 981, 316, 4715, 87, 16, 24323, 9613, 273, 525, 3048, 606, 1435, 300, 9613, 327, 374, 18, 1611, 14, 26201, 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,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, 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, 6649, 12, 710, 67, 701, 16, 8293, 33, 21, 16, 1925, 33, 7036, 4672, 3536, 2000, 9613, 813, 364, 11274, 981, 67, 701, 316, 326, 1981, 434, 326, 4894, 364, 864, 4124, 18, 3536, 2623, 273, 2589, 6315, 588, 3789, 12, 21, 13, 26357, 16, 10581, 87, 273, 2623, 18, 74, 67, 17977, 16, 3789, 18, 74, 67, 16227, 225, 981, 273, 4074, 12, 710, 67, 701, 16, 296, 4709, 508, 30, 738, 87, 296, 738, 1433, 16, 296, 4177, 6134, 277, 273, 374, 9613, 273, 525, 3048, 606, 1435, 1323, 277, 32, 8293, 30, 277, 1011, 404, 1196, 981, 316, 4715, 87, 16, 24323, 9613, 273, 525, 3048, 606, 1435, 300, 9613, 327, 374, 18, 1611, 14, 2 ]
- ``second_descent`` (bool, default True) -- (only relevant
- ``second_descent`` (bool, default ``True``) -- (only relevant
def two_descent(self, verbose = True, selmer_only = False, first_limit = 20, second_limit = 8, n_aux = -1, second_descent = True): """ Compute 2-descent data for this curve.
1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2795, 67, 5569, 319, 12, 2890, 16, 3988, 273, 1053, 16, 357, 6592, 67, 3700, 273, 1083, 16, 1122, 67, 3595, 273, 4200, 16, 2205, 67, 3595, 273, 1725, 16, 290, 67, 18196, 273, 300, 21, 16, 2205, 67, 5569, 319, 273, 1053, 4672, 3536, 8155, 576, 17, 5569, 319, 501, 364, 333, 8882, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2795, 67, 5569, 319, 12, 2890, 16, 3988, 273, 1053, 16, 357, 6592, 67, 3700, 273, 1083, 16, 1122, 67, 3595, 273, 4200, 16, 2205, 67, 3595, 273, 1725, 16, 290, 67, 18196, 273, 300, 21, 16, 2205, 67, 5569, 319, 273, 1053, 4672, 3536, 8155, 576, 17, 5569, 319, 501, 364, 333, 8882, 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 ]
node = avg.WordsNode(parent=root, text="testtext")
node = avg.WordsNode(parent=root, text="testtext", font="Bitstream Vera Sans")
def testWordsNullFX(self): self.loadEmptyScene() root = Player.getRootNode() node = avg.WordsNode(parent=root, text="testtext") node.setEffect(avg.NullFXNode()) self.start(None, (lambda: self.compareImage("testWordsNullFX", True), ))
28c6f6a6ee188ec5c84585b91d6b61ce16953c7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/28c6f6a6ee188ec5c84585b91d6b61ce16953c7e/FXTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7363, 2041, 25172, 12, 2890, 4672, 365, 18, 945, 1921, 14370, 1435, 1365, 273, 19185, 18, 588, 29658, 1435, 756, 273, 11152, 18, 7363, 907, 12, 2938, 33, 3085, 16, 977, 1546, 3813, 955, 3113, 3512, 1546, 5775, 3256, 776, 6070, 348, 634, 7923, 756, 18, 542, 12477, 12, 14141, 18, 2041, 25172, 907, 10756, 365, 18, 1937, 12, 7036, 16, 261, 14661, 30, 365, 18, 9877, 2040, 2932, 3813, 7363, 2041, 25172, 3113, 1053, 3631, 8623, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7363, 2041, 25172, 12, 2890, 4672, 365, 18, 945, 1921, 14370, 1435, 1365, 273, 19185, 18, 588, 29658, 1435, 756, 273, 11152, 18, 7363, 907, 12, 2938, 33, 3085, 16, 977, 1546, 3813, 955, 3113, 3512, 1546, 5775, 3256, 776, 6070, 348, 634, 7923, 756, 18, 542, 12477, 12, 14141, 18, 2041, 25172, 907, 10756, 365, 18, 1937, 12, 7036, 16, 261, 14661, 30, 365, 18, 9877, 2040, 2932, 3813, 7363, 2041, 25172, 3113, 1053, 3631, 8623, 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 ]
prefix = os.path.splitext(store.name)[0] + '_'
if store.translation_project.language.code == 'templates': prefix = os.path.splitext(store.name)[0] + '_' else: prefix = os.path.splitext(store.name)[0][:-len(store.translation_project.language.code)]
def get_translated_name_gnu(translation_project, store): """given a template store and a translation_project return target filename""" suffix = translation_project.language.code + os.extsep + translation_project.project.localfiletype use_prefix = store.parent.child_stores.count() > 1 or \ translation_project.stores.exclude(name=suffix).exclude(file="").count() if not use_prefix: # let's make sure for tp in translation_project.project.translationproject_set.exclude(language__code='templates').iterator(): temp_suffix = tp.language.code + os.extsep + translation_project.project.localfiletype if translation_project.stores.exclude(name=temp_suffix).exclude(file="").count(): use_prefix = True break pootle_path_parts = store.pootle_path.split('/') pootle_path_parts[1] = translation_project.language.code if store.file: path_parts = store.file.path.split(os.sep) if use_prefix: #FIXME: what about dashes prefix = os.path.splitext(store.name)[0] + '_' else: prefix = "" name = prefix + suffix path_parts[-1] = name pootle_path_parts[-1] = name else: path_parts = store.parent.get_real_path().split(os.sep) path_parts.append(store.name) return '/'.join(pootle_path_parts), os.sep.join(path_parts)
cb97c96d1c550fb557fccbdfca7ecad110243462 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/cb97c96d1c550fb557fccbdfca7ecad110243462/project_tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22899, 67, 529, 67, 1600, 89, 12, 10173, 67, 4406, 16, 1707, 4672, 3536, 10822, 279, 1542, 1707, 471, 279, 4794, 67, 4406, 327, 1018, 1544, 8395, 3758, 273, 4794, 67, 4406, 18, 4923, 18, 710, 397, 1140, 18, 408, 10814, 397, 4794, 67, 4406, 18, 4406, 18, 3729, 7540, 5872, 999, 67, 3239, 273, 1707, 18, 2938, 18, 3624, 67, 19632, 18, 1883, 1435, 405, 404, 578, 521, 4794, 67, 4406, 18, 19632, 18, 10157, 12, 529, 33, 8477, 2934, 10157, 12, 768, 1546, 20387, 1883, 1435, 309, 486, 999, 67, 3239, 30, 468, 2231, 1807, 1221, 3071, 364, 8071, 316, 4794, 67, 4406, 18, 4406, 18, 10173, 4406, 67, 542, 18, 10157, 12, 4923, 972, 710, 2218, 8502, 16063, 9838, 13332, 1906, 67, 8477, 273, 8071, 18, 4923, 18, 710, 397, 1140, 18, 408, 10814, 397, 4794, 67, 4406, 18, 4406, 18, 3729, 7540, 5872, 309, 4794, 67, 4406, 18, 19632, 18, 10157, 12, 529, 33, 5814, 67, 8477, 2934, 10157, 12, 768, 1546, 20387, 1883, 13332, 999, 67, 3239, 273, 1053, 898, 225, 293, 1632, 298, 67, 803, 67, 6019, 273, 1707, 18, 1631, 352, 298, 67, 803, 18, 4939, 2668, 2473, 13, 293, 1632, 298, 67, 803, 67, 6019, 63, 21, 65, 273, 4794, 67, 4406, 18, 4923, 18, 710, 309, 1707, 18, 768, 30, 589, 67, 6019, 273, 1707, 18, 768, 18, 803, 18, 4939, 12, 538, 18, 10814, 13, 309, 999, 67, 3239, 30, 468, 25810, 30, 4121, 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, 22899, 67, 529, 67, 1600, 89, 12, 10173, 67, 4406, 16, 1707, 4672, 3536, 10822, 279, 1542, 1707, 471, 279, 4794, 67, 4406, 327, 1018, 1544, 8395, 3758, 273, 4794, 67, 4406, 18, 4923, 18, 710, 397, 1140, 18, 408, 10814, 397, 4794, 67, 4406, 18, 4406, 18, 3729, 7540, 5872, 999, 67, 3239, 273, 1707, 18, 2938, 18, 3624, 67, 19632, 18, 1883, 1435, 405, 404, 578, 521, 4794, 67, 4406, 18, 19632, 18, 10157, 12, 529, 33, 8477, 2934, 10157, 12, 768, 1546, 20387, 1883, 1435, 309, 486, 999, 67, 3239, 30, 468, 2231, 1807, 1221, 3071, 364, 8071, 316, 4794, 67, 4406, 18, 4406, 18, 10173, 4406, 67, 542, 18, 10157, 12, 4923, 2 ]
Return a new Weierstrass model of self under the standard transformation `(u,r,s,,t)`
Return a new Weierstrass model of self under the standard transformation `(u,r,s,t)`
def change_weierstrass_model(self, *urst): r""" Return a new Weierstrass model of self under the standard transformation `(u,r,s,,t)` .. math:: (x,y) \mapsto (x',y') = (u^2xr , u^3y + su^2x' + t). EXAMPLES:: sage: E = EllipticCurve('15a') sage: F1 = E.change_weierstrass_model([1/2,0,0,0]); F1 Elliptic Curve defined by y^2 + 2*x*y + 8*y = x^3 + 4*x^2 - 160*x - 640 over Rational Field sage: F2 = E.change_weierstrass_model([7,2,1/3,5]); F2 Elliptic Curve defined by y^2 + 5/21*x*y + 13/343*y = x^3 + 59/441*x^2 - 10/7203*x - 58/117649 over Rational Field sage: F1.is_isomorphic(F2) True """ if isinstance(urst[0], (tuple, list)): urst = urst[0] return constructor.EllipticCurve((wm.baseWI(*urst))(self.ainvs()))
bb08beb02d03f760beb67b038c96feb12ff51fc3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/bb08beb02d03f760beb67b038c96feb12ff51fc3/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 1814, 20778, 313, 428, 67, 2284, 12, 2890, 16, 380, 18593, 4672, 436, 8395, 2000, 279, 394, 1660, 20778, 313, 428, 938, 434, 365, 3613, 326, 4529, 8620, 1375, 12, 89, 16, 86, 16, 87, 16, 88, 22025, 225, 6116, 4233, 2866, 225, 261, 92, 16, 93, 13, 521, 1458, 30168, 261, 92, 2187, 93, 6134, 273, 261, 89, 66, 22, 92, 86, 269, 582, 66, 23, 93, 397, 1597, 66, 22, 92, 11, 397, 268, 2934, 282, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 512, 273, 10426, 549, 21507, 9423, 2668, 3600, 69, 6134, 272, 410, 30, 478, 21, 273, 512, 18, 3427, 67, 1814, 20778, 313, 428, 67, 2284, 3816, 21, 19, 22, 16, 20, 16, 20, 16, 20, 19226, 478, 21, 10426, 549, 21507, 22901, 2553, 635, 677, 66, 22, 397, 576, 14, 92, 14, 93, 397, 1725, 14, 93, 273, 619, 66, 23, 397, 1059, 14, 92, 66, 22, 300, 25430, 14, 92, 300, 5178, 20, 1879, 534, 8371, 2286, 272, 410, 30, 478, 22, 273, 512, 18, 3427, 67, 1814, 20778, 313, 428, 67, 2284, 3816, 27, 16, 22, 16, 21, 19, 23, 16, 25, 19226, 478, 22, 10426, 549, 21507, 22901, 2553, 635, 677, 66, 22, 397, 1381, 19, 5340, 14, 92, 14, 93, 397, 5958, 19, 5026, 23, 14, 93, 273, 619, 66, 23, 397, 14995, 19, 6334, 21, 14, 92, 66, 22, 300, 1728, 19, 27, 3462, 23, 14, 92, 300, 17066, 19, 23454, 1105, 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, 2549, 67, 1814, 20778, 313, 428, 67, 2284, 12, 2890, 16, 380, 18593, 4672, 436, 8395, 2000, 279, 394, 1660, 20778, 313, 428, 938, 434, 365, 3613, 326, 4529, 8620, 1375, 12, 89, 16, 86, 16, 87, 16, 88, 22025, 225, 6116, 4233, 2866, 225, 261, 92, 16, 93, 13, 521, 1458, 30168, 261, 92, 2187, 93, 6134, 273, 261, 89, 66, 22, 92, 86, 269, 582, 66, 23, 93, 397, 1597, 66, 22, 92, 11, 397, 268, 2934, 282, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 512, 273, 10426, 549, 21507, 9423, 2668, 3600, 69, 6134, 272, 410, 30, 478, 21, 273, 512, 18, 3427, 67, 1814, 20778, 313, 428, 67, 2284, 3816, 21, 19, 22, 2 ]
assert _cardInfo.has_key(ccType), "I can't validate that type of credit card"
assert self._cardInfo.has_key(ccType), "I can't validate that type of credit card"
def _validateReturn(self, fieldDict, state): ccType = string.lower(string.strip(fieldDict[self._ccTypeField])) number = string.strip(fieldDict[self._ccNumberField]) number = string.replace(number, ' ', '') number = string.replace(number, '-', '') try: long(number) except ValueError: return {self._ccNumberField: self.message('invalidNumber', "Please enter only the number, no other characters")}
f4fc213e95e4590e769d3c9c8128b44ba55d5da7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/f4fc213e95e4590e769d3c9c8128b44ba55d5da7/validators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 990, 12, 2890, 16, 652, 5014, 16, 919, 4672, 4946, 559, 273, 533, 18, 8167, 12, 1080, 18, 6406, 12, 1518, 5014, 63, 2890, 6315, 952, 559, 974, 22643, 1300, 273, 533, 18, 6406, 12, 1518, 5014, 63, 2890, 6315, 952, 1854, 974, 5717, 1300, 273, 533, 18, 2079, 12, 2696, 16, 296, 2265, 28707, 1300, 273, 533, 18, 2079, 12, 2696, 16, 2400, 2187, 28707, 775, 30, 1525, 12, 2696, 13, 1335, 2068, 30, 327, 288, 2890, 6315, 952, 1854, 974, 30, 365, 18, 2150, 2668, 5387, 1854, 2187, 315, 8496, 6103, 1338, 326, 1300, 16, 1158, 1308, 3949, 7923, 97, 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,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981, 30, 1652, 389, 5662, 990, 12, 2890, 16, 652, 5014, 16, 919, 4672, 4946, 559, 273, 533, 18, 8167, 12, 1080, 18, 6406, 12, 1518, 5014, 63, 2890, 6315, 952, 559, 974, 22643, 1300, 273, 533, 18, 6406, 12, 1518, 5014, 63, 2890, 6315, 952, 1854, 974, 5717, 1300, 273, 533, 18, 2079, 12, 2696, 16, 296, 2265, 28707, 1300, 273, 533, 18, 2079, 12, 2696, 16, 2400, 2187, 28707, 775, 30, 1525, 12, 2696, 13, 1335, 2068, 30, 327, 288, 2890, 6315, 952, 1854, 974, 30, 365, 18, 2150, 2668, 5387, 1854, 2187, 315, 8496, 6103, 1338, 326, 1300, 16, 1158, 1308, 3949, 7923, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assert_(msg.get_sequences() == ['flagged', 'foobar'])
self.assertEqual(msg.get_sequences(), ['flagged', 'foobar'])
def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') self.assertEqual(msg.get_sequences(), ['unseen']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.remove_sequence('unseen') self.assertEqual(msg.get_sequences(), ['flagged']) msg.add_sequence('foobar') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.remove_sequence('replied') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.set_sequences(['foobar', 'replied']) self.assert_(msg.get_sequences() == ['foobar', 'replied'])
fc9997a71def3361507ae020d7f678e347d8646b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/fc9997a71def3361507ae020d7f678e347d8646b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17190, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 8463, 1234, 273, 14187, 18, 49, 44, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 542, 67, 17190, 12, 3292, 617, 947, 297, 19486, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 617, 947, 297, 19486, 1234, 18, 542, 67, 17190, 3816, 5717, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 1289, 67, 6178, 2668, 318, 15156, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 318, 15156, 19486, 1234, 18, 1289, 67, 6178, 2668, 6420, 2423, 6134, 365, 18, 11231, 67, 12, 3576, 18, 588, 67, 17190, 1435, 422, 10228, 318, 15156, 2187, 296, 6420, 2423, 19486, 1234, 18, 1289, 67, 6178, 2668, 6420, 2423, 6134, 365, 18, 11231, 67, 12, 3576, 18, 588, 67, 17190, 1435, 422, 10228, 318, 15156, 2187, 296, 6420, 2423, 19486, 1234, 18, 4479, 67, 6178, 2668, 318, 15156, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 6420, 2423, 19486, 1234, 18, 1289, 67, 6178, 2668, 617, 947, 297, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 6420, 2423, 2187, 296, 617, 947, 297, 19486, 1234, 18, 4479, 67, 6178, 2668, 266, 3110, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 6420, 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, 1842, 67, 17190, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 8463, 1234, 273, 14187, 18, 49, 44, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 542, 67, 17190, 12, 3292, 617, 947, 297, 19486, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 617, 947, 297, 19486, 1234, 18, 542, 67, 17190, 3816, 5717, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 1289, 67, 6178, 2668, 318, 15156, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 318, 15156, 19486, 1234, 18, 1289, 67, 6178, 2668, 2 ]
if self.GetLineStartPos(self.GetLineFromPos(pos)) != pos:
if self.PositionFromLine(self.LineFromPosition(pos)) != pos:
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck()
ed86f61b9d55619ac440188d57acc292436b0dab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ed86f61b9d55619ac440188d57acc292436b0dab/PySourceView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 653, 4164, 12, 2890, 16, 871, 4672, 309, 365, 18, 1477, 14189, 3896, 13332, 365, 18, 1991, 14189, 1564, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2755, 653, 4164, 12, 2890, 16, 871, 4672, 309, 365, 18, 1477, 14189, 3896, 13332, 365, 18, 1991, 14189, 1564, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
length = float( math.sqrt( (self.beginningCoord[0]+self.endCoord[0])**2 + (self.beginningCoord[1]+self.endCoord[1])**2 + (self.beginningCoord[2]+self.endCoord[2])**2 ) )
length = self.getLength()
def getUnitVector(self): ''' Returns a vector along the helical axis pointing toward the endpoint farther from the origin. ''' length = float( math.sqrt( (self.beginningCoord[0]+self.endCoord[0])**2 + (self.beginningCoord[1]+self.endCoord[1])**2 + (self.beginningCoord[2]+self.endCoord[2])**2 ) ) return ( (self.beginningCoord[0]-self.endCoord[0])/length, (self.beginningCoord[1]-self.endCoord[1])/length, (self.beginningCoord[2]-self.endCoord[2])/length )
1f6f9de74c16f958b5f9b266984165a662bdffd6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/1f6f9de74c16f958b5f9b266984165a662bdffd6/ObservedHelix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19194, 5018, 12, 2890, 4672, 9163, 2860, 279, 3806, 7563, 326, 13150, 1706, 2654, 17022, 358, 2913, 326, 2494, 10247, 1136, 628, 326, 4026, 18, 9163, 769, 273, 365, 18, 588, 1782, 1435, 327, 261, 261, 2890, 18, 10086, 2093, 5401, 63, 20, 65, 17, 2890, 18, 409, 5401, 63, 20, 5717, 19, 2469, 16, 261, 2890, 18, 10086, 2093, 5401, 63, 21, 65, 17, 2890, 18, 409, 5401, 63, 21, 5717, 19, 2469, 16, 261, 2890, 18, 10086, 2093, 5401, 63, 22, 65, 17, 2890, 18, 409, 5401, 63, 22, 5717, 19, 2469, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19194, 5018, 12, 2890, 4672, 9163, 2860, 279, 3806, 7563, 326, 13150, 1706, 2654, 17022, 358, 2913, 326, 2494, 10247, 1136, 628, 326, 4026, 18, 9163, 769, 273, 365, 18, 588, 1782, 1435, 327, 261, 261, 2890, 18, 10086, 2093, 5401, 63, 20, 65, 17, 2890, 18, 409, 5401, 63, 20, 5717, 19, 2469, 16, 261, 2890, 18, 10086, 2093, 5401, 63, 21, 65, 17, 2890, 18, 409, 5401, 63, 21, 5717, 19, 2469, 16, 261, 2890, 18, 10086, 2093, 5401, 63, 22, 65, 17, 2890, 18, 409, 5401, 63, 22, 5717, 19, 2469, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
examples = [source + _expect(expect) for source, expect, dummy in _extract_examples(test)] return '\n'.join(examples) def debug(module, name): """Debug a single docstring containing doctests. Provide the module (or dotted name of the module) containing the docstring to be debugged, and the name (within the module) of the object with the docstring to be debugged. The doctest examples are extracted (see function testsource()), and written to a temp file. The Python debugger (pdb) is then invoked on that file.
examples = _extract_examples(test) testsrc = '\n'.join([ "%s%s" % (source, _expect(expect)) for (source, expect, lineno) in examples ]) return testsrc def debug_src(src, pm=False, globs=None): """Debug a single doctest test doc string The string is provided directly
def testsource(module, name): """Extract the doctest examples from a docstring. Provide the module (or dotted name of the module) containing the tests to be extracted, and the name (within the module) of the object with the docstring containing the tests to be extracted. The doctest examples are returned as a string containing Python code. The expected output blocks in the examples are converted to Python comments. """ module = _normalize_module(module) tests = _find_tests(module, "") test = [doc for (tname, doc, dummy, dummy) in tests if tname == name] if not test: raise ValueError(name, "not found in tests") test = test[0] examples = [source + _expect(expect) for source, expect, dummy in _extract_examples(test)] return '\n'.join(examples)
a643b658a7cd1d820fd561665402705f0f76b1d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a643b658a7cd1d820fd561665402705f0f76b1d0/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3168, 12, 2978, 16, 508, 4672, 3536, 4976, 326, 31263, 395, 10991, 628, 279, 14525, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 7434, 358, 506, 9438, 16, 471, 326, 508, 261, 25850, 326, 1605, 13, 434, 326, 733, 598, 326, 14525, 4191, 326, 7434, 358, 506, 9438, 18, 225, 1021, 31263, 395, 10991, 854, 2106, 487, 279, 533, 4191, 6600, 981, 18, 225, 1021, 2665, 876, 4398, 316, 326, 10991, 854, 5970, 358, 6600, 5678, 18, 3536, 225, 1605, 273, 389, 12237, 67, 2978, 12, 2978, 13, 7434, 273, 389, 4720, 67, 16341, 12, 2978, 16, 1408, 13, 1842, 273, 306, 2434, 364, 261, 88, 529, 16, 997, 16, 9609, 16, 9609, 13, 316, 7434, 309, 27829, 422, 508, 65, 309, 486, 1842, 30, 1002, 2068, 12, 529, 16, 315, 902, 1392, 316, 7434, 7923, 1842, 273, 1842, 63, 20, 65, 10991, 273, 306, 3168, 397, 389, 12339, 12, 12339, 13, 364, 1084, 16, 4489, 16, 9609, 316, 389, 8004, 67, 16858, 12, 3813, 25887, 327, 2337, 82, 10332, 5701, 12, 16858, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3168, 12, 2978, 16, 508, 4672, 3536, 4976, 326, 31263, 395, 10991, 628, 279, 14525, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 7434, 358, 506, 9438, 16, 471, 326, 508, 261, 25850, 326, 1605, 13, 434, 326, 733, 598, 326, 14525, 4191, 326, 7434, 358, 506, 9438, 18, 225, 1021, 31263, 395, 10991, 854, 2106, 487, 279, 533, 4191, 6600, 981, 18, 225, 1021, 2665, 876, 4398, 316, 326, 10991, 854, 5970, 358, 6600, 5678, 18, 3536, 225, 1605, 273, 389, 12237, 67, 2978, 12, 2978, 13, 7434, 273, 389, 4720, 67, 16341, 12, 2978, 16, 1408, 13, 1842, 273, 306, 2434, 364, 261, 88, 529, 16, 997, 16, 2 ]