rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
"<p><b>Trilinos Libary Package Dependencies</b></p>\n"+\
"<p><b><huge>Trilinos Libary Package Dependencies</huge></b></p>\n"+\
def createFullHtmlForTables(self):
6e5082bbd417a8dc58aa99502bc172825250a2f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1130/6e5082bbd417a8dc58aa99502bc172825250a2f2/TrilinosDependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 5080, 4353, 1290, 6905, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 5080, 4353, 1290, 6905, 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, -1...
proc = rabbitvcs.util.helper.launch_ui_window("ignore", [self.base_dir, os.path.basename(path)])
base_dir = os.path.join(self.base_dir, os.path.dirname(path)) proc = rabbitvcs.util.helper.launch_ui_window("ignore", [base_dir, os.path.basename(path)])
def ignore_by_filename(self, widget, data1=None, data2=None): path = self.paths[0] proc = rabbitvcs.util.helper.launch_ui_window("ignore", [self.base_dir, os.path.basename(path)]) self.caller.rescan_after_process_exit(proc, self.paths)
7972e1a40497ffd41faa5d6affd618fcdcbce39c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/7972e1a40497ffd41faa5d6affd618fcdcbce39c/contextmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2305, 67, 1637, 67, 3459, 12, 2890, 16, 3604, 16, 501, 21, 33, 7036, 16, 501, 22, 33, 7036, 4672, 589, 273, 365, 18, 4481, 63, 20, 65, 1026, 67, 1214, 273, 1140, 18, 803, 18, 5701,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2305, 67, 1637, 67, 3459, 12, 2890, 16, 3604, 16, 501, 21, 33, 7036, 16, 501, 22, 33, 7036, 4672, 589, 273, 365, 18, 4481, 63, 20, 65, 1026, 67, 1214, 273, 1140, 18, 803, 18, 5701,...
self.f.write('%s%04d%s%s\n' % (uid, year, element,
self.f.write('%s%04d%s%s\n' % (id11, year, element,
def writeyear(self, uid, element, year, temps): """Write a single year's worth of data out. *temps* should contain 12 monthly values."""
a71ab7b92d8043413ba119ed6e49a88e9820a6e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/a71ab7b92d8043413ba119ed6e49a88e9820a6e0/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 402, 2091, 12, 2890, 16, 4555, 16, 930, 16, 3286, 16, 1022, 1121, 4672, 3536, 3067, 279, 2202, 3286, 1807, 26247, 434, 501, 596, 18, 225, 380, 874, 1121, 14, 1410, 912, 2593, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2518, 402, 2091, 12, 2890, 16, 4555, 16, 930, 16, 3286, 16, 1022, 1121, 4672, 3536, 3067, 279, 2202, 3286, 1807, 26247, 434, 501, 596, 18, 225, 380, 874, 1121, 14, 1410, 912, 2593, 311...
result.append(c)
try: result.append(c.data) except AttributeError: result.append(c)
def collapse_text(self, doctree, result): """Remove all HTML markup and return only the text nodes.""" for c in doctree.children: if isinstance(c, nodes.Text): result.append(c) else: result = self.collapse_text(c, result) return result
f61718a1bfdcdc17ff2bbf594cd6291114bfb8fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/f61718a1bfdcdc17ff2bbf594cd6291114bfb8fd/epub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13627, 67, 955, 12, 2890, 16, 31263, 992, 16, 563, 4672, 3536, 3288, 777, 3982, 9813, 471, 327, 1338, 326, 977, 2199, 12123, 364, 276, 316, 31263, 992, 18, 5906, 30, 309, 1549, 12, 71,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13627, 67, 955, 12, 2890, 16, 31263, 992, 16, 563, 4672, 3536, 3288, 777, 3982, 9813, 471, 327, 1338, 326, 977, 2199, 12123, 364, 276, 316, 31263, 992, 18, 5906, 30, 309, 1549, 12, 71,...
Baranoski G.V.G.
Baranoski G.V.G.
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
201e02de114f2b2224726de7b64c2dde98debac1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13808/201e02de114f2b2224726de7b64c2dde98debac1/abmb_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25079, 2250, 12, 2890, 4672, 327, 436, 8395, 8646, 854, 326, 1686, 434, 3433, 938, 1086, 434, 521, 955, 17156, 95, 2090, 49, 17, 38, 97, 364, 326, 423, 270, 3766, 4360, 275, 362, 275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25079, 2250, 12, 2890, 4672, 327, 436, 8395, 8646, 854, 326, 1686, 434, 3433, 938, 1086, 434, 521, 955, 17156, 95, 2090, 49, 17, 38, 97, 364, 326, 423, 270, 3766, 4360, 275, 362, 275, ...
if not _SOCK: raise Exception('Not logged!')
if not _SOCK or not _SOCK.connected: raise Exception('NotLogged')
def execute(obj, method, *args): global _SOCK, _DATABASE, _USER, _SESSION if not _SOCK: raise Exception('Not logged!') logging.getLogger('rpc.request').info(str((obj, method, args))) key = False if len(args) >= 6 and args[1] == 'fields_view_get': key = str(args) if key in _VIEW_CACHE and _VIEW_CACHE[key][0]: args = args[:] args = args + (_VIEW_CACHE[key][0],) try: _SEMAPHORE.acquire() try: _SOCK.send((obj, method, _DATABASE, _USER, _SESSION) + args) result = _SOCK.receive() finally: _SEMAPHORE.release() except socket.error: _SEMAPHORE.acquire() try: _SOCK.reconnect() _SOCK.send((obj, method, _DATABASE, _USER, _SESSION) + args) result = _SOCK.receive() finally: _SEMAPHORE.release() if key: if result is True and key in _VIEW_CACHE: result = _VIEW_CACHE[key][1] else: _VIEW_CACHE[key] = (result['md5'], result) return result
ab65f572b844d2ba2ce0fb7342b0215e7b461c72 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/ab65f572b844d2ba2ce0fb7342b0215e7b461c72/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2603, 16, 707, 16, 380, 1968, 4672, 2552, 389, 3584, 3507, 16, 389, 22366, 16, 389, 4714, 16, 389, 7042, 309, 486, 389, 3584, 3507, 578, 486, 389, 3584, 3507, 18, 8537, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2603, 16, 707, 16, 380, 1968, 4672, 2552, 389, 3584, 3507, 16, 389, 22366, 16, 389, 4714, 16, 389, 7042, 309, 486, 389, 3584, 3507, 578, 486, 389, 3584, 3507, 18, 8537, 30, ...
properties['outgoingEmailMonitorLevel'] = 'HEADERS_ONLY'
properties['outgoingEmailMonitorLevel'] = 'HEADER_ONLY'
def createEmailMonitor(self, source_user, destination_user, end_date, begin_date=None, incoming_headers_only=False, outgoing_headers_only=False, drafts=False, drafts_headers_only=False, chats=False, chats_headers_only=False): """Creates a email monitor, forwarding the source_users emails/chats
44cbd29ee2489cc677ae89edfc75c7572028c50d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/44cbd29ee2489cc677ae89edfc75c7572028c50d/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4134, 7187, 12, 2890, 16, 1084, 67, 1355, 16, 2929, 67, 1355, 16, 679, 67, 712, 16, 2376, 67, 712, 33, 7036, 16, 6935, 67, 2485, 67, 3700, 33, 8381, 16, 12902, 67, 2485, 67, 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, 752, 4134, 7187, 12, 2890, 16, 1084, 67, 1355, 16, 2929, 67, 1355, 16, 679, 67, 712, 16, 2376, 67, 712, 33, 7036, 16, 6935, 67, 2485, 67, 3700, 33, 8381, 16, 12902, 67, 2485, 67, 3...
setMetadata(filename,
setMetadata(destFSfullPath,
def HTMLFormUploadFile(self, upload, comment, clientMD5=None): """ upload a file via HTML form-based file upload mechanism """
986267974a25fceea33e15da2a6f7317243ba92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/986267974a25fceea33e15da2a6f7317243ba92b/PloneLocalFolderNG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3982, 1204, 4777, 812, 12, 2890, 16, 3617, 16, 2879, 16, 1004, 6188, 25, 33, 7036, 4672, 3536, 3617, 279, 585, 3970, 3982, 646, 17, 12261, 585, 3617, 12860, 3536, 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, 0, 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, 3982, 1204, 4777, 812, 12, 2890, 16, 3617, 16, 2879, 16, 1004, 6188, 25, 33, 7036, 4672, 3536, 3617, 279, 585, 3970, 3982, 646, 17, 12261, 585, 3617, 12860, 3536, 2, -100, -100, -100, ...
name_1 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_1) name_2 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_2)
name_1 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_1)[0][0] name_2 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_2)[0][0]
def perform_switchfldvaluescore(colID, id_1, id_fldvalue_1, id_fldvalue_2, ln=cdslang): """Switch the score of id_1 and id_2 in collection_field_fieldvalue. colID - the current collection id_1/id_2 - the id's to change the score for.""" name_1 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_1) name_2 = run_sql("SELECT name from fieldvalue where id=%s" % id_fldvalue_2) if switch_fld_value_score(colID, id_1, id_fldvalue_1, id_fldvalue_2): output = """<br><b><span class="info">'%s' changed position with '%s'</span></b> """ % (name_1[0][0], name_2[0][0]) else: output = """<br><b><span class="info">Could not complete the operation.</span></b>""" return perform_showsearchoptions(colID, ln, content=output)
e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 9610, 19794, 4531, 742, 479, 12, 1293, 734, 16, 612, 67, 21, 16, 612, 67, 19794, 1132, 67, 21, 16, 612, 67, 19794, 1132, 67, 22, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 9610, 19794, 4531, 742, 479, 12, 1293, 734, 16, 612, 67, 21, 16, 612, 67, 19794, 1132, 67, 21, 16, 612, 67, 19794, 1132, 67, 22, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, ...
iNetwork.resetNetworkConfig('lan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'wlan0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'ath0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan-mpci',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) else: self.resetfinishedCB(False)
self.isInterfaceUp = iNetwork.checkforInterface(iface) self.currStep = self.getStepWithID(self.NextStep) self.afterAsyncCode() else: self.resetNetworkConfigFinished(False)
def checkInterface(self,iface): self.Adapterlist = iNetwork.getAdapterList() if self.NextStep is not 'end': if len(self.Adapterlist) == 0: #Reset Network to defaults if network broken iNetwork.resetNetworkConfig('lan', self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) if iface == 'eth0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('lan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'wlan0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) elif iface == 'ath0': if iface in iNetwork.configuredNetworkAdapters and len(iNetwork.configuredNetworkAdapters) == 1: if iNetwork.getAdapterAttribute(iface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.resetfinishedCB(False) else: iNetwork.resetNetworkConfig('wlan-mpci',self.checkInterfaceCB) self.myref = self.session.openWithCallback(self.resetfinishedCB, MessageBox, _("Please wait while we prepare your network interfaces..."), type = MessageBox.TYPE_INFO, enable_input = False) else: self.resetfinishedCB(False)
d6e258a761abb1074a1157d17b9c42b7f28959ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/d6e258a761abb1074a1157d17b9c42b7f28959ce/NetworkWizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1358, 12, 2890, 16, 31479, 4672, 365, 18, 4216, 1098, 273, 277, 3906, 18, 588, 4216, 682, 1435, 309, 365, 18, 2134, 4160, 353, 486, 296, 409, 4278, 309, 562, 12, 2890, 18, 4216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1358, 12, 2890, 16, 31479, 4672, 365, 18, 4216, 1098, 273, 277, 3906, 18, 588, 4216, 682, 1435, 309, 365, 18, 2134, 4160, 353, 486, 296, 409, 4278, 309, 562, 12, 2890, 18, 4216, ...
"localmoduletable", "manpage", "input"])
"localmoduletable"])
def main(): if len(sys.argv) == 2: ifp = open(sys.argv[1]) ofp = sys.stdout elif len(sys.argv) == 3: ifp = open(sys.argv[1]) ofp = open(sys.argv[2], "w") else: usage() sys.exit(2) convert(ifp, ofp, { # entries are name # -> ([list of attribute names], first_is_optional, empty) "cfuncdesc": (["type", "name", ("args",)], 0, 0), "chapter": ([("title",)], 0, 0), "chapter*": ([("title",)], 0, 0), "classdesc": (["name", ("constructor-args",)], 0, 0), "ctypedesc": (["name"], 0, 0), "cvardesc": (["type", "name"], 0, 0), "datadesc": (["name"], 0, 0), "declaremodule": (["id", "type", "name"], 1, 1), "deprecated": (["release"], 0, 1), "documentclass": (["classname"], 0, 1), "excdesc": (["name"], 0, 0), "funcdesc": (["name", ("args",)], 0, 0), "funcdescni": (["name", ("args",)], 0, 0), "indexii": (["ie1", "ie2"], 0, 1), "indexiii": (["ie1", "ie2", "ie3"], 0, 1), "indexiv": (["ie1", "ie2", "ie3", "ie4"], 0, 1), "input": (["source"], 0, 1), "item": ([("leader",)], 1, 0), "label": (["id"], 0, 1), "manpage": (["name", "section"], 0, 1), "memberdesc": (["class", "name"], 1, 0), "methoddesc": (["class", "name", ("args",)], 1, 0), "methoddescni": (["class", "name", ("args",)], 1, 0), "opcodedesc": (["name", "var"], 0, 0), "par": ([], 0, 1), "rfc": (["number"], 0, 1), "section": ([("title",)], 0, 0), "seemodule": (["ref", "name"], 1, 0), "tableii": (["colspec", "style", "head1", "head2"], 0, 0), "tableiii": (["colspec", "style", "head1", "head2", "head3"], 0, 0), "tableiv": (["colspec", "style", "head1", "head2", "head3", "head4"], 0, 0), "versionadded": (["version"], 0, 1), "versionchanged": (["version"], 0, 1), # "ABC": "ABC", "ASCII": "ASCII", "C": "C", "Cpp": "Cpp", "EOF": "EOF", "e": "backslash", "ldots": "ldots", "NULL": "NULL", "POSIX": "POSIX", "UNIX": "Unix", # # Things that will actually be going away! # "fi": ([], 0, 1), "ifhtml": ([], 0, 1), "makeindex": ([], 0, 1), "makemodindex": ([], 0, 1), "maketitle": ([], 0, 1), "noindent": ([], 0, 1), "tableofcontents": ([], 0, 1), }, discards=["fi", "ifhtml", "makeindex", "makemodindex", "maketitle", "noindent", "tableofcontents"], autoclosing=["chapter", "section", "subsection", "subsubsection", "paragraph", "subparagraph", ], knownempties=["rfc", "declaremodule", "appendix", "maketitle", "makeindex", "makemodindex", "localmoduletable", "manpage", "input"])
177c5005c27b072f67098dea66be9f3528dd0fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/177c5005c27b072f67098dea66be9f3528dd0fe8/latex2esis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 422, 576, 30, 309, 84, 273, 1696, 12, 9499, 18, 19485, 63, 21, 5717, 434, 84, 273, 2589, 18, 10283, 1327, 562, 12, 9499, 18, 19485, 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, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 422, 576, 30, 309, 84, 273, 1696, 12, 9499, 18, 19485, 63, 21, 5717, 434, 84, 273, 2589, 18, 10283, 1327, 562, 12, 9499, 18, 19485, 13...
os.system('maxima --very-quiet -r "describe(%s);"'%s)
subprocess.Popen(cmd, shell=True) def help(self, s): """ EXAMPLES: sage: maxima.help('gcd') -- Function: gcd (<p_1>, <p_2>, <x_1>, ...) ... """ return self._command_runner("describe", s)
def help(self, s): """ EXAMPLES: sage: maxima.help('gcd') #not tested -- Function: gcd (<p_1>, <p_2>, <x_1>, ...) ... """ if sage.server.support.EMBEDDED_MODE: os.system('maxima --very-quiet -r "describe(%s); "< /dev/null'%s) else: os.system('maxima --very-quiet -r "describe(%s);"'%s)
45240fcde870afe2eb7934ed596546cff10b7cf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/45240fcde870afe2eb7934ed596546cff10b7cf4/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 12, 2890, 16, 272, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 943, 13888, 18, 5201, 2668, 75, 4315, 6134, 468, 902, 18432, 1493, 4284, 30, 14876, 261, 32, 84, 67, 21, 20401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2809, 12, 2890, 16, 272, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 943, 13888, 18, 5201, 2668, 75, 4315, 6134, 468, 902, 18432, 1493, 4284, 30, 14876, 261, 32, 84, 67, 21, 20401...
pagename = page.title()
pagename = page.aslink()
def main(): """ Main Function """ # Loading the comments global templateToRemove; global categoryToCheck; global comment; global project_inserted if config.mylang not in project_inserted: wikipedia.output(u"Your project is not supported by this script. You have to edit the script and add it!") wikipedia.stopme() # always, define a generator to understand if the user sets one, defining what's genFactory always = False; generator = False; debug = False moveBlockCheck = False; genFactory = pagegenerators.GeneratorFactory() # To prevent Infinite loops errorCount = 0 # Loading the default options. for arg in wikipedia.handleArgs(): if arg == '-always': always = True elif arg == '-move': moveBlockCheck = True elif arg == '-debug': debug = True elif arg.startswith('-protectedpages'): if len(arg) == 15: generator = ProtectedPages(0) else: generator = ProtectedPages(int(arg[16:])) elif arg.startswith('-page'): if len(arg) == 5: generator = [wikipedia.Page(wikipedia.getSite(), wikipedia.input(u'What page do you want to use?'))] else: generator = [wikipedia.Page(wikipedia.getSite(), arg[6:])] else: generator = genFactory.handleArg(arg) # Load the right site site = wikipedia.getSite() # Take the right templates to use, the category and the comment TTR = wikipedia.translate(site, templateToRemove) TSP = wikipedia.translate(site, templateSemiProtection) TTP = wikipedia.translate(site, templateTotalProtection) TSMP = wikipedia.translate(site, templateSemiMoveProtection) TTMP = wikipedia.translate(site, templateTotalMoveProtection) TNR = wikipedia.translate(site, templateNoRegex) category = wikipedia.translate(site, categoryToCheck) commentUsed = wikipedia.translate(site, comment) if not generator: generator = list() wikipedia.output(u'Loading categories...') # Define the category if no other generator has been setted for CAT in category: cat = catlib.Category(site, CAT) # Define the generator gen = pagegenerators.CategorizedPageGenerator(cat) for pageCat in gen: generator.append(pageCat) wikipedia.output(u'Categories loaded, start!') # Main Loop preloadingGen = pagegenerators.PreloadingGenerator(generator, pageNumber = 60) for page in preloadingGen: pagename = page.title() wikipedia.output('Loading %s...' % pagename) try: text = page.get() editRestriction = getRestrictions(page) except wikipedia.NoPage: wikipedia.output("%s doesn't exist! Skipping..." % pagename) continue except wikipedia.IsRedirectPage: wikipedia.output("%s is a redirect! Skipping..." % pagename) if debug: debugQuest(site, page) continue # Understand, according to the template in the page, what should be the protection # and compare it with what there really is. TemplateInThePage = understandBlock(text, TTP, TSP, TSMP, TTMP) # Only to see if the text is the same or not... oldtext = text if editRestriction == 'sysop': if TemplateInThePage[0] == 'sysop-total' and TTP != None: wikipedia.output(u'The page is protected to the sysop, skipping...') continue else: wikipedia.output(u'The page is protected to the sysop, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[1], text) elif moveBlockCheck and editRestriction == 'sysop-move': if TemplateInThePage[0] == 'sysop-move' and TTMP != None: wikipedia.output(u'The page is protected from moving to the sysop, skipping...') continue else: wikipedia.output(u'The page is protected from moving to the sysop, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[3], text) elif editRestriction == 'autoconfirmed' and TSP != None: if TemplateInThePage[0] == 'autoconfirmed-total': wikipedia.output(u'The page is editable only for the autoconfirmed users, skipping...') continue else: wikipedia.output(u'The page is editable only for the autoconfirmed users, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[0], text) elif moveBlockCheck == True and editRestriction == 'autoconfirmed-move' and TSMP != None: if TemplateInThePage[0] == 'autoconfirmed-move': wikipedia.output(u'The page is movable only for the autoconfirmed users, skipping...') continue else: wikipedia.output(u'The page is movable only for the autoconfirmed users, but the template seems not correct. Fixing...') text = re.sub(TemplateInThePage[1], TNR[2], text) else: wikipedia.output(u'The page is editable for all, deleting the template...') # Deleting the template because the page doesn't need it. for replaceToPerform in TTR: text = re.sub('(?:<noinclude>|)%s(?:</noinclude>|)' % replaceToPerform, '', text) if oldtext != text: # Ok, asking if the change has to be performed and do it if yes. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) wikipedia.showDiff(oldtext, text) choice = '' while 1: if not always: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice.lower() in ['a', 'all']: always = True if choice.lower() in ['n', 'no']: break if choice.lower() in ['y', 'yes'] or always: try: page.put(text, commentUsed, force=True) except wikipedia.EditConflict: wikipedia.output(u'Edit conflict! skip!') break except wikipedia.ServerError: # Sometimes there is this error that's quite annoying because # can block the whole process for nothing. errorCount += 1 if errorCount < 5: wikipedia.output(u'Server Error! Wait..') time.sleep(3) continue else: # Prevent Infinite Loops raise wikipedia.ServerError(u'Fifth Server Error!') except wikipedia.SpamfilterError, e: wikipedia.output(u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url)) break except wikipedia.PageNotSaved, error: wikipedia.output(u'Error putting page: %s' % (error.args,)) break except wikipedia.LockedPage: wikipedia.output(u'The page is still protected. Skipping...') break else: # Break only if the errors are one after the other errorCount = 0 break else: wikipedia.output(u'No changes! Strange! Check the regex!') if debug == True: debugQuest(site, page)
2cc92c62063cef777422da460490a49e1bf499d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/2cc92c62063cef777422da460490a49e1bf499d1/blockpageschecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 12740, 4284, 3536, 468, 4444, 310, 326, 5678, 2552, 1542, 12765, 31, 2552, 3150, 18126, 31, 2552, 2879, 31, 2552, 1984, 67, 6387, 329, 309, 642, 18, 4811, 4936, 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, 2774, 13332, 3536, 12740, 4284, 3536, 468, 4444, 310, 326, 5678, 2552, 1542, 12765, 31, 2552, 3150, 18126, 31, 2552, 2879, 31, 2552, 1984, 67, 6387, 329, 309, 642, 18, 4811, 4936, 486, 3...
files = popenx(cmdline, 'b') fi = files[0] fo = files[1] if self.have_popen3: fe = files[2]
files = subprocess.Popen(cmdline, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE )
def run_cgi(self): """Execute a CGI script.""" path = self.path dir, rest = self.cgi_info
251c033bc17013e89812207d8301cc937b6a3cd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/251c033bc17013e89812207d8301cc937b6a3cd1/CGIHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 589, 273, 365, 18, 803, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 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, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 589, 273, 365, 18, 803, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 2, -100, -100, -100, -100, -100, -100, ...
def assert_completion_in_result(self, name, kind, result):
def assert_completion_in_result(self, name, scope, result):
def assert_completion_in_result(self, name, kind, result): for proposal in result: if proposal.name == name and proposal.kind == kind: return self.fail('completion <%s> not proposed' % name)
6d539fe256ff5d47931d765fcb7729894783cbf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8286/6d539fe256ff5d47931d765fcb7729894783cbf0/codeassisttest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 11469, 67, 267, 67, 2088, 12, 2890, 16, 508, 16, 2146, 16, 563, 4672, 364, 14708, 316, 563, 30, 309, 14708, 18, 529, 422, 508, 471, 14708, 18, 9224, 422, 3846, 30, 327, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 11469, 67, 267, 67, 2088, 12, 2890, 16, 508, 16, 2146, 16, 563, 4672, 364, 14708, 316, 563, 30, 309, 14708, 18, 529, 422, 508, 471, 14708, 18, 9224, 422, 3846, 30, 327, 365...
predata['wpStarttime'] = time.strftime('%Y%m%d%H%M%S', time.gmtime())
predata['wpStarttime'] = time.strftime('%Y%m%d%H%M%S', time.gmtime())
def _putPageOld(self, text, comment=None, watchArticle=False, minorEdit=True, newPage=False, token=None, newToken=False, sysop=False, captcha=None, botflag=True, maxTries=-1): """Upload 'text' as new content of Page by filling out the edit form.
dd69ba008e92f2f3d64571439cc434364aa01062 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/dd69ba008e92f2f3d64571439cc434364aa01062/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 1964, 7617, 12, 2890, 16, 977, 16, 2879, 33, 7036, 16, 4267, 7880, 33, 8381, 16, 8439, 4666, 33, 5510, 16, 394, 1964, 33, 8381, 16, 1147, 33, 7036, 16, 394, 1345, 33, 8381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 458, 1964, 7617, 12, 2890, 16, 977, 16, 2879, 33, 7036, 16, 4267, 7880, 33, 8381, 16, 8439, 4666, 33, 5510, 16, 394, 1964, 33, 8381, 16, 1147, 33, 7036, 16, 394, 1345, 33, 8381,...
and j*i=-i*j. K is a field not of characteristic and a,b are nonzero elements of K.
and j*i=-i*j. K is a field not of characteristic 2 and a,b are nonzero elements of K.
def vector_space(self): """ Return the vector space associated to self with inner product given by the reduced norm.
847201ec0c8c2fb99710c5f165a7e692579364eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/847201ec0c8c2fb99710c5f165a7e692579364eb/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 67, 2981, 12, 2890, 4672, 3536, 2000, 326, 3806, 3476, 3627, 358, 365, 598, 3443, 3017, 864, 635, 326, 13162, 4651, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 67, 2981, 12, 2890, 4672, 3536, 2000, 326, 3806, 3476, 3627, 358, 365, 598, 3443, 3017, 864, 635, 326, 13162, 4651, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print "OOffice.to_html"
def to_html(self): print "OOffice.to_html" raise NotImplementedError
5acf607fe866693c0a2b88b17b7895c564d2f2bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/5acf607fe866693c0a2b88b17b7895c564d2f2bd/office.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2620, 12, 2890, 4672, 1002, 11206, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2620, 12, 2890, 4672, 1002, 11206, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
elif existing_dev_info == "exists": raise XendError("The virtual device %s is already defined" % dev['v-dev'])
if _is_vscsi_defined(cur_dev_sxp, v_devs = v_devs): raise XendError('The virtual device "%s" is already defined' % \ v_devs[0]) if int(dev_config['feature-host']) != \ int(sxp.child_value(cur_dev_sxp, 'feature-host')): raise XendError('The physical device "%s" cannot define ' 'because mode is different' % devs[0]['p-dev']) new_be = dev_config.get('backend', None) if new_be is not None: cur_be = sxp.child_value(cur_dev_sxp, 'backend', None) if cur_be is None: cur_be = xen.xend.XendDomain.DOM0_ID new_be_dom = _vscsi_be(new_be) cur_be_dom = _vscsi_be(cur_be) if new_be_dom != cur_be_dom: raise XendError('The physical device "%s" cannot define ' 'because backend is different' % devs[0]['p-dev'])
def vscsi_device_configure(self, dev_sxp): """Configure an existing vscsi device. quoted pci funciton """ dev_class = sxp.name(dev_sxp) if dev_class != 'vscsi': return False
78f60fdd5727aeab7c26368447af1065a6064f76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/78f60fdd5727aeab7c26368447af1065a6064f76/XendDomainInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 1017, 7722, 67, 5964, 67, 14895, 12, 2890, 16, 4461, 67, 87, 23829, 4672, 3536, 11207, 392, 2062, 331, 1017, 7722, 2346, 18, 9298, 6125, 77, 1326, 26949, 3536, 4461, 67, 1106, 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, 331, 1017, 7722, 67, 5964, 67, 14895, 12, 2890, 16, 4461, 67, 87, 23829, 4672, 3536, 11207, 392, 2062, 331, 1017, 7722, 2346, 18, 9298, 6125, 77, 1326, 26949, 3536, 4461, 67, 1106, 273, ...
print "serve_forever_stoppable received stop request"
self.stopped = True
def serve_forever_stoppable(self): """Handle one request at a time until stop_serve_forever(). http://code.activestate.com/recipes/336012/ """ self.stop = False while not self.stop: self.handle_request() print "serve_forever_stoppable received stop request"
7c2367edf75fd27698ddc10dddec2487c13b4016 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/7c2367edf75fd27698ddc10dddec2487c13b4016/ext_wsgiutils_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 67, 5681, 19586, 12, 2890, 4672, 3536, 3259, 1245, 590, 622, 279, 813, 3180, 2132, 67, 30104, 67, 1405, 502, 7675, 225, 1062, 2207, 710, 18, 11422, 395, 340, 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, 12175, 67, 1405, 502, 67, 5681, 19586, 12, 2890, 4672, 3536, 3259, 1245, 590, 622, 279, 813, 3180, 2132, 67, 30104, 67, 1405, 502, 7675, 225, 1062, 2207, 710, 18, 11422, 395, 340, 18, ...
p1.delete()
objectstore.delete(p1)
def test_oneway_backref(self): # FIXME: I don't know why, but it seems that my backwards relationship # on preferences still ends up being a list even though I pass # in uselist=False... # FIXED: the backref is a new PropertyLoader which needs its own "uselist". # uses a function which I dont think existed when you first wrote ActiveMapper. p1 = self.create_person_one() self.assertEquals(p1.preferences.person, p1) p1.delete() objectstore.flush() objectstore.clear()
a0ed498ff553b90e805eafa8fad85fe3c60fdb37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/a0ed498ff553b90e805eafa8fad85fe3c60fdb37/activemapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 265, 359, 528, 67, 823, 1734, 12, 2890, 4672, 468, 9852, 30, 467, 2727, 1404, 5055, 11598, 16, 1496, 518, 12001, 716, 3399, 12727, 5232, 468, 3639, 603, 12750, 4859, 3930, 731,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 265, 359, 528, 67, 823, 1734, 12, 2890, 4672, 468, 9852, 30, 467, 2727, 1404, 5055, 11598, 16, 1496, 518, 12001, 716, 3399, 12727, 5232, 468, 3639, 603, 12750, 4859, 3930, 731,...
WalkTests
WalkTests, MakedirTests,
def test_main(): test_support.run_unittest( TemporaryFileTests, StatAttributeTests, EnvironTests, WalkTests )
b386f6a50993f49fb62180c5a1e2a562a97cb368 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b386f6a50993f49fb62180c5a1e2a562a97cb368/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 22791, 812, 14650, 16, 8269, 1499, 14650, 16, 27912, 14650, 16, 7564, 14650, 16, 490, 9477, 481, 14650, 16, 262, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 22791, 812, 14650, 16, 8269, 1499, 14650, 16, 27912, 14650, 16, 7564, 14650, 16, 490, 9477, 481, 14650, 16, 262, 225...
return 52 + (bar_count*13)
proposed_height = 52 + (bar_count*13) if proposed_height > CHART_HEIGHT: return CHART_HEIGHT else: return proposed_height
def _BarGraphHeight(bar_count): return 52 + (bar_count*13)
1646b0eb5eab245a2c95d1705f9aae185cd04cad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/1646b0eb5eab245a2c95d1705f9aae185cd04cad/charts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5190, 4137, 2686, 12, 3215, 67, 1883, 4672, 225, 20084, 67, 4210, 273, 18106, 397, 261, 3215, 67, 1883, 14, 3437, 13, 309, 20084, 67, 4210, 405, 6469, 4928, 67, 14595, 30, 327, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 5190, 4137, 2686, 12, 3215, 67, 1883, 4672, 225, 20084, 67, 4210, 273, 18106, 397, 261, 3215, 67, 1883, 14, 3437, 13, 309, 20084, 67, 4210, 405, 6469, 4928, 67, 14595, 30, 327, 64...
log.add(_("Plugin %(module) returned something weird, '%(value)', ignoring") % {'module':module, 'value':ret})
log.add(_("Plugin %(module)s returned something weird, '%(value)s', ignoring") % {'module':module, 'value':str(ret)})
def _TriggerCommand(self, strfunc, command, source, args): for (module, plugin) in self.plugins: try: func = eval(strfunc) ret = func(command, source, args) if ret != None: if ret == returncode['zap']: return True elif ret == returncode['pass']: pass else: log.add(_("Plugin %(module) returned something weird, '%(value)', ignoring") % {'module':module, 'value':ret}) except: log.add(_("Plugin %(module)s failed with error %(errortype)s: %(error)s.\nTrace: %(trace)s\nProblem area:%(area)s") % {'module':module, 'errortype':sys.exc_info()[0], 'error':sys.exc_info()[1], 'trace':''.join(format_list(extract_stack())), 'area':''.join(format_list(extract_tb(sys.exc_info()[2])))}) return False
81804d71d3f7a6bc7f66bad48c732c45319ea8dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/81804d71d3f7a6bc7f66bad48c732c45319ea8dd/pluginsystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6518, 2189, 12, 2890, 16, 609, 644, 16, 1296, 16, 1084, 16, 833, 4672, 364, 261, 2978, 16, 1909, 13, 316, 365, 18, 8057, 30, 775, 30, 1326, 273, 5302, 12, 701, 644, 13, 325, 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, 389, 6518, 2189, 12, 2890, 16, 609, 644, 16, 1296, 16, 1084, 16, 833, 4672, 364, 261, 2978, 16, 1909, 13, 316, 365, 18, 8057, 30, 775, 30, 1326, 273, 5302, 12, 701, 644, 13, 325, 2...
print """Receive a MARC XML file and update the appropriate database tables according to options
print """Receive MARC XML file and update appropriate database tables according to options.
def usage(): """Print help""" print """Receive a MARC XML file and update the appropriate database tables according to options Usage: bibupload [options] input.xml Examples: $ bibupload -i input.xml Options: Input: -a --append : new fields are appended to the existing record -c --correct : fields are replaced by the new ones in the existing record -f --format : takes only the FMT fields into account. Does not update -i --insert : insert the new record in the database -r --replace : the existing record is entirely replaced by the new one -z --reference : update references (update only 999 fields) -s --stage : stage to start from in the algorithme (0: always done; 1: FMT tags; 2:FFT tags; 3: BibFmt; 4: Metadata update; 5: time update) Scheduling options: -u, --user=USER user name to store task, password needed General options: -h, --help print this help and exit -v, --verbose=LEVEL verbose level (from 0 to 9, default 1) -n --notimechange : do not change record last modification date when updating -V --version : print the script version """
c01e7675eac4ac02844b96fe38be4646d43de28c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c01e7675eac4ac02844b96fe38be4646d43de28c/bibupload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 5108, 2809, 8395, 1172, 3536, 11323, 490, 27206, 3167, 585, 471, 1089, 5505, 2063, 4606, 4888, 358, 702, 18, 225, 10858, 30, 25581, 6327, 306, 2116, 65, 810, 18, 2902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4084, 13332, 3536, 5108, 2809, 8395, 1172, 3536, 11323, 490, 27206, 3167, 585, 471, 1089, 5505, 2063, 4606, 4888, 358, 702, 18, 225, 10858, 30, 25581, 6327, 306, 2116, 65, 810, 18, 2902, ...
def __init__(self, this=m2.dh_new()): self.this=this
def __init__(self, this=None, _pyfree=0): if this is not None: self.this = this self._pyfree = _pyfree else: self.this = m2.dh_new() self._pyfree = 1
def __init__(self, this=m2.dh_new()): self.this=this
ea2953656e44d776d56203682310a6cc498fdacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/ea2953656e44d776d56203682310a6cc498fdacb/DH.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 333, 33, 81, 22, 18, 19153, 67, 2704, 1435, 4672, 365, 18, 2211, 33, 2211, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 333, 33, 81, 22, 18, 19153, 67, 2704, 1435, 4672, 365, 18, 2211, 33, 2211, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
try: if int(opt_value) > 0 and int(opt_value) < 999: options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) except ValueError: if opt_value == 'FMT' or opt_value == 'FFT': options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) else: options['mode'] = 'correct' options['file_path'] = os.path.abspath(opt_value)
options['mode'] = 'correct' options['file_path'] = os.path.abspath(args[0])
def parse_command(): """Analyze the command line and retrieve arguments (xml file, mode, etc) into global options variable. Return 0 in case everything went well, 1 in case of errors, 2 in case only help or version number were asked for. """ # FIXME: add treatment of `time' try: opts, args = getopt.getopt(sys.argv[1:], "i:r:c:a:z:s:f:u:hv:Vn", [ "insert=", "replace=", "correct=", "append=", "reference=", "stage=", "format=", "user=", "help", "verbose", "version", "notimechange", ]) except getopt.GetoptError,erro: usage() write_message("Stage 0 error: %s" % erro, verbose=1, stream=sys.stderr) return 1 # set the proper mode depending on the argument value for opt, opt_value in opts: # Verbose mode option if opt in ["-v", "--verbose"]: try: options['verbose'] = int(opt_value) except ValueError: write_message("Failed: enter a valid number for verbose mode (between 0 and 9).", verbose=1, stream=sys.stderr) return 1 # stage mode option if opt in ["-s", "--stage"]: try: options['stage_to_start_from'] = int(opt_value) except ValueError: write_message("Failed: enter a valid number for the stage to start from(>0).", verbose=1, stream=sys.stderr) return 1 # No time change option if opt in ["-n", "--notimechange"]: options['notimechange'] = 1 # Insert mode option if opt in ["-i", "--insert"]: options['mode'] = 'insert' options['file_path'] = os.path.abspath(opt_value) # Replace mode option if opt in ["-r", "--replace"]: # We check if there is not the mode insert after replace if opt_value == '-i' or opt_value == '--insert': options['replace_insert'] = 1 options['mode'] = 'replace_insert' options['file_path'] = os.path.abspath(args[0]) else: # Creation of the records from the xml Marc in argument options['mode'] = 'replace' options['file_path'] = os.path.abspath(opt_value) # Correct mode option if opt in ["-c", "--correct"]: # We check if there is not just a special tag to correct try: if int(opt_value) > 0 and int(opt_value) < 999: options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) except ValueError: if opt_value == 'FMT' or opt_value == 'FFT': options['mode'] = 'correct' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) else: options['mode'] = 'correct' options['file_path'] = os.path.abspath(opt_value) # Append mode option if opt in ["-a", "--append"]: # We check if there is not just a special tag to append try: if int(opt_value) > 0 and int(opt_value) < 999: options['mode'] = 'append' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) except ValueError: if opt_value == 'FMT' or opt_value == 'FFT': options['mode'] = 'append' options['tag'] = opt_value options['file_path'] = os.path.abspath(args[0]) else: options['mode'] = 'append' options['file_path'] = os.path.abspath(opt_value) # Reference mode option if opt in ["-z", "--reference"]: options['mode'] = 'reference' options['file_path'] = os.path.abspath(opt_value) # Format mode option if opt in ["-f", "--format"]: options['mode'] = 'format' options['file_path'] = os.path.abspath(opt_value) # Detection of user if opt in ["-u", "--user"]: options['user'] = opt_value # Help mode option if opt in ["-h", "--help"]: usage() return 2 # Version mode option if opt in ["-V", "--version"]: write_message(__revision__, verbose=1) return 2 if options['mode'] is None: write_message("Please specify at least one update/insert mode!") return 1 if options['file_path'] is None: write_message("Missing filename! -h for help.") return 1 return 0
1743992f0cfbbd7112c376e34c6d95d4396980d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/1743992f0cfbbd7112c376e34c6d95d4396980d9/bibupload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3076, 13332, 3536, 31984, 326, 1296, 980, 471, 4614, 1775, 261, 2902, 585, 16, 1965, 16, 5527, 13, 1368, 2552, 702, 2190, 18, 225, 2000, 374, 316, 648, 7756, 16343, 5492, 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, 1109, 67, 3076, 13332, 3536, 31984, 326, 1296, 980, 471, 4614, 1775, 261, 2902, 585, 16, 1965, 16, 5527, 13, 1368, 2552, 702, 2190, 18, 225, 2000, 374, 316, 648, 7756, 16343, 5492, 16, ...
if ext.language == "c++": self.compiler.compiler_so = self.compiler.compiler_cxx
"""Work around distutils bug which uses the C compiler for C++ code. """ if hasattr(ext, "language") and ext.language == "c++": if hasattr(ext, "cxx"): self.compiler.compiler = ext.cxx self.compiler.compiler_so = ext.cxx else: self.compiler.compiler_so = self.compiler.compiler_cxx
def build_extension(self, ext): if ext.language == "c++": self.compiler.compiler_so = self.compiler.compiler_cxx else: self.compiler.compiler_so = self._original_compiler_so
a573247d8dab5e2102e9fc6281b9cc72d84ab8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/a573247d8dab5e2102e9fc6281b9cc72d84ab8cd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6447, 12, 2890, 16, 1110, 4672, 3536, 2421, 6740, 2411, 5471, 7934, 1492, 4692, 326, 385, 5274, 364, 385, 9904, 981, 18, 3536, 309, 3859, 12, 408, 16, 315, 4923, 7923, 471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6447, 12, 2890, 16, 1110, 4672, 3536, 2421, 6740, 2411, 5471, 7934, 1492, 4692, 326, 385, 5274, 364, 385, 9904, 981, 18, 3536, 309, 3859, 12, 408, 16, 315, 4923, 7923, 471, 1...
EMR.EXTTEXTOUTA.__init__(self,x,y,txt)
_EMR._EXTTEXTOUTA.__init__(self,x,y,txt)
def __init__(self,x=0,y=0,txt=u''): EMR.EXTTEXTOUTA.__init__(self,x,y,txt) self.charsize=2
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 92, 33, 20, 16, 93, 33, 20, 16, 5830, 33, 89, 6309, 4672, 389, 3375, 54, 6315, 4142, 5151, 5069, 37, 16186, 2738, 972, 12, 2890, 16, 92, 16, 93, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 92, 33, 20, 16, 93, 33, 20, 16, 5830, 33, 89, 6309, 4672, 389, 3375, 54, 6315, 4142, 5151, 5069, 37, 16186, 2738, 972, 12, 2890, 16, 92, 16, 93, 16, ...
sender = sender[0]
def _pongHandler(sender, id=node.id, host=node.host, port=node.port, table=self.table): sender = sender[0] if id != 20 * ' ' and id != sender['id'].data: # whoah, got response from different peer than we were expecting pass else: sender['host'] = host sender['port'] = port n = Node().initWithDict(sender) table.insertNode(n) return
8af8fd84094b75c0a37a3b17a2b63d6db2c42563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/8af8fd84094b75c0a37a3b17a2b63d6db2c42563/khashmir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 500, 75, 1503, 12, 15330, 16, 612, 33, 2159, 18, 350, 16, 1479, 33, 2159, 18, 2564, 16, 1756, 33, 2159, 18, 655, 16, 1014, 33, 2890, 18, 2121, 4672, 309, 612, 480, 4200, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 500, 75, 1503, 12, 15330, 16, 612, 33, 2159, 18, 350, 16, 1479, 33, 2159, 18, 2564, 16, 1756, 33, 2159, 18, 655, 16, 1014, 33, 2890, 18, 2121, 4672, 309, 612, 480, 4200, 380, ...
if width == '':
if width == '':
def do_table(self, args): '''Usage: table classname [property[,property]*] List the instances of a class in tabular form.
8db273cafa102a40f99c0dde8ea0913e7a82990e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8db273cafa102a40f99c0dde8ea0913e7a82990e/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2121, 12, 2890, 16, 833, 4672, 9163, 5357, 30, 1014, 7479, 306, 4468, 63, 16, 4468, 5772, 65, 987, 326, 3884, 434, 279, 667, 316, 28342, 646, 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, 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, 741, 67, 2121, 12, 2890, 16, 833, 4672, 9163, 5357, 30, 1014, 7479, 306, 4468, 63, 16, 4468, 5772, 65, 987, 326, 3884, 434, 279, 667, 316, 28342, 646, 18, 2, -100, -100, -100, -100, ...
rml = etree.tostring( transform(etree.fromstring(new_doc.toxml())))
rml = etree.tostring(transform(new_doc))
def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n)
32aa89f603ce93d4388ce6f049f482862969ced9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/32aa89f603ce93d4388ce6f049f482862969ced9/custom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 394, 67, 2434, 18, 2640, 1046, 12, 529, 13, 268, 273, 394, 67, 2434, 18, 2640, 17299, 12, 955, 13, 290, 18, 6923, 1763, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 394, 67, 2434, 18, 2640, 1046, 12, 529, 13, 268, 273, 394, 67, 2434, 18, 2640, 17299, 12, 955, 13, 290, 18, 6923, 1763, 12, 8...
off.setAllele(pop.gen(), 0) return True
off.setAllele(pop.gen(), 0) return True
def setGen(pop, off, dad, mom): off.setAllele(pop.gen(), 0) return True
467f05af36b87d2f819d1a9dc7420d10e3ebf810 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/467f05af36b87d2f819d1a9dc7420d10e3ebf810/test_05_matings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 7642, 12, 5120, 16, 3397, 16, 302, 361, 16, 312, 362, 4672, 3397, 18, 542, 1595, 6516, 12, 5120, 18, 4507, 9334, 374, 13, 327, 1053, 225, 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, 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, 444, 7642, 12, 5120, 16, 3397, 16, 302, 361, 16, 312, 362, 4672, 3397, 18, 542, 1595, 6516, 12, 5120, 18, 4507, 9334, 374, 13, 327, 1053, 225, 2, -100, -100, -100, -100, -100, -100, ...
while (con.mapper_dict == None) and path != None:
while (con.mapper_dict == None) and path != '/' and path != None:
def default(self, *args, **kwargs):
8ba7f949b44f9640813943a41b0cbc92a39bf62a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12732/8ba7f949b44f9640813943a41b0cbc92a39bf62a/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
loc, tmptokens = self.expr.parse( instring, loc, doActions )
loc, tmptokens = self.expr._parse( instring, loc, doActions )
def parseImpl( self, instring, loc, doActions=True ): tokens = [] try: loc, tokens = self.expr.parse( instring, loc, doActions ) hasIgnoreExprs = ( len(self.ignoreExprs) > 0 ) while 1: if hasIgnoreExprs: loc = self.skipIgnorables( instring, loc ) loc, tmptokens = self.expr.parse( instring, loc, doActions ) if tmptokens or tmptokens.keys(): tokens += tmptokens except (ParseException,IndexError): pass
cf270a876802009d82e8d28923bdd6b889a1f506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/cf270a876802009d82e8d28923bdd6b889a1f506/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 2430, 273, 5378, 775, 30, 1515, 16, 2430, 273, 365, 18, 8638, 18, 2670, 12, 316, 1080, 16, 1515, 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, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 2430, 273, 5378, 775, 30, 1515, 16, 2430, 273, 365, 18, 8638, 18, 2670, 12, 316, 1080, 16, 1515, 16, ...
else :
where = self.thePile.get_focus().get_body().get_focus()[1] else:
def update_focusloc(self): # Location of last known focus is remapped to current location. # This might need to be cleaned up later.
b78b4c8d3bc27b35a33b53c3d42bb4f77863a8eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/b78b4c8d3bc27b35a33b53c3d42bb4f77863a8eb/wicd-curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 13923, 1829, 12, 2890, 4672, 468, 7050, 434, 1142, 4846, 7155, 353, 21674, 1845, 358, 783, 2117, 18, 468, 1220, 4825, 1608, 358, 506, 9426, 731, 5137, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 13923, 1829, 12, 2890, 4672, 468, 7050, 434, 1142, 4846, 7155, 353, 21674, 1845, 358, 783, 2117, 18, 468, 1220, 4825, 1608, 358, 506, 9426, 731, 5137, 18, 2, -100, -100, -100, ...
print "pathsegments %r, treeDepth %r" % (pathSegments, treeDepth)
def findRootPath(self, request, additionalDepth=0): """Find the URL path referring to the root of the current stats tree The returned path begins and ends with a slash.
4fb2208598d1668d88ec00afa0974bd184cc066e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/4fb2208598d1668d88ec00afa0974bd184cc066e/StatsBrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 21302, 12, 2890, 16, 590, 16, 3312, 6148, 33, 20, 4672, 3536, 3125, 326, 1976, 589, 1278, 20245, 358, 326, 1365, 434, 326, 783, 3177, 2151, 1021, 2106, 589, 17874, 471, 3930, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 21302, 12, 2890, 16, 590, 16, 3312, 6148, 33, 20, 4672, 3536, 3125, 326, 1976, 589, 1278, 20245, 358, 326, 1365, 434, 326, 783, 3177, 2151, 1021, 2106, 589, 17874, 471, 3930, 598, ...
self.wantnick = nickname
self.wantnick = nickname
def __init__(self, nickname, password, channels, status, categories): """ @type nickname: string @param nickname: the nickname by which this bot should be known @type password: string @param password: the password to use for identifying with Nickserv @type channels: list of strings @param channels: the bot will maintain a presence in these channels @type status: L{buildbot.status.builder.Status} @param status: the build master's Status object, through which the bot retrieves all status information """ self.nickname = nickname
c8dc6496fcdea91de7fd32e1a604f8130e3c8357 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5901/c8dc6496fcdea91de7fd32e1a604f8130e3c8357/words.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19570, 16, 2201, 16, 5750, 16, 1267, 16, 6477, 4672, 3536, 632, 723, 225, 19570, 30, 533, 632, 891, 19570, 30, 326, 19570, 635, 1492, 333, 2512, 1410, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19570, 16, 2201, 16, 5750, 16, 1267, 16, 6477, 4672, 3536, 632, 723, 225, 19570, 30, 533, 632, 891, 19570, 30, 326, 19570, 635, 1492, 333, 2512, 1410, 50...
playback_history.pop()
if playback_history and playback_history.complete: playback_history.pop()
def playback_last(n, count): # Retrieve playback-action from recognition observer. playback_history.pop() # Remove playback recognition itself. action = playback_history[-n:] # Retrieve last *n* recognitions. action.speed = 10 # Playback at 10x original speed. # Playback action. playback_history.unregister() # Don't record playback. try: for index in range(count): # Playback *count* times. action.execute() # Perform playback. finally: playback_history.register() # Continue recording after playback.
d4eb00e6e43f92aba44fc77c590809a545eb20c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6570/d4eb00e6e43f92aba44fc77c590809a545eb20c2/_cmdmemory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26335, 67, 2722, 12, 82, 16, 1056, 4672, 468, 10708, 26335, 17, 1128, 628, 1950, 7909, 9655, 18, 309, 26335, 67, 8189, 471, 26335, 67, 8189, 18, 6226, 30, 26335, 67, 8189, 18, 5120, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26335, 67, 2722, 12, 82, 16, 1056, 4672, 468, 10708, 26335, 17, 1128, 628, 1950, 7909, 9655, 18, 309, 26335, 67, 8189, 471, 26335, 67, 8189, 18, 6226, 30, 26335, 67, 8189, 18, 5120, 14...
from pecan import conf, set_config set_config('config')
conf = configuration.initconf() conf.update_with_module('config')
def test_update_set_config(self): """Update an empty configuration with the default values""" from pecan import conf, set_config set_config('config')
be62d192c6350b0776e8bde5ed34dd9156e3fd67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3117/be62d192c6350b0776e8bde5ed34dd9156e3fd67/test_conf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2725, 67, 542, 67, 1425, 12, 2890, 4672, 3536, 1891, 392, 1008, 1664, 598, 326, 805, 924, 8395, 628, 293, 557, 304, 1930, 2195, 16, 444, 67, 1425, 444, 67, 1425, 2668, 1425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 2725, 67, 542, 67, 1425, 12, 2890, 4672, 3536, 1891, 392, 1008, 1664, 598, 326, 805, 924, 8395, 628, 293, 557, 304, 1930, 2195, 16, 444, 67, 1425, 444, 67, 1425, 2668, 1425, ...
server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert)
server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert, options.ssl_client_auth)
def main(options, args): # redirect output to a log file so it doesn't spam the unit test output logfile = open('testserver.log', 'w') sys.stderr = sys.stdout = logfile port = options.port # Try to free up the port if there's an orphaned old instance. TryKillingOldServer(port) if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): print 'specified cert file not found: ' + options.cert + ' exiting...' return server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert) print 'HTTPS server started on port %d...' % port else: server = StoppableHTTPServer(('127.0.0.1', port), TestPageHandler) print 'HTTP server started on port %d...' % port server.data_dir = MakeDataDir() server.file_root_url = options.file_root_url server._sync_handler = None MakeDumpDir(server.data_dir) # means FTP Server else: my_data_dir = MakeDataDir() def line_logger(msg): if (msg.find("kill") >= 0): server.stop = True print 'shutting down server' sys.exit(0) # Instantiate a dummy authorizer for managing 'virtual' users authorizer = pyftpdlib.ftpserver.DummyAuthorizer() # Define a new user having full r/w permissions and a read-only # anonymous user authorizer.add_user('chrome', 'chrome', my_data_dir, perm='elradfmw') authorizer.add_anonymous(my_data_dir) # Instantiate FTP handler class ftp_handler = pyftpdlib.ftpserver.FTPHandler ftp_handler.authorizer = authorizer pyftpdlib.ftpserver.logline = line_logger # Define a customized banner (string returned when client connects) ftp_handler.banner = ("pyftpdlib %s based ftpd ready." % pyftpdlib.ftpserver.__ver__) # Instantiate FTP server class and listen to 127.0.0.1:port address = ('127.0.0.1', port) server = pyftpdlib.ftpserver.FTPServer(address, ftp_handler) print 'FTP server started on port %d...' % port try: server.serve_forever() except KeyboardInterrupt: print 'shutting down server' server.stop = True
8df162ae8daedfa09971f7b59420212df505a2b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8df162ae8daedfa09971f7b59420212df505a2b7/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 468, 3136, 876, 358, 279, 613, 585, 1427, 518, 3302, 1404, 24824, 326, 2836, 1842, 876, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 468, 3136, 876, 358, 279, 613, 585, 1427, 518, 3302, 1404, 24824, 326, 2836, 1842, 876, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, ...
pass
t[0] = ''
def p_array_opt(t): """ array_opt : array_opt : array_opt LBRACKET RBRACKET array_opt : array_opt LBRACKET skiplist_all RBRACKET """ pass
fd6e74705730e8bfe77462fc585dc1b6c5368739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/fd6e74705730e8bfe77462fc585dc1b6c5368739/ddf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1126, 67, 3838, 12, 88, 4672, 3536, 526, 67, 3838, 294, 526, 67, 3838, 294, 526, 67, 3838, 511, 21217, 534, 21217, 526, 67, 3838, 294, 526, 67, 3838, 511, 21217, 4343, 77, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 67, 1126, 67, 3838, 12, 88, 4672, 3536, 526, 67, 3838, 294, 526, 67, 3838, 294, 526, 67, 3838, 511, 21217, 534, 21217, 526, 67, 3838, 294, 526, 67, 3838, 511, 21217, 4343, 77, 1...
assert 'Department:</strong> <br/>' in dept_readonly, dept_readonly
assert '<br/>' == dept_readonly, repr(dept_readonly)
def test_2_field_department_none(self): # Create package model.repo.new_revision() pkg = model.Package(name=u'test3') model.Session.add(pkg) model.repo.commit_and_remove()
d5b92a835dfd85b05248b7f3ac94a0bd85a4b78d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/d5b92a835dfd85b05248b7f3ac94a0bd85a4b78d/test_package_gov.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22, 67, 1518, 67, 323, 15750, 67, 6102, 12, 2890, 4672, 468, 1788, 2181, 938, 18, 7422, 18, 2704, 67, 13057, 1435, 3475, 273, 938, 18, 2261, 12, 529, 33, 89, 1404, 395, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22, 67, 1518, 67, 323, 15750, 67, 6102, 12, 2890, 4672, 468, 1788, 2181, 938, 18, 7422, 18, 2704, 67, 13057, 1435, 3475, 273, 938, 18, 2261, 12, 529, 33, 89, 1404, 395, 23,...
if self.repo_type == 1: steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)] if not os.path.exists('qemu/pc-bios/bios.bin'): steps.append("make -C bios") steps.append("make -C extboot") steps.append("cp -f bios/BIOS-bochs-latest" " qemu/pc-bios/bios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.bin" " qemu/pc-bios/vgabios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.cirrus.bin" " qemu/pc-bios/vgabios-cirrus.bin") steps.append("cp -f extboot/extboot.bin" " qemu/pc-bios/extboot.bin") elif self.repo_type == 2: steps = [cfg, "make clean", "make -j %s" % utils.count_cpus()]
steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)]
def __build(self): os.chdir(self.srcdir) # For testing purposes, it's better to build qemu binaries with # debugging symbols, so we can extract more meaningful stack traces. cfg = "./configure --disable-strip --prefix=%s" % self.prefix if self.repo_type == 1: steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)] if not os.path.exists('qemu/pc-bios/bios.bin'): steps.append("make -C bios") steps.append("make -C extboot") steps.append("cp -f bios/BIOS-bochs-latest" " qemu/pc-bios/bios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.bin" " qemu/pc-bios/vgabios.bin") steps.append("cp -f vgabios/VGABIOS-lgpl-latest.cirrus.bin" " qemu/pc-bios/vgabios-cirrus.bin") steps.append("cp -f extboot/extboot.bin" " qemu/pc-bios/extboot.bin") elif self.repo_type == 2: steps = [cfg, "make clean", "make -j %s" % utils.count_cpus()]
e05779048facff81f29df2d9abf1bfb857241db3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/e05779048facff81f29df2d9abf1bfb857241db3/kvm_install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 12, 2890, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 4816, 1214, 13, 468, 2457, 7769, 13694, 16, 518, 1807, 7844, 358, 1361, 1043, 24995, 4158, 5646, 598, 468, 10450, 7963, 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, 1001, 3510, 12, 2890, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 4816, 1214, 13, 468, 2457, 7769, 13694, 16, 518, 1807, 7844, 358, 1361, 1043, 24995, 4158, 5646, 598, 468, 10450, 7963, 16,...
self.user = user
self.user = user
def __init__(self, site, user=None, password=None, timeout=5, format=formats.XMLFormat): """Initialize a new Connection object.
647edf2efecc75d6970b3c2ff5905f24d147dd19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6884/647edf2efecc75d6970b3c2ff5905f24d147dd19/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 729, 33, 7036, 16, 2201, 33, 7036, 16, 2021, 33, 25, 16, 740, 33, 11962, 18, 4201, 1630, 4672, 3536, 7520, 279, 394, 4050, 733, 18, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 729, 33, 7036, 16, 2201, 33, 7036, 16, 2021, 33, 25, 16, 740, 33, 11962, 18, 4201, 1630, 4672, 3536, 7520, 279, 394, 4050, 733, 18, 2, -100, ...
class EditPostForm(forms.ModelForm): name = forms.CharField(required=False, label=_('Subject'), widget=forms.TextInput(attrs={'size':'115'})) class Meta: model = Post fields = ['body'] def __init__(self, *args, **kwargs): self.topic = kwargs.pop('topic', None) super(EditPostForm, self).__init__(*args, **kwargs) self.fields['name'].initial = self.topic self.fields['body'].widget = forms.Textarea(attrs={'class':'bbcode'}) def save(self, commit=True): post = super(EditPostForm, self).save(commit=False) post.updated = datetime.now() if commit: post.save() return post
def __init__(self, *args, **kwargs): super(PrivacyProfileForm, self).__init__(*args, **kwargs) self.fields['privacy_permission'].widget = forms.RadioSelect( choices=self.fields['privacy_permission'].choices )
00e4db1ce19618dbae7e4b236d1bdecef91899b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/00e4db1ce19618dbae7e4b236d1bdecef91899b5/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 15475, 3505, 4029, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 365, 18, 2821, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 15475, 3505, 4029, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 365, 18, 2821, 3292, ...
def cdiffstat(ui, summary, patchlines): s = patch.diffstat(patchlines) if summary: ui.write(summary, '\n') ui.write(s, '\n') if ui.promptchoice(_('does the diffstat above look okay (yn)?'), (_('&Yes'), _('&No'))): raise util.Abort(_('diffstat rejected')) return s
def cdiffstat(ui, summary, patchlines): s = patch.diffstat(patchlines) if summary: ui.write(summary, '\n') ui.write(s, '\n') if ui.promptchoice(_('does the diffstat above look okay (yn)?'), (_('&Yes'), _('&No'))): raise util.Abort(_('diffstat rejected')) return s
9da6032086f09e0116442acbe6e7d1fe447e0b5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/9da6032086f09e0116442acbe6e7d1fe447e0b5e/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 5413, 5642, 12, 4881, 16, 4916, 16, 4729, 3548, 4672, 272, 273, 4729, 18, 5413, 5642, 12, 2272, 3548, 13, 309, 4916, 30, 5915, 18, 2626, 12, 7687, 16, 2337, 82, 6134, 5915, 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, 276, 5413, 5642, 12, 4881, 16, 4916, 16, 4729, 3548, 4672, 272, 273, 4729, 18, 5413, 5642, 12, 2272, 3548, 13, 309, 4916, 30, 5915, 18, 2626, 12, 7687, 16, 2337, 82, 6134, 5915, 18, ...
"""Check if binary package should be upgraded
"""Check if a binary package should be upgraded
def should_upgrade_srcarch(self, src, arch, suite): """Check if binary package should be upgraded
644caa3f3125e8104b46e0ef2774fdb1917b2f5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2784/644caa3f3125e8104b46e0ef2774fdb1917b2f5c/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 67, 15097, 67, 4816, 991, 12, 2890, 16, 1705, 16, 6637, 16, 11371, 4672, 3536, 1564, 309, 3112, 2181, 1410, 506, 31049, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 67, 15097, 67, 4816, 991, 12, 2890, 16, 1705, 16, 6637, 16, 11371, 4672, 3536, 1564, 309, 3112, 2181, 1410, 506, 31049, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return _("If this is not intentional, it is a bug. Please report it. If it is intentional, please get into a contact with network administrators to arrange new project entry with you own ESSID for you.")
return _("If this is not intentional, it is a bug. Please report it. If it is intentional, please get in contact with network administrators to arrange a new project entry with your own ESSID for you.")
def to_help_string(code): """ A helper method for transforming a warning code to a human readable help string.
d2fcb4c3cbb9c2e72ca5af1f6972909525d65735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11345/d2fcb4c3cbb9c2e72ca5af1f6972909525d65735/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 5201, 67, 1080, 12, 710, 4672, 3536, 432, 4222, 707, 364, 27734, 279, 3436, 981, 358, 279, 8672, 7471, 2809, 533, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 5201, 67, 1080, 12, 710, 4672, 3536, 432, 4222, 707, 364, 27734, 279, 3436, 981, 358, 279, 8672, 7471, 2809, 533, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
f = open(TESTFN, 'w+') data = 'aabaac\x00deef\x00\x00aa\x00'
f = open(TESTFN, 'wb+') data = b'aabaac\x00deef\x00\x00aa\x00'
def test_tougher_find(self): # Do a tougher .find() test. SF bug 515943 pointed out that, in 2.2, # searching for data with embedded \0 bytes didn't work. f = open(TESTFN, 'w+')
3c5b3f3090b6007274572d236a3d5ae5856203ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3c5b3f3090b6007274572d236a3d5ae5856203ec/test_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 869, 637, 1614, 67, 4720, 12, 2890, 4672, 468, 2256, 279, 358, 637, 1614, 263, 4720, 1435, 1842, 18, 225, 21318, 7934, 1381, 24872, 8942, 25874, 596, 716, 16, 316, 576, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 869, 637, 1614, 67, 4720, 12, 2890, 4672, 468, 2256, 279, 358, 637, 1614, 263, 4720, 1435, 1842, 18, 225, 21318, 7934, 1381, 24872, 8942, 25874, 596, 716, 16, 316, 576, 18, 2...
Method: AddControl
def AddControl(self,ctrl): """ Method: AddControl Created: 27.04.2006, KP Description: Add a control to the toolbar """ self.ctrls.append(ctrl) self.idToTool[ctrl.GetId()] = ctrl self.sizes.append(ctrl.GetSize()[0]) #self.sizer.Add(ctrl,(self.y,self.x)) self.x+=1
e254d019e70ae28ba06fea2b44855a033523da03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2877/e254d019e70ae28ba06fea2b44855a033523da03/Toolbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 3367, 12, 2890, 16, 16277, 4672, 3536, 12953, 30, 12732, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 1436, 279, 3325, 358, 326, 12748, 3536, 365, 18, 16277, 87, 18, 6923, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 3367, 12, 2890, 16, 16277, 4672, 3536, 12953, 30, 12732, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 1436, 279, 3325, 358, 326, 12748, 3536, 365, 18, 16277, 87, 18, 6923, 12,...
job.lock_status = None
def RunTask(self, job): # pylint: disable-msg=W0221 """Job executor.
9bdab6219839d70dcea52ad9ffa3b4b449794854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/9bdab6219839d70dcea52ad9ffa3b4b449794854/jqueue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 2174, 12, 2890, 16, 1719, 4672, 468, 7601, 30, 4056, 17, 3576, 33, 59, 3103, 5340, 3536, 2278, 6601, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 2174, 12, 2890, 16, 1719, 4672, 468, 7601, 30, 4056, 17, 3576, 33, 59, 3103, 5340, 3536, 2278, 6601, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if __name__ == '__main__':
def main(): root = 'http://10.1.1.3:8000/xcap-root' xcap_user_id = 'sip:alice@example.com' password = '123' client = XCAPClient(root, xcap_user_id, password=password)
def __exit__(self, exc_type, exc_value, traceback): if self.result: print self.result if exc_type is None: assert False, 'expecting exception %s' % self.klass.__name__ elif issubclass(exc_type, self.klass): for (k, v) in self.kwargs.items(): if getattr(exc_value, k, None)!=v: return False return True
dab938f43cc9e2d9b6c4311724fbb11ba5f93070 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3443/dab938f43cc9e2d9b6c4311724fbb11ba5f93070/test_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8593, 972, 12, 2890, 16, 3533, 67, 723, 16, 3533, 67, 1132, 16, 10820, 4672, 309, 365, 18, 2088, 30, 1172, 365, 18, 2088, 309, 3533, 67, 723, 353, 599, 30, 1815, 1083, 16, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8593, 972, 12, 2890, 16, 3533, 67, 723, 16, 3533, 67, 1132, 16, 10820, 4672, 309, 365, 18, 2088, 30, 1172, 365, 18, 2088, 309, 3533, 67, 723, 353, 599, 30, 1815, 1083, 16, 296,...
self._rollback(trans)
conn.rollback()
def _runInteraction(self, interaction, *args, **kw): trans = Transaction(self) try: result = interaction(trans, *args, **kw) trans.close() trans._connection.commit() return result except: self._rollback(trans) raise
77d242150ff3e2dffc1e2c3b9227f423cc311926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/77d242150ff3e2dffc1e2c3b9227f423cc311926/adbapi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 17419, 12, 2890, 16, 13581, 16, 380, 1968, 16, 2826, 9987, 4672, 906, 273, 5947, 12, 2890, 13, 775, 30, 563, 273, 13581, 12, 2338, 16, 380, 1968, 16, 2826, 9987, 13, 906, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 17419, 12, 2890, 16, 13581, 16, 380, 1968, 16, 2826, 9987, 4672, 906, 273, 5947, 12, 2890, 13, 775, 30, 563, 273, 13581, 12, 2338, 16, 380, 1968, 16, 2826, 9987, 13, 906, ...
if len(params) != 4:
if len(params) != 5:
def __init__(self, n, ranges_labels, callback): QWidget.__init__(self)
186eee357ab9a9a1d91f0651f6a9efcffa5aff79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/186eee357ab9a9a1d91f0651f6a9efcffa5aff79/qt_plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 7322, 67, 5336, 16, 1348, 4672, 2238, 4609, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 7322, 67, 5336, 16, 1348, 4672, 2238, 4609, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def interpret(self, fn, args, policy=None): f = self._compile(fn, args)
def _compile(self, fn, args, ann=None): if ann is None: ann = [lltype_to_annotation(typeOf(x)) for x in args] if self._func is fn and self._ann == ann: return self._llvm_func else: self._llvm_func = compile_function(fn, ann) self._func = fn self._ann = ann return self._llvm_func def _skip_win(self, reason): if platform.system() == 'Windows': py.test.skip('Windows --> %s' % reason) def _skip_powerpc(self, reason): if platform.processor() == 'powerpc': py.test.skip('PowerPC --> %s' % reason) def _skip_llinterpreter(self, reason, skipLL=True, skipOO=True): pass def interpret(self, fn, args, annotation=None): f = self._compile(fn, args, annotation)
def interpret(self, fn, args, policy=None): f = self._compile(fn, args) res = f(*args) return res
a3aa3769b13a707180a2dfafe3f37a2f5592a574 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/a3aa3769b13a707180a2dfafe3f37a2f5592a574/runtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 12, 2890, 16, 2295, 16, 833, 16, 8226, 33, 7036, 4672, 309, 8226, 353, 599, 30, 8226, 273, 306, 2906, 723, 67, 869, 67, 11495, 12, 723, 951, 12, 92, 3719, 364, 619, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 12, 2890, 16, 2295, 16, 833, 16, 8226, 33, 7036, 4672, 309, 8226, 353, 599, 30, 8226, 273, 306, 2906, 723, 67, 869, 67, 11495, 12, 723, 951, 12, 92, 3719, 364, 619, 316, ...
self.output_cache = [CacheEntry(",".join(instruments), None, segments.segmentlist([c.segment for c in self.input_cache if c.segment is not None]).extent(), "file://localhost" + os.path.abspath(self.get_opts()["database"]))]
self.output_cache = [CacheEntry(",".join(instruments), None, segments.segmentlist([c.segment for c in self.input_cache if c.segment is not None]).extent(), "file://localhost" + os.path.abspath(self.get_opts()["macrodatabase"]))]
def get_output_cache(self): if not self.output_cache: instruments = set() for c in self.input_cache: if c.observatory is not None: instruments |= set([ins for ins in c.observatory.split(",")]) instruments = list(instruments) instruments.sort() self.output_cache = [CacheEntry(",".join(instruments), None, segments.segmentlist([c.segment for c in self.input_cache if c.segment is not None]).extent(), "file://localhost" + os.path.abspath(self.get_opts()["database"]))] return self.output_cache
485b68b2ae23fe707b6c1eb11cabd6b02fd18107 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/485b68b2ae23fe707b6c1eb11cabd6b02fd18107/power.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2844, 67, 2493, 12, 2890, 4672, 309, 486, 365, 18, 2844, 67, 2493, 30, 29555, 273, 444, 1435, 364, 276, 316, 365, 18, 2630, 67, 2493, 30, 309, 276, 18, 12199, 90, 8452, 353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2844, 67, 2493, 12, 2890, 4672, 309, 486, 365, 18, 2844, 67, 2493, 30, 29555, 273, 444, 1435, 364, 276, 316, 365, 18, 2630, 67, 2493, 30, 309, 276, 18, 12199, 90, 8452, 353,...
print "grepping " + inname + " for " + string + " and sending it to " + outname
def grep(string, inname, outname, append_cache=None): o = open(outname, "w") print "grepping " + inname + " for " + string + " and sending it to " + outname expr = re.compile(string) o.write(''.join(filter(expr.search,open(inname).readlines()))) if append_cache: o.write(''.join(append_cache)) o.close()
0b97313a1079214d63930999cbf916815e37ccaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b97313a1079214d63930999cbf916815e37ccaf/highmass_post_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23366, 12, 1080, 16, 316, 529, 16, 596, 529, 16, 714, 67, 2493, 33, 7036, 4672, 320, 273, 1696, 12, 659, 529, 16, 315, 91, 7923, 282, 3065, 273, 283, 18, 11100, 12, 1080, 13, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23366, 12, 1080, 16, 316, 529, 16, 596, 529, 16, 714, 67, 2493, 33, 7036, 4672, 320, 273, 1696, 12, 659, 529, 16, 315, 91, 7923, 282, 3065, 273, 283, 18, 11100, 12, 1080, 13, 320, ...
for pto,dias,apartir,horas in horarios.parse_hor_html(html): print 'ponto: %s, dias: %s' % (pto, dias)
for pto,dia,apartir,horas in horarios.parse_hor_html(html): print 'ponto: %s, dias: %s' % (pto, dia)
def fetch_horarios(idhor, nome): c = env.db.cursor() idlinha = get_linha_hor(idhor, nome) c.execute('delete from hs, h \ using horsets hs, horarios h \ where hs.idlinha=%s and h.idset=hs.id', [idlinha]) html = horarios.get_horarios_html(idhor) for pto,dias,apartir,horas in horarios.parse_hor_html(html): print 'ponto: %s, dias: %s' % (pto, dias) idponto = get_ponto_hor(pto) d = dias.id_dias(dias) c.insert_one('horsets', idlinha=idlinha, idponto=idponto, dia=d, apartir=apartir) idset = c.lastrowid for sp,h in horas: c.insert_one('horarios', idset=idset, hora=h, special=sp) c.close()
8f02e80df367ccd3870110c069898969f20924da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14322/8f02e80df367ccd3870110c069898969f20924da/fetch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 76, 280, 297, 7441, 12, 350, 76, 280, 16, 290, 1742, 4672, 276, 273, 1550, 18, 1966, 18, 9216, 1435, 225, 612, 7511, 3395, 273, 336, 67, 7511, 3395, 67, 76, 280, 12, 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, 1652, 2158, 67, 76, 280, 297, 7441, 12, 350, 76, 280, 16, 290, 1742, 4672, 276, 273, 1550, 18, 1966, 18, 9216, 1435, 225, 612, 7511, 3395, 273, 336, 67, 7511, 3395, 67, 76, 280, 12, 350, ...
for mod_name, enabled in self.madcow.config.modules.__dict__.items():
for mod_name, enabled in self.madcow.config.modules.settings.items():
def load_modules(self): disabled = list(self._ignore_mods) for mod_name, enabled in self.madcow.config.modules.__dict__.items(): if not enabled: disabled.append(mod_name) log.info('reading modules from %s' % self.mod_dir) try: filenames = os.walk(self.mod_dir).next()[2] except Exception, e: log.warn("Couldn't load modules from %s: %s" % (self.mod_dir, e)) return for filename in filenames: if not self._pyext.search(filename): continue mod_name = self._pyext.sub('', filename) if mod_name in disabled: log.info('skipping %s: disabled' % mod_name) continue if self.modules.has_key(mod_name): mod = self.modules[mod_name]['mod'] try: reload(mod) log.info('reloaded module %s' % mod_name) except Exception, e: log.warn("couldn't reload %s: %s" % (mod_name, e)) del self.modules[mod_name] continue else: try: mod = __import__( '%s.%s' % (self.subdir, mod_name), globals(), locals(), [self.entry], ) except Exception, e: log.warn("couldn't load module %s: %s" % (mod_name, e)) continue self.modules[mod_name] = {'mod': mod} try: Main = getattr(mod, self.entry) obj = Main(self.madcow) except Exception, e: log.warn("failure loading %s: %s" % (mod_name, e)) del self.modules[mod_name] continue if not obj.enabled: log.info("skipped loading %s: disabled" % mod_name) del self.modules[mod_name] continue try: if obj.help: self.help.append(obj.help) else: raise Exception except: log.warn('no help for module: %s' % mod_name) self.modules[mod_name]['obj'] = obj log.info('loaded module: %s' % mod_name)
8539d13e78a623775fd0538a2cd2c9dbab011bd4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/8539d13e78a623775fd0538a2cd2c9dbab011bd4/madcow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 6400, 12, 2890, 4672, 5673, 273, 666, 12, 2890, 6315, 6185, 67, 22760, 13, 364, 681, 67, 529, 16, 3696, 316, 365, 18, 81, 361, 71, 543, 18, 1425, 18, 6400, 18, 4272, 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, 1262, 67, 6400, 12, 2890, 4672, 5673, 273, 666, 12, 2890, 6315, 6185, 67, 22760, 13, 364, 681, 67, 529, 16, 3696, 316, 365, 18, 81, 361, 71, 543, 18, 1425, 18, 6400, 18, 4272, 18, ...
kwargs['command'] = ["./installdmg.ex", "$FILENAME"]
kwargs['command'] = ["expect", "installdmg.ex", "$FILENAME"]
def __init__(self, **kwargs): self.filename = "" self.branch = "" if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filename' in kwargs: self.filename = kwargs['filename'] if not 'command' in kwargs: kwargs['command'] = ["./installdmg.ex", "$FILENAME"] ShellCommand.__init__(self, **kwargs)
60a7d5b751173ba0b040535f4489dc3a629cd7be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/60a7d5b751173ba0b040535f4489dc3a629cd7be/perfrunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 365, 18, 3459, 273, 1408, 365, 18, 7500, 273, 1408, 309, 296, 7500, 11, 316, 1205, 30, 365, 18, 7500, 273, 1205, 3292, 7500, 3546, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 365, 18, 3459, 273, 1408, 365, 18, 7500, 273, 1408, 309, 296, 7500, 11, 316, 1205, 30, 365, 18, 7500, 273, 1205, 3292, 7500, 3546, 309,...
self.assertRaises(ValueError, time.strftime, '', (1900, 1, 1, 0, 0, 0, 0, 1, -2)) self.assertRaises(ValueError, time.strftime, '', (1900, 1, 1, 0, 0, 0, 0, 1, 2))
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values).
9dac2ebe79054c6105df7e63584c32710ab38d85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/9dac2ebe79054c6105df7e63584c32710ab38d85/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 261, 20, 353, 923, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 261, 20, 353, 923, 364, ...
\t\t\"
\t\t\"
#ifdef F2PY_REPORT_ATEXIT
ed916ff07cf2f1fbb6056cdc01fe3ae82a027ed5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/ed916ff07cf2f1fbb6056cdc01fe3ae82a027ed5/rules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 478, 22, 16235, 67, 22710, 67, 1777, 60, 1285, 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, 468, 430, 536, 478, 22, 16235, 67, 22710, 67, 1777, 60, 1285, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if not is_unavailable_exception(e): self.fail("%s\n%s" % (e, e.headers))
self.fail("%s\n%s" % (e, e.headers))
def test_multicall(self): try: p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) multicall = xmlrpclib.MultiCall(p) multicall.add(2,3) multicall.pow(6,8) multicall.div(127,42) add_result, pow_result, div_result = multicall() self.assertEqual(add_result, 2+3) self.assertEqual(pow_result, 6**8) self.assertEqual(div_result, 127//42) except xmlrpclib.ProtocolError as e: # ignore failures due to non-blocking socket 'unavailable' errors if not is_unavailable_exception(e): # protocol error; provide additional information in test output self.fail("%s\n%s" % (e, e.headers))
80e909fe423bada8cfd4c5bf95f48a61f0dd2c3b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/80e909fe423bada8cfd4c5bf95f48a61f0dd2c3b/test_xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5421, 335, 454, 12, 2890, 4672, 775, 30, 293, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 2668, 2505, 2207, 13014, 5319, 72, 11, 738, 20987, 13, 1778, 335, 454, 273, 2025, 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, 1842, 67, 5421, 335, 454, 12, 2890, 4672, 775, 30, 293, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 2668, 2505, 2207, 13014, 5319, 72, 11, 738, 20987, 13, 1778, 335, 454, 273, 2025, 13...
if self.model.size['x'] < 0 or \ self.model.size['y'] < 0 or \ self.model.size['x'] + self.model.size['width'] > screenSize[0] or \ self.model.size['y'] + self.model.size['height'] > screenSize[1]:
if self.model.size['x'] < screenSize[0] or \ self.model.size['y'] < screenSize[1] or \ self.model.size['x'] + self.model.size['width'] > screenSize[2] or \ self.model.size['y'] + self.model.size['height'] > screenSize[3]:
def MoveOntoScreen(self): """ Check to see if the window location is off screen and moves it onto screen. The code below is currently a place holder. It will change depending on how we handle multiple windows (e.g. tiling), multiple monitors and various error conditions, like changing monitor size and windows off the screen. """ screenSize = wxDisplaySize () """ If the window isn't on the screen, set it to the default size and position. """ if self.model.size['x'] < 0 or \ self.model.size['y'] < 0 or \ self.model.size['x'] + self.model.size['width'] > screenSize[0] or \ self.model.size['y'] + self.model.size['height'] > screenSize[1]: preferences = application.Application.app.model.preferences self.SetSize ((preferences.windowSize['width'], preferences.windowSize['height'])) self.CentreOnScreen () else: self.SetRect ((self.model.size['x'], self.model.size['y'], self.model.size['width'], self.model.size['height'])) rect = self.GetRect() self.model.size['x'] = rect.GetX() self.model.size['y'] = rect.GetY() self.model.size['width'] = rect.GetWidth() self.model.size['height'] = rect.GetHeight()
63eee33ceffbaf41edc0717242c99ded7fc46397 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/63eee33ceffbaf41edc0717242c99ded7fc46397/ChandlerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9933, 51, 496, 83, 7956, 12, 2890, 4672, 3536, 2073, 358, 2621, 309, 326, 2742, 2117, 353, 3397, 5518, 471, 13934, 518, 10170, 5518, 18, 1021, 981, 5712, 353, 4551, 279, 3166, 10438, 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, 9933, 51, 496, 83, 7956, 12, 2890, 4672, 3536, 2073, 358, 2621, 309, 326, 2742, 2117, 353, 3397, 5518, 471, 13934, 518, 10170, 5518, 18, 1021, 981, 5712, 353, 4551, 279, 3166, 10438, 18,...
'program section %s does not specify a command' )
'program section %s does not specify a command' % section)
def programs_from_config(self, config): programs = []
d14a3d40cb3f167a3fa083555965e6cf0f862625 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13620/d14a3d40cb3f167a3fa083555965e6cf0f862625/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25038, 67, 2080, 67, 1425, 12, 2890, 16, 642, 4672, 25038, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25038, 67, 2080, 67, 1425, 12, 2890, 16, 642, 4672, 25038, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return super(PackingIn, self).button_draft(
return super(PackingOut, self).button_draft(
def button_draft(self, cursor, user, ids, context=None): for packing in self.browse(cursor, user, ids, context=context): for move in packing.outgoing_moves: if move.state == 'cancel' and move.sale_line: self.raise_user_error(cursor, 'reset_move')
63d5f876a9eeaa9391de54fd29b6068044d8a8e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9306/63d5f876a9eeaa9391de54fd29b6068044d8a8e8/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 17153, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 364, 2298, 310, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 16, 819, 33, 2472, 4672, 364, 3635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3568, 67, 17153, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 364, 2298, 310, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 16, 819, 33, 2472, 4672, 364, 3635,...
try: version = context.req.args['rev'] except KeyError: version = resource.version builds = Build.select(self.env, rev=version) self.log.debug("Looking for coverage report for %s@%s [%s]..." % ( resource.id, str(resource.version), version)) reports = [] for build in builds: config = BuildConfig.fetch(self.env, build.config) if not resource.id.lstrip('/').startswith(config.path.lstrip('/')): continue reports = Report.select(self.env, build=build.id, category='coverage') path_in_config = resource.id[len(config.path)+1:].lstrip('/') for report in reports: for item in report.items: if item.get('file') == path_in_config: coverage = item.get('line_hits', '').split() if coverage: self.log.debug( "Coverage annotate for %s@%s: %s" % \ (resource.id, resource.version, coverage)) return coverage
version = context.req.args.get('rev', resource.version) created = context.req.args.get('created', resource.version) repos = self.env.get_repository() version_time = to_timestamp(repos.get_changeset(version).date) if version != created: created_time = to_timestamp(repos.get_changeset(created).date) else: created_time = version_time self.log.debug("Looking for coverage report for %s@%s [%s:%s]..." % ( resource.id, str(resource.version), created, version)) db = self.env.get_db_cnx() cursor = db.cursor() cursor.execute(""" SELECT b.id, b.rev, i2.value FROM bitten_config AS c INNER JOIN bitten_build AS b ON c.name=b.config INNER JOIN bitten_report AS r ON b.id=r.build INNER JOIN bitten_report_item AS i1 ON r.id=i1.report INNER JOIN bitten_report_item AS i2 ON (i1.item=i2.item AND i1.report=i2.report) WHERE i2.name='line_hits' AND b.rev_time>=%s AND b.rev_time<=%s AND i1.name='file' AND """ + db.concat('c.path', "'/'", 'i1.value') + """=%s ORDER BY b.rev_time DESC LIMIT 1""" , (created_time, version_time, resource.id.lstrip('/'))) row = cursor.fetchone() if row: build_id, build_rev, line_hits = row coverage = line_hits.split() self.log.debug("Coverage annotate for %s@%s using build %d: %s", resource.id, build_rev, build_id, coverage) return coverage add_warning(context.req, "No coverage annotation found for " "/%s for revision range [%s:%s]." % ( resource.id.lstrip('/'), version, created))
def get_annotation_data(self, context): add_stylesheet(context.req, 'bitten/bitten_coverage.css')
bf903336a950917a11b05d15f1ba68282672625c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4547/bf903336a950917a11b05d15f1ba68282672625c/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11495, 67, 892, 12, 2890, 16, 819, 4672, 527, 67, 19403, 12, 2472, 18, 3658, 16, 296, 3682, 2253, 19, 3682, 2253, 67, 16356, 18, 5212, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11495, 67, 892, 12, 2890, 16, 819, 4672, 527, 67, 19403, 12, 2472, 18, 3658, 16, 296, 3682, 2253, 19, 3682, 2253, 67, 16356, 18, 5212, 6134, 2, -100, -100, -100, -100, -100, ...
if not data['pi_yr'] == '':
if data['pi_yr']:
def defaultFileListHandler(self, request): """ This is the default handler for getting entries. It takes the request object in and figures out which entries based on the default behavior that we want to show and generates a list of EntryBase subclass objects which it returns.
b0a8896393d7b257c437ce75077b8d462908b7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/b0a8896393d7b257c437ce75077b8d462908b7aa/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 26098, 1503, 12, 2890, 16, 590, 4672, 3536, 1220, 353, 326, 805, 1838, 364, 8742, 3222, 18, 225, 2597, 5530, 326, 590, 733, 316, 471, 4291, 1823, 596, 1492, 3222, 2511, 603, 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, 805, 26098, 1503, 12, 2890, 16, 590, 4672, 3536, 1220, 353, 326, 805, 1838, 364, 8742, 3222, 18, 225, 2597, 5530, 326, 590, 733, 316, 471, 4291, 1823, 596, 1492, 3222, 2511, 603, 326, ...
self.assert_(set(self._box.list_folders()) ==
self.assertEqual(set(self._box.list_folders()),
def test_list_folders(self): # List folders self._box.add_folder('one') self._box.add_folder('two') self._box.add_folder('three') self.assertEqual(len(self._box.list_folders()), 3) self.assert_(set(self._box.list_folders()) == set(('one', 'two', 'three')))
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1098, 67, 16064, 12, 2890, 4672, 468, 987, 9907, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 476, 6134, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 15415, 6134, 365, 6315, 2147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 67, 16064, 12, 2890, 4672, 468, 987, 9907, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 476, 6134, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 15415, 6134, 365, 6315, 2147, ...
self.check_sizeof(float(0), size(h + 'd'))
check(float(0), size(h + 'd')) check(sys.float_info, size(vh) + self.P * len(sys.float_info))
def method(): pass
c700714ccabb5f69025ec56a9f27a4d3f1c4ffa0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/c700714ccabb5f69025ec56a9f27a4d3f1c4ffa0/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else:
else:
def __init__(self, base_path=None, template_path=None, script_path=None, environ=None, cwd=None, start_clear=True, ignore_paths=None, ignore_hidden=True): """ Creates an environment. ``base_path`` is used as the current working directory, and generally where changes are looked for. If not given, it will be the directory of the calling script plus ``test-output/``.
78ffcb4c9548b27e2cb7bf15bf7a4cc0f8cc2c1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8710/78ffcb4c9548b27e2cb7bf15bf7a4cc0f8cc2c1a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1026, 67, 803, 33, 7036, 16, 1542, 67, 803, 33, 7036, 16, 2728, 67, 803, 33, 7036, 16, 5473, 33, 7036, 16, 7239, 33, 7036, 16, 787, 67, 8507, 33, 551...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1026, 67, 803, 33, 7036, 16, 1542, 67, 803, 33, 7036, 16, 2728, 67, 803, 33, 7036, 16, 5473, 33, 7036, 16, 7239, 33, 7036, 16, 787, 67, 8507, 33, 551...
retval = _fl_set_timer_filter(ob, c_filter)
retval = _fl_set_timer_filter(pObject, c_filter)
def fl_set_timer_filter(ob, py_filter): """ fl_set_timer_filter(ob, py_filter) -> timer_filter func. """ c_filter = FL_TIMER_FILTER(py_filter) _cfunc_refs[get_rand_dictkey()] = c_filter retval = _fl_set_timer_filter(ob, c_filter) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 12542, 67, 2188, 12, 947, 16, 2395, 67, 2188, 4672, 3536, 1183, 67, 542, 67, 12542, 67, 2188, 12, 947, 16, 2395, 67, 2188, 13, 317, 5441, 67, 2188, 1326, 18, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 12542, 67, 2188, 12, 947, 16, 2395, 67, 2188, 4672, 3536, 1183, 67, 542, 67, 12542, 67, 2188, 12, 947, 16, 2395, 67, 2188, 13, 317, 5441, 67, 2188, 1326, 18, 3536,...
Not that calling any method (even inquiries) on a closed file is undefined. Implementations may raise IOError in this case.
Note that calling any method (even inquiries) on a closed file is undefined. Implementations may raise IOError in this case.
def __new__(cls, *args, **kwargs): return open(*args, **kwargs)
9a89e96f9f0c60d4032d888a38b6890f4e634ae6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/9a89e96f9f0c60d4032d888a38b6890f4e634ae6/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 327, 1696, 30857, 1968, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 327, 1696, 30857, 1968, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
document.body[j:j] = subst
document.body[end:end] = subst
def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return j = find_token(document.body, "</cell>", i) if j == -1: document.warning("Malformed LyX document: Could not find end of tabular cell.") i += 1 continue # don't set a box for longtables, only delete tabularvalignment # the alignment is 2 lines below \\begin_inset Tabular p = document.body[i + 2].find("islongtable") if p > -1: q = document.body[i + 2].find("tabularvalignment") if q > -1: document.body[i + 2] = document.body[i + 2][:q - 1] document.body[i + 2] = document.body[i + 2] + '>' i = i + 1 continue # no longtable tabularvalignment = 'c' # which valignment is specified? m = document.body[i + 2].find('tabularvalignment="top"') if m > -1: tabularvalignment = 't' m = document.body[i + 2].find('tabularvalignment="bottom"') if m > -1: tabularvalignment = 'b' # delete tabularvalignment q = document.body[i + 2].find("tabularvalignment") if q > -1: document.body[i + 2] = document.body[i + 2][:q - 1] document.body[i + 2] = document.body[i + 2] + '>' # don't add a box when centered if tabularvalignment == 'c': i = j continue subst = ['\\end_layout', '\\end_inset'] document.body[j:j] = subst # just inserts those lines subst = ['\\begin_inset Box Frameless', 'position "' + tabularvalignment +'"', 'hor_pos "c"', 'has_inner_box 1', 'inner_pos "c"', 'use_parbox 0', # we don't know the width, assume 50% 'width "50col%"', 'special "none"', 'height "1in"', 'height_special "totalheight"', 'status open', '', '\\begin_layout Plain Layout'] document.body[i:i] = subst # this just inserts the array at i i += len(subst) + 2 # adjust i to save a few cycles
838adc69aa367bef9c652dece25f82ca4e2bd989 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/838adc69aa367bef9c652dece25f82ca4e2bd989/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 842...
if not isinstance(inp, oofun): return np.cos(inp)
if not isinstance(inp, oofun): return np.sin(inp)
def sin(inp): if not isinstance(inp, oofun): return np.cos(inp) return oofun(np.sin, input = inp, d = lambda x: np.cos(x) if x.size == 1 else np.diag(np.cos(x)))
82222ded53b95e782077afb8a506a5f8b098999c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6196/82222ded53b95e782077afb8a506a5f8b098999c/overloads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5367, 12, 31647, 4672, 309, 486, 1549, 12, 31647, 16, 320, 792, 318, 4672, 327, 1130, 18, 21861, 12, 31647, 13, 327, 320, 792, 318, 12, 6782, 18, 21861, 16, 810, 273, 12789, 16, 302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5367, 12, 31647, 4672, 309, 486, 1549, 12, 31647, 16, 320, 792, 318, 4672, 327, 1130, 18, 21861, 12, 31647, 13, 327, 320, 792, 318, 12, 6782, 18, 21861, 16, 810, 273, 12789, 16, 302, ...
security.declareProtected(permissions.View,
security.declareProtected(CMFCorePermissions.View,
def toString(self): s = '%s: {' % self.__class__.__name__ for f in self.fields(): s = s + '%s,' % (f.toString()) s = s + '}' return s
67576cc5acaaf506c58ee3fea91da40c0a6516a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/67576cc5acaaf506c58ee3fea91da40c0a6516a2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1762, 12, 2890, 4672, 272, 273, 1995, 87, 30, 13666, 738, 365, 16186, 1106, 972, 16186, 529, 972, 364, 284, 316, 365, 18, 2821, 13332, 272, 273, 272, 397, 1995, 87, 11189, 738, 261, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1762, 12, 2890, 4672, 272, 273, 1995, 87, 30, 13666, 738, 365, 16186, 1106, 972, 16186, 529, 972, 364, 284, 316, 365, 18, 2821, 13332, 272, 273, 272, 397, 1995, 87, 11189, 738, 261, 74...
import thread thread.start_new_thread( self.saveConfig, ("",) )
self.saveConfig()
def on_btnSave_clicked(self): import thread thread.start_new_thread( self.saveConfig, ("",) )
a02305c57902605c5a446dc0fcb2d10b0d8fdba6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/765/a02305c57902605c5a446dc0fcb2d10b0d8fdba6/NextShowsConfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 11898, 4755, 67, 7475, 329, 12, 2890, 4672, 1930, 2650, 2650, 18, 1937, 67, 2704, 67, 5930, 12, 365, 18, 5688, 809, 16, 7566, 3113, 13, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 11898, 4755, 67, 7475, 329, 12, 2890, 4672, 1930, 2650, 2650, 18, 1937, 67, 2704, 67, 5930, 12, 365, 18, 5688, 809, 16, 7566, 3113, 13, 262, 2, -100, -100, -100, -100, -100, ...
def unique(s): """Return a list of the elements in s, but without duplicates. For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3], unique("abcabc") some permutation of ["a", "b", "c"], and unique(([1, 2], [2, 3], [1, 2])) some permutation of [[2, 3], [1, 2]]. For best speed, all sequence elements should be hashable. Then unique() will usually work in linear time. If not possible, the sequence elements should enjoy a total ordering, and if list(s).sort() doesn't raise TypeError it's assumed that they do enjoy a total ordering. Then unique() will usually work in O(N*log2(N)) time. If that's not possible either, the sequence elements must support equality-testing. Then unique() will usually work in quadratic time. """ n = len(s) if n == 0: return [] u = {} try: for x in s: u[x] = 1 except TypeError: del u else: return u.keys() try: t = list(s) t.sort() except TypeError: del t else: assert n > 0 last = t[0] lasti = i = 1 while i < n: if t[i] != last: t[lasti] = last = t[i] lasti += 1 i += 1 return t[:lasti] u = [] for x in s: if x not in u: u.append(x) return u
""" Contains some utilities methods. """
def unique(s): """Return a list of the elements in s, but without duplicates. For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3], unique("abcabc") some permutation of ["a", "b", "c"], and unique(([1, 2], [2, 3], [1, 2])) some permutation of [[2, 3], [1, 2]]. For best speed, all sequence elements should be hashable. Then unique() will usually work in linear time. If not possible, the sequence elements should enjoy a total ordering, and if list(s).sort() doesn't raise TypeError it's assumed that they do enjoy a total ordering. Then unique() will usually work in O(N*log2(N)) time. If that's not possible either, the sequence elements must support equality-testing. Then unique() will usually work in quadratic time. """ n = len(s) if n == 0: return [] # Try using a dict first, as that's the fastest and will usually # work. If it doesn't work, it will usually fail quickly, so it # usually doesn't cost much to *try* it. It requires that all the # sequence elements be hashable, and support equality comparison. u = {} try: for x in s: u[x] = 1 except TypeError: del u # move on to the next method else: return u.keys() # We can't hash all the elements. Second fastest is to sort, # which brings the equal elements together; then duplicates are # easy to weed out in a single pass. # NOTE: Python's list.sort() was designed to be efficient in the # presence of many duplicate elements. This isn't true of all # sort functions in all languages or libraries, so this approach # is more effective in Python than it may be elsewhere. try: t = list(s) t.sort() except TypeError: del t # move on to the next method else: assert n > 0 last = t[0] lasti = i = 1 while i < n: if t[i] != last: t[lasti] = last = t[i] lasti += 1 i += 1 return t[:lasti] # Brute force is all that's left. u = [] for x in s: if x not in u: u.append(x) return u
d3180417ec0e8ffc754f0c3e1acb7b24ab50b87c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/d3180417ec0e8ffc754f0c3e1acb7b24ab50b87c/utilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3089, 12, 87, 4672, 3536, 990, 279, 666, 434, 326, 2186, 316, 272, 16, 1496, 2887, 11211, 18, 225, 2457, 3454, 16, 3089, 3816, 21, 16, 22, 16, 23, 16, 21, 16, 22, 16, 23, 5717, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3089, 12, 87, 4672, 3536, 990, 279, 666, 434, 326, 2186, 316, 272, 16, 1496, 2887, 11211, 18, 225, 2457, 3454, 16, 3089, 3816, 21, 16, 22, 16, 23, 16, 21, 16, 22, 16, 23, 5717, 353...
return [(u, self.decode(father+id)+' : '+(father+id))]
return [(u, "".join([self.decode(s), ": ", s]))]
def _generate_edges(self, tree, father='', id=''): if father=='': u = 'root' else: u = father try: return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else [])
1b9c6cbddf459d54e7643b46fc74830b6a3ea80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b9c6cbddf459d54e7643b46fc74830b6a3ea80c/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 8746, 12, 2890, 16, 2151, 16, 284, 4806, 2218, 2187, 612, 2218, 11, 4672, 309, 284, 4806, 18920, 4278, 582, 273, 296, 3085, 11, 469, 30, 582, 273, 284, 4806, 775, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 8746, 12, 2890, 16, 2151, 16, 284, 4806, 2218, 2187, 612, 2218, 11, 4672, 309, 284, 4806, 18920, 4278, 582, 273, 296, 3085, 11, 469, 30, 582, 273, 284, 4806, 775, 30, ...
cursize = os.stat(local)[6]
def _downloadPackageList(self, polist, relpkgdir): """Cycle through the list of package objects and download them from their respective repos."""
33a28f0c0a787e0f78682d9326508316c781bbc7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/33a28f0c0a787e0f78682d9326508316c781bbc7/gather.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7813, 2261, 682, 12, 2890, 16, 2952, 376, 16, 1279, 10657, 1214, 4672, 3536, 13279, 3059, 326, 666, 434, 2181, 2184, 471, 4224, 2182, 628, 3675, 17613, 13686, 12123, 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, 0, 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, 7813, 2261, 682, 12, 2890, 16, 2952, 376, 16, 1279, 10657, 1214, 4672, 3536, 13279, 3059, 326, 666, 434, 2181, 2184, 471, 4224, 2182, 628, 3675, 17613, 13686, 12123, 2, -100, -100, ...
source = os.path.abspath('..')
source = os.path.abspath('.')
def main(prefix): python = sys.executable source = os.path.abspath('..') zine_source = join(source, 'zine') lib_dir = join(prefix, 'lib', 'zine') share_dir = join(prefix, 'share', 'zine') print 'Installing to ' + prefix print 'Using ' + python # create some folders for us silent(os.makedirs, join(lib_dir, 'zine')) silent(os.makedirs, share_dir) # copy the packages and modules into the zine package copy_folder(zine_source, join(lib_dir, 'zine'), recurse=False) for package in packages: copy_folder(join(zine_source, package), join(lib_dir, 'zine', package)) # copy the plugins over copy_folder(join(zine_source, 'plugins'), join(lib_dir, 'plugins')) # compile all files run([sys.executable, '-O', '-mcompileall', '-qf', join(lib_dir, 'zine'), join(lib_dir, 'plugins')]) # templates and shared data copy_folder(join(zine_source, 'shared'), join(share_dir, 'htdocs')) copy_folder(join(zine_source, 'templates'), join(share_dir, 'templates')) # copy the server files copy_servers(join(source, 'servers'), join(share_dir, 'servers'), lib_dir, python) # copy the scripts copy_scripts(join(source, 'scripts'), join(share_dir, 'scripts'), lib_dir) print 'All done.'
15dcf4124084c6287728e9693e19e179e4457b16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/15dcf4124084c6287728e9693e19e179e4457b16/_install-posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 3239, 4672, 5790, 273, 2589, 18, 17751, 1084, 273, 1140, 18, 803, 18, 5113, 803, 2668, 1093, 13, 998, 558, 67, 3168, 273, 1233, 12, 3168, 16, 296, 94, 558, 6134, 2561, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 3239, 4672, 5790, 273, 2589, 18, 17751, 1084, 273, 1140, 18, 803, 18, 5113, 803, 2668, 1093, 13, 998, 558, 67, 3168, 273, 1233, 12, 3168, 16, 296, 94, 558, 6134, 2561, 67, ...
l_hande.write(l_option + ' = ' + l_string + os.linesep)
l_handle.write(l_option + ' = ' + l_string + os.linesep)
def __save_configuration ( self, p_level, p_filename ):
8dcaac8444043e7b7d0f33eb81492d298a4da71d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2506/8dcaac8444043e7b7d0f33eb81492d298a4da71d/configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5688, 67, 7025, 261, 365, 16, 293, 67, 2815, 16, 293, 67, 3459, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5688, 67, 7025, 261, 365, 16, 293, 67, 2815, 16, 293, 67, 3459, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
f.write("plot '%s' using 1:%d title \"%s\" with lines lt 2,\\\n"%(self.traceFile,col,title)) f.write(" '%s' using 1:%d:(0.5) smooth acsplines title \"%s\" lt 3\n"%(self.traceFile,col,title))
f.write("plot '%s' using 1:%d title \"Data Points\" with lines lt 2,\\\n"%(self.traceFile,col)) f.write(" '%s' using 1:%d:(0.5) smooth acsplines title \"Average\" lt 3\n"%(self.traceFile,col))
def genPlot(self): """Generates GNUplot plotfile, then calls self.runGNUplot. """ col = self.plotCB.currentItem() + 2 # Column number to plot
34aa6119157abba76d5241a828c9e61803550708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/34aa6119157abba76d5241a828c9e61803550708/PlotTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 11532, 12, 2890, 4672, 3536, 6653, 611, 50, 57, 4032, 3207, 768, 16, 1508, 4097, 365, 18, 2681, 8318, 57, 4032, 18, 3536, 645, 273, 365, 18, 4032, 8876, 18, 2972, 1180, 1435, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 11532, 12, 2890, 4672, 3536, 6653, 611, 50, 57, 4032, 3207, 768, 16, 1508, 4097, 365, 18, 2681, 8318, 57, 4032, 18, 3536, 645, 273, 365, 18, 4032, 8876, 18, 2972, 1180, 1435, 397...
print cmd
def runCmd(cmd): if os.name == 'nt': cmd = cmd.replace('"', '') print cmd os.system(cmd) else: print cmd os.system(cmd)
dd3f9d5d0f57c81544f60d926ee6273ad1ba4a48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13711/dd3f9d5d0f57c81544f60d926ee6273ad1ba4a48/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 5931, 12, 4172, 4672, 309, 1140, 18, 529, 422, 296, 496, 4278, 1797, 273, 1797, 18, 2079, 22076, 2187, 28707, 1140, 18, 4299, 12, 4172, 13, 469, 30, 1140, 18, 4299, 12, 4172, 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, 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, 5931, 12, 4172, 4672, 309, 1140, 18, 529, 422, 296, 496, 4278, 1797, 273, 1797, 18, 2079, 22076, 2187, 28707, 1140, 18, 4299, 12, 4172, 13, 469, 30, 1140, 18, 4299, 12, 4172, 13,...
glRotatef(self.lasty - self.y, 1.0, 0.0, 0.0); glRotatef(self.lastx - self.x, 0.0, 1.0, 0.0);
glRotatef((self.lasty - self.y)/100., 1.0, 0.0, 0.0); glRotatef((self.lastx - self.x)/100., 0.0, 1.0, 0.0);
def OnDraw(self): # clear color and depth buffers glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
d58a80fae0ea22e2012b17953b6d9deb37f4660b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d58a80fae0ea22e2012b17953b6d9deb37f4660b/wxGLCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6493, 12, 2890, 4672, 468, 2424, 2036, 471, 3598, 9664, 5118, 9094, 12, 11261, 67, 10989, 67, 11302, 67, 15650, 571, 10252, 67, 27479, 67, 11302, 67, 15650, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6493, 12, 2890, 4672, 468, 2424, 2036, 471, 3598, 9664, 5118, 9094, 12, 11261, 67, 10989, 67, 11302, 67, 15650, 571, 10252, 67, 27479, 67, 11302, 67, 15650, 1769, 2, -100, -100, -1...
chooser.set_current_folder(os.path.dirname(self.quiz_file_path))
chooser.set_current_folder( os.path.abspath(os.path.dirname(self.quiz_file_path)))
def on_open1_activate(self, widget): "Creates an Open-File-Dialog, which selects a new Quiz" chooser = gtk.FileChooserDialog("Open Quiz", None, gtk.FILE_CHOOSER_ACTION_OPEN, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) chooser.set_current_folder(os.path.dirname(self.quiz_file_path)) response = chooser.run() if response == gtk.RESPONSE_OK: self.quiz_filer_list = [Quiz_Filer(chooser.get_filename())] self.switch_quiz(self.quiz_filer_list[0]) chooser.destroy()
7f1b8be4829ef0e83b0fa177ff949055ed059c94 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2313/7f1b8be4829ef0e83b0fa177ff949055ed059c94/quizdrill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3190, 21, 67, 10014, 12, 2890, 16, 3604, 4672, 315, 2729, 392, 3502, 17, 812, 17, 6353, 16, 1492, 19770, 279, 394, 4783, 452, 6, 5011, 13164, 273, 22718, 18, 812, 17324, 6353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3190, 21, 67, 10014, 12, 2890, 16, 3604, 4672, 315, 2729, 392, 3502, 17, 812, 17, 6353, 16, 1492, 19770, 279, 394, 4783, 452, 6, 5011, 13164, 273, 22718, 18, 812, 17324, 6353,...
headString = "%s %s" % (headString,field.ljust(fieldWidths[field]+5))
headString = "%s %s" % ( headString, field.ljust( fieldWidths[field] + 5 ) )
def _printFormattedDictList(self,dictList,fields,uniqueField,orderBy): """ Will print ordered the supplied field of a list of dictionaries """ orderDict = {} fieldWidths = {} dictFields = {} for dict in dictList: for field in fields: fieldValue = dict[field] if not fieldWidths.has_key(field): fieldWidths[field] = len(str(field)) if len(str(fieldValue)) > fieldWidths[field]: fieldWidths[field] = len(str(fieldValue)) orderValue = dict[orderBy] if not orderDict.has_key(orderValue): orderDict[orderValue] = [] orderDict[orderValue].append(dict[uniqueField]) dictFields[dict[uniqueField]] = dict headString = "%s" % fields[0].ljust(fieldWidths[fields[0]]+5) for field in fields[1:]: headString = "%s %s" % (headString,field.ljust(fieldWidths[field]+5)) print headString for orderValue in sortList(orderDict.keys()): uniqueFields = orderDict[orderValue] for uniqueField in sortList(uniqueFields): dict = dictFields[uniqueField] outStr = "%s" % str(dict[fields[0]]).ljust(fieldWidths[fields[0]]+5) for field in fields[1:]: outStr = "%s %s" % (outStr,str(dict[field]).ljust(fieldWidths[field]+5)) print outStr
c249e4a99cd4c3c7637f79674add9f0aa1a56bea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c249e4a99cd4c3c7637f79674add9f0aa1a56bea/API.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 18298, 5014, 682, 12, 2890, 16, 1576, 682, 16, 2821, 16, 6270, 974, 16, 26323, 4672, 3536, 9980, 1172, 5901, 326, 4580, 652, 434, 279, 666, 434, 16176, 3536, 1353, 5014, 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, 389, 1188, 18298, 5014, 682, 12, 2890, 16, 1576, 682, 16, 2821, 16, 6270, 974, 16, 26323, 4672, 3536, 9980, 1172, 5901, 326, 4580, 652, 434, 279, 666, 434, 16176, 3536, 1353, 5014, 273, ...
- list: the lines of the article's body""" return self.artcmd('BODY ' + id)
- list: the lines of the article's body or an empty list if fileHandle was used""" return self.artcmd('BODY ' + id, fileHandle)
def body(self, id): """Process a BODY command. Argument: - id: article number or message id Returns: - resp: server response if successful - nr: article number - id: message id - list: the lines of the article's body"""
d1d584f4e820dc893175cdde74b901b6808ed3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d1d584f4e820dc893175cdde74b901b6808ed3ab/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 12, 2890, 16, 612, 4672, 3536, 2227, 279, 30580, 1296, 18, 225, 5067, 30, 300, 612, 30, 7559, 1300, 578, 883, 612, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 300, 9884, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 12, 2890, 16, 612, 4672, 3536, 2227, 279, 30580, 1296, 18, 225, 5067, 30, 300, 612, 30, 7559, 1300, 578, 883, 612, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 300, 9884, 30, ...
master_dict['desc'] = {'Partner Name': _to_unicode(self, part.name), 'Partner Code': str(part.ref or '') , \ 'Type:': type, 'Partner Address': _to_unicode(self, address), 'Turnover of partner:':str(res[part.id]), \ 'Main company': str(part.parent_id and part.parent_id.name), 'Credit Limit': str(part.credit_limit or ''), \ 'Number of customer invoice': str(number_customer or 0 ), 'Number of supplier invoice': str(number_supplier or 0) ,\ 'Total Receivable': str(part.credit), 'Total Payable': str(part.debit or ''), 'Website': str(part.website or '')}
master_dict['desc'] = {' Partner Name ': _to_unicode(self, part.name), ' Partner Code ': str(part.ref or '') , \ ' Type: ': type, ' Partner Address ': _to_unicode(self, address), ' Turnover of partner: ':str(res[part.id]), \ ' Main company ': str(part.parent_id and part.parent_id.name), ' Credit Limit ': str(part.credit_limit or ''), \ ' Number of customer invoice ': str(number_customer or 0 ), ' Number of supplier invoice ': str(number_supplier or 0) ,\ ' Total Receivable ': str(part.credit), ' Total Payable ': str(part.debit or ''), ' Website ': str(part.website or '')}
def get_kml(self, cr, uid, context={}): res = {} res_inv = {} res_cus = {} address = ' ' coordinates = [] addresslist = [] country_list = [] coordinates_text = ' ' number_customer=0 number_supplier=0 colors = ['9f8080ff', '9f0000ff'] partner_obj = self.pool.get('res.partner') address_obj= self.pool.get('res.partner.address') partner_ids = partner_obj.search(cr, uid, []) partners = partner_obj.browse(cr, uid, partner_ids) for part in partners: if part.address and part.address[0].country_id and part.address[0].country_id.name: if not string.upper(part.address[0].country_id.name) in country_list: cntry = string.upper(str(part.address[0].country_id.name)) country_name = '' for char in cntry: if char == '&': country_name += 'AND' else: country_name += char country_list.append(country_name) map(lambda x:res.setdefault(x, 0.0), country_list) cr.execute("select sum(l.debit-l.credit), c.name from account_move_line l, res_country c, res_partner_address a, account_account act where l.partner_id = a.partner_id and c.id=a.country_id and l.account_id = act.id and act.type = 'receivable' group by c.name") res_partner = cr.fetchall() list_to = [] for part in res_partner: if part[1]: res[string.upper(part[1])] = part[0] list_to.append(part[0])
643b7880e24c7e5a791a8f6c87c9a96d0be006c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/643b7880e24c7e5a791a8f6c87c9a96d0be006c8/google_earth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 79, 781, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 400, 273, 2618, 400, 67, 5768, 273, 2618, 400, 67, 71, 407, 273, 2618, 1758, 273, 296, 296, 5513, 273, 5378, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 79, 781, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 400, 273, 2618, 400, 67, 5768, 273, 2618, 400, 67, 71, 407, 273, 2618, 1758, 273, 296, 296, 5513, 273, 5378, 175...
id = u"note_tree_area_holder",
H4( u"recent notes", id = u"recent_notes_area_title", ), self.make_tree( [ self.make_item( title = note.title, link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ), link_class = u"note_tree_link", has_children = False, ) for note in []], ), id = u"recent_notes_area_holder",
def __init__( self, toolbar, notebook, root_notes, total_notes_count ): Div.__init__( self, toolbar, Div( H4( u"notes", Span( Span( total_notes_count, id = u"total_notes_count" ), u"total", class_ = u"small_text link_area_item", ), id = u"note_tree_area_title", ), self.make_tree( [ self.make_item( title = note.title, link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ), link_class = u"note_tree_link", has_children = ( notebook.name != u"trash" ) and self.LINK_PATTERN.search( note.contents ) or False, root_note_id = note.object_id, ) for note in root_notes ], tree_id = "note_tree_root_table", ), id = u"note_tree_area_holder", ), Span( id = "tree_arrow_hover_preload" ), Span( id = "tree_arrow_down_preload" ), Span( id = "tree_arrow_down_hover_preload" ), id = u"note_tree_area", )
efd9755547e875a16e39829232b997edd0c59ddc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/efd9755547e875a16e39829232b997edd0c59ddc/Note_tree_area.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 12748, 16, 14718, 16, 1365, 67, 12903, 16, 2078, 67, 12903, 67, 1883, 262, 30, 21411, 16186, 2738, 972, 12, 365, 16, 12748, 16, 21411, 12, 670, 24, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 12748, 16, 14718, 16, 1365, 67, 12903, 16, 2078, 67, 12903, 67, 1883, 262, 30, 21411, 16186, 2738, 972, 12, 365, 16, 12748, 16, 21411, 12, 670, 24, 12, ...
self.panimated = fl_create_animated_cursor(curs, 200)
self.create_other_cursors()
def __init__(self, lsysargv, sysarg):
18855aab7d765a934a842ac49275fb43c77d4d61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2429/18855aab7d765a934a842ac49275fb43c77d4d61/cursor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7180, 1900, 19485, 16, 2589, 3175, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7180, 1900, 19485, 16, 2589, 3175, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
'&lt;/html&gt;&lt;/body&gt;&lt;/div&gt;&lt;/pre&gt;')
'&lt;/html&gt;&lt;/body&gt;&lt;/pre&gt;')
def test_forbidden_formatting_tags(self): """htmlutils - washing of tags altering formatting of a page (e.g. </html>)""" test_str = """</html></body></div></pre>""" self.assertEqual(self.washer.wash(html_buffer=test_str), '') self.assertEqual(self.washer.wash(html_buffer=test_str, render_unallowed_tags=True), '&lt;/html&gt;&lt;/body&gt;&lt;/div&gt;&lt;/pre&gt;')
48af0b1ff9eceb0badb04af7fb0377d4a32fe7fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/48af0b1ff9eceb0badb04af7fb0377d4a32fe7fb/htmlutils_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1884, 9215, 67, 2139, 1787, 67, 4156, 12, 2890, 4672, 3536, 2620, 5471, 300, 341, 961, 310, 434, 2342, 10182, 310, 10407, 434, 279, 1363, 261, 73, 18, 75, 18, 7765, 2620, 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, 1842, 67, 1884, 9215, 67, 2139, 1787, 67, 4156, 12, 2890, 4672, 3536, 2620, 5471, 300, 341, 961, 310, 434, 2342, 10182, 310, 10407, 434, 279, 1363, 261, 73, 18, 75, 18, 7765, 2620, 34,...
environment = PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin; YOUPI_USER_DATA=%s
environment = PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/opt/condor/bin; YOUPI_USER_DATA=%s
def condor_ingestion(request): """ Callback for running a Condor ingestion. """ # HOST_DOMAIN try: path = request.POST['Path'] ingestionId = request.POST['IngestionId'] machine = request.POST['Host'] + HOST_DOMAIN email = request.POST.get('ReportEmail', 'monnerville@iap.fr') checkAllowSeveralTimes = request.POST.get('CheckAllowSeveralTimes', 'no') checkSkipVerify = request.POST.get('CheckSkipVerify', 'no') checkQSOStatus = request.POST.get('CheckQSOStatus', 'no') except KeyError, e: raise HttpResponseServerError('Bad parameters') # # Dictionnary that will be serialized with marshal module and passed # to the script as a string (argument 1). Note that the result of the serialization # is base64 encoded to avoid bad caracter handling. The condor ingestion script # will then de-serialize its first argument to access the data # #script_args = { 'path' : request.POST.get('path', NULLSTRING), script_args = { 'path' : path, 'email' : email, 'user_id' : request.user.id, 'ingestion_id' : ingestionId, 'allow_several_ingestions' : checkAllowSeveralTimes, 'skip_fitsverify' : checkSkipVerify, 'skip_qso_status' : checkQSOStatus, 'host' : machine } # Content of YOUPI_USER_DATA env variable passed to Condor userData = { 'Descr' : str("Ingestion (%s) of FITS images " % ingestionId), 'UserID' : str(request.user.id)} submit_file_path = os.path.join(TRUNK, 'terapix') f = open(CONDORFILE + '_' + ingestionId, 'w') f.write("""
08e77067dd177b699676d0d1381eb2114a5bf235 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/08e77067dd177b699676d0d1381eb2114a5bf235/condor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6941, 280, 67, 310, 6868, 12, 2293, 4672, 3536, 8444, 364, 3549, 279, 735, 72, 280, 12152, 6868, 18, 3536, 225, 468, 21425, 67, 18192, 775, 30, 589, 273, 590, 18, 3798, 3292, 743, 3546...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6941, 280, 67, 310, 6868, 12, 2293, 4672, 3536, 8444, 364, 3549, 279, 735, 72, 280, 12152, 6868, 18, 3536, 225, 468, 21425, 67, 18192, 775, 30, 589, 273, 590, 18, 3798, 3292, 743, 3546...
self.canvasitems[1] = self.gcomprisBoard.canvas.root().add(
self.sunitem = self.rootitem.add(
def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=1 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1
690f8ac7446757307ab013b8fb8fe772b4ea0d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/690f8ac7446757307ab013b8fb8fe772b4ea0d9d/watercycle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
else:
print 'Using sleeved card size, %.2fcm x %.2fcm' % (dominionCardWidth/cm,dominionCardHeight/cm) elif size == 'NORMAL':
def drawCards(c,cards): cards = split(cards,numTabsVertical*numTabsHorizontal) for pageCards in cards: print 'pageCards:',pageCards for i,card in enumerate(pageCards): #print card x = i % numTabsHorizontal y = i / numTabsHorizontal c.saveState() drawTab(card,x,numTabsVertical-1-y) c.restoreState() c.showPage() for i,card in enumerate(pageCards): #print card x = (numTabsHorizontal-1-i) % numTabsHorizontal y = i / numTabsHorizontal c.saveState() drawTab(card,x,numTabsVertical-1-y,useExtra=True) c.restoreState() c.showPage()
316cd513858e61c8028e6193b26fa146d29ceb73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4124/316cd513858e61c8028e6193b26fa146d29ceb73/dominion_tabs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 30492, 12, 71, 16, 3327, 87, 4672, 18122, 273, 1416, 12, 3327, 87, 16, 2107, 17348, 15704, 14, 2107, 17348, 14457, 13, 364, 1363, 30492, 316, 18122, 30, 1172, 296, 2433, 30492, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 30492, 12, 71, 16, 3327, 87, 4672, 18122, 273, 1416, 12, 3327, 87, 16, 2107, 17348, 15704, 14, 2107, 17348, 14457, 13, 364, 1363, 30492, 316, 18122, 30, 1172, 296, 2433, 30492, 30,...
def group_by_id(self, id): """Returns a group object based on its id""" params = {'id': id}
def group_by_id(self, groupId): '''Returns a group object based on its id''' params = {'id': int(groupId)}
def group_by_id(self, id): """Returns a group object based on its id""" params = {'id': id} request = self.send_request('json/group_by_id', auth=True, input=params) if request['success']: return request['group'] else: return dict()
5dcaa033d0134f79f4c175eee4ebed39f9279f6f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/5dcaa033d0134f79f4c175eee4ebed39f9279f6f/fas2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 67, 1637, 67, 350, 12, 2890, 16, 6612, 4672, 9163, 1356, 279, 1041, 733, 2511, 603, 2097, 612, 26418, 859, 273, 13666, 350, 4278, 509, 12, 27547, 16869, 590, 273, 365, 18, 4661, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1041, 67, 1637, 67, 350, 12, 2890, 16, 6612, 4672, 9163, 1356, 279, 1041, 733, 2511, 603, 2097, 612, 26418, 859, 273, 13666, 350, 4278, 509, 12, 27547, 16869, 590, 273, 365, 18, 4661, ...
p_code = byref(create_string_buffer(code))
code_buf = create_string_buffer(code) p_code = byref(code_buf)
def DecomposeGenerator(codeOffset, code, dt): """ @type codeOffset: long @param codeOffset: Memory address where the code is located. This is B{not} an offset into the code! It's the actual memory address where it was read from. @type code: str @param code: Code to disassemble. @type dt: int @param dt: Disassembly type. Can be one of the following: * L{Decode16Bits}: 80286 decoding * L{Decode32Bits}: IA-32 decoding * L{Decode64Bits}: AMD64 decoding @rtype: generator of TODO @return: Generator of TODO @raise ValueError: Invalid arguments. """ if not code: return if not codeOffset: codeOffset = 0 if dt not in (Decode16Bits, Decode32Bits, Decode64Bits): raise ValueError("Invalid decode type value: %r" % (dt,)) codeLen = len(code) p_code = byref(create_string_buffer(code)) result = (_DInst * MAX_INSTRUCTIONS)() instruction_off = 0 while codeLen > 0: usedInstructionsCount = c_uint(0) codeInfo = _CodeInfo(_OffsetType(codeOffset), _OffsetType(0), cast(p_code, c_char_p), codeLen, dt, 0) status = internal_decompose(byref(codeInfo), byref(result), MAX_INSTRUCTIONS, byref(usedInstructionsCount)) if status == DECRES_INPUTERR: raise ValueError("Invalid arguments passed to distorm_decode()") used = usedInstructionsCount.value if not used: break delta = 0 for index in xrange(used): di = result[index] yield Instruction(di, code[instruction_off : instruction_off + di.size], dt) delta += di.size instruction_off += di.size if delta <= 0: break codeOffset = codeOffset + delta p_code = byref(create_string_buffer(code), instruction_off) codeLen = codeLen - delta
3f82ebcac111500fb94ed82f56165397b9844120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4918/3f82ebcac111500fb94ed82f56165397b9844120/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26824, 4150, 3908, 12, 710, 2335, 16, 981, 16, 3681, 4672, 3536, 632, 723, 225, 981, 2335, 30, 1525, 632, 891, 981, 2335, 30, 9251, 1758, 1625, 326, 981, 353, 13801, 18, 1220, 353, 605...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26824, 4150, 3908, 12, 710, 2335, 16, 981, 16, 3681, 4672, 3536, 632, 723, 225, 981, 2335, 30, 1525, 632, 891, 981, 2335, 30, 9251, 1758, 1625, 326, 981, 353, 13801, 18, 1220, 353, 605...
genpluginproject("all", "_Res", outputdir="::Lib:Carbon")
genpluginproject("all", "_Res", stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload", libraryflags=None, stdlibraryflags=None, prefixname=None): if architecture == "all": # For the time being we generate two project files. Not as nice as # a single multitarget project, but easier to implement for now. genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols, outputdir) genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols, outputdir) return templatename = "template-%s" % architecture targetname = "%s.%s" % (module, architecture) dllname = "%s.%s.slb" % (module, architecture) if not project: if architecture != "ppc": project = "%s.%s.mcp"%(module, architecture) else: project = "%s.mcp"%module if not projectdir: projectdir = PROJECTDIR if not sources: sources = [module + 'module.c'] if not sourcedirs: for moduledir in MODULEDIRS: if '%' in moduledir: # For historical reasons an initial _ in the modulename # is not reflected in the folder name if module[0] == '_': modulewithout_ = module[1:] else: modulewithout_ = module moduledir = moduledir % modulewithout_ fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) if os.path.exists(fn): moduledir, sourcefile = os.path.split(fn) sourcedirs = [relpath(projectdir, moduledir)] sources[0] = sourcefile break else: print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) sourcedirs = [] if prefixname: pass elif architecture == "carbon": prefixname = "mwerks_carbonplugin_config.h" else: prefixname = "mwerks_plugin_config.h" dict = { "sysprefix" : relpath(projectdir, sys.prefix), "sources" : sources, "extrasearchdirs" : sourcedirs + extradirs, "libraries": libraries, "mac_outputdir" : outputdir, "extraexportsymbols" : extraexportsymbols, "mac_targetname" : targetname, "mac_dllname" : dllname, "prefixname" : prefixname, } if libraryflags: dict['libraryflags'] = libraryflags if stdlibraryflags: dict['stdlibraryflags'] = stdlibraryflags mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, force=FORCEREBUILD, templatename=templatename)
736be72f8793ccab6608ce1c427e22d7e9182b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/736be72f8793ccab6608ce1c427e22d7e9182b29/genpluginprojects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487,...
"Attempt to read ZIP archive that was already closed"
"Attempt to read ZIP archive that was already closed"
def read(self, name): "Return file bytes (as a string) for name" if self.mode not in ("r", "a"): raise RuntimeError, 'read() requires mode "r" or "a"' if not self.fp: raise RuntimeError, \ "Attempt to read ZIP archive that was already closed" zinfo = self.getinfo(name) filepos = self.fp.tell() self.fp.seek(zinfo.file_offset, 0) bytes = self.fp.read(zinfo.compress_size) self.fp.seek(filepos, 0) if zinfo.compress_type == ZIP_STORED: pass elif zinfo.compress_type == ZIP_DEFLATED: if not zlib: raise RuntimeError, \ "De-compression requires the (missing) zlib module" # zlib compress/decompress code by Jeremy Hylton of CNRI dc = zlib.decompressobj(-15) bytes = dc.decompress(bytes) # need to feed in unused pad byte so that zlib won't choke ex = dc.decompress('Z') + dc.flush() if ex: bytes = bytes + ex else: raise BadZipfile, \ "Unsupported compression method %d for file %s" % \ (zinfo.compress_type, name) crc = binascii.crc32(bytes) if crc != zinfo.CRC: raise BadZipfile, "Bad CRC-32 for file %s" % name return bytes
d6c8480588120e48fba9de106754eef460bdf549 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6c8480588120e48fba9de106754eef460bdf549/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 508, 4672, 315, 990, 585, 1731, 261, 345, 279, 533, 13, 364, 508, 6, 309, 365, 18, 3188, 486, 316, 7566, 86, 3113, 315, 69, 6, 4672, 1002, 7265, 16, 296, 896, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 508, 4672, 315, 990, 585, 1731, 261, 345, 279, 533, 13, 364, 508, 6, 309, 365, 18, 3188, 486, 316, 7566, 86, 3113, 315, 69, 6, 4672, 1002, 7265, 16, 296, 896, 14...