rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, prefix, o3djs):
def RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, prefix, o3djs, baseURL):
def RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, prefix, o3djs): """Executes the JSDocToolkit.""" list_filename = MakePath('../scons-out/docs/obj/doclist.conf') f = open(list_filename, 'w') f.write('{\nD:{\n') f.write('prefix: "%s",\n' % prefix) f.write('o3djs: "%s",\n' % o3djs) f.write('htmlOutDir: "%s",...
57366dfa28d4548bfa0f89fbfa6f61c959f50a28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/57366dfa28d4548bfa0f89fbfa6f61c959f50a28/build_docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 16, 1633, 16, 320, 23, 72, 2924, 16, 17480, 4672, 3536, 9763, 326, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 16, 1633, 16, 320, 23, 72, 2924, 16, 17480, 4672, 3536, 9763, 326, 6...
nprocopt='-np ' + nproc
nprocopt='-np ' + str(nproc)
def mpi_run(DEBUGON, nproc, cmd, nodes, logfile): 'Execute commands in parallel using LAM/MPI.' from os import access,F_OK found = 0 uname = os.uname() nodelen = len(string.split(nodes,',')) if nproc == 'C': nprocopt='C' else: nprocopt='-np ' + nproc try: if DEBUGON: printlog('o2tf.mpi_run: MPIRUN = %s' % config.MPIRUN...
4ce6ba0391d1695e76190d10aafcbf72c11acdf5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1915/4ce6ba0391d1695e76190d10aafcbf72c11acdf5/o2tf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 77, 67, 2681, 12, 9394, 673, 16, 290, 9381, 16, 1797, 16, 2199, 16, 15204, 4672, 296, 5289, 4364, 316, 7230, 1450, 511, 2192, 19, 49, 1102, 1093, 628, 1140, 1930, 2006, 16, 42, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6749, 77, 67, 2681, 12, 9394, 673, 16, 290, 9381, 16, 1797, 16, 2199, 16, 15204, 4672, 296, 5289, 4364, 316, 7230, 1450, 511, 2192, 19, 49, 1102, 1093, 628, 1140, 1930, 2006, 16, 42, ...
verb = item.name noun = menu.name
verb = unicode(item.name, 'UTF-8') noun = unicode(menu.name, 'UTF-8')
def generateUnhelpfulHelp(appName): try: app = root.application(appName) except SearchError: run(appName) print '<?xml version="1.0"?>' print '<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">' print '<article>' taggedAppName = '<application>%s<...
d24d70c5da5bade6842d9a7b40f56bcefda90a90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10139/d24d70c5da5bade6842d9a7b40f56bcefda90a90/no-help-at-all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 984, 5201, 2706, 6696, 12, 2910, 461, 4672, 775, 30, 595, 273, 1365, 18, 3685, 12, 2910, 461, 13, 1335, 5167, 668, 30, 1086, 12, 2910, 461, 13, 1172, 16617, 2902, 1177, 1546, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 984, 5201, 2706, 6696, 12, 2910, 461, 4672, 775, 30, 595, 273, 1365, 18, 3685, 12, 2910, 461, 13, 1335, 5167, 668, 30, 1086, 12, 2910, 461, 13, 1172, 16617, 2902, 1177, 1546, 21,...
self.progressbar = Progressbar(full=full, width=self.width-20)
self.progressbar = Progressbar(full=full, width=self.content.width-20)
def __init__(self, text, x=None, y=None, width=0, height=0, icon=None, vertical_expansion=1, text_prop=None, full=0, parent='osd'):
e357561c6d8f58324b0b47b22d4f13b46ede9d8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e357561c6d8f58324b0b47b22d4f13b46ede9d8c/ProgressBox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 977, 16, 619, 33, 7036, 16, 677, 33, 7036, 16, 1835, 33, 20, 16, 2072, 33, 20, 16, 4126, 33, 7036, 16, 9768, 67, 2749, 12162, 33, 21, 16, 977, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 977, 16, 619, 33, 7036, 16, 677, 33, 7036, 16, 1835, 33, 20, 16, 2072, 33, 20, 16, 4126, 33, 7036, 16, 9768, 67, 2749, 12162, 33, 21, 16, 977, 67, ...
if req:
if req and not req.sent_headers:
def communicate(self): """Read each request and respond appropriately.""" try: while True: # (re)set req to None so that if something goes wrong in # the RequestHandlerClass constructor, the error doesn't # get written to the previous request. req = None req = self.RequestHandlerClass(self.wfile, self.environ, self.wsg...
f3c2b678e65b5cc0bf721e52eedaa6b13a3eca4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/f3c2b678e65b5cc0bf721e52eedaa6b13a3eca4b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15541, 12, 2890, 4672, 3536, 1994, 1517, 590, 471, 6846, 21419, 12123, 775, 30, 1323, 1053, 30, 468, 261, 266, 13, 542, 1111, 358, 599, 1427, 716, 309, 5943, 13998, 7194, 316, 468, 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, 15541, 12, 2890, 4672, 3536, 1994, 1517, 590, 471, 6846, 21419, 12123, 775, 30, 1323, 1053, 30, 468, 261, 266, 13, 542, 1111, 358, 599, 1427, 716, 309, 5943, 13998, 7194, 316, 468, 326, ...
self.model.main_html.append((r, r + '<br>')[i < len(text_data) - 1])
self.model.main_html.append((r, r + '<br>')[i < len(html_data) - 1])
def parse(self, data): """ Parse data and build the Model object. """
959fbca1a72d77a5deae168ae8cdee95a8985718 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8560/959fbca1a72d77a5deae168ae8cdee95a8985718/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 501, 4672, 3536, 2884, 501, 471, 1361, 326, 3164, 733, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1109, 12, 2890, 16, 501, 4672, 3536, 2884, 501, 471, 1361, 326, 3164, 733, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (abs(fp) <= 0.1*delta) or \
if (numpy.abs(fp) <= 0.1*delta) or \
def lmpar(self, r, ipvt, diag, qtb, delta, x, sdiag, par=None):
14558c711c4693ee25ced2a48d6eaf300224bc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/14558c711c4693ee25ced2a48d6eaf300224bc75/mpfit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14966, 1065, 12, 2890, 16, 436, 16, 9205, 88, 16, 6643, 16, 1043, 18587, 16, 3622, 16, 619, 16, 272, 12264, 16, 779, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14966, 1065, 12, 2890, 16, 436, 16, 9205, 88, 16, 6643, 16, 1043, 18587, 16, 3622, 16, 619, 16, 272, 12264, 16, 779, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
class StringItem:
class StringItem(object):
def __setattr__(self, name, value): #print "cpu.set(%s)"%name return idc.SetRegValue(value, name)
86a1318ede6d57d42d9f84e366b6e6c2a7f4aac0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/86a1318ede6d57d42d9f84e366b6e6c2a7f4aac0/idautils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 468, 1188, 315, 11447, 18, 542, 9275, 87, 2225, 9, 529, 327, 612, 71, 18, 694, 1617, 620, 12, 1132, 16, 508, 13, 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, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 468, 1188, 315, 11447, 18, 542, 9275, 87, 2225, 9, 529, 327, 612, 71, 18, 694, 1617, 620, 12, 1132, 16, 508, 13, 2, -100, -1...
aeClass = getAEClass(typeName, readOnly, format)
aeClass = getAEClass(typeName, cardinality, readOnly, format)
def getInstance (typeName, item, attributeName, readOnly, presentationStyle): """ Get a new unshared instance of the Attribute Editor for this type (and optionally, format). These unshared instances are used in the detail view; we don't cache them. @param typeName: The name of the type of the attribute to be edited, ...
82c3942c394e9e18bd17af58344195ec12fe1d4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/82c3942c394e9e18bd17af58344195ec12fe1d4c/AttributeEditors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3694, 261, 723, 461, 16, 761, 16, 9734, 16, 15075, 16, 22525, 2885, 4672, 3536, 968, 279, 394, 640, 11574, 791, 434, 326, 3601, 18451, 364, 333, 618, 261, 464, 8771, 16, 740, 2934, 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, 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, 3694, 261, 723, 461, 16, 761, 16, 9734, 16, 15075, 16, 22525, 2885, 4672, 3536, 968, 279, 394, 640, 11574, 791, 434, 326, 3601, 18451, 364, 333, 618, 261, 464, 8771, 16, 740, 2934, 225...
assert (len(user.emailAddresses) > 0), \
self.fromEmailAddresses = user.get_emailAddresses() assert (len(self.fromEmailAddresses) > 0), \
def update(self): self.siteInfo = Products.GSContent.view.GSSiteInfo( self.context ) self.groupInfo = createObject('groupserver.GroupInfo', self.context)
e67c3ce9720a6b386d1b95690c9b5ed58cf08350 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6274/e67c3ce9720a6b386d1b95690c9b5ed58cf08350/postMessageContentProvider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 4256, 966, 273, 8094, 87, 18, 16113, 1350, 18, 1945, 18, 43, 1260, 1137, 966, 12, 365, 18, 2472, 262, 365, 18, 1655, 966, 273, 17109, 2668, 1655, 3567, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 4256, 966, 273, 8094, 87, 18, 16113, 1350, 18, 1945, 18, 43, 1260, 1137, 966, 12, 365, 18, 2472, 262, 365, 18, 1655, 966, 273, 17109, 2668, 1655, 3567, ...
orngScaleLinProjData.setData(self.graph, self.data)
self.graph.rescaleData()
def resetGraphData(self): orngScaleLinProjData.setData(self.graph, self.data) #self.graph.setData(self.data) self.updateGraph()
cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b/OWLinProj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 4137, 751, 12, 2890, 4672, 578, 3368, 5587, 48, 267, 626, 78, 751, 18, 542, 751, 12, 2890, 18, 4660, 16, 365, 18, 892, 13, 468, 2890, 18, 4660, 18, 542, 751, 12, 2890, 18, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 4137, 751, 12, 2890, 4672, 578, 3368, 5587, 48, 267, 626, 78, 751, 18, 542, 751, 12, 2890, 18, 4660, 16, 365, 18, 892, 13, 468, 2890, 18, 4660, 18, 542, 751, 12, 2890, 18, 89...
if address is not None: if address != request.get_environ("REMOTE_HTTPS_ADDR"): raise SessionError("Remote IP address does not match the " "IP address that created the session", session_id=sessid) else: session.__remote_https_address = request.get_environ("REMOTE_HTTPS_ADDR")
def get_session (self, request): """get_session(request : HTTPRequest) -> Session
365cdecd4696d76e5bed36445d15d1f5505338a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/365cdecd4696d76e5bed36445d15d1f5505338a9/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3184, 261, 2890, 16, 590, 4672, 3536, 588, 67, 3184, 12, 2293, 294, 25238, 13, 317, 3877, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3184, 261, 2890, 16, 590, 4672, 3536, 588, 67, 3184, 12, 2293, 294, 25238, 13, 317, 3877, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
from pypy.interpreter.typedef import GetSetProperty
from pypy.interpreter.typedef import GetSetProperty
94dda6abff9e3bc5d8852fa7df2be8f341dd64a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/94dda6abff9e3bc5d8852fa7df2be8f341dd64a4/fake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
default=self.default,
default=self.default, \
def set(self, instance, value, **kwargs): """ Assign input value to object. If mimetype is not specified, pass to processing method without one and add mimetype returned to kwargs. Assign kwargs to instance. """ if not kwargs.has_key('mimetype'): kwargs['mimetype'] = None
589c8a00edeed82af11646c142742440f2908f59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/589c8a00edeed82af11646c142742440f2908f59/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 791, 16, 460, 16, 2826, 4333, 4672, 3536, 12093, 810, 460, 358, 733, 18, 971, 12595, 353, 486, 1269, 16, 1342, 358, 4929, 707, 2887, 1245, 471, 527, 12595, 2106, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 791, 16, 460, 16, 2826, 4333, 4672, 3536, 12093, 810, 460, 358, 733, 18, 971, 12595, 353, 486, 1269, 16, 1342, 358, 4929, 707, 2887, 1245, 471, 527, 12595, 2106, 358...
config_files = os.environ['DOCUTILSCONFIG']
config_files = os.environ['DOCUTILSCONFIG'].split(os.pathsep)
def get_standard_config_files(self): """Return list of config files, from environment or standard.""" try: config_files = os.environ['DOCUTILSCONFIG'] except KeyError: config_files = self.standard_config_files return [os.path.expanduser(f) for f in config_files.split(os.pathsep) if f.strip()]
678707378566c832cd59e92abe9b820fd58c2fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/678707378566c832cd59e92abe9b820fd58c2fb8/frontend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10005, 67, 1425, 67, 2354, 12, 2890, 4672, 3536, 990, 666, 434, 642, 1390, 16, 628, 3330, 578, 4529, 12123, 775, 30, 642, 67, 2354, 273, 1140, 18, 28684, 3292, 19693, 1693, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10005, 67, 1425, 67, 2354, 12, 2890, 4672, 3536, 990, 666, 434, 642, 1390, 16, 628, 3330, 578, 4529, 12123, 775, 30, 642, 67, 2354, 273, 1140, 18, 28684, 3292, 19693, 1693, 26...
Return the ambient group related to self. EXAMPLES: An example involving the dihedral group on four elements,
Return the ambient group related to ``self``. EXAMPLES: An example involving the dihedral group on four elements,
def ambient_group(self): """ Return the ambient group related to self.
2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13232, 1979, 67, 1655, 12, 2890, 4672, 3536, 2000, 326, 13232, 1979, 1041, 3746, 358, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13232, 1979, 67, 1655, 12, 2890, 4672, 3536, 2000, 326, 13232, 1979, 1041, 3746, 358, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
mwe_field_by_name = self._master_mwes_and_fields_by_name
def dump_fields(self, fields=None, filename=None, inspect=None, format="binary"): """Dump the given field to a vtk file and launch Mayavi for visualisation, if required (useful for interactive work).""" if filename == None: filename = "%s-dump.vtk" % self.name
a90c403df6cf6d07ef39fbe63f3b5110918dac8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1485/a90c403df6cf6d07ef39fbe63f3b5110918dac8e/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 2821, 12, 2890, 16, 1466, 33, 7036, 16, 1544, 33, 7036, 16, 5334, 33, 7036, 16, 740, 1546, 8578, 6, 4672, 3536, 10628, 326, 864, 652, 358, 279, 13659, 585, 471, 8037, 16734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 67, 2821, 12, 2890, 16, 1466, 33, 7036, 16, 1544, 33, 7036, 16, 5334, 33, 7036, 16, 740, 1546, 8578, 6, 4672, 3536, 10628, 326, 864, 652, 358, 279, 13659, 585, 471, 8037, 16734, ...
process(fss.as_pathname())
process(fss.as_pathname(), config)
def main(): config = readconfig() if len(sys.argv) > 1: for file in sys.argv[1:]: if file[-3:] == '.nw': print "Processing", file process(file, config) else: print "Skipping", file else: fss, ok = macfs.PromptGetFile("Select .nw source file", "TEXT") if not ok: sys.exit(0) process(fss.as_pathname())
24ad536efd2df16be0b70e331446b693b987e1c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/24ad536efd2df16be0b70e331446b693b987e1c8/unweave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 642, 273, 855, 1425, 1435, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 364, 585, 316, 2589, 18, 19485, 63, 21, 30, 14542, 309, 585, 18919, 23, 26894, 422, 2418, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 642, 273, 855, 1425, 1435, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 364, 585, 316, 2589, 18, 19485, 63, 21, 30, 14542, 309, 585, 18919, 23, 26894, 422, 2418, 82, ...
while j < len(line) and isalphadigit_(line[j]):
while j < len(line) and not line[j] in '*/;:\\':
def wrap_num(i, line, is_real, num_start): zz = line[num_start:i] if is_real or '.' in zz: if zz[-1] == '.' and i < len(line) and line[i].isalpha(): # by popular demand -- this allows, e.g., 173.sqrt(). if '.' in zz[:-1]: O = "RealNumber('"; C="')." else: O = "Integer("; C = ")." zz = zz[:-1] else: O = "RealNumber('"; ...
ca5e7e8b2a54a101a7da17c7f8ccdf1413626ab2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ca5e7e8b2a54a101a7da17c7f8ccdf1413626ab2/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 2107, 12, 77, 16, 980, 16, 353, 67, 7688, 16, 818, 67, 1937, 4672, 11273, 273, 980, 63, 2107, 67, 1937, 30, 77, 65, 309, 353, 67, 7688, 578, 2611, 316, 11273, 30, 309, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 2107, 12, 77, 16, 980, 16, 353, 67, 7688, 16, 818, 67, 1937, 4672, 11273, 273, 980, 63, 2107, 67, 1937, 30, 77, 65, 309, 353, 67, 7688, 578, 2611, 316, 11273, 30, 309, 11...
raise osv.except_osv('Invalid action !', 'Cannot delete invoice(s) which are already opened or paid !')
raise osv.except_osv('Invalid action !', 'Cannot delete Voucher(s) which are already opened or paid !')
def unlink(self, cr, uid, ids, context={}): vouchers = self.read(cr, uid, ids, ['state']) unlink_ids = [] for t in vouchers: if t['state'] in ('draft', 'cancel'): unlink_ids.append(t['id']) else: raise osv.except_osv('Invalid action !', 'Cannot delete invoice(s) which are already opened or paid !') osv.osv.unlink(self,...
601ae1d14c923398d2a625dc45d4eb65d7b29865 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/601ae1d14c923398d2a625dc45d4eb65d7b29865/voucher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 331, 31952, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2019, 19486, 8255, 67, 2232, 273, 5378, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 331, 31952, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2019, 19486, 8255, 67, 2232, 273, 5378, 364,...
zinfo.external_attr = st[0] << 16L
zinfo.external_attr = (st[0] & 0xFFFF) << 16L
def write(self, filename, arcname=None, compress_type=None): """Put the bytes from filename into the archive under the name arcname.""" st = os.stat(filename) mtime = time.localtime(st.st_mtime) date_time = mtime[0:6] # Create ZipInfo instance to store file information if arcname is None: zinfo = ZipInfo(filename, date...
6e230fbf86a3d0c594c70fa84eccde94f106945f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6e230fbf86a3d0c594c70fa84eccde94f106945f/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 8028, 529, 33, 7036, 16, 8099, 67, 723, 33, 7036, 4672, 3536, 6426, 326, 1731, 628, 1544, 1368, 326, 5052, 3613, 326, 508, 8028, 529, 12123, 384, 273, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12, 2890, 16, 1544, 16, 8028, 529, 33, 7036, 16, 8099, 67, 723, 33, 7036, 4672, 3536, 6426, 326, 1731, 628, 1544, 1368, 326, 5052, 3613, 326, 508, 8028, 529, 12123, 384, 273, 114...
rospy.loginfo(p)
rospy.logdebug(p)
def pose_broadcaster(fromCRIO): pose_pub = rospy.Publisher('pose', Pose) while not rospy.is_shutdown(): p = Pose(x = fromCRIO.x, y = fromCRIO.y, theta = fromCRIO.heading, x_var = fromCRIO.x_var, y_var = fromCRIO.y_var, theta_var = fromCRIO.heading_var, x_vel = fromCRIO.x_vel, y_vel = fromCRIO.y_vel, theta_vel = fromCRI...
d502a59d063d4ed3cb7e0d7ad799fd21815ec569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14739/d502a59d063d4ed3cb7e0d7ad799fd21815ec569/pose_broadcaster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26948, 67, 15521, 23748, 12, 2080, 39, 2259, 51, 4672, 26948, 67, 10174, 273, 721, 30884, 18, 15960, 2668, 4150, 2187, 453, 2584, 13, 1323, 486, 721, 30884, 18, 291, 67, 15132, 13332, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26948, 67, 15521, 23748, 12, 2080, 39, 2259, 51, 4672, 26948, 67, 10174, 273, 721, 30884, 18, 15960, 2668, 4150, 2187, 453, 2584, 13, 1323, 486, 721, 30884, 18, 291, 67, 15132, 13332, 29...
def fix_makefile(makefile, m32): """Fix makefile for 64bit
def create_makefile64(makefile, m32): """Create and fix makefile for 64bit
def fix_makefile(makefile, m32): """Fix makefile for 64bit Replace 32 with 64bit directories """ if not os.path.isfile(m32): return with open(m32) as fin: with open(makefile, 'w') as fout: for line in fin: line = line.replace("=tmp32", "=tmp64") line = line.replace("=out32", "=out64") line = line.replace("=inc32", "=i...
62a8ee1a4ac688f82e2ec76672ae70f4ed006246 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/62a8ee1a4ac688f82e2ec76672ae70f4ed006246/build_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6540, 768, 1105, 12, 6540, 768, 16, 312, 1578, 4672, 3536, 1684, 471, 2917, 1221, 768, 364, 5178, 3682, 225, 6910, 3847, 598, 5178, 3682, 6402, 3536, 309, 486, 1140, 18, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6540, 768, 1105, 12, 6540, 768, 16, 312, 1578, 4672, 3536, 1684, 471, 2917, 1221, 768, 364, 5178, 3682, 225, 6910, 3847, 598, 5178, 3682, 6402, 3536, 309, 486, 1140, 18, 803, ...
month_name = _localized_name('%B') month_abbr = _localized_name('%b')
month_name = _localized_name('%B', 12) month_abbr = _localized_name('%b', 12)
def __getitem__(self, item): return strftime(self.format, (item,)*9).capitalize()
28044e4236fc0331dac8c5aeaec6a2aa4e548857 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/28044e4236fc0331dac8c5aeaec6a2aa4e548857/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 761, 4672, 327, 10405, 12, 2890, 18, 2139, 16, 261, 1726, 16, 17653, 29, 2934, 5909, 7053, 554, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 761, 4672, 327, 10405, 12, 2890, 18, 2139, 16, 261, 1726, 16, 17653, 29, 2934, 5909, 7053, 554, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
def createEditWindow(self,parent): """ Create the bitmap viewer that is the main window of this major mode.
img = wx.EmptyImage() if img.LoadStream(fh): self.setImage(img) else: self.setImage(None) self.frame.SetStatusText("Invalid image")
def createEditWindow(self,parent): """ Create the bitmap viewer that is the main window of this major mode.
d7d8656b5d845270ad4bceef17471df7d111dff3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/d7d8656b5d845270ad4bceef17471df7d111dff3/image_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4666, 3829, 12, 2890, 16, 2938, 4672, 3536, 1788, 326, 9389, 14157, 716, 353, 326, 2774, 2742, 434, 333, 7888, 1965, 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, 752, 4666, 3829, 12, 2890, 16, 2938, 4672, 3536, 1788, 326, 9389, 14157, 716, 353, 326, 2774, 2742, 434, 333, 7888, 1965, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
data.ftCreateTime = _datetime2filetime(info.get("created_time",None)) data.ftAccessTime = _datetime2filetime(info.get("accessed_time",None)) data.ftWriteTime = _datetime2filetime(info.get("modified_time",None))
data.ftCreationTime = _datetime2filetime(info.get("created_time",None)) data.ftLastAccessTime = _datetime2filetime(info.get("accessed_time",None)) data.ftLastWriteTime = _datetime2filetime(info.get("modified_time",None))
def _info2finddataw(self,path,info,data=None,hinfo=None): """Convert a file/directory info dict into a WIN32_FIND_DATAW struct.""" if data is None: data = libdokan.WIN32_FIND_DATAW() data.dwFileAttributes = self._info2attrmask(path,info,hinfo) data.ftCreateTime = _datetime2filetime(info.get("created_time",None)) data.f...
eebc78dc6b4cbca06bb749d94cabb9316621f449 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/eebc78dc6b4cbca06bb749d94cabb9316621f449/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1376, 22, 926, 449, 396, 91, 12, 2890, 16, 803, 16, 1376, 16, 892, 33, 7036, 16, 76, 1376, 33, 7036, 4672, 3536, 2723, 279, 585, 19, 5149, 1123, 2065, 1368, 279, 678, 706, 1578,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1376, 22, 926, 449, 396, 91, 12, 2890, 16, 803, 16, 1376, 16, 892, 33, 7036, 16, 76, 1376, 33, 7036, 4672, 3536, 2723, 279, 585, 19, 5149, 1123, 2065, 1368, 279, 678, 706, 1578,...
message="You don't have write permission" \
message="You don't have write permission " \
def output_format_show(req, bfo, ln=config.CFG_SITE_LANG, r_fld=[], r_val=[], r_tpl=[], default="", r_upd="", chosen_option="", **args): """ Show a single output format. Check for authentication and print output format settings. The page either shows the output format from file, or from user's POST session, as we want...
c498dfe85a3b18d290548fdda0262daee8568303 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/c498dfe85a3b18d290548fdda0262daee8568303/bibformatadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 2139, 67, 4500, 12, 3658, 16, 324, 617, 16, 7211, 33, 1425, 18, 19727, 67, 20609, 67, 10571, 16, 436, 67, 19794, 22850, 6487, 436, 67, 1125, 22850, 6487, 436, 67, 10933, 22850...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 876, 67, 2139, 67, 4500, 12, 3658, 16, 324, 617, 16, 7211, 33, 1425, 18, 19727, 67, 20609, 67, 10571, 16, 436, 67, 19794, 22850, 6487, 436, 67, 1125, 22850, 6487, 436, 67, 10933, 22850...
if not outputs:
if not self.results[i]:
def postprocess(self): if self.role == 'client': if len(self.stream_list) != len(self.results): raise error.TestError('Mismatched number of results')
6993d7951b92c075ed4b9898f681fed8ed695618 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/6993d7951b92c075ed4b9898f681fed8ed695618/netperf2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2567, 12, 2890, 4672, 309, 365, 18, 4615, 422, 296, 2625, 4278, 309, 562, 12, 2890, 18, 3256, 67, 1098, 13, 480, 562, 12, 2890, 18, 4717, 4672, 1002, 555, 18, 4709, 668, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 2567, 12, 2890, 4672, 309, 365, 18, 4615, 422, 296, 2625, 4278, 309, 562, 12, 2890, 18, 3256, 67, 1098, 13, 480, 562, 12, 2890, 18, 4717, 4672, 1002, 555, 18, 4709, 668, 2668, ...
print "ERROR: %s is not on root path." % directory
def set_active_dir(self, directory):
9a359d0bbebc8de16c46f2e10b46217063e38d87 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/735/9a359d0bbebc8de16c46f2e10b46217063e38d87/treefilebrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3535, 67, 1214, 12, 2890, 16, 1867, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 67, 3535, 67, 1214, 12, 2890, 16, 1867, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Bold('Reason for subscription refusal (optional)')
Bold('If you refuse this subscription, please explain (optional)')
def PrintRequests(mlist, doc, form): # The only types of requests we know about are add member and post. # Anything else that might have gotten in here somehow we'll just ignore # (This should never happen unless someone is hacking at the code). doc.AddItem(Header(2, 'Administrative requests for mailing list: <em>' + m...
0e0816f35de4f619d87b3444d07ec6d696c1b681 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0e0816f35de4f619d87b3444d07ec6d696c1b681/admindb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 6421, 12, 781, 376, 16, 997, 16, 646, 4672, 468, 1021, 1338, 1953, 434, 3285, 732, 5055, 2973, 854, 527, 3140, 471, 1603, 18, 468, 5502, 4274, 469, 716, 4825, 1240, 2363, 2253, 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, 3038, 6421, 12, 781, 376, 16, 997, 16, 646, 4672, 468, 1021, 1338, 1953, 434, 3285, 732, 5055, 2973, 854, 527, 3140, 471, 1603, 18, 468, 5502, 4274, 469, 716, 4825, 1240, 2363, 2253, 3...
sel.click("//a[@id='volunteer_link[%i]']"%self.test_object_index['Aaron Burr'].key().id()) sel.wait_for_page_to_load("30000") self.failUnless(not sel.is_text_present("Upcoming Events")) sel.click("//a[@id='l_friends']") sel.wait_for_page_to_load("30000") sel.click("//a[@id='volunteer_link[%i]']"%self.test_object_inde...
def test_default_environment_privacy_settings__friend_list(self): sel = self.selenium sel.click("//a[@id='l_friends']") sel.wait_for_page_to_load("30000") self.failUnless(sel.is_text_present("Aaron Burr")) self.failUnless(sel.is_text_present("Benjamin Harrison")) self.failUnless(sel.is_text_present("George Wythe")) ...
5574a422516ee7b242cc9b0518fdccdfc5cba281 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/5574a422516ee7b242cc9b0518fdccdfc5cba281/social_network_operations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1886, 67, 10274, 67, 14427, 67, 4272, 972, 74, 7522, 67, 1098, 12, 2890, 4672, 225, 357, 273, 365, 18, 1786, 17327, 225, 357, 18, 7475, 2932, 759, 69, 14782, 350, 2218, 80, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1886, 67, 10274, 67, 14427, 67, 4272, 972, 74, 7522, 67, 1098, 12, 2890, 4672, 225, 357, 273, 365, 18, 1786, 17327, 225, 357, 18, 7475, 2932, 759, 69, 14782, 350, 2218, 80, ...
section_name = "%s_%d" % (section_prefix, counter) cfg.add_section(section_name) cfg.set(section_name, "type", "smtp account") cfg.set(section_name, "uuid", account.itsUUID) cfg.set(section_name, "title", account.displayName) cfg.set(section_name, "host", account.host) cfg.set(section_name, "auth", account.useAuth) cfg...
section_name = u"smtp_account_%d" % counter cfg[section_name] = {} cfg[section_name][u"type"] = u"smtp account" cfg[section_name][u"uuid"] = account.itsUUID cfg[section_name][u"title"] = account.displayName cfg[section_name][u"host"] = account.host cfg[section_name][u"auth"] = account.useAuth cfg[section_name][u"userna...
def save(rv, filename): """Save selected settings information, including all sharing accounts and shares (whether published or subscribed), to an INI file""" cfg = ConfigParser.ConfigParser() # Sharing accounts currentAccount = schema.ns("osaf.sharing", rv).currentWebDAVAccount.item section_prefix = "sharing_account"...
5fcc26e162e0c42f8a4ee0116787795eb4f10175 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5fcc26e162e0c42f8a4ee0116787795eb4f10175/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 4962, 16, 1544, 4672, 3536, 4755, 3170, 1947, 1779, 16, 6508, 777, 21001, 9484, 471, 24123, 261, 3350, 2437, 9487, 578, 16445, 3631, 358, 392, 2120, 45, 585, 8395, 225, 2776, 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, 1923, 12, 4962, 16, 1544, 4672, 3536, 4755, 3170, 1947, 1779, 16, 6508, 777, 21001, 9484, 471, 24123, 261, 3350, 2437, 9487, 578, 16445, 3631, 358, 392, 2120, 45, 585, 8395, 225, 2776, 2...
return base64.encodestring(s).replace('\n', ' ')
return base64.encodestring(s).replace('\n', ' ')
def encode(self, s): return base64.encodestring(s).replace('\n', ' ')
4dd72145c9d4f1d941193c01d486ffed0ecb21f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7645/4dd72145c9d4f1d941193c01d486ffed0ecb21f9/base64.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 272, 4672, 327, 1026, 1105, 18, 1331, 1145, 371, 12, 87, 2934, 2079, 2668, 64, 82, 2187, 296, 8624, 225, 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, 2017, 12, 2890, 16, 272, 4672, 327, 1026, 1105, 18, 1331, 1145, 371, 12, 87, 2934, 2079, 2668, 64, 82, 2187, 296, 8624, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if polar == None: (angle,angle_err2) = hlr_utils.get_parameter("polar",map_so,inst)
if polar is None: (angle, angle_err2) = hlr_utils.get_parameter("polar", map_so, inst)
def init_scatt_wavevector_to_scalar_Q(initk,scattk,**kwargs): """ This function takes an initial wavevector and a scattered wavevector as a tuple and a SOM, a tuple and a SO or two tuples and calculates the quantity scalar_Q units of 1/Angstroms. The SOM principle axis must be in units of 1/Angstroms. The SOs and tupl...
dcfad031d5f907a400d4659737e261c4d7fdc434 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/dcfad031d5f907a400d4659737e261c4d7fdc434/hlr_init_scatt_wavevector_to_scalar_Q.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1017, 4558, 67, 17838, 7737, 67, 869, 67, 8748, 67, 53, 12, 2738, 79, 16, 1017, 4558, 79, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 392, 2172, 10794, 7737, 471, 279, 14644,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1017, 4558, 67, 17838, 7737, 67, 869, 67, 8748, 67, 53, 12, 2738, 79, 16, 1017, 4558, 79, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 392, 2172, 10794, 7737, 471, 279, 14644,...
value = util.unescape(value)
old_value = util.unescape(old_value) new_value = util.unescape(new_value)
def __save_files(self, save, revert, model, library): updated = {} deleted = {} added = {} renamed = {} for row in model: if row[EDITED] and not (row[DELETED] or row[RENAMED]): if row[ORIGVALUE] is not None: updated.setdefault(row[TAG], []) updated[row[TAG]].append((util.decode(row[VALUE]), util.decode(row[ORIGVALUE]))...
ea81e8abacf4f3973c2ed988a7fbe61f6e9a40e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/ea81e8abacf4f3973c2ed988a7fbe61f6e9a40e7/edittags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5688, 67, 2354, 12, 2890, 16, 1923, 16, 15226, 16, 938, 16, 5313, 4672, 3526, 273, 2618, 4282, 273, 2618, 3096, 273, 2618, 17657, 273, 2618, 364, 1027, 316, 938, 30, 309, 1027, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5688, 67, 2354, 12, 2890, 16, 1923, 16, 15226, 16, 938, 16, 5313, 4672, 3526, 273, 2618, 4282, 273, 2618, 3096, 273, 2618, 17657, 273, 2618, 364, 1027, 316, 938, 30, 309, 1027, 6...
StructureTest() def test_dynamics_0002(self): DynamicsTest(("--num-frames=100", "--temperature=300", "--iters-per-frame=10", "--dump-as-text"))
StructureTest(dir="rigid_organics", test="CH4") def test_floppy_organics_C2H6(self): StructureTest(dir="floppy_organics", test="C2H6") def test_floppy_organics_C3H8(self): StructureTest(dir="floppy_organics", test="C3H8") def test_floppy_organics_C4H10a(self): StructureTest(dir="floppy_organics", test="C4H10a") def tes...
def test_rigid_organics_CH4(self): StructureTest()
d4548954f0b2ec61c249ce8e1b4af97c07a52a78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d4548954f0b2ec61c249ce8e1b4af97c07a52a78/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 86, 28542, 67, 22543, 2102, 67, 1792, 24, 12, 2890, 4672, 13348, 4709, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1842, 67, 86, 28542, 67, 22543, 2102, 67, 1792, 24, 12, 2890, 4672, 13348, 4709, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '_S_' )
if ( aVariableReference[aFirstColon+1:aLastColon] == '.' ): if ( aReactionPath[1:] == '' ): return aVariableReference[aLastColon+1:] else: aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '__' ) elif ( aVariableReference[aFirstColon+1:aLastColon] == '/' ): return aVariableReference[aLastColon+1:]
def getVariableReferenceId( aVariableReference ): aFastColon = string.index( aVariableReference, ':' ) aLastColon = string.rindex( aVariableReference, ':' ) # set Species Id to Reactant object if ( aVariableReference[aFastColon+1:aLastColon] == '.' ): aSpeciesReferencePath = string.replace( aReactionPath[1:], '/', '...
9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13522, 2404, 548, 12, 279, 3092, 2404, 262, 30, 225, 279, 12305, 19636, 273, 533, 18, 1615, 12, 279, 3092, 2404, 16, 3921, 262, 279, 3024, 19636, 273, 533, 18, 86, 1615, 12, 279, 3092,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13522, 2404, 548, 12, 279, 3092, 2404, 262, 30, 225, 279, 12305, 19636, 273, 533, 18, 1615, 12, 279, 3092, 2404, 16, 3921, 262, 279, 3024, 19636, 273, 533, 18, 86, 1615, 12, 279, 3092,...
p_code = pointer(create_string_buffer(code))
p_code = byref(create_string_buffer(code))
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...
1a1aaa37d5d612630a9ffa0472d22885b0ae79fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8360/1a1aaa37d5d612630a9ffa0472d22885b0ae79fb/__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...
def __init__(self, artist, title, api_key, api_secret, session_key):
def __init__(self, artist, title, api_key, api_secret, session_key=""):
def __init__(self, artist, title, api_key, api_secret, session_key): _BaseObject.__init__(self, api_key, api_secret, session_key) _Taggable.__init__(self, 'track') if isinstance(artist, Artist): self.artist = artist else: self.artist = Artist(artist, *self.auth_data) self.title = title
8d8063afe8067477accae5bef5e470a4a3cbfa5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/8d8063afe8067477accae5bef5e470a4a3cbfa5d/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15469, 16, 2077, 16, 1536, 67, 856, 16, 1536, 67, 5875, 16, 1339, 67, 856, 1546, 6, 4672, 389, 2171, 921, 16186, 2738, 972, 12, 2890, 16, 1536, 67, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15469, 16, 2077, 16, 1536, 67, 856, 16, 1536, 67, 5875, 16, 1339, 67, 856, 1546, 6, 4672, 389, 2171, 921, 16186, 2738, 972, 12, 2890, 16, 1536, 67, 856...
s = s.encode(outcodec)
s = s.encode(outcodec, errors)
def append(self, s, charset=None): """Append a string to the MIME header.
f4fdff715af7a9d595444065c523f8de5303895d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f4fdff715af7a9d595444065c523f8de5303895d/Header.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 272, 16, 4856, 33, 7036, 4672, 3536, 5736, 279, 533, 358, 326, 13195, 1446, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 272, 16, 4856, 33, 7036, 4672, 3536, 5736, 279, 533, 358, 326, 13195, 1446, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try:
with TemporaryFile("w+") as fileobj:
def test_space_dialect(self): class space(csv.excel): delimiter = " " quoting = csv.QUOTE_NONE escapechar = "\\"
02b1d9a951b66534b2fd77809400d61c745873e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/02b1d9a951b66534b2fd77809400d61c745873e5/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2981, 67, 25909, 386, 12, 2890, 4672, 667, 3476, 12, 6715, 18, 24121, 4672, 5654, 273, 315, 315, 29911, 273, 6101, 18, 18980, 67, 9826, 4114, 3001, 273, 14520, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2981, 67, 25909, 386, 12, 2890, 4672, 667, 3476, 12, 6715, 18, 24121, 4672, 5654, 273, 315, 315, 29911, 273, 6101, 18, 18980, 67, 9826, 4114, 3001, 273, 14520, 2, -100, -100, ...
for ce,ceType,ceDict in ceList: section = '/Resources/Sites/%s/%s/CEs/%s/Queues' % (gridType,self.siteName,ce) result = gConfig.getSections(section) if not result['OK']: return S_ERROR('Failed to look up the CS for queues')
for ce, ceType, ceDict in ceList: section = '/Resources/Sites/%s/%s/CEs/%s/Queues' % ( gridType, self.siteName, ce ) result = gConfig.getSections( section ) if not result['OK']: return S_ERROR( 'Failed to look up the CS for queues' )
def getQueues(self): """ Get the list of relevant CEs and their descriptions """ ceFactory = ComputingElementFactory() ceTypes = self.am_getOption('CETypes',[]) ceConfList = self.am_getOption('CEs',[]) ceList = [] # Look up CE definitions in the site CS description gridType = self.siteName.split('.')[0] result = gCon...
fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 17428, 12, 2890, 4672, 3536, 968, 326, 666, 434, 9368, 385, 6705, 471, 3675, 15550, 3536, 225, 5898, 1733, 273, 14169, 310, 1046, 1733, 1435, 225, 5898, 2016, 273, 365, 18, 301, 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, 336, 17428, 12, 2890, 4672, 3536, 968, 326, 666, 434, 9368, 385, 6705, 471, 3675, 15550, 3536, 225, 5898, 1733, 273, 14169, 310, 1046, 1733, 1435, 225, 5898, 2016, 273, 365, 18, 301, 67,...
visclass = reg.get_module_by_name(identifier = identifier, name = obj.name, namespace = obj.namespace) visobj = visclass() wrapResponseobj(self,resp, visobj) self.setResult(outparams[0].name,visobj) return {'compute':compute}
vischildclass = reg.get_module_by_name(identifier = identifier, name = obj.name, namespace = obj.namespace) vischildobj = vischildclass() nameattrib = str(namechild) nameattrib = nameattrib[0].upper() + nameattrib[1:] setattr(visobj,nameattrib,vischildobj) visobjchild = getattr(visobj,nameattrib) wrapResponseobj(self,...
def compute(self): dirmodule = dir(self.modclient) #Get the locator name for elemlist in dirmodule: if elemlist.find('Locator') != -1: namelocator = elemlist #Get the port name loc = getattr(self.modclient, namelocator)() dirloc = dir(loc) for elemlist in dirloc: if ((elemlist.find('Address') == -1) and ((elemlist.find...
20aa04df673c3b6b6ec0733936c365b6bf28189a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/20aa04df673c3b6b6ec0733936c365b6bf28189a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 4672, 1577, 2978, 273, 1577, 12, 2890, 18, 1711, 2625, 13, 468, 967, 326, 8871, 508, 364, 3659, 1098, 316, 1577, 2978, 30, 309, 3659, 1098, 18, 4720, 2668, 5786, 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, 3671, 12, 2890, 4672, 1577, 2978, 273, 1577, 12, 2890, 18, 1711, 2625, 13, 468, 967, 326, 8871, 508, 364, 3659, 1098, 316, 1577, 2978, 30, 309, 3659, 1098, 18, 4720, 2668, 5786, 6134, ...
meta_fields = self.get_ia_collections()
meta_fields = self.get_ia_meta_fields()
def is_daisy_encrypted(self): meta_fields = self.get_ia_collections() v = meta_fields['collection'] return 'printdisabled' in v or 'lendinglibrary' in v
b44d335f477072e0f36555ba60a414461af4fdc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/b44d335f477072e0f36555ba60a414461af4fdc7/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2414, 291, 93, 67, 18702, 12, 2890, 4672, 2191, 67, 2821, 273, 365, 18, 588, 67, 1155, 67, 3901, 67, 2821, 1435, 331, 273, 2191, 67, 2821, 3292, 5548, 3546, 327, 296, 1188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2414, 291, 93, 67, 18702, 12, 2890, 4672, 2191, 67, 2821, 273, 365, 18, 588, 67, 1155, 67, 3901, 67, 2821, 1435, 331, 273, 2191, 67, 2821, 3292, 5548, 3546, 327, 296, 1188, ...
if 0 and platform.atom_debug:
if _debug:
def update_valence(self): #bruce 050728 revised this and also disabled the debug prints # repositions/alters existing singlets, updates bonding pattern, valence errors, etc; # might reorder bonds, kill singlets; but doesn't move the atom and doesn't alter # existing real bonds or other atoms; it might let atom record h...
86dc2825e6e2d0eaf9a077c277f0dd52a872d099 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/86dc2825e6e2d0eaf9a077c277f0dd52a872d099/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1125, 802, 12, 2890, 4672, 468, 2848, 3965, 374, 3361, 27, 6030, 283, 26779, 333, 471, 2546, 5673, 326, 1198, 14971, 468, 283, 12388, 19, 287, 5432, 2062, 4864, 17307, 16, 4533...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1125, 802, 12, 2890, 4672, 468, 2848, 3965, 374, 3361, 27, 6030, 283, 26779, 333, 471, 2546, 5673, 326, 1198, 14971, 468, 283, 12388, 19, 287, 5432, 2062, 4864, 17307, 16, 4533...
if (isinstance(configElem[e], types.StringTypes) and configElem[e].find(r'${')>-1):
if ((isinstance(configElem[e], types.StringTypes) and configElem[e].find(r'${')>-1)):
def _expandMacrosInValues(configElem, macroMap): """ apply macro expansion in strings recursively """ # arrays if isinstance(configElem, types.ListType): for e in range(len(configElem)): if (isinstance(configElem[e], types.StringTypes) and configElem[e].find(r'${')>-1): configElem[e] = _expandString(configElem[e], macr...
eb158f0382a5f53aa192acee1dd9c25f0e396de1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/eb158f0382a5f53aa192acee1dd9c25f0e396de1/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 9990, 6973, 382, 1972, 12, 1425, 7498, 16, 11522, 863, 4672, 3536, 2230, 11522, 17965, 316, 2064, 8536, 3536, 468, 5352, 309, 1549, 12, 1425, 7498, 16, 1953, 18, 19366, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 9990, 6973, 382, 1972, 12, 1425, 7498, 16, 11522, 863, 4672, 3536, 2230, 11522, 17965, 316, 2064, 8536, 3536, 468, 5352, 309, 1549, 12, 1425, 7498, 16, 1953, 18, 19366, 4672, ...
type = ord(header[4]) << 0 | ord(header[5]) << 8 | ord(header[6]) << 16 | ord(header[7]) << 24
def parse_field_header(header): "Parses field data, returns the length and type" if len(header) < 8: raise base.FormatError # get length length = ord(header[0]) << 0 | ord(header[1]) << 8 | ord(header[2]) << 16 | ord(header[3]) << 24 if length == 0 or length % 8 != 0: length += 8 - length % 8 # get type type = ord(...
4b30ad0cb2ad31348b75be16b36883f0cbe0d97c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11787/4b30ad0cb2ad31348b75be16b36883f0cbe0d97c/pwsafe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1518, 67, 3374, 12, 3374, 4672, 315, 6656, 652, 501, 16, 1135, 326, 769, 471, 618, 6, 225, 309, 562, 12, 3374, 13, 411, 1725, 30, 1002, 1026, 18, 29874, 225, 468, 336, 769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1518, 67, 3374, 12, 3374, 4672, 315, 6656, 652, 501, 16, 1135, 326, 769, 471, 618, 6, 225, 309, 562, 12, 3374, 13, 411, 1725, 30, 1002, 1026, 18, 29874, 225, 468, 336, 769,...
A.replace(occurrence.as_written,code)
A=A.replace(occurrence.as_written,code)
def PytexNotIn(name,codeLaTeX): r""" Return a LaTeXparser.CodeLaTeX object build from codeLaTeX and changing the occurrences of \PytexNotIn{name1,name2,...}{code} by <code> if name is not in the liste name1, name2, ... Else, remove it completely. This acts like some inline CodeBox. This is the symmetric of PytexOnlyIf...
d6e96c7794feef7e90787055f70e1f9478c23632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5109/d6e96c7794feef7e90787055f70e1f9478c23632/PytexTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4707, 21763, 21855, 12, 529, 16, 710, 30745, 21575, 60, 4672, 436, 8395, 2000, 279, 21072, 21575, 60, 4288, 18, 1085, 30745, 21575, 60, 733, 1361, 628, 981, 30745, 21575, 60, 471, 12770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4707, 21763, 21855, 12, 529, 16, 710, 30745, 21575, 60, 4672, 436, 8395, 2000, 279, 21072, 21575, 60, 4288, 18, 1085, 30745, 21575, 60, 733, 1361, 628, 981, 30745, 21575, 60, 471, 12770, ...
def xhdr(self, hdr, str):
def xhdr(self, hdr, str, file=None):
def xhdr(self, hdr, str): """Process an XHDR command (optional server extension). Arguments: - hdr: the header type (e.g. 'subject') - str: an article nr, a message id, or a range nr1-nr2 Returns: - resp: server response if successful - list: list of (nr, value) strings"""
bf414590658c8878c0a27cbcf1dda4738d4ce7e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bf414590658c8878c0a27cbcf1dda4738d4ce7e0/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 16587, 12, 2890, 16, 7723, 16, 609, 16, 585, 33, 7036, 4672, 3536, 2227, 392, 1139, 44, 6331, 1296, 261, 10444, 1438, 2710, 2934, 225, 13599, 30, 300, 7723, 30, 326, 1446, 618, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 16587, 12, 2890, 16, 7723, 16, 609, 16, 585, 33, 7036, 4672, 3536, 2227, 392, 1139, 44, 6331, 1296, 261, 10444, 1438, 2710, 2934, 225, 13599, 30, 300, 7723, 30, 326, 1446, 618, 26...
to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': partner_id}
to_update[partner_id] = {} to_update[partner_id].update({id: fups[followup_line_id][1],})
def _get_partners_followp(self, cr, uid, ids, context=None): data = {} if context is None: context = {} if ids: data = self.read(cr, uid, ids, [])[0] cr.execute( "SELECT l.partner_id, l.followup_line_id,l.date_maturity, l.date, l.id "\ "FROM account_move_line AS l "\ "LEFT JOIN account_account AS a "\ "ON (l.account_id...
acb3fb220550ff2fbdae4528f9c26e36ee6ea238 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/acb3fb220550ff2fbdae4528f9c26e36ee6ea238/account_followup_print.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2680, 9646, 67, 14641, 84, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 501, 273, 2618, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 3258, 30, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 2680, 9646, 67, 14641, 84, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 501, 273, 2618, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 3258, 30, 501, ...
self.run_peer (cmd)
self.run_peer (cmd_name)
def run (self):
eda381e4a5684d65a352e01a009fb86d9c0bc84f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/eda381e4a5684d65a352e01a009fb86d9c0bc84f/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'text:style-name': self.rststyle(style_name),
def make_field_element(self, parent, text, style_name, automatic_styles): if text == 'p': el1 = SubElement(parent, 'text:page-number', attrib={ 'text:style-name': self.rststyle(style_name), 'text:select-page': 'current', }) elif text == 'P': el1 = SubElement(parent, 'text:page-count', attrib={ 'text:style-name': self.r...
10095878ff0b986f32bae6d2dfce7bf20a05c5e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1532/10095878ff0b986f32bae6d2dfce7bf20a05c5e5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1518, 67, 2956, 12, 2890, 16, 982, 16, 977, 16, 2154, 67, 529, 16, 5859, 67, 10218, 4672, 309, 977, 422, 296, 84, 4278, 415, 21, 273, 5479, 12, 2938, 16, 296, 955, 30, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1518, 67, 2956, 12, 2890, 16, 982, 16, 977, 16, 2154, 67, 529, 16, 5859, 67, 10218, 4672, 309, 977, 422, 296, 84, 4278, 415, 21, 273, 5479, 12, 2938, 16, 296, 955, 30, 24...
return FiniteField_ext_pariElement(self.__parent, self.__value - right.__value)
return FiniteField_ext_pariElement(self.__parent, self.__value - right.__value, check=False)
def _sub_(self, right): return FiniteField_ext_pariElement(self.__parent, self.__value - right.__value)
99f8f4d261745ac6dc3bdcdaa49d15b9651e62e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/99f8f4d261745ac6dc3bdcdaa49d15b9651e62e7/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1717, 67, 12, 2890, 16, 2145, 4672, 327, 9458, 1137, 974, 67, 408, 67, 1065, 77, 1046, 12, 2890, 16186, 2938, 16, 365, 16186, 1132, 300, 2145, 16186, 1132, 16, 866, 33, 8381, 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, 389, 1717, 67, 12, 2890, 16, 2145, 4672, 327, 9458, 1137, 974, 67, 408, 67, 1065, 77, 1046, 12, 2890, 16186, 2938, 16, 365, 16186, 1132, 300, 2145, 16186, 1132, 16, 866, 33, 8381, 13, ...
tmp_file = os.path.join(CFG_TMPDIR, "bibdocfile_%s" % time.strftime("%Y-%m-%d_%H:%M:%S")) open(tmp_file, 'w').write(xml)
tmp_file_fd, tmp_file_name = mkstemp(suffix='.xml', prefix="bibdocfile_%s" % time.strftime("%Y-%m-%d_%H:%M:%S"), dir=CFG_TMPDIR) os.write(tmp_file_fd, xml) os.close(tmp_file_fd) os.chmod(tmp_file_name, 0644)
def bibupload_ffts(ffts, append=False): """Given an ffts dictionary it creates the xml and submit it.""" xml = ffts_to_xml(ffts) if xml: print xml tmp_file = os.path.join(CFG_TMPDIR, "bibdocfile_%s" % time.strftime("%Y-%m-%d_%H:%M:%S")) open(tmp_file, 'w').write(xml) if append: wait_for_user("This will be appended via ...
be4a6fdb32d35c7d066f29dd1f944d9872fa0d7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/be4a6fdb32d35c7d066f29dd1f944d9872fa0d7e/bibdocfilecli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25581, 6327, 67, 25174, 87, 12, 25174, 87, 16, 714, 33, 8381, 4672, 3536, 6083, 392, 15741, 87, 3880, 518, 3414, 326, 2025, 471, 4879, 518, 12123, 2025, 273, 15741, 87, 67, 869, 67, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25581, 6327, 67, 25174, 87, 12, 25174, 87, 16, 714, 33, 8381, 4672, 3536, 6083, 392, 15741, 87, 3880, 518, 3414, 326, 2025, 471, 4879, 518, 12123, 2025, 273, 15741, 87, 67, 869, 67, 29...
if weapon == 'hegrenade':
if currentWeapon == 'hegrenade':
def item_pickup(event_var): # Get variables item = event_var['item'] userid = int(event_var['userid']) # Is a weapon? if ("weapon_%s" % item) not in list_weaponNameList: return # Client exists? if not es.exists('userid', userid): return # Don't strip the knife if item == "knife": return # Check to see if the weapon...
4848df6b8a8a57f0dc8bf849534ed1171963037c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/4848df6b8a8a57f0dc8bf849534ed1171963037c/gg_dead_strip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 761, 67, 11503, 416, 12, 2575, 67, 1401, 4672, 468, 968, 3152, 761, 273, 871, 67, 1401, 3292, 1726, 3546, 6709, 273, 509, 12, 2575, 67, 1401, 3292, 8339, 19486, 225, 468, 2585, 279, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 761, 67, 11503, 416, 12, 2575, 67, 1401, 4672, 468, 968, 3152, 761, 273, 871, 67, 1401, 3292, 1726, 3546, 6709, 273, 509, 12, 2575, 67, 1401, 3292, 8339, 19486, 225, 468, 2585, 279, 73...
Internet CRLF end-of-line."""
Internet CRLF end-of-line. """
def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\n', or Mac '\r' into Internet CRLF end-of-line.""" return re.sub(r'(?m)^\.', '..', re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
58a0b3fcac35fd85d6794fbcb62a4f4925cb00da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/58a0b3fcac35fd85d6794fbcb62a4f4925cb00da/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9298, 396, 12, 892, 4672, 3536, 10257, 501, 364, 2699, 18, 225, 3698, 7676, 2611, 16, 471, 2549, 9480, 9472, 2337, 82, 2187, 578, 13217, 2337, 86, 11, 1368, 21352, 21791, 679, 17, 792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9298, 396, 12, 892, 4672, 3536, 10257, 501, 364, 2699, 18, 225, 3698, 7676, 2611, 16, 471, 2549, 9480, 9472, 2337, 82, 2187, 578, 13217, 2337, 86, 11, 1368, 21352, 21791, 679, 17, 792, ...
in_args = ', '.join(ins)
in_args = ', '.join(ins)
def create_user_node(self, name, category, description, inputs, outputs): """ Return a new user node factory This function create a new python module in the package directory The factory is added to the package and the package is saved. """
4f435f6a2c6e798847d10abef3869c28a28ca5f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/4f435f6a2c6e798847d10abef3869c28a28ca5f6/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 67, 2159, 12, 2890, 16, 508, 16, 3150, 16, 2477, 16, 4540, 16, 6729, 4672, 3536, 2000, 279, 394, 729, 756, 3272, 1220, 445, 752, 279, 394, 5790, 1605, 316, 326, 2181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 67, 2159, 12, 2890, 16, 508, 16, 3150, 16, 2477, 16, 4540, 16, 6729, 4672, 3536, 2000, 279, 394, 729, 756, 3272, 1220, 445, 752, 279, 394, 5790, 1605, 316, 326, 2181, ...
if not isinstance(key, basestring):
if not isinstance(key, str):
def sort_writer(self, fd, key, value): # key should not contain \xff # value pickled using protocol 0 will always be printable ASCII # (can't contain \0) if not isinstance(key, basestring): TaskFailed("Keys must be strings for external sort") if '\xff' in key or '\x00' in key: TaskFailed("0xFF or 0x00 bytes are not all...
a1212a4cddb32eaa27813b58e687ec1ede6508a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/a1212a4cddb32eaa27813b58e687ec1ede6508a7/task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 6299, 12, 2890, 16, 5194, 16, 498, 16, 460, 4672, 468, 498, 1410, 486, 912, 521, 5297, 468, 460, 6002, 1259, 1450, 1771, 374, 903, 3712, 506, 23474, 11768, 468, 261, 4169, 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, 1524, 67, 6299, 12, 2890, 16, 5194, 16, 498, 16, 460, 4672, 468, 498, 1410, 486, 912, 521, 5297, 468, 460, 6002, 1259, 1450, 1771, 374, 903, 3712, 506, 23474, 11768, 468, 261, 4169, 14...
rowlines.append((line, offset))
rowlines.append((line.rstrip(), offset))
def parse_table(self): """ First determine the column boundaries from the top border, then process rows. Each row may consist of multiple lines; accumulate lines until a row is complete. Call `self.parse_row` to finish the job. """ # Top border must fully describe all table columns. self.columns = self.parse_columns(...
4ef8b5ffbe001e4c050a664efd953a450fe863c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4ef8b5ffbe001e4c050a664efd953a450fe863c1/tableparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2121, 12, 2890, 4672, 3536, 5783, 4199, 326, 1057, 15054, 628, 326, 1760, 5795, 16, 1508, 1207, 2595, 18, 225, 8315, 1027, 2026, 7111, 434, 3229, 2362, 31, 21757, 2362, 3180, 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, 1109, 67, 2121, 12, 2890, 4672, 3536, 5783, 4199, 326, 1057, 15054, 628, 326, 1760, 5795, 16, 1508, 1207, 2595, 18, 225, 8315, 1027, 2026, 7111, 434, 3229, 2362, 31, 21757, 2362, 3180, 2...
return "c_%d" % self._count
count = str(self._count) if len(count) == 1: return "c_%s" % count else: return "c_{%s}" % count
def __str__(self): if self._name is None: return "c_%d" % self._count else: return "c_%s" % self._name
2a683bb06f96806cac554645c8671555b6747f6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/2a683bb06f96806cac554645c8671555b6747f6a/function.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 309, 365, 6315, 529, 353, 599, 30, 1056, 273, 609, 12, 2890, 6315, 1883, 13, 309, 562, 12, 1883, 13, 422, 404, 30, 327, 315, 71, 10185, 87, 6, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 972, 12, 2890, 4672, 309, 365, 6315, 529, 353, 599, 30, 1056, 273, 609, 12, 2890, 6315, 1883, 13, 309, 562, 12, 1883, 13, 422, 404, 30, 327, 315, 71, 10185, 87, 6, 738, ...
'quantity_original' : fields.integer('Quantity of Originals'),
'quantity_original' : fields.integer('Quantity of Originals',required=True),
def _amount_subtotal(self, cr, uid, ids, name, args, context=None): #should be corect (not complete) res = {} for id in ids: res[id] = 1 return res
c995c3e3851f009a949b1b6fba20aaa8579b017d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/c995c3e3851f009a949b1b6fba20aaa8579b017d/cci_mission.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 1717, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 468, 13139, 506, 2922, 299, 261, 902, 3912, 13, 400, 273, 2618, 364, 612...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 1717, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 468, 13139, 506, 2922, 299, 261, 902, 3912, 13, 400, 273, 2618, 364, 612...
statRes = self.__getPathStat(subPath)
statRes = self.__getPathStat( subPath )
def __getDirectoryContents(self,path,verbose=False): """ Returns a dictionary containing all of the contents of a directory. This includes the metadata associated to files (replicas, size, guid, status) and the subdirectories found. """ # First check that the directory exists res = self.__executeOperation(path,'exists'...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2853, 6323, 12, 2890, 16, 803, 16, 11369, 33, 8381, 4672, 3536, 2860, 279, 3880, 4191, 777, 434, 326, 2939, 434, 279, 1867, 18, 1220, 6104, 326, 1982, 3627, 358, 1390, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2853, 6323, 12, 2890, 16, 803, 16, 11369, 33, 8381, 4672, 3536, 2860, 279, 3880, 4191, 777, 434, 326, 2939, 434, 279, 1867, 18, 1220, 6104, 326, 1982, 3627, 358, 1390, 261, ...
evaluate = attributes.pop(stl_if).evaluate loops = [ x for x, y in loops if evaluate(x, y) ]
expr = attributes.pop(stl_if) loops = [ (x, y) for x, y in loops if evaluate_if(expr, x, y) ]
def process(events, start, end, stack, repeat_stack, encoding, prefix=None): i = start while i < end: event, value, line = events[i] if event == TEXT: stream = substitute(value, stack, repeat_stack, encoding) for event, value, kk in stream: yield event, value, line elif event == COMMENT: yield event, value, line elif e...
42dcaf76f41ac83df7d48302c31ecb31f6f9d283 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/42dcaf76f41ac83df7d48302c31ecb31f6f9d283/stl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 5989, 16, 787, 16, 679, 16, 2110, 16, 7666, 67, 3772, 16, 2688, 16, 1633, 33, 7036, 4672, 277, 273, 787, 1323, 277, 411, 679, 30, 871, 16, 460, 16, 980, 273, 2641, 63, 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, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 5989, 16, 787, 16, 679, 16, 2110, 16, 7666, 67, 3772, 16, 2688, 16, 1633, 33, 7036, 4672, 277, 273, 787, 1323, 277, 411, 679, 30, 871, 16, 460, 16, 980, 273, 2641, 63, 77...
self.connect("formatted_" + name_prefix + name, path, **route_options)
self.connect("formatted_" + name_prefix + name, path, **route_options)
def requirements_for(meth): """Returns a new dict to be used for all route creation as the route options""" opts = options.copy() if method != 'any': opts['conditions'] = {'method':[meth.upper()]} return opts
52ae2d9eaabbf5ff009086347bb090d7048fa505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/52ae2d9eaabbf5ff009086347bb090d7048fa505/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, ...
inddiscadd = self.sector_size * str2num(
inddiscadd = self.sector_size * self.str2num(
def read_old_catalogue(self, base): head = base
25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3059/25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3/ADF2INF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1673, 67, 7199, 344, 12, 2890, 16, 1026, 4672, 225, 910, 273, 1026, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1673, 67, 7199, 344, 12, 2890, 16, 1026, 4672, 225, 910, 273, 1026, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def export_to_csv(self, path_or_file, delimiter=';', quotechar='"', lineterminator='\n', encoding='utf-8'):
def export_to_csv(self, path_or_file, delimiter=',', quotechar='"', lineterminator='\n', encoding='utf-8'):
def export_to_csv(self, path_or_file, delimiter=';', quotechar='"', lineterminator='\n', encoding='utf-8'): """ Write the table as CSV in the file. If the file is a string, it is opened as a local path. Else a open file-like is expected; it will not be closed afterwards.
7c59f9142f35d35055f09520faed9f61b138bdbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10612/7c59f9142f35d35055f09520faed9f61b138bdbb/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 869, 67, 6715, 12, 2890, 16, 589, 67, 280, 67, 768, 16, 5654, 33, 2187, 2187, 3862, 3001, 13396, 2187, 4739, 4443, 639, 2218, 64, 82, 2187, 2688, 2218, 3158, 17, 28, 11, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 869, 67, 6715, 12, 2890, 16, 589, 67, 280, 67, 768, 16, 5654, 33, 2187, 2187, 3862, 3001, 13396, 2187, 4739, 4443, 639, 2218, 64, 82, 2187, 2688, 2218, 3158, 17, 28, 11, 46...
f = ManualGenerator("SetPopupData", setpopupdata_body, condition="
f = ManualGenerator("SetPopupData", setpopupdata_body, condition="
def outputCleanupStructMembers(self): Output("Py_XDECREF(self->ob_callbackdict);") Output("if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */")
736b51df7c0ce09e2944976d75929696126cac72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/736b51df7c0ce09e2944976d75929696126cac72/ctlsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 15007, 3823, 6918, 12, 2890, 4672, 3633, 2932, 9413, 67, 60, 1639, 5458, 42, 12, 2890, 2122, 947, 67, 3394, 1576, 1769, 7923, 3633, 2932, 430, 261, 2890, 2122, 947, 67, 1282, 19079,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 876, 15007, 3823, 6918, 12, 2890, 4672, 3633, 2932, 9413, 67, 60, 1639, 5458, 42, 12, 2890, 2122, 947, 67, 3394, 1576, 1769, 7923, 3633, 2932, 430, 261, 2890, 2122, 947, 67, 1282, 19079,...
return "Plugin"
def _get_my_plugin(self): """ searches the right plugin for an url """ for plugin, plugin_pattern in self.parent.plugins_avaible.items(): if re.match(plugin_pattern, self.url) != None: return plugin
ef9c45e15b9bca642b6b447023dbc9e068ed44fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/ef9c45e15b9bca642b6b447023dbc9e068ed44fb/file_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4811, 67, 4094, 12, 2890, 4672, 3536, 16662, 326, 2145, 1909, 364, 392, 880, 3536, 364, 1909, 16, 1909, 67, 4951, 316, 365, 18, 2938, 18, 8057, 67, 1629, 1523, 18, 3319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 4811, 67, 4094, 12, 2890, 4672, 3536, 16662, 326, 2145, 1909, 364, 392, 880, 3536, 364, 1909, 16, 1909, 67, 4951, 316, 365, 18, 2938, 18, 8057, 67, 1629, 1523, 18, 3319, ...
return base_name + ext
return name
def get_unique_filename(name): """ use this to avoid name collisions """ counter = 1 base_name, ext = os.path.splitext(name) while os.path.isfile(base_name): base_name = base_name + '_' + str(counter) + ext counter += 1 return base_name + ext
f13e4b2290215e52c05743948dd99e447825cb46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f13e4b2290215e52c05743948dd99e447825cb46/run_skypoints.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6270, 67, 3459, 12, 529, 4672, 3536, 999, 333, 358, 4543, 508, 27953, 3536, 3895, 273, 404, 1026, 67, 529, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 529, 13, 1323, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6270, 67, 3459, 12, 529, 4672, 3536, 999, 333, 358, 4543, 508, 27953, 3536, 3895, 273, 404, 1026, 67, 529, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 529, 13, 1323, 11...
with test_support.EnvironmentVarGuard() as environ:
with support.EnvironmentVarGuard() as environ:
def test_uname_win32_ARCHITEW6432(self): # Issue 7860: make sure we get architecture from the correct variable # on 64 bit Windows: if PROCESSOR_ARCHITEW6432 exists we should be # using it, per # http://blogs.msdn.com/david.wang/archive/2006/03/26/HOWTO-Detect-Process-Bitness.aspx try: with test_support.EnvironmentVarG...
c0e0c10896ba8a4f657d1a50ba667dde9058a874 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/c0e0c10896ba8a4f657d1a50ba667dde9058a874/test_platform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 339, 67, 8082, 1578, 67, 10586, 5398, 59, 1105, 1578, 12, 2890, 4672, 468, 11820, 22860, 4848, 30, 1221, 3071, 732, 336, 27418, 628, 326, 3434, 2190, 468, 603, 5178, 2831,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 339, 67, 8082, 1578, 67, 10586, 5398, 59, 1105, 1578, 12, 2890, 4672, 468, 11820, 22860, 4848, 30, 1221, 3071, 732, 336, 27418, 628, 326, 3434, 2190, 468, 603, 5178, 2831,...
def __getinitargs__(self):
def __getstate__(self):
def __getinitargs__(self): return (self._map(), )
43fa35262c81565391129ff8b1d3eee04166fe34 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/43fa35262c81565391129ff8b1d3eee04166fe34/maputils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 327, 261, 2890, 6315, 1458, 9334, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 327, 261, 2890, 6315, 1458, 9334, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not n.startswith("_APS_"): print "Duplicate id",i,"for",n,"is", self.names[i]
def parseH(self, file): lex = shlex.shlex(file) lex.commenters = "//" token = " " while token is not None: token = lex.get_token() if token == "" or token is None: token = None else: if token=='define': n = lex.get_token() i = int(lex.get_token()) self.ids[n] = i if self.names.has_key(i): # ignore AppStudio special one...
6607b8df7f10522d254a3356f18efd66dfcaef31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/6607b8df7f10522d254a3356f18efd66dfcaef31/win32rcparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 44, 12, 2890, 16, 585, 4672, 5275, 273, 27180, 18, 674, 4149, 12, 768, 13, 5275, 18, 3469, 414, 273, 31828, 1147, 273, 315, 315, 1323, 1147, 353, 486, 599, 30, 1147, 273, 5275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 44, 12, 2890, 16, 585, 4672, 5275, 273, 27180, 18, 674, 4149, 12, 768, 13, 5275, 18, 3469, 414, 273, 31828, 1147, 273, 315, 315, 1323, 1147, 353, 486, 599, 30, 1147, 273, 5275, ...
DEFAULT_SIMOPTS = ("--dump-as-text", "FOO.mmp")
DEFAULT_SIMOPTS = ("--dump-as-text", "--trace-file", "FOO.trc", "FOO.mmp")
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
3f4a171b835422313ecc0171dd0ab652a7f6a1bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3f4a171b835422313ecc0171dd0ab652a7f6a1bc/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 382, 17881, 12, 2890, 4672, 2552, 1842, 10694, 1842, 10694, 63, 2890, 18, 2039, 529, 65, 273, 374, 18, 20, 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, 1086, 382, 17881, 12, 2890, 4672, 2552, 1842, 10694, 1842, 10694, 63, 2890, 18, 2039, 529, 65, 273, 374, 18, 20, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def resizeEvent(self, event): """ Adjust the scrollbars manually after a resize event. """ super(ConsoleWidget, self).resizeEvent(event) self._adjust_scrollbars()
def eventFilter(self, obj, event): """ Reimplemented to ensure a console-like behavior in the underlying text widgets. """ etype = event.type() if etype == QtCore.QEvent.KeyPress:
7e6af656096ba9fcb482652426daf69fbd977c58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/7e6af656096ba9fcb482652426daf69fbd977c58/console_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 1586, 12, 2890, 16, 1081, 16, 871, 4672, 3536, 868, 21099, 358, 3387, 279, 2983, 17, 5625, 6885, 316, 326, 6808, 977, 10965, 18, 3536, 24700, 273, 871, 18, 723, 1435, 309, 24700, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 1586, 12, 2890, 16, 1081, 16, 871, 4672, 3536, 868, 21099, 358, 3387, 279, 2983, 17, 5625, 6885, 316, 326, 6808, 977, 10965, 18, 3536, 24700, 273, 871, 18, 723, 1435, 309, 24700, ...
self.write(cr, uid, wi_id, {'state': 'error',
self.pool.get('dm.workitem').write(cr, uid, wi_id, {'state': 'error',
def _sale_order_process(self, cr, uid, sale_order_id): so = self.pool.get('sale.order').browse(cr, uid, sale_order_id) wf_service = netsvc.LocalService('workflow')
184d9adc52caf71c70a84d2f9b76d96c20053bd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/184d9adc52caf71c70a84d2f9b76d96c20053bd4/dm_sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 5349, 67, 1019, 67, 2567, 12, 2890, 16, 4422, 16, 4555, 16, 272, 5349, 67, 1019, 67, 350, 4672, 1427, 273, 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1019, 16063, 25731, 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, 389, 87, 5349, 67, 1019, 67, 2567, 12, 2890, 16, 4422, 16, 4555, 16, 272, 5349, 67, 1019, 67, 350, 4672, 1427, 273, 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1019, 16063, 25731, 12...
dbg ("VSGConf: No profile found, deleting __getattr__") del (self.__getattr__)
dbg ("VSGConf: No profile found, marking inactive") self.inactive = True
def __init__ (self, profile = None): self.type = "GConf"
8698773b8a5a905a2850bdb8615cefbcc9952032 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/8698773b8a5a905a2850bdb8615cefbcc9952032/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3042, 273, 599, 4672, 365, 18, 723, 273, 315, 43, 3976, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3042, 273, 599, 4672, 365, 18, 723, 273, 315, 43, 3976, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""
"""
def getDefaultValue(self, parameter): """ Created: 29.05.2006, KP Description: Return the default value of a parameter """ if parameter == "Seed": return [] elif parameter == "Upper": return 255 elif parameter == "Lower": return 128 elif parameter in ["RadiusX", "RadiusY"]: return 2 return 1
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19569, 12, 2890, 16, 1569, 4672, 3536, 12953, 30, 12899, 18, 6260, 18, 6976, 26, 16, 1475, 52, 6507, 30, 2000, 326, 805, 460, 434, 279, 1569, 3536, 309, 1569, 422, 315, 12702, 6877, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19569, 12, 2890, 16, 1569, 4672, 3536, 12953, 30, 12899, 18, 6260, 18, 6976, 26, 16, 1475, 52, 6507, 30, 2000, 326, 805, 460, 434, 279, 1569, 3536, 309, 1569, 422, 315, 12702, 6877, 32...
DEBUG(AUTH, "cookie is %s" % responseCookie)
def authorize(username, password, responseCookie): """attempts to authorize. If succeeds, sets the cookie and returns a true value, otherwise, returns false""" DEBUG(AUTH, 'authing authorization') file = Configuration.cookieAuthFile DEBUG(AUTH, 'file = %s' % file) if not file: return authenticator = Authenticator.File...
1446b45131461946e2a82bc81adc65512beae93b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/1446b45131461946e2a82bc81adc65512beae93b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12229, 12, 5053, 16, 2201, 16, 766, 6151, 4672, 3536, 14359, 358, 12229, 18, 225, 971, 21933, 16, 1678, 326, 3878, 471, 1135, 279, 638, 460, 16, 3541, 16, 1135, 629, 8395, 6369, 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, 12229, 12, 5053, 16, 2201, 16, 766, 6151, 4672, 3536, 14359, 358, 12229, 18, 225, 971, 21933, 16, 1678, 326, 3878, 471, 1135, 279, 638, 460, 16, 3541, 16, 1135, 629, 8395, 6369, 12, 71...
search_path = ["/usr/bin/firefox",]
search_path = ["/usr/bin/firefox", "C:\\Program Files\\Mozilla Firefox\\firefox.exe"]
def firefoxExecutable(): search_path = ["/usr/bin/firefox",] for poss in search_path: if os.path.isfile(poss): return poss return None
2ad7aea4050a1633f7ea9490ee6fcf2c52b76761 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/2ad7aea4050a1633f7ea9490ee6fcf2c52b76761/iheartmiro.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4452, 13873, 17709, 13332, 1623, 67, 803, 273, 8247, 19, 13640, 19, 4757, 19, 12179, 13873, 3113, 315, 39, 31027, 9459, 6471, 1695, 49, 11142, 10745, 22950, 1695, 12179, 13873, 18, 14880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 13873, 17709, 13332, 1623, 67, 803, 273, 8247, 19, 13640, 19, 4757, 19, 12179, 13873, 3113, 315, 39, 31027, 9459, 6471, 1695, 49, 11142, 10745, 22950, 1695, 12179, 13873, 18, 14880, ...
self.ps_init[0] = self.ps[0]
def temporary_prompt(self, new_ps): self.terminal.eraseLine() self.cursorToBOL() lineBuffer = self.lineBuffer[:] lineBufferIndex = self.lineBufferIndex self.ps_init[0] = self.ps[0] self.lineBuffer = [] self.lineBufferIndex = 0 try: self.set_transient_prompt(new_ps) self.drawInputLine() yield finally: if self._needsNewl...
1d514a80770cf714ff82d80db5c916c2a6fb1fba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/1d514a80770cf714ff82d80db5c916c2a6fb1fba/console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6269, 67, 13325, 12, 2890, 16, 394, 67, 1121, 4672, 365, 18, 15979, 18, 264, 448, 1670, 1435, 365, 18, 9216, 774, 38, 1741, 1435, 980, 1892, 273, 365, 18, 1369, 1892, 10531, 65, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6269, 67, 13325, 12, 2890, 16, 394, 67, 1121, 4672, 365, 18, 15979, 18, 264, 448, 1670, 1435, 365, 18, 9216, 774, 38, 1741, 1435, 980, 1892, 273, 365, 18, 1369, 1892, 10531, 65, 980, ...
dbapi = MockDBAPI() p = pool.QueuePool(creator=lambda : dbapi.connect('foo.db'), pool_size=1, max_overflow=0, use_threadlocal=False)
p = self._queuepool_fixture(pool_size=1, max_overflow=0)
def test_recreate(self): dbapi = MockDBAPI() p = pool.QueuePool(creator=lambda : dbapi.connect('foo.db'), pool_size=1, max_overflow=0, use_threadlocal=False) p2 = p.recreate() assert p2.size() == 1 assert p2._use_threadlocal is False assert p2._max_overflow == 0
7513b46730d1b57a6b8addde8dfb4f83ee1e6cb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/7513b46730d1b57a6b8addde8dfb4f83ee1e6cb4/test_pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 266, 2640, 12, 2890, 4672, 293, 273, 365, 6315, 4000, 6011, 67, 904, 10970, 12, 6011, 67, 1467, 33, 21, 16, 943, 67, 11512, 33, 20, 13, 293, 22, 273, 293, 18, 266, 2640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 266, 2640, 12, 2890, 4672, 293, 273, 365, 6315, 4000, 6011, 67, 904, 10970, 12, 6011, 67, 1467, 33, 21, 16, 943, 67, 11512, 33, 20, 13, 293, 22, 273, 293, 18, 266, 2640, ...
print "%f %f" % (x, y)
def map_transform( x, y, xt, yt, data ): print "%f %f" % (x, y) radius = 90.0 - y xt[0] = radius * cos( x * pi / 180.0 ) yt[0] = radius * sin( x * pi / 180.0 ) print "%f %f" % (xt[0], yt[0]) #return [xt, yt]
a6c088220a4320988c0582a1e8397b69e21717ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2933/a6c088220a4320988c0582a1e8397b69e21717ef/xw19.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 6547, 12, 619, 16, 677, 16, 26508, 16, 677, 88, 16, 501, 262, 30, 225, 5725, 273, 8566, 18, 20, 300, 677, 26508, 63, 20, 65, 565, 273, 5725, 380, 4987, 12, 619, 380, 4790,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 852, 67, 6547, 12, 619, 16, 677, 16, 26508, 16, 677, 88, 16, 501, 262, 30, 225, 5725, 273, 8566, 18, 20, 300, 677, 26508, 63, 20, 65, 565, 273, 5725, 380, 4987, 12, 619, 380, 4790,...
ARCHES = Container(any_arch=1, i686=2, x86_64=3)
ARCHES = Container(any=1, i686=2, x86_64=3)
def get_absolute_url(self): return '/news/%i/' % self.id
cd087d4779da3bb4e3463d4305855150c1941399 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11256/cd087d4779da3bb4e3463d4305855150c1941399/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12547, 67, 718, 12, 2890, 4672, 327, 1173, 18443, 5258, 77, 2473, 738, 365, 18, 350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12547, 67, 718, 12, 2890, 4672, 327, 1173, 18443, 5258, 77, 2473, 738, 365, 18, 350, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if value is not None:
if value is not None and 'states' not in already_processed:
def buildAttributes(self, node, attrs, already_processed): value = attrs.get('states') if value is not None: already_processed.append('states') self.states = value value = attrs.get('tokens') if value is not None: already_processed.append('tokens') self.tokens = value self.validate_MSTokenLength(self.tokens) # valid...
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2498, 12, 2890, 16, 756, 16, 3422, 16, 1818, 67, 11005, 4672, 460, 273, 3422, 18, 588, 2668, 7992, 6134, 309, 460, 353, 486, 599, 471, 296, 7992, 11, 486, 316, 1818, 67, 11005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2498, 12, 2890, 16, 756, 16, 3422, 16, 1818, 67, 11005, 4672, 460, 273, 3422, 18, 588, 2668, 7992, 6134, 309, 460, 353, 486, 599, 471, 296, 7992, 11, 486, 316, 1818, 67, 11005, ...
eventlisttmp = eventlisttmp + [1,unicode(self.ParseEventValue(event), 'latin-1')]
eventlisttmp = eventlisttmp + ['1',unicode(self.ParseEventValue(event), 'latin-1')]
def run(self): '''This is the main workhorse function. Keeps popping events off the queue, and processing them, until program quits ''' ## line format: ## date; time (1 minute resolution); fullapppath; hwnd; username; window title; eventdata ## ## if we are logging keystroke count, that field becomes the penultimate fi...
01e0c0cca2f42daf828fcd59e2a6d786e413242d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/01e0c0cca2f42daf828fcd59e2a6d786e413242d/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 9163, 2503, 353, 326, 2774, 1440, 76, 23035, 445, 18, 10498, 87, 1843, 1382, 2641, 3397, 326, 2389, 16, 471, 4929, 2182, 16, 3180, 5402, 719, 1282, 9163, 7541, 980,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 9163, 2503, 353, 326, 2774, 1440, 76, 23035, 445, 18, 10498, 87, 1843, 1382, 2641, 3397, 326, 2389, 16, 471, 4929, 2182, 16, 3180, 5402, 719, 1282, 9163, 7541, 980,...
r""" Number of self-inverse permutations on $n$ letters, also known as involutions; number of Young tableaux with $n$ cells. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000085;a Number of self-inverse permutations on n letters. sage: a(0) 1 sage: a(1) 1 sage: a(2) ...
def __init__(self): r""" Number of self-inverse permutations on $n$ letters, also known as involutions; number of Young tableaux with $n$ cells. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000085;a Number of self-inverse permutations on n letters. sage: a(0) 1 sage...
def _eval(self, n): return arith.factorial(n)
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 419, 483, 18, 6812, 649, 12, 82, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 8622, 12, 2890, 16, 290, 4672, 327, 419, 483, 18, 6812, 649, 12, 82, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
aux = authors.pop() copyright = "Copyright " + t.modified.strftime("%Y") + " " + aux.nickname() pdate = t.modified for aux in authors: copyright = copyright + ", " + aux.nickname() if pdate < aux.modified: pdate = aux.modified
pdate = max(authors.itervalues()) copyright = ', '.join(authors.keys())
def get(self):
18b8d6b1d4a62ef4780d2ba5842dcc2d3ad15066 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7716/18b8d6b1d4a62ef4780d2ba5842dcc2d3ad15066/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
easygui.msgbox("you selected "+str(stemFilter))
def padNum(num,pad): return ("0"*(pad-len(str(num))))+str(num)
a4a5dbd300aecf34a2db030dbb222be27afb8317 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4923/a4a5dbd300aecf34a2db030dbb222be27afb8317/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 2578, 12, 2107, 16, 6982, 4672, 327, 7566, 20, 6, 21556, 6982, 17, 1897, 12, 701, 12, 2107, 3719, 3719, 15, 701, 12, 2107, 13, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 2578, 12, 2107, 16, 6982, 4672, 327, 7566, 20, 6, 21556, 6982, 17, 1897, 12, 701, 12, 2107, 3719, 3719, 15, 701, 12, 2107, 13, 565, 2, -100, -100, -100, -100, -100, -100, -100, ...
app_iter = self.application(environ, start_response) return self.make_catching_iter(app_iter, environ)
sr_checker = ResponseStartChecker(start_response) app_iter = self.application(environ, sr_checker) return self.make_catching_iter(app_iter, environ, sr_checker)
def __call__(self, environ, start_response): """ The WSGI application interface. """ # We want to be careful about not sending headers twice, # and the content type that the app has committed to (if there # is an exception in the iterator body of the response) if environ.get('paste.throw_errors'): return self.applicati...
6da9f7bce37149ce450ea28efcd061b551e73b07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2097/6da9f7bce37149ce450ea28efcd061b551e73b07/errormiddleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 3536, 1021, 7649, 13797, 2521, 1560, 18, 3536, 468, 1660, 2545, 358, 506, 26850, 2973, 486, 5431, 1607, 13605, 16, 468, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 3536, 1021, 7649, 13797, 2521, 1560, 18, 3536, 468, 1660, 2545, 358, 506, 26850, 2973, 486, 5431, 1607, 13605, 16, 468, 471,...
other options -- passed to plot.
other options -- passed to plot or parametric_plot3d.
def parametric_plot(funcs, *args, **kwargs): r""" \code{parametric_plot} takes two or three functions as a list or a tuple and makes a plot with the first function giving the $x$ coordinates, the second function giving the $y$ coordinates, and the third function (if present) giving the $z$ coordinates. INPUT: funcs --...
152a48b826e0f10ca6dd5e7a2fde63ccaa7e4562 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/152a48b826e0f10ca6dd5e7a2fde63ccaa7e4562/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, 3193, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, 3193, 471, ...
print f.filename,
print f.basename,
def AjouteZero(n): N = str(n) a = [] for i in range(len(N),4): a.append("0") a.append(N) return "".join(a)
fa387e11472a25e2e3457e7b4d51b0c30256b243 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5108/fa387e11472a25e2e3457e7b4d51b0c30256b243/liste_exo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 432, 78, 2571, 7170, 12, 82, 4672, 423, 273, 609, 12, 82, 13, 279, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 50, 3631, 24, 4672, 279, 18, 6923, 2932, 20, 7923, 279, 18, 6923, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 432, 78, 2571, 7170, 12, 82, 4672, 423, 273, 609, 12, 82, 13, 279, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 50, 3631, 24, 4672, 279, 18, 6923, 2932, 20, 7923, 279, 18, 6923, 1...
for cb in self.leave_events[cid]:
for cb in self.leave_events.get(cid, ()):
def walk(self, astng): """call visit events of astng checkers for the given node, recurse on its children, then leave events. """ cid = node.__class__.__name__.lower() # generate events for this node on each checker for cb in self.visit_events[cid]: cb(astng) # recurse on children for child in astng.get_children(): sel...
3c7834e9961459f9db71fb827b20a4219c6081e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/3c7834e9961459f9db71fb827b20a4219c6081e6/lint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 12, 2890, 16, 3364, 3368, 4672, 3536, 1991, 3757, 2641, 434, 3364, 3368, 31534, 364, 326, 864, 756, 16, 11502, 603, 2097, 2325, 16, 1508, 8851, 2641, 18, 3536, 7504, 273, 756, 1618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5442, 12, 2890, 16, 3364, 3368, 4672, 3536, 1991, 3757, 2641, 434, 3364, 3368, 31534, 364, 326, 864, 756, 16, 11502, 603, 2097, 2325, 16, 1508, 8851, 2641, 18, 3536, 7504, 273, 756, 1618...
class LongOverridesTrunc(base): def __long__(self):
class IntOverridesTrunc(base): def __int__(self):
def __int__(self): return 42.
ff047d33151a0368851ab58688a5734a0a3a2542 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/ff047d33151a0368851ab58688a5734a0a3a2542/test_long.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 474, 972, 12, 2890, 4672, 327, 14856, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 474, 972, 12, 2890, 4672, 327, 14856, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
print al
def get_amenities_by_name(self, db, city):
30fc53e6bd587abb6d19a498edae975918f6791c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9326/30fc53e6bd587abb6d19a498edae975918f6791c/street_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 301, 275, 1961, 67, 1637, 67, 529, 12, 2890, 16, 1319, 16, 12797, 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, ...
[ 1, 1, 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, 336, 67, 301, 275, 1961, 67, 1637, 67, 529, 12, 2890, 16, 1319, 16, 12797, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print >>STDERR, 'At step=' + str(step)
print >>STDERR, 'At formPerfectRuns, step=' + str(step)
def runOld(self): self.globals['atacAlgorithmVersion'] = str(17) print >>STDERR, "runName = %s\n" % self.runName
b0320aafbfa4ffff8c6908c5f59785ef879bfba8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2088/b0320aafbfa4ffff8c6908c5f59785ef879bfba8/AtacDriver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 7617, 12, 2890, 4672, 365, 18, 16227, 3292, 396, 71, 6801, 1444, 3546, 273, 609, 12, 4033, 13, 1172, 1671, 882, 25617, 16, 315, 2681, 461, 273, 738, 87, 64, 82, 6, 738, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7617, 12, 2890, 4672, 365, 18, 16227, 3292, 396, 71, 6801, 1444, 3546, 273, 609, 12, 4033, 13, 1172, 1671, 882, 25617, 16, 315, 2681, 461, 273, 738, 87, 64, 82, 6, 738, 365, 18...
fp.write("\t\taetools.enumsubst(_arguments, %s, _Enum_%s)\n" %
if ename <> '****': fp.write("\t\taetools.enumsubst(_arguments, %s, _Enum_%s)\n" %
fp.write("\tdef %s(self, "%funcname)
05642155856bae19ce07fe5be89a6a40656b3522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/05642155856bae19ce07fe5be89a6a40656b3522/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4253, 18, 2626, 31458, 88, 536, 738, 87, 12, 2890, 16, 2213, 644, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4253, 18, 2626, 31458, 88, 536, 738, 87, 12, 2890, 16, 2213, 644, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
info = {} info["version"] = version info["name"] = name info["arch"] = arch info["summary"] = summary info["size"] = element[2] info["group"] = element[3]
info = {"summary": summary, "size" : element[2], "group" : element[3]}
def load(self):
4d3c7d9bafafd2f5ac28bbd15a108c5d05aacc78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/4d3c7d9bafafd2f5ac28bbd15a108c5d05aacc78/synthesis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return "0L"
return "0"
def slow_format(self, x, base): if (x, base) == (0, 8): # this is an oddball! return "0L" digits = [] sign = 0 if x < 0: sign, x = 1, -x while x: x, r = divmod(x, base) digits.append(int(r)) digits.reverse() digits = digits or [0] return '-'[:sign] + \ {8: '0', 10: '', 16: '0x'}[base] + \ "".join(map(lambda i: "0123456...
f42cd0627f74ee7dd6f43fb4d58aee9288e11854 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f42cd0627f74ee7dd6f43fb4d58aee9288e11854/test_long.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11816, 67, 2139, 12, 2890, 16, 619, 16, 1026, 4672, 309, 261, 92, 16, 1026, 13, 422, 261, 20, 16, 1725, 4672, 468, 333, 353, 392, 14800, 19067, 5, 327, 315, 20, 6, 6815, 273, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11816, 67, 2139, 12, 2890, 16, 619, 16, 1026, 4672, 309, 261, 92, 16, 1026, 13, 422, 261, 20, 16, 1725, 4672, 468, 333, 353, 392, 14800, 19067, 5, 327, 315, 20, 6, 6815, 273, 5378, ...
freq,hsupp = np.histogram(rvs,histsupp,new=True)
freq,hsupp = np.histogram(rvs,histsupp)
def check_discrete_chisquare(distfn, arg, rvs, alpha, msg): '''perform chisquare test for random sample of a discrete distribution Parameters ---------- distname : string name of distribution function arg : sequence parameters of distribution alpha : float significance level, threshold for p-value Returns ------- res...
72f6f5db104518f8d6617cda8207c20c4338c7f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/72f6f5db104518f8d6617cda8207c20c4338c7f1/test_discrete_basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 31937, 67, 343, 291, 6182, 12, 4413, 4293, 16, 1501, 16, 5633, 87, 16, 4190, 16, 1234, 4672, 9163, 16092, 462, 291, 6182, 1842, 364, 2744, 3296, 434, 279, 20035, 7006, 225, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 31937, 67, 343, 291, 6182, 12, 4413, 4293, 16, 1501, 16, 5633, 87, 16, 4190, 16, 1234, 4672, 9163, 16092, 462, 291, 6182, 1842, 364, 2744, 3296, 434, 279, 20035, 7006, 225, 70...
about *un*capitalizing small words like a/an/the in the input. The list of "small words" which are not capped comes from
about *un*capitalizing SMALL words like a/an/the in the input. The list of "SMALL words" which are not capped comes from
def titlecase(text): """ This filter changes all words to Title Caps, and attempts to be clever about *un*capitalizing small words like a/an/the in the input. The list of "small words" which are not capped comes from the New York Times Manual of Style, plus 'vs' and 'v'. """ small = 'a|an|and|as|at|but|by|en|for|if|i...
faef923bff691bbede9b642e912e5874bbe1fbb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8761/faef923bff691bbede9b642e912e5874bbe1fbb1/titlecase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2077, 3593, 12, 955, 4672, 225, 3536, 1220, 1034, 3478, 777, 4511, 358, 10984, 385, 6679, 16, 471, 7531, 358, 506, 1619, 502, 2973, 380, 318, 14, 5909, 7053, 6894, 17918, 4511, 3007, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2077, 3593, 12, 955, 4672, 225, 3536, 1220, 1034, 3478, 777, 4511, 358, 10984, 385, 6679, 16, 471, 7531, 358, 506, 1619, 502, 2973, 380, 318, 14, 5909, 7053, 6894, 17918, 4511, 3007, 279...