rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if not self.databuf: print '** socket: no data!' print '** recv: got ', len(self.databuf)
def recv(self, bufsize, flags=0): if flags: raise my_error, 'recv flags not yet supported on mac' if not self.databuf: try: self.databuf, urg, mark = self.stream.Rcv(0) if not self.databuf: print '** socket: no data!' print '** recv: got ', len(self.databuf) except mactcp.error, arg: if arg[0] != MACTCP.connectionClosi...
6ee45cb8532e7bfa2e107bd9f039591d52dc3552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6ee45cb8532e7bfa2e107bd9f039591d52dc3552/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 12, 2890, 16, 1681, 1467, 16, 2943, 33, 20, 4672, 309, 2943, 30, 1002, 3399, 67, 1636, 16, 296, 18334, 2943, 486, 4671, 3260, 603, 5318, 11, 309, 486, 365, 18, 3404, 378, 696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10665, 12, 2890, 16, 1681, 1467, 16, 2943, 33, 20, 4672, 309, 2943, 30, 1002, 3399, 67, 1636, 16, 296, 18334, 2943, 486, 4671, 3260, 603, 5318, 11, 309, 486, 365, 18, 3404, 378, 696, ...
open(mainwrapperpath, "w").write(EXECVE_WRAPPER % locals())
open(mainwrapperpath, "w").write(BOOTSTRAP_SCRIPT % locals())
def preProcess(self): resdir = "Contents/Resources" if self.executable is not None: if self.mainprogram is None: execpath = pathjoin(self.execdir, self.name) else: execpath = pathjoin(resdir, os.path.basename(self.executable)) if not self.symlink_exec: self.files.append((self.executable, execpath)) self.binaries.append...
16e4a168d924c411e3864ddc6a8fc757a465a6a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/16e4a168d924c411e3864ddc6a8fc757a465a6a6/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2227, 12, 2890, 4672, 400, 1214, 273, 315, 6323, 19, 3805, 6, 309, 365, 18, 17751, 353, 486, 599, 30, 309, 365, 18, 5254, 12890, 353, 599, 30, 1196, 803, 273, 589, 5701, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 675, 2227, 12, 2890, 4672, 400, 1214, 273, 315, 6323, 19, 3805, 6, 309, 365, 18, 17751, 353, 486, 599, 30, 309, 365, 18, 5254, 12890, 353, 599, 30, 1196, 803, 273, 589, 5701, 12, 289...
mode = self._do_get_mode(query=False) if mode not in self._modes: logging.warning(__name__ + ' : Invalid mode %s, assuming current' % mode) mode = self._do_get_mode(query=False)
mode = self.get_mode(query=False) if mode not in self._modes: logging.warning(__name__ + ' : Invalid mode %s, assuming current' % mode) mode = self.get_mode(query=False)
def _do_get_range(self, mode=None): ''' Get range for the specified mode. If mode=None, the current mode is assumed.
e225b63fff98abc004b966fd48b18f5af744fb7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/e225b63fff98abc004b966fd48b18f5af744fb7d/Keithley_2700.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 588, 67, 3676, 12, 2890, 16, 1965, 33, 7036, 4672, 9163, 968, 1048, 364, 326, 1269, 1965, 18, 971, 1965, 33, 7036, 16, 326, 783, 1965, 353, 12034, 18, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 588, 67, 3676, 12, 2890, 16, 1965, 33, 7036, 4672, 9163, 968, 1048, 364, 326, 1269, 1965, 18, 971, 1965, 33, 7036, 16, 326, 783, 1965, 353, 12034, 18, 2, -100, -100, -...
def exportGraph(self, f, absolute_int=10, positive_int = 0, negative_int = 0, best_attributes = 0, print_bits = 1, black_white = 0, significant_digits = 2, postscript = 1, pretty_names = 1, url = 0):
def exportGraph(self, f, absolute_int=10, positive_int = 0, negative_int = 0, best_attributes = 0, print_bits = 1, black_white = 0, significant_digits = 2, postscript = 1, pretty_names = 1, url = 0, widget_coloring=1):
def exportGraph(self, f, absolute_int=10, positive_int = 0, negative_int = 0, best_attributes = 0, print_bits = 1, black_white = 0, significant_digits = 2, postscript = 1, pretty_names = 1, url = 0): NA = len(self.names)
41df6ed70f07d53aacb132814096ef75918cb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/41df6ed70f07d53aacb132814096ef75918cb83d/orngInteract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 4137, 12, 2890, 16, 284, 16, 4967, 67, 474, 33, 2163, 16, 6895, 67, 474, 273, 374, 16, 6092, 67, 474, 273, 374, 16, 3796, 67, 4350, 273, 374, 16, 1172, 67, 6789, 273, 404, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 4137, 12, 2890, 16, 284, 16, 4967, 67, 474, 33, 2163, 16, 6895, 67, 474, 273, 374, 16, 6092, 67, 474, 273, 374, 16, 3796, 67, 4350, 273, 374, 16, 1172, 67, 6789, 273, 404, 16...
self.vboxlayout13.addLayout(self.hboxlayout7)
self.vboxlayout12.addLayout(self.hboxlayout7)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,593).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon("../../../.designer/backup"))
79b42f390e6f53f319f4cccbce3f6018d111c729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/79b42f390e6f53f319f4cccbce3f6018d111c729/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
self.delete_brush_menu_item.set_sensitive(self.is_brush_at_path_editable(path)) self.rename_brush_menu_item.set_sensitive(self.is_brush_at_path_editable(path)) self.brush_list_menu.show_now() self.brush_list_menu.popup( None, None, None, data.button, data.time)
self.show_popup_menu(path, data) def show_popup_menu(self, path, event_data): brush_list_menu = self.xml_menu.get_widget("brush_list_menu") delete_brush_menu_item = self.xml_menu.get_widget("delete_brush_menu_item") rename_brush_menu_item = self.xml_menu.get_widget("rename_brush_menu_item") delete_brush_menu_item.se...
def on_brush_list_treeview_button_press_event(self, widget, data=None): if data.button==3: pthinfo = self.treeview.get_path_at_pos(int(data.x), int(data.y)) if pthinfo is not None: path = pthinfo[0] brush_data = self.treestore[path][0] if brush_data: self.treeview.grab_focus() self.treeview.set_cursor( path, self.treev...
12c59abc60af1ac8a39bea57767f2c91deef4cf2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/704/12c59abc60af1ac8a39bea57767f2c91deef4cf2/brushmanagementdialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2848, 1218, 67, 1098, 67, 3413, 1945, 67, 5391, 67, 1028, 67, 2575, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 309, 501, 18, 5391, 631, 23, 30, 18540, 1376, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2848, 1218, 67, 1098, 67, 3413, 1945, 67, 5391, 67, 1028, 67, 2575, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 309, 501, 18, 5391, 631, 23, 30, 18540, 1376, 273, 365, 18, ...
write_log('=== [[' + page.title() + ']] ===' + output + '\n')
write_log('=== [[' + page.title() + ']] ===' + output + '\n', filename = output_file)
def run(self): """ Starts the robot. """ # Run the generator which will yield Pages which might need to be # checked. for page in self.generator: try: # Load the page's text from the wiki original_text = page.get() except wikipedia.NoPage: wikipedia.output(u'Page %s not found' % page.title()) continue except wikipedia....
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 30620, 326, 14386, 18, 3536, 468, 1939, 326, 4456, 1492, 903, 2824, 22648, 1492, 4825, 1608, 358, 506, 468, 5950, 18, 364, 1363, 316, 365, 18, 8812, 30, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 30620, 326, 14386, 18, 3536, 468, 1939, 326, 4456, 1492, 903, 2824, 22648, 1492, 4825, 1608, 358, 506, 468, 5950, 18, 364, 1363, 316, 365, 18, 8812, 30, 775, ...
def test_standardtypes(self):
def test_objecttypes(self):
def test_standardtypes(self): h = self.header size = self.calcsize # bool self.check_sizeof(True, size(h + 'l')) # buffer self.check_sizeof(buffer(''), size(h + '2P2Pil')) # cell def get_cell(): x = 42 def inner(): return x return inner self.check_sizeof(get_cell().func_closure[0], size(h + 'P')) # old-style class clas...
2a9c012d274c588c51bc5660baff9bd0676bd399 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2a9c012d274c588c51bc5660baff9bd0676bd399/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1612, 2352, 12, 2890, 4672, 225, 366, 273, 365, 18, 3374, 963, 273, 365, 18, 12448, 1467, 468, 1426, 365, 18, 1893, 67, 1467, 792, 12, 5510, 16, 963, 12, 76, 397, 296, 80, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1612, 2352, 12, 2890, 4672, 225, 366, 273, 365, 18, 3374, 963, 273, 365, 18, 12448, 1467, 468, 1426, 365, 18, 1893, 67, 1467, 792, 12, 5510, 16, 963, 12, 76, 397, 296, 80, ...
version = '3.5.0',
version = '3.4.1',
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
b8de914f9020fce6abc82b5ace17933f0aabc57c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9744/b8de914f9020fce6abc82b5ace17933f0aabc57c/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100,...
def fl_set_input_selected(ob, yes): """ fl_set_input_selected(ob, yes) """ _fl_set_input_selected(ob, yes)
def fl_set_input_selected(pObject, yes): """ fl_set_input_selected(pObject, yes) """ _fl_set_input_selected(pObject, yes)
def fl_set_input_selected(ob, yes): """ fl_set_input_selected(ob, yes) """ _fl_set_input_selected(ob, yes)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 2630, 67, 8109, 12, 84, 921, 16, 12465, 4672, 3536, 1183, 67, 542, 67, 2630, 67, 8109, 12, 84, 921, 16, 12465, 13, 3536, 225, 389, 2242, 67, 542, 67, 2630, 67, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 2630, 67, 8109, 12, 84, 921, 16, 12465, 4672, 3536, 1183, 67, 542, 67, 2630, 67, 8109, 12, 84, 921, 16, 12465, 13, 3536, 225, 389, 2242, 67, 542, 67, 2630, 67, 8...
self.pageMargin = self.cellSize * kwargs.get('pageMargin', 3)
def __init__(self, diagram, **kwargs): self.cellSize = kwargs.get('cellSize', 8) self.nodePadding = kwargs.get('nodePadding', 4) self.lineSpacing = kwargs.get('lineSpacing', 2) self.shadowOffsetY = kwargs.get('shadowOffsetY', 6) self.shadowOffsetX = kwargs.get('shadowOffsetX', 3) self.fontSize = kwargs.get('fontSize', ...
e4ab388255523317e2fd451339d1e0904a851679 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/81/e4ab388255523317e2fd451339d1e0904a851679/DiagramMetrix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19750, 16, 2826, 4333, 4672, 365, 18, 3855, 1225, 273, 1205, 18, 588, 2668, 3855, 1225, 2187, 1725, 13, 365, 18, 2159, 9485, 273, 1205, 18, 588, 2668, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19750, 16, 2826, 4333, 4672, 365, 18, 3855, 1225, 273, 1205, 18, 588, 2668, 3855, 1225, 2187, 1725, 13, 365, 18, 2159, 9485, 273, 1205, 18, 588, 2668, 21...
try: if sock.family != socket.AF_UNIX: raise ValueError("Only AF_UNIX sockets are allowed")
if hasattr(sock, 'family') and sock.family != socket.AF_UNIX: raise ValueError("Only AF_UNIX sockets are allowed") if hasattr(sock, 'fileno'):
def __check_socket(sock): try: if sock.family != socket.AF_UNIX: raise ValueError("Only AF_UNIX sockets are allowed") sock = sock.fileno() except AttributeError: pass if not isinstance(sock, int): raise TypeError("An socket object or file descriptor was expected") return sock
19398a4657f94f14d4542aa3a63b06fc8b2d77b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4475/19398a4657f94f14d4542aa3a63b06fc8b2d77b9/passfd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 7814, 12, 15031, 4672, 309, 3859, 12, 15031, 16, 296, 9309, 6134, 471, 7313, 18, 9309, 480, 2987, 18, 6799, 67, 10377, 60, 30, 1002, 2068, 2932, 3386, 10888, 67, 10377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 7814, 12, 15031, 4672, 309, 3859, 12, 15031, 16, 296, 9309, 6134, 471, 7313, 18, 9309, 480, 2987, 18, 6799, 67, 10377, 60, 30, 1002, 2068, 2932, 3386, 10888, 67, 10377, ...
if (((byte0 & 0xc0) != 0x80) or ((byte1 & 0xfe) == 0xc0)):
if (((byte1 & 0xc0) != 0x80) or ((byte0 & 0xfe) == 0xc0)):
def __utf8_iter_ucs(msg): uiter = __utf8_iter_ints(msg) for byte0 in uiter: if byte0 < 0x80: # 0xxxxxxx yield (byte0, 1) elif (byte0 & 0xe0) == 0xc0: # 110XXXXx 10xxxxxx byte1 = uiter.next() if (((byte0 & 0xc0) != 0x80) or ((byte1 & 0xfe) == 0xc0)): # overlong? yield (None, 2) retur...
809f033c400b124668f74b44834cf71a76a4fe13 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/809f033c400b124668f74b44834cf71a76a4fe13/i18n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3158, 28, 67, 2165, 67, 89, 2143, 12, 3576, 4672, 582, 2165, 273, 1001, 3158, 28, 67, 2165, 67, 28142, 12, 3576, 13, 364, 1160, 20, 316, 582, 2165, 30, 309, 1160, 20, 411, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3158, 28, 67, 2165, 67, 89, 2143, 12, 3576, 4672, 582, 2165, 273, 1001, 3158, 28, 67, 2165, 67, 28142, 12, 3576, 13, 364, 1160, 20, 316, 582, 2165, 30, 309, 1160, 20, 411, 374,...
2005-08-22 10:30:00+00:00 5:00:00 Birding 2005-08-23 23:30:00+00:00 3:30:00 Soccer 2005-08-24 20:30:00+00:00 0:30:00 Flashmob 2005-08-27 06:00:00+00:00 3:30:00 Circus 2005-08-29 14:00:00+00:00 6:00:00 Boating
2005-08-24 12:00:00+00:00 5:00:00 Tribal dances 2005-08-25 17:30:00+00:00 1:30:00 Dentist 2005-08-27 11:30:00+00:00 4:00:00 Concert 2005-08-28 23:30:00+00:00 3:30:00 Quake tournament 2005-08-29 19:00:00+00:00 6:00:00 Boating
def doctest_SamplePersonalEvents(): """A sample data plugin that generates random personal events. >>> setUpRelationships() >>> from schooltool.demographics.sampledata import SamplePersonalEvents >>> from schooltool.sampledata.interfaces import ISampleDataPlugin >>> plugin = SamplePersonalEvents() >>> verifyObject(IS...
3d4b6aa1efcab6ce3abbc980c99a52e61423928d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/3d4b6aa1efcab6ce3abbc980c99a52e61423928d/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31263, 395, 67, 8504, 8346, 287, 3783, 13332, 3536, 37, 3296, 501, 1909, 716, 6026, 2744, 17816, 2641, 18, 225, 4080, 24292, 17185, 1435, 225, 4080, 628, 18551, 1371, 6738, 18, 19117, 8829...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31263, 395, 67, 8504, 8346, 287, 3783, 13332, 3536, 37, 3296, 501, 1909, 716, 6026, 2744, 17816, 2641, 18, 225, 4080, 24292, 17185, 1435, 225, 4080, 628, 18551, 1371, 6738, 18, 19117, 8829...
multi_linear_model = classmethod(multi_linear_model)
@classmethod
def multi_linear_model(cls, genotype_matrix, phenotype_ls, min_data_point=3, snp_index=None, kinship_matrix=None, eig_L=None, run_type=1): """ 2008-11-13 run_type 1: pure_linear_model 2: emma genotype_ls is already in binary (or integer starting from 0) 2008-11-10 similar to _kruskal_wallis() of Kruskal_Wallis """ non...
15a5bd5f746ece2d4e49575c7e099c1664482fa1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/15a5bd5f746ece2d4e49575c7e099c1664482fa1/Association.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3309, 67, 12379, 67, 2284, 12, 6429, 16, 22306, 67, 5667, 16, 28825, 67, 3251, 16, 1131, 67, 892, 67, 1153, 33, 23, 16, 28648, 67, 1615, 33, 7036, 16, 417, 267, 3261, 67, 5667, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3309, 67, 12379, 67, 2284, 12, 6429, 16, 22306, 67, 5667, 16, 28825, 67, 3251, 16, 1131, 67, 892, 67, 1153, 33, 23, 16, 28648, 67, 1615, 33, 7036, 16, 417, 267, 3261, 67, 5667, 33, ...
if data is None: return self.open(newurl) else: return self.open(newurl, data)
return self.open(newurl)
def redirect_internal(self, url, fp, errcode, errmsg, headers, data): if 'location' in headers: newurl = headers['location'] elif 'uri' in headers: newurl = headers['uri'] else: return void = fp.read() fp.close() # In case the server sent a relative URL, join with original: newurl = basejoin(self.type + ":" + url, newu...
e79d41b7c059ddd59ae546a0b55bc8c3109708fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e79d41b7c059ddd59ae546a0b55bc8c3109708fe/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 7236, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 4672, 309, 296, 3562, 11, 316, 1607, 30, 394, 718, 273, 1607, 3292, 3562, 3546, 1327, 296, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 67, 7236, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 4672, 309, 296, 3562, 11, 316, 1607, 30, 394, 718, 273, 1607, 3292, 3562, 3546, 1327, 296, 16...
print 'ln -s ' + path + '/sd-agent/ /usr/bin/sd-agent'
def downloadFile(agentFile, recursed = False): print 'Downloading ' + agentFile['name'] downloadedFile = urllib.urlretrieve('http://www.serverdensity.com/downloads/sd-agent/' + agentFile['name']) # Do md5 check to make sure the file downloaded properly checksum = md5.new() f = file(downloadedFile[0], 'rb') # Althoug...
b16f140a5c377c360da83fe2fc70ca12c543134a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13266/b16f140a5c377c360da83fe2fc70ca12c543134a/sd-deploy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 812, 12, 5629, 812, 16, 8112, 730, 273, 1083, 4672, 1172, 296, 27217, 296, 397, 4040, 812, 3292, 529, 3546, 225, 13549, 812, 273, 11527, 18, 718, 17466, 2668, 2505, 2207, 5591, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 812, 12, 5629, 812, 16, 8112, 730, 273, 1083, 4672, 1172, 296, 27217, 296, 397, 4040, 812, 3292, 529, 3546, 225, 13549, 812, 273, 11527, 18, 718, 17466, 2668, 2505, 2207, 5591, 18,...
cherrypy.response.headers['Content-Type'] = {
fname = posixpath.basename(name) try: cherrypy.response.headers['Content-Type'] = {
def static(self, name): 'Serves static content' name = name.lower() cherrypy.response.headers['Content-Type'] = { 'js' : 'text/javascript', 'css' : 'text/css', 'png' : 'image/png', 'gif' : 'image/gif', 'html' : 'text/html', '' : 'application/octet-stream', }[name.rpartition('.')[-1].lower()] cherrypy.response...
cddf20727770508ffe1116c399a67403b67022a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/cddf20727770508ffe1116c399a67403b67022a4/content.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 760, 12, 2890, 16, 508, 4672, 296, 827, 3324, 760, 913, 11, 508, 273, 508, 18, 8167, 1435, 5299, 273, 16366, 803, 18, 13909, 12, 529, 13, 775, 30, 462, 370, 28398, 18, 2740, 18, 2485...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 12, 2890, 16, 508, 4672, 296, 827, 3324, 760, 913, 11, 508, 273, 508, 18, 8167, 1435, 5299, 273, 16366, 803, 18, 13909, 12, 529, 13, 775, 30, 462, 370, 28398, 18, 2740, 18, 2485...
self.decode = codecs.utf_32_le_decode
self.decode = codecs.utf_32_be_decode
def decode(self, input, errors='strict'): (object, consumed, byteorder) = \ codecs.utf_32_ex_decode(input, errors, 0, False) if byteorder == -1: self.decode = codecs.utf_32_le_decode elif byteorder == 1: self.decode = codecs.utf_32_le_decode elif consumed>=4: raise UnicodeError,"UTF-32 stream does not start with BOM" r...
3e2852a60e85a84f443b9ac07dd9b393479c9802 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/3e2852a60e85a84f443b9ac07dd9b393479c9802/utf_32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 810, 16, 1334, 2218, 13948, 11, 4672, 261, 1612, 16, 12393, 16, 1160, 1019, 13, 273, 521, 17437, 18, 3158, 67, 1578, 67, 338, 67, 3922, 12, 2630, 16, 1334, 16, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 2890, 16, 810, 16, 1334, 2218, 13948, 11, 4672, 261, 1612, 16, 12393, 16, 1160, 1019, 13, 273, 521, 17437, 18, 3158, 67, 1578, 67, 338, 67, 3922, 12, 2630, 16, 1334, 16, 37...
key_ids = self.caller['key_ids'] else: key_ids = set(self.caller['key_ids']).intersection(key_ids)
return []
def call(self, auth, key_ids = None):
1c4f3478e0f262198d71a79358d614e07b6cdd0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/1c4f3478e0f262198d71a79358d614e07b6cdd0f/GetKeys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 498, 67, 2232, 273, 599, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 498, 67, 2232, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
new_vs_x = cpos.x / sppu_x
new_vs_x = vs_x + (cpos.x / sppu_x)
def OnChildFocus(self, evt): # If the child window that gets the focus is not visible, # this handler will try to scroll enough to see it. evt.Skip() child = evt.GetWindow()
80097f32fe00133de39e198f2af0a78fdbb258fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/80097f32fe00133de39e198f2af0a78fdbb258fc/scrolledpanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1763, 9233, 12, 2890, 16, 6324, 4672, 468, 971, 326, 1151, 2742, 716, 5571, 326, 7155, 353, 486, 6021, 16, 468, 333, 1838, 903, 775, 358, 5532, 7304, 358, 2621, 518, 18, 6324, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1763, 9233, 12, 2890, 16, 6324, 4672, 468, 971, 326, 1151, 2742, 716, 5571, 326, 7155, 353, 486, 6021, 16, 468, 333, 1838, 903, 775, 358, 5532, 7304, 358, 2621, 518, 18, 6324, 18...
d = appendpath(d,os.path.dirname(p)) p = (d,p)
pd = os.path.dirname(p) if '*' in pd: pn = os.path.basename(p) n = len(pd.split(os.sep)) for d1 in filter(os.path.isdir,self.paths(pd)): p = os.path.join(d1,pn) d1 = os.sep.join(d1.split(os.sep)[-n:]) new_files.append((appendpath(d,d1),p)) continue d = appendpath(d,pd) p = (d,p)
def add_data_files(self,*files): """ Add data files to configuration data_files. Argument(s) can be either - 2-sequence (<datadir prefix>,<path to data file(s)>) - paths to data files where python datadir prefix defaults to package dir. If path is not absolute then it's datadir prefix is package dir + dirname of the pa...
e97d2da5c89a2dc2ee87bc67d54b7d6a946835a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/e97d2da5c89a2dc2ee87bc67d54b7d6a946835a9/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 892, 67, 2354, 12, 2890, 16, 14, 2354, 4672, 3536, 1436, 501, 1390, 358, 1664, 501, 67, 2354, 18, 5067, 12, 87, 13, 848, 506, 3344, 300, 576, 17, 6178, 261, 32, 3404, 361, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 892, 67, 2354, 12, 2890, 16, 14, 2354, 4672, 3536, 1436, 501, 1390, 358, 1664, 501, 67, 2354, 18, 5067, 12, 87, 13, 848, 506, 3344, 300, 576, 17, 6178, 261, 32, 3404, 361, ...
import modules.basic_modules
import core.modules.basic_modules
def testSummonModule(self): """Check that summon creates a correct module""" import modules.basic_modules x = VisModule() x.name = "String" try: c = x.summon() assert type(c) == registry.getDescriptorByName("String").module except NoSummon: self.fail("Expected to get a String object, got a NoSummon exception")
5141a2901aafab25e9039323bd77268aec897bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6341/5141a2901aafab25e9039323bd77268aec897bc7/vis_object.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3495, 2586, 3120, 12, 2890, 4672, 3536, 1564, 716, 2142, 2586, 3414, 279, 3434, 1605, 8395, 1930, 2922, 18, 6400, 18, 13240, 67, 6400, 619, 273, 8077, 3120, 1435, 619, 18, 529, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3495, 2586, 3120, 12, 2890, 4672, 3536, 1564, 716, 2142, 2586, 3414, 279, 3434, 1605, 8395, 1930, 2922, 18, 6400, 18, 13240, 67, 6400, 619, 273, 8077, 3120, 1435, 619, 18, 529, 273...
next_light =self.road.length -1
next_light = self.road.length -1
def update(self, rang): """ Updates the car speed and position, manages blocked pathways and queues. rang (int) : position on the road (0 : last in) """
e11c10673ebcc92a3f3f69e0871c027bf0adbd2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4798/e11c10673ebcc92a3f3f69e0871c027bf0adbd2e/init.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 436, 539, 4672, 3536, 15419, 326, 5926, 8632, 471, 1754, 16, 20754, 281, 14547, 589, 3052, 471, 11897, 18, 436, 539, 565, 261, 474, 13, 282, 294, 282, 1754, 603, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 436, 539, 4672, 3536, 15419, 326, 5926, 8632, 471, 1754, 16, 20754, 281, 14547, 589, 3052, 471, 11897, 18, 436, 539, 565, 261, 474, 13, 282, 294, 282, 1754, 603, 32...
I = complex_field.ComplexField().gen(0)
CC = complex_field.ComplexField() I = CC.gen(0)
def __prep_num(x): if isinstance(x, sage.rings.complex_number.ComplexNumber): x = str(x).replace("i","I") else: x = str(x) return x
4076a0569f375df846aba3a88f9846f350d4586b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/4076a0569f375df846aba3a88f9846f350d4586b/transcendental.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 19109, 67, 2107, 12, 92, 4672, 309, 1549, 12, 92, 16, 272, 410, 18, 86, 899, 18, 14259, 67, 2696, 18, 12795, 1854, 4672, 619, 273, 609, 12, 92, 2934, 2079, 2932, 77, 15937, 45,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 19109, 67, 2107, 12, 92, 4672, 309, 1549, 12, 92, 16, 272, 410, 18, 86, 899, 18, 14259, 67, 2696, 18, 12795, 1854, 4672, 619, 273, 609, 12, 92, 2934, 2079, 2932, 77, 15937, 45,...
if errs: self.assert_equal(errs, error_message)
if errs and errs != error_message1 and errs != error_message2: self.assert_equal(errs, '')
def checkBuiltProgram(self): # On windows, the binary may be called testtmp.exe. Check both if os.path.exists('link/testtmp.exe'): testtmp_exe = 'testtmp.exe' else: testtmp_exe = 'testtmp'
85054a214daca6e758ca2ff3feae9a532be4875f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4521/85054a214daca6e758ca2ff3feae9a532be4875f/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 16409, 9459, 12, 2890, 4672, 468, 2755, 9965, 16, 326, 3112, 2026, 506, 2566, 1842, 5645, 18, 14880, 18, 225, 2073, 3937, 309, 1140, 18, 803, 18, 1808, 2668, 1232, 19, 3813, 5645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 16409, 9459, 12, 2890, 4672, 468, 2755, 9965, 16, 326, 3112, 2026, 506, 2566, 1842, 5645, 18, 14880, 18, 225, 2073, 3937, 309, 1140, 18, 803, 18, 1808, 2668, 1232, 19, 3813, 5645, ...
filltxt='Fill: None'
filltxt=_('Fill: None')
def ColorInfo(): if len(self.document.selection) != 1 or self.document.CanUngroup(): fill_frame["style"]='ColorWatchDisabled' outline_frame["style"]='ColorWatchDisabled' fill_frame['background']=app.uimanager.currentColorTheme.bg outline_frame['background']=app.uimanager.currentColorTheme.bg return "" properties = sel...
5b0b1ea6519d06fdf8f2bc5a6c7256f8f274e195 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5b0b1ea6519d06fdf8f2bc5a6c7256f8f274e195/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5563, 966, 13332, 309, 562, 12, 2890, 18, 5457, 18, 10705, 13, 480, 404, 578, 365, 18, 5457, 18, 2568, 984, 1655, 13332, 3636, 67, 3789, 9614, 4060, 11929, 2218, 2957, 5234, 8853, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5563, 966, 13332, 309, 562, 12, 2890, 18, 5457, 18, 10705, 13, 480, 404, 578, 365, 18, 5457, 18, 2568, 984, 1655, 13332, 3636, 67, 3789, 9614, 4060, 11929, 2218, 2957, 5234, 8853, 11, ...
Return number of generators of this quaternion algebra. Though quaternion algebras could be generated using 2 elements, we always chose three algebra generators. E.g., in many cases the generators are i, j, and k. [[explain better.]]
Return the number of generators of the quaternion algebra as a K-vector space, not including 1. This value is always 3: the algebra is spanned by the standard basis 1, i, j, k.
def ngens(self): """ Return number of generators of this quaternion algebra.
48b328d83169177c002516f19cf8242db1504925 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/48b328d83169177c002516f19cf8242db1504925/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10944, 773, 12, 2890, 4672, 3536, 2000, 1300, 434, 13327, 434, 333, 26774, 524, 29087, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10944, 773, 12, 2890, 4672, 3536, 2000, 1300, 434, 13327, 434, 333, 26774, 524, 29087, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pickle.dump(arp_cache, wrpipe) wrpipe.close()
print "--- End of error in child %i" % os.getpid() sys.exit() else: pickle.dump(arp_cache, wrpipe) wrpipe.close()
def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None): if verbose is None: verbose = conf.verb recv = [] ans = [] # do it here to fix random fields, so that parent and child have the same sent = [p for p in pkt] if timeout < 0: timeout = None rdpipe,wrpipe = os.pipe() rdpipe=os.fdopen(rdpipe) wrpipe=os.fdopen(...
cf73a15e075e3f39d4af20e42efe962249f5eeba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/cf73a15e075e3f39d4af20e42efe962249f5eeba/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 4672, 225, 309, 3988, 353, 599, 30, 3988, 273, 2195, 18, 16629, 10665, 273, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 4672, 225, 309, 3988, 353, 599, 30, 3988, 273, 2195, 18, 16629, 10665, 273, 5378, ...
@checkAuth(write = True, admin = True)
@checkAuth(admin = True)
def deleteGroup(self, auth, userGroupId): self.repServer.auth.deleteGroupById(userGroupId) self._redirect("userlist")
da24c3346d4fa9223ceb3365b4262bfdf7e6ba3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/da24c3346d4fa9223ceb3365b4262bfdf7e6ba3c/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 1114, 12, 2890, 16, 1357, 16, 729, 8722, 4672, 365, 18, 14462, 2081, 18, 1944, 18, 3733, 1114, 5132, 12, 1355, 8722, 13, 365, 6315, 7590, 2932, 1355, 1098, 7923, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 1114, 12, 2890, 16, 1357, 16, 729, 8722, 4672, 365, 18, 14462, 2081, 18, 1944, 18, 3733, 1114, 5132, 12, 1355, 8722, 13, 365, 6315, 7590, 2932, 1355, 1098, 7923, 2, -100, -100, -...
rect2.set_size(25, 50)
rect2.set_size(20, 10)
def do_pick(self, color): if self.pick_enabled: self.do_paint() else: clutter.Actor.do_pick(self, color)
45b9e45dc66b05ebcc00dcb0d50f2c1e85390b65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/45b9e45dc66b05ebcc00dcb0d50f2c1e85390b65/box.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11503, 12, 2890, 16, 2036, 4672, 309, 365, 18, 11503, 67, 5745, 30, 365, 18, 2896, 67, 84, 1598, 1435, 469, 30, 927, 18220, 18, 17876, 18, 2896, 67, 11503, 12, 2890, 16, 203...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11503, 12, 2890, 16, 2036, 4672, 309, 365, 18, 11503, 67, 5745, 30, 365, 18, 2896, 67, 84, 1598, 1435, 469, 30, 927, 18220, 18, 17876, 18, 2896, 67, 11503, 12, 2890, 16, 203...
totaltime += elapsedtime if ((totalcpu/totaltime) >= cpulimit): totalcpu += percentused*elapsedtime else: totalcpu += max(percentused, cpulimit)*elapsedtime
if HYBRID_THROTTLE: totaltime += elapsedtime if ((totalcpu/totaltime) >= cpulimit): totalcpu += percentused*elapsedtime else: totalcpu += max(percentused, cpulimit)*elapsedtime totalAvg = (totalcpu/totaltime)
def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: return # Increment total time totaltime += elapsedtime # Increment CPU use if ((tota...
da5157d89e6ffa97b6c3efbb3b8f84e5a8c9fbd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7272/da5157d89e6ffa97b6c3efbb3b8f84e5a8c9fbd7/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
("i", "x?a=b&c=d;"), ])])
("i", "x?a=b&c=d;"), ("j", "& ("k", "& ])])
def test_attr_values_entities(self): """Substitution of entities and charrefs in attribute values""" # SF bug #1452246 self.check_events("""<a b=&lt; c=&lt;&gt; d=&lt-&gt; e='&lt; ' f="&xxx;" g='&#32;&#33;' h='&#500;' i='x?a=b&c=d;'>""", [("starttag", "a", [("b", "<"), ("c", "<>"), ("d", "&lt->"), ("e", "< "), ("f", "&...
a16393efb779b62f9114c06852947e92dd9d155f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a16393efb779b62f9114c06852947e92dd9d155f/test_sgmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1747, 67, 2372, 67, 9996, 12, 2890, 4672, 3536, 23798, 434, 5140, 471, 1149, 9316, 316, 1566, 924, 8395, 468, 21318, 7934, 468, 3461, 9401, 3247, 26, 365, 18, 1893, 67, 5989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1747, 67, 2372, 67, 9996, 12, 2890, 4672, 3536, 23798, 434, 5140, 471, 1149, 9316, 316, 1566, 924, 8395, 468, 21318, 7934, 468, 3461, 9401, 3247, 26, 365, 18, 1893, 67, 5989, ...
created_files.extend(files)
self.outfiles.extend(files)
def run(self): self.mkpath(self.install_dir) # used for byte compiling created_files = []
d9c1191ac20a9953e76d9fdba198bd1af4e4fc4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/d9c1191ac20a9953e76d9fdba198bd1af4e4fc4a/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 24816, 803, 12, 2890, 18, 5425, 67, 1214, 13, 468, 1399, 364, 1160, 1161, 4973, 2522, 67, 2354, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 24816, 803, 12, 2890, 18, 5425, 67, 1214, 13, 468, 1399, 364, 1160, 1161, 4973, 2522, 67, 2354, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -...
def __init__(self, fs, path, type, size=0, blocks=0):
def __init__(self, fs, path, type, size=0):
def __init__(self, fs, path, type, size=0, blocks=0): self.path = path self.fs = fs self.type = type self.dir = dir self.size = size self.blocks = blocks
d3cd38e3fce243c0e7d918aedc9c352bf471d722 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/d3cd38e3fce243c0e7d918aedc9c352bf471d722/spreadfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2662, 16, 589, 16, 618, 16, 963, 33, 20, 4672, 365, 18, 803, 273, 589, 365, 18, 2556, 273, 2662, 365, 18, 723, 273, 618, 365, 18, 1214, 273, 1577, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2662, 16, 589, 16, 618, 16, 963, 33, 20, 4672, 365, 18, 803, 273, 589, 365, 18, 2556, 273, 2662, 365, 18, 723, 273, 618, 365, 18, 1214, 273, 1577, 36...
except IOError:
except IOError, reason:
def main(self):
0a0d835698e962ed05cdc6905c0f485f0490ed6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0a0d835698e962ed05cdc6905c0f485f0490ed6e/pybench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 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, -...
MsgType_Heartbeat = cvar.MsgType_Heartbeat MsgType_Logon = cvar.MsgType_Logon MsgType_TestRequest = cvar.MsgType_TestRequest MsgType_ResendRequest = cvar.MsgType_ResendRequest MsgType_Reject = cvar.MsgType_Reject MsgType_SequenceReset = cvar.MsgType_SequenceReset MsgType_Logout = cvar.MsgType_Logout MsgType_BusinessMes...
ApplVerId_FIX50 = cvar.ApplVerId_FIX50 ApplVerId_FIX44 = cvar.ApplVerId_FIX44 ApplVerId_FIX43 = cvar.ApplVerId_FIX43 ApplVerId_FIX42 = cvar.ApplVerId_FIX42 ApplVerId_FIX41 = cvar.ApplVerId_FIX41 ApplVerId_FIX40 = cvar.ApplVerId_FIX40
def __str__(*args): return _quickfix.SessionID___str__(*args)
b195a30ce1679e0269bc776f2f6e3591488def1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/b195a30ce1679e0269bc776f2f6e3591488def1f/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 30857, 1968, 4672, 327, 389, 19525, 904, 18, 2157, 734, 31268, 701, 972, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 30857, 1968, 4672, 327, 389, 19525, 904, 18, 2157, 734, 31268, 701, 972, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return int(math.floor(x)) return SymbolicComposition(self, SR(x))
return Integer(math.floor(x)) bits = 53 try: x_interval = RealIntervalField(bits)(x) upper_floor = x_interval.upper().floor() lower_floor = x_interval.lower().floor() while upper_floor != lower_floor and bits < maximum_bits: bits += 100 x_interval = RealIntervalField(bits)(x) upper_floor = x_interval.upper().floo...
def __call__(self, x): try: return x.floor() except AttributeError: if isinstance(x, (float, int, long, complex)): return int(math.floor(x)) return SymbolicComposition(self, SR(x))
3529fcf15ed35076767fe6feb9a3acfe62ee0620 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3529fcf15ed35076767fe6feb9a3acfe62ee0620/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 775, 30, 327, 619, 18, 74, 5807, 1435, 1335, 6394, 30, 309, 1549, 12, 92, 16, 261, 5659, 16, 509, 16, 1525, 16, 7233, 3719, 30, 327, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 775, 30, 327, 619, 18, 74, 5807, 1435, 1335, 6394, 30, 309, 1549, 12, 92, 16, 261, 5659, 16, 509, 16, 1525, 16, 7233, 3719, 30, 327, 509, ...
input_filepath = path.dirname(input_filename)
input_filepath = os.path.dirname(input_filename)
def InlineFile(input_filename, output_filename): """Inlines the resources in a specified file. Reads input_filename, finds all the src attributes and attempts to inline the files they are referring to, then writes the result to output_filename. Args: input_filename: name of file to read in output_filename: name of fi...
f94544738660fd2d02e771b9c95bb40ab0be3c94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/f94544738660fd2d02e771b9c95bb40ab0be3c94/html_inline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16355, 812, 12, 2630, 67, 3459, 16, 876, 67, 3459, 4672, 3536, 382, 3548, 326, 2703, 316, 279, 1269, 585, 18, 225, 29185, 810, 67, 3459, 16, 13094, 777, 326, 1705, 1677, 471, 7531, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16355, 812, 12, 2630, 67, 3459, 16, 876, 67, 3459, 4672, 3536, 382, 3548, 326, 2703, 316, 279, 1269, 585, 18, 225, 29185, 810, 67, 3459, 16, 13094, 777, 326, 1705, 1677, 471, 7531, 358...
return (True, always)
return (True, True, always)
def add_text(page = None, addText = None, summary = None, regexSkip = None, regexSkipUrl = None, always = False, up = False, putText = True, oldTextGiven = None): if not addText: raise NoEnoughData('You have to specify what text you want to add!') if not summary: summary = wikipedia.setAction(wikipedia.translate(wikipe...
de1028401404385f435bbea25b8acdf43ff4df22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/de1028401404385f435bbea25b8acdf43ff4df22/add_text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 955, 12, 2433, 273, 599, 16, 25796, 273, 599, 16, 4916, 273, 599, 16, 3936, 6368, 273, 599, 16, 3936, 6368, 1489, 273, 599, 16, 3712, 273, 1083, 16, 731, 273, 1083, 16, 1378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 955, 12, 2433, 273, 599, 16, 25796, 273, 599, 16, 4916, 273, 599, 16, 3936, 6368, 273, 599, 16, 3936, 6368, 1489, 273, 599, 16, 3712, 273, 1083, 16, 731, 273, 1083, 16, 1378...
def __gfal_wrapper(self, operation, gfalDict, srmRequestID = None ): res = self.__create_gfal_object(gfalDict) if not res['OK']: result = S_ERROR(res['Message'])
def __gfal_wrapper( self, operation, gfalDict, srmRequestID = None ): res = self.__create_gfal_object( gfalDict ) if not res['OK']: result = S_ERROR( res['Message'] )
def __gfal_wrapper(self, operation, gfalDict, srmRequestID = None ):
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 75, 74, 287, 67, 8376, 12, 2890, 16, 1674, 16, 13828, 287, 5014, 16, 272, 8864, 691, 734, 273, 599, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 75, 74, 287, 67, 8376, 12, 2890, 16, 1674, 16, 13828, 287, 5014, 16, 272, 8864, 691, 734, 273, 599, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return d.keys()
return list(d.keys())
def fill_dict(d, candidates, numentries): d.clear() for i in xrange(numentries): d[Horrid(random.choice(candidates))] = \ Horrid(random.choice(candidates)) return d.keys()
ecca313aa4ea9027317f23d176e104db3bb85705 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ecca313aa4ea9027317f23d176e104db3bb85705/test_mutants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 67, 1576, 12, 72, 16, 7965, 16, 818, 8219, 4672, 302, 18, 8507, 1435, 364, 277, 316, 12314, 12, 2107, 8219, 4672, 302, 63, 44, 280, 1691, 12, 9188, 18, 11569, 12, 21635, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 67, 1576, 12, 72, 16, 7965, 16, 818, 8219, 4672, 302, 18, 8507, 1435, 364, 277, 316, 12314, 12, 2107, 8219, 4672, 302, 63, 44, 280, 1691, 12, 9188, 18, 11569, 12, 21635, 3719, ...
context.__enter__() try: callableObj(*args, **kwargs) finally: context.__exit__()
_EmulateWith(context, lambda: callableObj(*args, **kwargs))
def assertRaises(self, excClass, callableObj=None, *args, **kwargs): """Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered ...
5c6e4e378bc1915316abaec67bc6197c1f6a6598 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/5c6e4e378bc1915316abaec67bc6197c1f6a6598/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 12649, 6141, 12, 2890, 16, 3533, 797, 16, 4140, 2675, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 3754, 3308, 392, 1520, 434, 667, 3533, 797, 353, 6718, 635, 4140, 2675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1815, 12649, 6141, 12, 2890, 16, 3533, 797, 16, 4140, 2675, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 3754, 3308, 392, 1520, 434, 667, 3533, 797, 353, 6718, 635, 4140, 2675, ...
self.assertTrue(0 <= node) self.assertTrue(node < (1L <<48))
self.assertTrue(node & 0x010000000000) self.assertTrue(node < (1L << 48))
def test_random_getnode(self): node = uuid._random_getnode() self.assertTrue(0 <= node) self.assertTrue(node < (1L <<48))
4449ab77c1bbbad0816a962cc0cd1af68fab4871 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/4449ab77c1bbbad0816a962cc0cd1af68fab4871/test_uuid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9188, 67, 588, 2159, 12, 2890, 4672, 756, 273, 3822, 6315, 9188, 67, 588, 2159, 1435, 365, 18, 11231, 5510, 12, 20, 1648, 756, 13, 365, 18, 11231, 5510, 12, 2159, 411, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9188, 67, 588, 2159, 12, 2890, 4672, 756, 273, 3822, 6315, 9188, 67, 588, 2159, 1435, 365, 18, 11231, 5510, 12, 20, 1648, 756, 13, 365, 18, 11231, 5510, 12, 2159, 411, 261, ...
speaker_side_release = validators.Bool()
speaker_slides_release = validators.Bool()
def validate_python(self, value, state): checksum = h.silly_description_checksum(value['silly_description']) if value['silly_description_checksum'] != checksum: raise Invalid("Smart enough to hack the silly description, not smart enough to hack the checksum.", value, state)
12ca3fd7ebf2475a2110a74ab29fa1f0aaa89891 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/12ca3fd7ebf2475a2110a74ab29fa1f0aaa89891/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 6697, 273, 366, 18, 25119, 715, 67, 3384, 67, 15149, 12, 1132, 3292, 25119, 715, 67, 3384, 19486, 309, 460, 3292, 25119, 715, 67, 3384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 6697, 273, 366, 18, 25119, 715, 67, 3384, 67, 15149, 12, 1132, 3292, 25119, 715, 67, 3384, 19486, 309, 460, 3292, 25119, 715, 67, 3384...
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(na...
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: paren...
d0d0e6321e87f7a7674d00a59071ba5b1fe090c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d0d0e6321e87f7a7674d00a59071ba5b1fe090c5/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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
object, doc, published, realm, module_name ) = get_module_info(module_name)
object, doc, published, realm, module_name, hide_tracebacks, debug_mode)= get_module_info(module_name) if request.environ.has_key('BOBO_DEBUG_MODE'): debug_mode=request.environ['BOBO_DEBUG_MODE'] try: debug_mode=atoi(debug_mode) except: pass if debug_mode: debug_mode=1 else: debug_mode=None if request.environ.has_ke...
def publish(self, module_name, after_list, published='web_objects', imported_modules={}, module_dicts={},debug=0):
86142d8cf2df52c6b79f4c067e9f567cd669c1c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/86142d8cf2df52c6b79f4c067e9f567cd669c1c3/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 2890, 16, 1605, 67, 529, 16, 1839, 67, 1098, 16, 9487, 2218, 4875, 67, 6911, 2187, 9101, 67, 6400, 28793, 1605, 67, 16287, 28793, 4148, 33, 20, 4672, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 2890, 16, 1605, 67, 529, 16, 1839, 67, 1098, 16, 9487, 2218, 4875, 67, 6911, 2187, 9101, 67, 6400, 28793, 1605, 67, 16287, 28793, 4148, 33, 20, 4672, 2, -100, -100, -100, -10...
changedtext = comment_lines + master_lines + acl_lines + [format_line, language_line,] + pragma_lines + content_lines
if masterpage.endswith('Template'): changedtext = master_lines + [format_line, language_line,] + pragma_lines + content_lines else: changedtext = comment_lines + master_lines + acl_lines + [format_line, language_line,] + pragma_lines + content_lines
def do_edit(pagename, origtext): if pagename in ['LocalSpellingWords','LocalBadContent',]: return origtext language_line = format_line = masterpage = None acl_lines = [] master_lines = [] pragma_lines = [] comment_lines = [] content_lines = [] lines = origtext.splitlines() header = True for l in lines: if not l.startsw...
abcaca6d63eb990529e14b37483242d8c0786b9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/abcaca6d63eb990529e14b37483242d8c0786b9f/globaledit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4619, 12, 9095, 1069, 16, 1647, 955, 4672, 309, 4262, 1069, 316, 10228, 2042, 3389, 1165, 310, 7363, 17023, 2042, 6434, 1350, 2187, 14542, 327, 1647, 955, 2653, 67, 1369, 273, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 67, 4619, 12, 9095, 1069, 16, 1647, 955, 4672, 309, 4262, 1069, 316, 10228, 2042, 3389, 1165, 310, 7363, 17023, 2042, 6434, 1350, 2187, 14542, 327, 1647, 955, 2653, 67, 1369, 273, 7...
[x^2 + x + 1, [0, 1], -3, 1, [Mat([1, -0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I]), [1, 0.36602540378443864676372317075293618347; 1, -1.3660254037844386467637231707529361835], 0, [2, -1; -1, -1], [3, 2; 0, 1], [1, -1; -1, -2], [3, [2, -1; 1, 1]]], [-0.500000000000000000000000...
[x^2 + x + 1, [0, 1], -3, 1, ...[1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, -1]]
def _pari_init_(self): """ Needed for conversion of number field to PARI. EXAMPLES: sage: k = NumberField(x^2 + x + 1, 'a') sage: k._pari_init_() 'nfinit(x^2 + x + 1)' sage: k._pari_() [x^2 + x + 1, [0, 1], -3, 1, [Mat([1, -0.50000000000000000000000000000000000000 + 0.86602540378443864676372317075293618347*I]), [1, 0....
4323d4c57b428df4f1cf516cf22018c93ee7dbed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4323d4c57b428df4f1cf516cf22018c93ee7dbed/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1065, 77, 67, 2738, 67, 12, 2890, 4672, 3536, 26480, 364, 4105, 434, 1300, 652, 358, 3939, 45, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 417, 273, 3588, 974, 12, 92, 66, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1065, 77, 67, 2738, 67, 12, 2890, 4672, 3536, 26480, 364, 4105, 434, 1300, 652, 358, 3939, 45, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 417, 273, 3588, 974, 12, 92, 66, 22,...
sage: [phi(k.0^2) for phi in v]
sage: [phi(k.0^2) for phi in v]
def complex_embeddings(self, prec=53): r""" Return all homomorphisms of this number field into the approximate complex field with precision prec.
5a017aebf4e6d4b19418ba931ddc1de032340b18 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5a017aebf4e6d4b19418ba931ddc1de032340b18/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7233, 67, 8483, 24715, 12, 2890, 16, 13382, 33, 8643, 4672, 436, 8395, 2000, 777, 13995, 362, 7657, 23749, 434, 333, 1300, 652, 1368, 326, 21204, 7233, 652, 598, 6039, 13382, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7233, 67, 8483, 24715, 12, 2890, 16, 13382, 33, 8643, 4672, 436, 8395, 2000, 777, 13995, 362, 7657, 23749, 434, 333, 1300, 652, 1368, 326, 21204, 7233, 652, 598, 6039, 13382, 18, 2, -100...
this = apply(_quickfix.new_MDReportID, args)
this = _quickfix.new_MDReportID(*args)
def __init__(self, *args): this = apply(_quickfix.new_MDReportID, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6188, 4820, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6188, 4820, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
"Resources/version.plist",
def __load(): import imp, sys, os for p in sys.path: path = os.path.join(p, "%(filename)s") if os.path.exists(path): break else: assert 0, "file not found: %(filename)s" mod = imp.load_dynamic("%(name)s", path)
626faeb77bf5cc8d545da3459dea0a518b3052c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/626faeb77bf5cc8d545da3459dea0a518b3052c3/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 13332, 1930, 1646, 16, 2589, 16, 1140, 364, 293, 316, 2589, 18, 803, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 84, 16, 22061, 3459, 13, 87, 7923, 309, 1140, 18, 803, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 13332, 1930, 1646, 16, 2589, 16, 1140, 364, 293, 316, 2589, 18, 803, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 84, 16, 22061, 3459, 13, 87, 7923, 309, 1140, 18, 803, 18, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 803) else quickfix.IntField.__init__(self, 803, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 4630, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 4630, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 27...
if o in ("-l", "--granularity"): lumped = int(a)
if o in ("-g", "--granularity"): try: lumped = int(a) except ValueError: lumped = 0
def main(): testFiles = [] diffFiles = [] assumptions = Set() global ploughOn # even if error ploughOn = 0 global verbose global lumped verbose = 0 lumped = 1 try: opts, args = getopt.getopt(sys.argv[1:], "hf:t:m:v:g", ["help", "from=", "to=", "meta=", "verbose=", "granularity="]) except getopt.GetoptError: # print hel...
e0cdb64d330d757535e0c2962e618a137239e623 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/e0cdb64d330d757535e0c2962e618a137239e623/delta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1842, 2697, 273, 5378, 3122, 2697, 273, 5378, 6287, 573, 273, 1000, 1435, 2552, 293, 383, 2127, 1398, 468, 5456, 309, 555, 293, 383, 2127, 1398, 273, 374, 2552, 3988, 2552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1842, 2697, 273, 5378, 3122, 2697, 273, 5378, 6287, 573, 273, 1000, 1435, 2552, 293, 383, 2127, 1398, 468, 5456, 309, 555, 293, 383, 2127, 1398, 273, 374, 2552, 3988, 2552, ...
if getattr(self, 'content_type', None) is None:
if getattr(self, 'content_type', 'text/html') == 'text/html':
def _readFile(self, reparse): fp = expandpath(self._filepath) file = open(fp, 'r') # not 'rb', as this is a text file! try: data = file.read() finally: file.close()
7360fbbfef2e52a6b930bf42257fa66397ba66a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/7360fbbfef2e52a6b930bf42257fa66397ba66a0/FSPageTemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 812, 12, 2890, 16, 283, 2670, 4672, 4253, 273, 4542, 803, 12, 2890, 6315, 10561, 13, 585, 273, 1696, 12, 7944, 16, 296, 86, 6134, 565, 468, 486, 296, 6731, 2187, 487, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 896, 812, 12, 2890, 16, 283, 2670, 4672, 4253, 273, 4542, 803, 12, 2890, 6315, 10561, 13, 585, 273, 1696, 12, 7944, 16, 296, 86, 6134, 565, 468, 486, 296, 6731, 2187, 487, 333, ...
rogues.sigmas(),
sigmas,
def make_log_model(self, log_message, flags, ll_gain, p_values, f_model, alpha, beta,plot_out=None): header = ("Index", "d-spacing", "F_obs", "F_model", "2(LL-gain)", "p-value", "alpha", "beta", "centric") table="No outliers were found" rows = [] rogues = self.miller_obs.select( ~flags.data() ) p_array = p_values.selec...
6b56f705e258e4b31430350ca6f6417e7dd587bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/6b56f705e258e4b31430350ca6f6417e7dd587bc/outlier_rejection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1330, 67, 2284, 12, 2890, 16, 613, 67, 2150, 16, 2943, 16, 6579, 67, 25540, 16, 293, 67, 2372, 16, 284, 67, 2284, 16, 4190, 16, 6796, 16, 4032, 67, 659, 33, 7036, 4672, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1330, 67, 2284, 12, 2890, 16, 613, 67, 2150, 16, 2943, 16, 6579, 67, 25540, 16, 293, 67, 2372, 16, 284, 67, 2284, 16, 4190, 16, 6796, 16, 4032, 67, 659, 33, 7036, 4672, 1...
if 'audio' in self.DIRECTORY_ADD_RANDOM_PLAYLIST and len(play_items) > 1:
if 'audio' in config.DIRECTORY_ADD_RANDOM_PLAYLIST and len(play_items) > 1:
def cwd(self, arg=None, menuw=None): """ make a menu item for each file in the directory """ play_items = [] number = len(self.info['tracks']) if hasattr(self.info, 'mixed'): number -= 1 for i in range(0, number): title=self.info['tracks'][i]['title'] item = AudioItem('cdda://%d' % (i+1), self, title, scan=False)
1955e700f366323edeef3e62d2df4dcaa2010fe2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1955e700f366323edeef3e62d2df4dcaa2010fe2/audiodiskitem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7239, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 3536, 1221, 279, 3824, 761, 364, 1517, 585, 316, 326, 1867, 3536, 6599, 67, 3319, 273, 5378, 1300, 273, 562, 12, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7239, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 3536, 1221, 279, 3824, 761, 364, 1517, 585, 316, 326, 1867, 3536, 6599, 67, 3319, 273, 5378, 1300, 273, 562, 12, 2890,...
r""" Triangle of coefficients of Chebyshev's $S(n,x)$: $U(n, \frac x 2)$ polynomials (exponents in increasing order). INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A049310;a Triangle of coefficients of Chebyshev's S(n,x) := U(n,x/2) polynomials (exponents in increasing...
def __init__(self): r""" Triangle of coefficients of Chebyshev's $S(n,x)$: $U(n, \frac x 2)$ polynomials (exponents in increasing order). INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A049310;a Triangle of coefficients of Chebyshev's S(n,x) := U(n,x/2) polynomials (exp...
def _eval(self, n): m = 0 while m*(m+1)//2 < n: m += 1 k = n - m*(m-1)//2 return self.s2(m, k) # combinat.stirling_number2(m,k)
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 312, 273, 374, 1323, 312, 21556, 81, 15, 21, 13, 759, 22, 411, 290, 30, 312, 1011, 404, 417, 273, 290, 300, 312, 21556, 81, 17, 21, 13, 759, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 312, 273, 374, 1323, 312, 21556, 81, 15, 21, 13, 759, 22, 411, 290, 30, 312, 1011, 404, 417, 273, 290, 300, 312, 21556, 81, 17, 21, 13, 759, 22,...
print id, type, name, size, hex(attrs)
if DEBUG: print id, type, name, size, hex(attrs)
def copyres(input, output): ctor = None UseResFile(input) ntypes = Count1Types() for itype in range(1, 1+ntypes): type = Get1IndType(itype) nresources = Count1Resources(type) for ires in range(1, 1+nresources): res = Get1IndResource(type, ires) id, type, name = res.GetResInfo() lcname = string.lower(name) if (type, lcn...
f3a1bbb32192c87d325051189c2cb5895f62fae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f3a1bbb32192c87d325051189c2cb5895f62fae4/BuildApplet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 455, 12, 2630, 16, 876, 4672, 15120, 273, 599, 2672, 607, 812, 12, 2630, 13, 290, 2352, 273, 6974, 21, 2016, 1435, 364, 518, 388, 316, 1048, 12, 21, 16, 404, 15, 496, 989, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 455, 12, 2630, 16, 876, 4672, 15120, 273, 599, 2672, 607, 812, 12, 2630, 13, 290, 2352, 273, 6974, 21, 2016, 1435, 364, 518, 388, 316, 1048, 12, 21, 16, 404, 15, 496, 989, 4672...
olderThanTime = datetime.utcnow()-timedelta(days=self.archiveAfter) res = self.transClient.getTransformations({'Status':'Completed','Type':self.transformationTypes},older=olderThanTime)
olderThanTime = datetime.utcnow() - timedelta( days = self.archiveAfter ) res = self.transClient.getTransformations( {'Status':'Completed', 'Type':self.transformationTypes}, older = olderThanTime )
def execute( self ): """ The TransformationCleaningAgent execution method. """ self.enableFlag = self.am_getOption('EnableFlag','True') if not self.enableFlag == 'True': self.log.info( 'TransformationCleaningAgent is disabled by configuration option %s/EnableFlag' % ( self.section ) ) return S_OK( 'Disabled via CS flag...
c3853ad0438058db66814335a87076cdaecd2d33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3853ad0438058db66814335a87076cdaecd2d33/TransformationCleaningAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 365, 262, 30, 3536, 1021, 21274, 7605, 310, 3630, 4588, 707, 18, 3536, 365, 18, 7589, 4678, 273, 365, 18, 301, 67, 588, 1895, 2668, 8317, 4678, 17023, 5510, 6134, 309, 486, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 365, 262, 30, 3536, 1021, 21274, 7605, 310, 3630, 4588, 707, 18, 3536, 365, 18, 7589, 4678, 273, 365, 18, 301, 67, 588, 1895, 2668, 8317, 4678, 17023, 5510, 6134, 309, 486, 3...
self.assertEqual(m[0], '3') self.assertEqual(m[0:3], '3\0\0') self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0')
self.assertEqual(m[0], b'3') self.assertEqual(m[0:3], b'3\0\0') self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], b'\0foobar\0')
def test_basic(self): # Test mmap module on Unix systems and Windows
b358a2c4233f0e8c3cc58b86ed84007cc16ea74d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b358a2c4233f0e8c3cc58b86ed84007cc16ea74d/test_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 12, 2890, 4672, 468, 7766, 30749, 1605, 603, 9480, 14908, 471, 8202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13240, 12, 2890, 4672, 468, 7766, 30749, 1605, 603, 9480, 14908, 471, 8202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return env[name] code = []
try : val = env[name] except KeyError, e : msg = '%s: %s'%(lineno, e) raise KeyError, msg return val code = [lineno]
def replace(match): name = match.group(1) return env[name]
e722d7d95323227b91419c0c92b3c188d205110c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/e722d7d95323227b91419c0c92b3c188d205110c/conv_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 1916, 4672, 508, 273, 845, 18, 1655, 12, 21, 13, 327, 1550, 63, 529, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 1916, 4672, 508, 273, 845, 18, 1655, 12, 21, 13, 327, 1550, 63, 529, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
answer =wikipedia.input(u"Include image %s (y/N/s(top))?"%image)
answer = wikipedia.inputChoice(u'Include image %s?' % image, ['yes', 'no', 'stop'], ['y', 'N', 's'], 'N')
def main(give_url,image_url): url = give_url basicdesc = [] if not mysite.loggedin(): print "You must be logged in to upload images" import sys sys.exit(1) if url == '': if image_url: url = wikipedia.input(u"What URL range should I check (use $ for the part that is changeable)") else: url = wikipedia.input(u"From wha...
3ff37e4776e4f2076ee04d2ad111c88b3418b675 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3ff37e4776e4f2076ee04d2ad111c88b3418b675/imageharvest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 75, 688, 67, 718, 16, 2730, 67, 718, 4672, 880, 273, 8492, 67, 718, 5337, 5569, 273, 5378, 225, 309, 486, 312, 1900, 1137, 18, 19385, 267, 13332, 1172, 315, 6225, 1297, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 75, 688, 67, 718, 16, 2730, 67, 718, 4672, 880, 273, 8492, 67, 718, 5337, 5569, 273, 5378, 225, 309, 486, 312, 1900, 1137, 18, 19385, 267, 13332, 1172, 315, 6225, 1297, 506, ...
(x,y) = (x.conjugate()*y).reduced_trace()
(x,y) = (x.conjugate()*y).reduced_trace()
def ternary_quadratic_form(self): """ Return the ternary quadratic form associated to this order.
c3c7f9355eca9493b5c8fcf9747f1fc253fb647b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c3c7f9355eca9493b5c8fcf9747f1fc253fb647b/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 24265, 67, 21733, 20004, 67, 687, 12, 2890, 4672, 3536, 2000, 326, 268, 24265, 26146, 646, 3627, 358, 333, 1353, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24265, 67, 21733, 20004, 67, 687, 12, 2890, 4672, 3536, 2000, 326, 268, 24265, 26146, 646, 3627, 358, 333, 1353, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
non_vertices = face.points()[face.nvertices():] distances = self.distances() other_facets = [i for i in range(self.nfacets()) if not i in face._facets] for p in non_vertices: face._interior_points.append(p) for f in other_facets: if distances[f, p] == 0: face._interior_points.pop() face._boundary_points.append(p) brea...
non_vertices = face.points()[face.nvertices():] distances = self.distances() other_facets = [i for i in range(self.nfacets()) if not i in face._facets] for p in non_vertices: face._interior_points.append(p) for f in other_facets: if distances[f, p] == 0: face._interior_points.pop() face._boundary_points.append(p) break...
def _face_split_points(self, face): r""" Compute and cache boundary and interior lattice points of ``face``.
5848cb1a998515f42731a1fd24de9abb29cf1a25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/5848cb1a998515f42731a1fd24de9abb29cf1a25/lattice_polytope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 865, 67, 4939, 67, 4139, 12, 2890, 16, 7945, 4672, 436, 8395, 8155, 471, 1247, 7679, 471, 26230, 16690, 3143, 434, 12176, 865, 68, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 865, 67, 4939, 67, 4139, 12, 2890, 16, 7945, 4672, 436, 8395, 8155, 471, 1247, 7679, 471, 26230, 16690, 3143, 434, 12176, 865, 68, 8338, 2, -100, -100, -100, -100, -100, -100, -100,...
if k is None:
if kwargs["k"] is None:
def derivs(self, y, t, k=None, kix=None, tix=None): """Equation of motion for second order perturbations including source term""" #If k not given select all if k is None: k = self.k kix = N.arange(len(k)) if kix is None: raise ModelError("Need to specify kix in order to calculate 2nd order perturbation!") #Need t index...
7e7ed23050124f7cdbdbc48624e559bab5489730 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/7e7ed23050124f7cdbdbc48624e559bab5489730/cosmomodels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9630, 87, 12, 2890, 16, 677, 16, 268, 16, 417, 33, 7036, 16, 417, 697, 33, 7036, 16, 268, 697, 33, 7036, 4672, 3536, 13142, 367, 434, 21188, 364, 2205, 1353, 24445, 15850, 1012, 6508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9630, 87, 12, 2890, 16, 677, 16, 268, 16, 417, 33, 7036, 16, 417, 697, 33, 7036, 16, 268, 697, 33, 7036, 4672, 3536, 13142, 367, 434, 21188, 364, 2205, 1353, 24445, 15850, 1012, 6508, ...
info("checking %s on %s" % (dev.iv_name, node))
info("checking disk/%d on %s" % (idx, node))
def _ExecD8DiskOnly(self, feedback_fn): """Replace a disk on the primary or secondary for dbrd8.
54155f5249e0e37f351b30834cb2c17a5fb5c08e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/54155f5249e0e37f351b30834cb2c17a5fb5c08e/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1905, 40, 28, 6247, 3386, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 5729, 279, 4234, 603, 326, 3354, 578, 9946, 364, 1319, 13623, 28, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1905, 40, 28, 6247, 3386, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 5729, 279, 4234, 603, 326, 3354, 578, 9946, 364, 1319, 13623, 28, 18, 2, -100, -100, -100, -100, -100, -100, -...
try: return self.__is_primitive except AttributeError: pass self.__is_primitive = (self.conductor() == self.modulus()) return self.__is_primitive
return (self.conductor() == self.modulus()) @cached_method
def is_primitive(self): """ Return ``True`` if and only if this character is primitive, i.e., its conductor equals its modulus.
9c9051916e82d8e6549f10cbafc69b92d5f2a89f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9c9051916e82d8e6549f10cbafc69b92d5f2a89f/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 683, 5025, 12, 2890, 4672, 3536, 2000, 12176, 5510, 10335, 309, 471, 1338, 309, 333, 3351, 353, 8225, 16, 277, 18, 73, 12990, 2097, 356, 1828, 280, 1606, 2097, 24770, 18, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 683, 5025, 12, 2890, 4672, 3536, 2000, 12176, 5510, 10335, 309, 471, 1338, 309, 333, 3351, 353, 8225, 16, 277, 18, 73, 12990, 2097, 356, 1828, 280, 1606, 2097, 24770, 18, 2, -...
this = apply(_quickfix.new_CardHolderName, args)
this = _quickfix.new_CardHolderName(*args)
def __init__(self, *args): this = apply(_quickfix.new_CardHolderName, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6415, 6064, 461, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6415, 6064, 461, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
print >>sys.stderr, "crawler: _acquire_channel_id:", show_permid_short(permid), len(channels), "channels used"
def _acquire_channel_id(self, permid): if permid in self._channels: channels = self._channels[permid] else: channels = {} self._channels[permid] = channels
2a9c45cafe1431083602bdfeaee2cb6d52610383 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/2a9c45cafe1431083602bdfeaee2cb6d52610383/Crawler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1077, 1039, 67, 4327, 67, 350, 12, 2890, 16, 4641, 350, 4672, 309, 4641, 350, 316, 365, 6315, 9114, 30, 5750, 273, 365, 6315, 9114, 63, 12160, 350, 65, 469, 30, 5750, 273, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1077, 1039, 67, 4327, 67, 350, 12, 2890, 16, 4641, 350, 4672, 309, 4641, 350, 316, 365, 6315, 9114, 30, 5750, 273, 365, 6315, 9114, 63, 12160, 350, 65, 469, 30, 5750, 273, 2618, ...
"""
"""
def Doxygen_Emitter (target, source, env): """ Add the output HTML index file as the doxygen target, representative of all of the files which will be generated by doxygen. The first (and only) source should be the Doxyfile, and the output is expected to go under that directory. If an explicit target location has be...
7917185473c3a1d92b8c756f0dfda87cb2a3fc46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1466/7917185473c3a1d92b8c756f0dfda87cb2a3fc46/doxygen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 1698, 4507, 67, 13476, 261, 3299, 16, 1084, 16, 1550, 4672, 3536, 1436, 326, 876, 3982, 770, 585, 487, 326, 741, 1698, 4507, 1018, 16, 23174, 434, 777, 434, 326, 1390, 1492, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2256, 1698, 4507, 67, 13476, 261, 3299, 16, 1084, 16, 1550, 4672, 3536, 1436, 326, 876, 3982, 770, 585, 487, 326, 741, 1698, 4507, 1018, 16, 23174, 434, 777, 434, 326, 1390, 1492, 903, ...
if sg == C2: return [C2(setup = {'axis': a}) for a in this.rotAxes[2]] elif sg == C3: return [C3(setup = {'axis': a}) for a in this.rotAxes[3]]
if sg == S4A4: return [this]
def realiseSubgroups(this, sg): """ realise an array of possible oriented subgroups for non-oriented sg """ assert isinstance(sg, type) #S4A4, A4, D2nDn, DnCn, C2nCn, Dn, Cn #C3, C2, E if sg == C2: return [C2(setup = {'axis': a}) for a in this.rotAxes[2]] elif sg == C3: return [C3(setup = {'axis': a}) for a in this.rot...
4792c47572b319f6863804678e2db724b103d8c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14814/4792c47572b319f6863804678e2db724b103d8c0/isometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2863, 784, 1676, 4650, 12, 2211, 16, 11150, 4672, 3536, 2863, 784, 392, 526, 434, 3323, 7891, 329, 720, 4650, 364, 1661, 17, 14766, 329, 11150, 3536, 1815, 1549, 12, 1055, 16, 618, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2863, 784, 1676, 4650, 12, 2211, 16, 11150, 4672, 3536, 2863, 784, 392, 526, 434, 3323, 7891, 329, 720, 4650, 364, 1661, 17, 14766, 329, 11150, 3536, 1815, 1549, 12, 1055, 16, 618, 13, ...
root.config(menu=menubar)
self.parent.config(menu=menubar)
def __init__(self, parent = None, **kwargs): if parent == None: # create a new window parent = Tk() self.parent = parent Frame.__init__(self, parent) self.editbox = MultiCallCreator(TextEditor)(self, **kwargs) self.editbox.pack(side=TOP) self.editbox.add_bindings() self.bind("<<open-config-dialog>>", self.config_dialog...
f2e05eccc59fd39dc27f254538d2648ac23a4c7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/f2e05eccc59fd39dc27f254538d2648ac23a4c7b/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 16, 2826, 4333, 4672, 309, 982, 422, 599, 30, 468, 752, 279, 394, 2742, 982, 273, 399, 79, 1435, 365, 18, 2938, 273, 982, 8058, 16186, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 16, 2826, 4333, 4672, 309, 982, 422, 599, 30, 468, 752, 279, 394, 2742, 982, 273, 399, 79, 1435, 365, 18, 2938, 273, 982, 8058, 16186, 2...
m.eval('currentTime %d'%(prevTime,)) m.eval('zooAllViews 0;')
cmd.currentTime(prevTime) mel('zooAllViews 0;')
def __init__(self,clip): keys = clip.listKeysInOrder() transformKeys = [key for key in keys if key.attr in g_validWorldAttrs] worldKeys = []
8781a673d03469676f09284ae55510ab6d71bde7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1810/8781a673d03469676f09284ae55510ab6d71bde7/keyUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14161, 4672, 1311, 273, 6807, 18, 1098, 2396, 382, 2448, 1435, 2510, 2396, 273, 306, 856, 364, 498, 316, 1311, 309, 498, 18, 1747, 316, 314, 67, 877, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14161, 4672, 1311, 273, 6807, 18, 1098, 2396, 382, 2448, 1435, 2510, 2396, 273, 306, 856, 364, 498, 316, 1311, 309, 498, 18, 1747, 316, 314, 67, 877, 180...
image = "usage-3d.png"
image = "usage-1w.png"
def usage(self): depts = self.__server.getDeptNames() graphs = []
831cc40a01546f6c56ea80480577705526a375b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5056/831cc40a01546f6c56ea80480577705526a375b0/webapp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2890, 4672, 443, 1092, 273, 365, 16186, 3567, 18, 588, 758, 337, 1557, 1435, 19422, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2890, 4672, 443, 1092, 273, 365, 16186, 3567, 18, 588, 758, 337, 1557, 1435, 19422, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not sys.platform.startswith("sunos"): self.assertFalse(client.connected)
def test_connection_attributes(self): server = TCPServer() client = BaseClient(server.address)
afd7deb18da015b8a00a089a67597b56a4d784ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/afd7deb18da015b8a00a089a67597b56a4d784ce/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4071, 67, 4350, 12, 2890, 4672, 1438, 273, 9911, 2081, 1435, 1004, 273, 3360, 1227, 12, 3567, 18, 2867, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4071, 67, 4350, 12, 2890, 4672, 1438, 273, 9911, 2081, 1435, 1004, 273, 3360, 1227, 12, 3567, 18, 2867, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return "Documentation for test library `%s`."
return "Documentation for test library `%s`." % lib.name
def _get_doc(self, lib): if lib.doc == '': return "Documentation for test library `%s`." return lib.doc
443f38ad2012ce389156469c063a346998ab605e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/443f38ad2012ce389156469c063a346998ab605e/libdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2434, 12, 2890, 16, 2561, 4672, 309, 2561, 18, 2434, 422, 875, 30, 327, 315, 18905, 364, 1842, 5313, 225, 12430, 87, 68, 1199, 738, 2561, 18, 529, 327, 2561, 18, 2434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2434, 12, 2890, 16, 2561, 4672, 309, 2561, 18, 2434, 422, 875, 30, 327, 315, 18905, 364, 1842, 5313, 225, 12430, 87, 68, 1199, 738, 2561, 18, 529, 327, 2561, 18, 2434, ...
class Distance(object): def __init__(self, first_text, second_text): self.first_text = first_text self.second_text = second_text
class Fuzzy_test(unittest.TestCase): def test_fuzzy_abrevation(self): first_text = """ Mr toto is here """ second_text = """ toto is here Monsieur """ p = fuzzy.Distance(first_text, second_text) print 'test_fuzzy_abrevation', p.distance()
def create_new_text(self): """ Return a text without abrevation. """ t = ' '+self.text+' ' for i in punctuations: t = t.replace(i , ' '+i+' ') for word, abrevations in dictionary.items(): for abrevation in abrevations: t = t.replace(' '+abrevation+' ', ' '+word+' ') return t
dfb1988a57a8adf0d004b7d809532c37a030fb65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/dfb1988a57a8adf0d004b7d809532c37a030fb65/test_fuzzy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 955, 12, 2890, 4672, 3536, 2000, 279, 977, 2887, 1223, 266, 7112, 18, 3536, 268, 273, 296, 15126, 2890, 18, 955, 6797, 296, 364, 277, 316, 25580, 25503, 30, 268, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 955, 12, 2890, 4672, 3536, 2000, 279, 977, 2887, 1223, 266, 7112, 18, 3536, 268, 273, 296, 15126, 2890, 18, 955, 6797, 296, 364, 277, 316, 25580, 25503, 30, 268, 273...
fout.write("Generate(\"gregorio-%d.pfb\",\"\",66537);\n" % current_font_number)
fout.write("Save(\"gregorio-%d.sfd\");\n" % current_font_number)
def end_font(): global current_glyph_number global current_font_number global count for glyph in toremove: fout.write("Select(\"%s\");\n" % glyph) fout.write("Clear();\n") if (current_font_number!=0): for glyph in initial_glyphs: fout.write("Select(\"%s\");\n" % glyph) fout.write("Clear();\n") else: # we suppress empty...
ec1f9c33964c6034b835a0a7045f46cdbbbc821f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7096/ec1f9c33964c6034b835a0a7045f46cdbbbc821f/sqarize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 5776, 13332, 2552, 783, 67, 19426, 67, 2696, 2552, 783, 67, 5776, 67, 2696, 2552, 1056, 364, 9440, 316, 358, 4479, 30, 17382, 18, 2626, 2932, 3391, 23031, 9, 87, 2412, 20472, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 67, 5776, 13332, 2552, 783, 67, 19426, 67, 2696, 2552, 783, 67, 5776, 67, 2696, 2552, 1056, 364, 9440, 316, 358, 4479, 30, 17382, 18, 2626, 2932, 3391, 23031, 9, 87, 2412, 20472, ...
raise error_data,line
raise NNTPDataError(line)
def xover(self,start,end): """Process an XOVER command (optional server extension) Arguments: - start: start of range - end: end of range Returns: - resp: server response if succesful - list: list of (art-nr, subject, poster, date, id, references, size, lines)"""
d4529ee2a5f3e509908ef51283bc5a7bf5ee8a03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d4529ee2a5f3e509908ef51283bc5a7bf5ee8a03/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 1643, 12, 2890, 16, 1937, 16, 409, 4672, 3536, 2227, 392, 1139, 12959, 1296, 261, 10444, 1438, 2710, 13, 13599, 30, 300, 787, 30, 787, 434, 1048, 300, 679, 30, 679, 434, 1048, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 619, 1643, 12, 2890, 16, 1937, 16, 409, 4672, 3536, 2227, 392, 1139, 12959, 1296, 261, 10444, 1438, 2710, 13, 13599, 30, 300, 787, 30, 787, 434, 1048, 300, 679, 30, 679, 434, 1048, 286...
raise ValueError, "n (=%s) must be an integer >= 1 or a list"%n
try: n = Integer(n) if n < 1: raise ValueError, "n (=%s) must be >= 1"%n PermutationGroup_generic.__init__(self, 'AlternatingGroup(%s)'%n, from_group = True) except TypeError, msg: raise ValueError, "n (=%s) must be an integer >= 1 or a list"%n
def __init__(self, n): self._deg = n if isinstance(n,ListType): PermutationGroup_generic.__init__(self, 'AlternatingGroup(%s)'%n, from_group = True) elif isinstance(n,Integer): n = Integer(n) if n < 1: raise ValueError, "n (=%s) must be >= 1"%n PermutationGroup_generic.__init__(self, 'AlternatingGroup(%s)'%n, from_grou...
e2d5ca00b66f50c3dd70303d88a4d76b2f74494c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/e2d5ca00b66f50c3dd70303d88a4d76b2f74494c/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 4672, 365, 6315, 9923, 273, 290, 309, 1549, 12, 82, 16, 19366, 4672, 13813, 9245, 1114, 67, 13540, 16186, 2738, 972, 12, 2890, 16, 296, 11719, 1776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 4672, 365, 6315, 9923, 273, 290, 309, 1549, 12, 82, 16, 19366, 4672, 13813, 9245, 1114, 67, 13540, 16186, 2738, 972, 12, 2890, 16, 296, 11719, 1776, ...
simu.step( [
simu.evolve( [
def testRecIntensityAfterLoci(self): 'Testing RecIntensity after loci' if AlleleType() == 'binary': a1, a2 = 0, 1 else: a1, a2 = 1, 2 pop = population(10000, loci=[2,3,2], lociPos=[0,1,0,2,4,0,4] ) InitByValue(pop, value=[a1]*7+[a2]*7) simu = simulator(pop, randomMating()) simu.step( [ stat( haploFreq = [[0,1], [2,3], ...
baf037833eb6d8e211103acc78e7dc0ee60aed65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/baf037833eb6d8e211103acc78e7dc0ee60aed65/test_14_recombination.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5650, 27786, 4436, 1333, 77, 12, 2890, 4672, 296, 22218, 7776, 27786, 1839, 1515, 77, 11, 309, 4826, 6516, 559, 1435, 422, 296, 8578, 4278, 279, 21, 16, 279, 22, 273, 374, 16, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5650, 27786, 4436, 1333, 77, 12, 2890, 4672, 296, 22218, 7776, 27786, 1839, 1515, 77, 11, 309, 4826, 6516, 559, 1435, 422, 296, 8578, 4278, 279, 21, 16, 279, 22, 273, 374, 16, 40...
sage: cylindrical_plot3d(cosh(z),(fi,0,2*pi),(z,-2,2))
sage: cylindrical_plot3d(cosh(z),(theta,0,2*pi),(z,-2,2))
def cylindrical_plot3d(f, urange, vrange, **kwds): """ Takes a function and plots it in cylindrical coordinates in the domain specified by urange and vrange. This command is equivalent to:: sage: var('r,u,v') sage: T = (r*cos(u), r*sin(u), v, r) sage: plot3d(f, urange, vrange, transformation=T) INPUT: - ``f`` - a sy...
85811d8c24ec26acc8a960fadc0b24274c01a5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/85811d8c24ec26acc8a960fadc0b24274c01a5a8/plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27331, 728, 1512, 287, 67, 4032, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 2826, 25577, 4672, 3536, 23004, 279, 445, 471, 17931, 518, 316, 27331, 728, 1512, 287, 5513, 316, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27331, 728, 1512, 287, 67, 4032, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 2826, 25577, 4672, 3536, 23004, 279, 445, 471, 17931, 518, 316, 27331, 728, 1512, 287, 5513, 316, 326...
info("Test %s failed" % testname) failed = False
passed = False
def checking_loop(wiki): url = wiki.host while True: #Get all new history pages with pending status info('Lookig for pages') picked_pages = wiki.getMeta('CategoryHistory, overallvalue=pending') info('Found %d pages' % len(picked_pages)) if not picked_pages: info('No pages. Sleeping') time.sleep(10) continue #go thgr...
85bb2f2f705d9f8af4a05040bc16118d1ef1870f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/85bb2f2f705d9f8af4a05040bc16118d1ef1870f/testBot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6728, 67, 6498, 12, 13044, 4672, 880, 273, 9050, 18, 2564, 225, 1323, 1053, 30, 468, 967, 777, 394, 4927, 4689, 598, 4634, 1267, 1123, 2668, 9794, 360, 364, 4689, 6134, 25534, 67, 7267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6728, 67, 6498, 12, 13044, 4672, 880, 273, 9050, 18, 2564, 225, 1323, 1053, 30, 468, 967, 777, 394, 4927, 4689, 598, 4634, 1267, 1123, 2668, 9794, 360, 364, 4689, 6134, 25534, 67, 7267, ...
return PreviousWeekday(startDate, self.firstDayOfWeek)
return self.FirstDayOfWeek(startDate)
def GetStartDate(self): # roll back to the beginning of the month startDate = date(self.firstVisibleDate.year, self.firstVisibleDate.month, 1)
b1890ae729cf70fa2a0da432c9780afb8031468e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b1890ae729cf70fa2a0da432c9780afb8031468e/minical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 22635, 12, 2890, 4672, 225, 468, 5824, 1473, 358, 326, 8435, 434, 326, 3138, 12572, 273, 1509, 12, 2890, 18, 3645, 6207, 1626, 18, 6874, 16, 365, 18, 3645, 6207, 1626, 18, 7496, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 22635, 12, 2890, 4672, 225, 468, 5824, 1473, 358, 326, 8435, 434, 326, 3138, 12572, 273, 1509, 12, 2890, 18, 3645, 6207, 1626, 18, 6874, 16, 365, 18, 3645, 6207, 1626, 18, 7496, 1...
if (PkgSelected(opts,"ZLIB")): cmd = cmd + ' "' + THIRDPARTY + 'zlib/lib/libz.lib"' if (PkgSelected(opts,"PNG")): cmd = cmd + ' "' + THIRDPARTY + 'png/lib/libpng.lib"' if (PkgSelected(opts,"JPEG")): cmd = cmd + ' "' + THIRDPARTY + 'jpeg/lib/libjpeg.lib"' if (PkgSelected(opts,"TIFF")): cmd = cmd + ' "' ...
if (PkgSelected(opts,"ZLIB")): cmd = cmd + ' ' + THIRDPARTY + 'zlib/lib/libz.lib' if (PkgSelected(opts,"PNG")): cmd = cmd + ' ' + THIRDPARTY + 'png/lib/libpng.lib' if (PkgSelected(opts,"JPEG")): cmd = cmd + ' ' + THIRDPARTY + 'jpeg/lib/libjpeg.lib' if (PkgSelected(opts,"TIFF")): cmd = cmd + ' ' + THIRD...
def CompileLink(dll=0, obj=[], opts=[], xdep=[]): if (dll==0): sys.exit("Syntax error in CompileLink directive") if (COMPILER=="MSVC7"): ALLTARGETS.append(PREFIX+"/bin/"+dll) lib = PREFIX+"/lib/"+dll[:-4]+".lib" dll = PREFIX+"/bin/"+dll wobj = [] for x in obj: suffix = x[-4:] if (suffix==".obj"): wobj.append(PREFIX+...
c85190276cd6a9b01b212e9fdd00c907bf653374 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c85190276cd6a9b01b212e9fdd00c907bf653374/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 33, 20, 16, 1081, 22850, 6487, 1500, 22850, 6487, 619, 15037, 33, 8526, 4672, 309, 261, 27670, 631, 20, 4672, 2589, 18, 8593, 2932, 8070, 555, 316, 16143, 2098, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 33, 20, 16, 1081, 22850, 6487, 1500, 22850, 6487, 619, 15037, 33, 8526, 4672, 309, 261, 27670, 631, 20, 4672, 2589, 18, 8593, 2932, 8070, 555, 316, 16143, 2098, 8...
except http.client.BadStatusLine:
except httplib.BadStatusLine:
def request(self, host, handler, request_body, verbose=0): #retry request once if cached connection has gone cold for i in (0, 1): try: return self.single_request(host, handler, request_body, verbose) except socket.error, e: if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED): raise except http.client.BadStat...
88785419c9ab3c918b59fdf5e8e9b52daa2d231a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/88785419c9ab3c918b59fdf5e8e9b52daa2d231a/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1479, 16, 1838, 16, 590, 67, 3432, 16, 3988, 33, 20, 4672, 468, 9620, 590, 3647, 309, 3472, 1459, 711, 22296, 645, 72, 364, 277, 316, 261, 20, 16, 404, 4672, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1479, 16, 1838, 16, 590, 67, 3432, 16, 3988, 33, 20, 4672, 468, 9620, 590, 3647, 309, 3472, 1459, 711, 22296, 645, 72, 364, 277, 316, 261, 20, 16, 404, 4672, 775, ...
if self._isinfinity(): if not other: return context._raise_error(InvalidOperation, '(+-)INF * 0') return Infsign[resultsign] if other._isinfinity(): if not self: return context._raise_error(InvalidOperation, '0 * (+-)INF') return Infsign[resultsign]
if self._is_special or other._is_special: ans = self._check_nans(other, context) if ans: return ans if self._isinfinity(): if not other: return context._raise_error(InvalidOperation, '(+-)INF * 0') return Infsign[resultsign] if other._isinfinity(): if not self: return context._raise_error(InvalidOperation, '0 * (+-)...
def __mul__(self, other, context=None): """Return self * other.
323d0b30a64964b89a85e1b02e8fcc4017ce9fa7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/323d0b30a64964b89a85e1b02e8fcc4017ce9fa7/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 380, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 380, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Notes: - Because the list contains a fixed fraction of the total number of elements, but the length must be an integer, there are times when appending one additional element causes the number of elements retained in the list to increase by 1. When this occurs, the new element is always the one just added, even if it...
""" def __init__(self, sequence = tuple(), max = None):
def all(S): """ all(iterable) -> bool
2ef81ae9e30b0169a71c606a02cd00d6aa1ff696 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/2ef81ae9e30b0169a71c606a02cd00d6aa1ff696/itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 12, 55, 4672, 3536, 777, 12, 15364, 13, 317, 1426, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 12, 55, 4672, 3536, 777, 12, 15364, 13, 317, 1426, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
- ``reduce`` - bool. If True (default), use \emph{small_residue} to get small representatives of the residues.
- ``reduce`` - bool. If True (default), use ``small_residue`` to get small representatives of the residues.
def invertible_residues(self, reduce=True): """ Returns a iterator through a list of invertible residues modulo this integral ideal.
0eb4070e28a5423ec6b12fc4236fdfa03b4e3060 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0eb4070e28a5423ec6b12fc4236fdfa03b4e3060/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9848, 1523, 67, 15567, 3610, 12, 2890, 16, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, 23349, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 9848, 1523, 67, 15567, 3610, 12, 2890, 16, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, 23349, 18, 2, -100, -100, -100, -100, -...
self.errQuote(self.__name__))
MyErrQuote)
def parse_error(self, mess, tag, text, start): raise ParseError, "%s, for tag %s, on line %s of %s<p>" % ( mess, self.errQuote(tag), len(text[:start].split('\n')), self.errQuote(self.__name__))
89fb3f99c1f1f58dd93dbb8eb5b7efca44b085aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/89fb3f99c1f1f58dd93dbb8eb5b7efca44b085aa/dt_string.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1636, 12, 2890, 16, 12755, 16, 1047, 16, 977, 16, 787, 4672, 1002, 17372, 16, 2213, 87, 16, 364, 1047, 738, 87, 16, 603, 980, 738, 87, 434, 738, 87, 32, 84, 2984, 738, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1636, 12, 2890, 16, 12755, 16, 1047, 16, 977, 16, 787, 4672, 1002, 17372, 16, 2213, 87, 16, 364, 1047, 738, 87, 16, 603, 980, 738, 87, 434, 738, 87, 32, 84, 2984, 738, 26...
this = apply(_quickfix.new_QuoteSetValidUntilTime, args)
this = _quickfix.new_QuoteSetValidUntilTime(*args)
def __init__(self, *args): this = apply(_quickfix.new_QuoteSetValidUntilTime, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 10257, 694, 1556, 9716, 950, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 10257, 694, 1556, 9716, 950, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def sel(geno, smoking): # BB Bb bb # AA 1 1 1 # Aa 1 1-s1 1-s2 # aa 1 1 1-s2 # # geno is (A1 A2 B1 B2) if geno[0] + geno[1] == 1 and geno[2] + geno[3] == 1: v = 1 - s1 # case of AaBb elif geno[2] + geno[3] == 2: v = 1 - s2 # case of ??bb else: v = 1 # other cases if smoking: return v * 0.9...
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 12, 4507, 83, 16, 3029, 601, 310, 4672, 468, 377, 21752, 225, 605, 70, 282, 7129, 468, 27343, 225, 404, 282, 404, 565, 404, 468, 432, 69, 225, 404, 282, 404, 17, 87, 21, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 12, 4507, 83, 16, 3029, 601, 310, 4672, 468, 377, 21752, 225, 605, 70, 282, 7129, 468, 27343, 225, 404, 282, 404, 565, 404, 468, 432, 69, 225, 404, 282, 404, 17, 87, 21, 404, ...
def cmp_col_wise(self, data_matrix1, data_matrix2, col_id2col_index1, col_id2col_index2, col_id12col_id2, row_id2row_index1, row_id2row_index2, row_id12row_id2):
cmp_one_col = classmethod(cmp_one_col) def cmp_col_wise(cls, data_matrix1, data_matrix2, col_id2col_index1, col_id2col_index2, col_id12col_id2, row_id2row_index1, row_id2row_index2, row_id12row_id2):
def cmp_col_wise(self, data_matrix1, data_matrix2, col_id2col_index1, col_id2col_index2, col_id12col_id2, row_id2row_index1, row_id2row_index2, row_id12row_id2): """ 2007-12-18 SNP wise 2007-12-20 make it more generic 2008-01-07 change the non_NA criteria from !=0 to >0. in 2010 data matrix, there's substantial amount ...
ae739a778d708a9f2615d50aee84a40bf9787368 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/ae739a778d708a9f2615d50aee84a40bf9787368/QualityControl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9411, 67, 476, 67, 1293, 273, 667, 2039, 12, 9625, 67, 476, 67, 1293, 13, 225, 1652, 9411, 67, 1293, 67, 2460, 12, 6429, 16, 501, 67, 5667, 21, 16, 501, 67, 5667, 22, 16, 645, 67, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9411, 67, 476, 67, 1293, 273, 667, 2039, 12, 9625, 67, 476, 67, 1293, 13, 225, 1652, 9411, 67, 1293, 67, 2460, 12, 6429, 16, 501, 67, 5667, 21, 16, 501, 67, 5667, 22, 16, 645, 67, 350, ...
"""Adds default values to the given session_data dict. Has special-case logic for certain fields that the normal SessionFormatter formatting functions cannot implement. Always returns a dict."""
"""Adds default values to the given session_data dict. Has special-case logic for certain fields that the normal SessionFormatter formatting functions cannot implement. Always returns a dict."""
def add_defaults(self, session_data): """Adds default values to the given session_data dict. Has special-case logic for certain fields that the normal SessionFormatter formatting functions cannot implement. Always returns a dict.""" assert isinstance(session_data, dict)
20eab91c91a9f72ec790d8c5d1fb9261b7b89028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4025/20eab91c91a9f72ec790d8c5d1fb9261b7b89028/formatters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7606, 12, 2890, 16, 1339, 67, 892, 4672, 3536, 3655, 805, 924, 358, 326, 864, 1339, 67, 892, 2065, 18, 225, 4393, 4582, 17, 3593, 4058, 364, 8626, 1466, 716, 326, 2212, 3877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7606, 12, 2890, 16, 1339, 67, 892, 4672, 3536, 3655, 805, 924, 358, 326, 864, 1339, 67, 892, 2065, 18, 225, 4393, 4582, 17, 3593, 4058, 364, 8626, 1466, 716, 326, 2212, 3877, ...
sage: sage.algebras.quaternion_algebra.QuaternionAlgebra_abstract.inner_product_matrix(Q)
sage: Q.inner_product_matrix()
def inner_product_matrix(self): """ Return the inner product matrix associated to self. EXAMPLES:: sage: Q.<i,j,k> = QuaternionAlgebra(-5,-19) sage: sage.algebras.quaternion_algebra.QuaternionAlgebra_abstract.inner_product_matrix(Q) [ 2 0 0 0] [ 0 10 0 0] [ 0 0 38 0] [ 0 0 0 190] """ try: ret...
fe177d7e9e5b87a4c01b1082cf61c4d867951ed1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fe177d7e9e5b87a4c01b1082cf61c4d867951ed1/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 67, 5896, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 3443, 3017, 3148, 3627, 358, 365, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 2238, 22782, 77, 16, 78, 16, 79, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3443, 67, 5896, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 3443, 3017, 3148, 3627, 358, 365, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 2238, 22782, 77, 16, 78, 16, 79, 34, ...
self.optimize_loop(ops, expected)
expected = """ [p1, p2] escape(2) escape(2) jump(p1, p2) """ self.optimize_loop(ops, expected, preamble)
def test_remove_duplicate_pure_op(self): ops = """ [p1, p2] i1 = ptr_eq(p1, p2) i2 = ptr_eq(p1, p2) i3 = int_add(i1, 1) i3b = int_is_true(i3) guard_true(i3b) [] i4 = int_add(i2, 1) i4b = int_is_true(i4) guard_true(i4b) [] escape(i3) escape(i4) guard_true(i1) [] guard_true(i2) [] jump(p1, p2) """ expected = """ [p1, p2]...
eb448b1de2d19649d8e8964dcc4dc45e092666e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/eb448b1de2d19649d8e8964dcc4dc45e092666e3/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4479, 67, 17342, 67, 84, 594, 67, 556, 12, 2890, 4672, 6727, 273, 3536, 306, 84, 21, 16, 293, 22, 65, 277, 21, 273, 6571, 67, 11253, 12, 84, 21, 16, 293, 22, 13, 277, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4479, 67, 17342, 67, 84, 594, 67, 556, 12, 2890, 4672, 6727, 273, 3536, 306, 84, 21, 16, 293, 22, 65, 277, 21, 273, 6571, 67, 11253, 12, 84, 21, 16, 293, 22, 13, 277, 2...
if len(self._elements) == len(other._elements): return cmp(self._elements, other._elements) and \ cmp(self._hasse_diagram, other._hasse_diagram)
if len(self._elements) == len(other._elements) and self._elements == other._elements: return self._hasse_diagram == other._hasse_diagram
def __cmp__(self, other): r""" Define comparison for finite posets.
1ad49a5fca760a553f7c332939f6399dee5514ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1ad49a5fca760a553f7c332939f6399dee5514ff/posets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 13184, 5826, 364, 25922, 949, 2413, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 13184, 5826, 364, 25922, 949, 2413, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
upp_dispose_handler = NewWENewObjectProc(my_dispose_handler); upp_draw_handler = NewWENewObjectProc(my_draw_handler); upp_click_handler = NewWENewObjectProc(my_click_handler);
upp_dispose_handler = NewWEDisposeObjectProc(my_dispose_handler); upp_draw_handler = NewWEDrawObjectProc(my_draw_handler); upp_click_handler = NewWEClickObjectProc(my_click_handler);
def outputCheckNewArg(self): Output("""if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }""")
25241d99785698072e6952b37da79b7f441c4b9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25241d99785698072e6952b37da79b7f441c4b9d/wastesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 1564, 1908, 4117, 12, 2890, 4672, 3633, 2932, 3660, 430, 261, 1282, 19079, 422, 3206, 13, 288, 4707, 67, 706, 5458, 42, 12, 9413, 67, 7036, 1769, 327, 4707, 67, 7036, 31, 289, 366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 876, 1564, 1908, 4117, 12, 2890, 4672, 3633, 2932, 3660, 430, 261, 1282, 19079, 422, 3206, 13, 288, 4707, 67, 706, 5458, 42, 12, 9413, 67, 7036, 1769, 327, 4707, 67, 7036, 31, 289, 366...
curs.execute(url_query, (sd, ed, host))
curs.execute(sessions_query, (report_days, sd, ed, host))
def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None
49cbd6b8c8d864fa4e122b42df6e26990296387b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/49cbd6b8c8d864fa4e122b42df6e26990296387b/untangle_node_spyware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -1...