rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
attribute dictionary is prefix keyed by xml xmlns xsd wsdl soap all other keys are namespace values. """ self.attributes = {XMLSchemaComponent.xsd:{},\ XMLSchemaComponent.xmlns:{}}
structure of attributes dictionary ['xmlns'][xmlns_key] -- xmlns namespace ['xmlns'][prefix] -- declared namespace prefix [namespace][prefix] -- attributes declared in a namespace [attribute] -- attributes w/o prefix, default namespaces do not directly apply to attributes, ie Name can't collide with QName. """ self.attributes = {XMLSchemaComponent.xmlns:{}}
def setAttributes(self, node): """Sets up attribute dictionary, checks for required attributes and sets default attribute values. attr is for default attribute values determined at runtime.
36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21175, 12, 2890, 16, 756, 4672, 3536, 2785, 731, 1566, 3880, 16, 4271, 364, 1931, 1677, 471, 1678, 805, 1566, 924, 18, 1604, 353, 364, 805, 1566, 924, 11383, 622, 3099, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21175, 12, 2890, 16, 756, 4672, 3536, 2785, 731, 1566, 3880, 16, 4271, 364, 1931, 1677, 471, 1678, 805, 1566, 924, 18, 1604, 353, 364, 805, 1566, 924, 11383, 622, 3099, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for n in undo.childNodes: if n.nodeType == xml.Node.ELEMENT_NODE:
for node in undo.childNodes: if node.nodeType == xml.Node.ELEMENT_NODE:
def LoadFromFile(uri): """ Loads a project from a save file on disk. uri The filesystem location of the project file to load. Currently only file:// URIs are considered valid. """ p = Project() (scheme, domain, projectfile, params, query, fragment) = urlparse.urlparse(uri, "file") if scheme != "file": # raise "The URI scheme used is invalid." message raise OpenProjectError(1,scheme) Globals.debug(projectfile) if not os.path.exists(projectfile): raise OpenProjectError(4,projectfile) try: gzipfile = gzip.GzipFile(projectfile, "r") doc = xml.parse(gzipfile) except Exception, e: Globals.debug(e.__class__, e) # raise "This file doesn't unzip" message raise OpenProjectError(2,projectfile) p.projectfile = projectfile #only open projects with the proper version number version = doc.firstChild.getAttribute("version") if version != Globals.VERSION: if version == "0.1": LoadFromZPOFile(p, doc) #copy the project so that the 0.1 is not overwritten when the user clicks save withoutExt = os.path.splitext(projectfile)[0] shutil.copy(projectfile, "%s.0.1.jokosher" % withoutExt) return p else: if not version: version = "0.1" # 0.1 projects had version as element, not attr # raise a "this project was created in a different version of Jokosher" message raise OpenProjectError(3,version) params = doc.getElementsByTagName("Parameters")[0] LoadParametersFromXML(p, params) # Hack to set the transport mode p.transport.SetMode(p.transportMode) p.transport.SetBPM(p.transportbpm) try: undo = doc.getElementsByTagName("Undo")[0] except IndexError: Globals.debug("No saved undo in project file") else: for n in undo.childNodes: if n.nodeType == xml.Node.ELEMENT_NODE: cmdList = [] cmdList.append(str(n.getAttribute("object"))) cmdList.append(str(n.getAttribute("function"))) cmdList.extend(LoadListFromXML(n)) p._Project__savedUndoStack.append(cmdList) try: redo = doc.getElementsByTagName("Redo")[0] except IndexError: Globals.debug("No saved redo in project file") else: for n in redo.childNodes: if n.nodeType == xml.Node.ELEMENT_NODE: cmdList = [] cmdList.append(str(n.getAttribute("object"))) cmdList.append(str(n.getAttribute("function"))) cmdList.extend(LoadListFromXML(n)) p._Project__redoStack.append(cmdList) for instr in doc.getElementsByTagName("Instrument"): try: id = int(instr.getAttribute("id")) except ValueError: id = None i = Instrument(p, None, None, None, id) i.LoadFromXML(instr) p.instruments.append(i) if i.isSolo: p.soloInstrCount += 1 for instr in doc.getElementsByTagName("DeadInstrument"): try: id = int(instr.getAttribute("id")) except ValueError: id = None i = Instrument(p, None, None, None, id) i.LoadFromXML(instr) p.graveyard.append(i) i.RemoveAndUnlinkPlaybackbin() return p
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 13087, 12, 1650, 4672, 3536, 4444, 87, 279, 1984, 628, 279, 1923, 585, 603, 4234, 18, 225, 2003, 1021, 6496, 2117, 434, 326, 1984, 585, 358, 1262, 18, 15212, 1338, 585, 2207, 24565, 854, 7399, 923, 18, 3536, 293, 273, 5420, 1435, 225, 261, 9068, 16, 2461, 16, 1984, 768, 16, 859, 16, 843, 16, 5481, 13, 273, 15185, 18, 718, 2670, 12, 1650, 16, 315, 768, 7923, 309, 4355, 480, 315, 768, 6877, 468, 1002, 315, 1986, 3699, 4355, 1399, 353, 2057, 1199, 883, 1002, 3502, 4109, 668, 12, 21, 16, 9068, 13, 225, 18901, 1031, 18, 4148, 12, 4406, 768, 13, 225, 309, 486, 1140, 18, 803, 18, 1808, 12, 4406, 768, 4672, 1002, 3502, 4109, 668, 12, 24, 16, 4406, 768, 13, 225, 775, 30, 10331, 768, 273, 10331, 18, 27825, 812, 12, 4406, 768, 16, 315, 86, 7923, 997, 273, 2025, 18, 2670, 12, 17380, 768, 13, 1335, 1185, 16, 425, 30, 18901, 1031, 18, 4148, 12, 73, 16186, 1106, 972, 16, 425, 13, 468, 1002, 315, 2503, 585, 3302, 1404, 20259, 6, 883, 1002, 3502, 4109, 668, 12, 22, 16, 4406, 768, 13, 225, 293, 18, 4406, 768, 273, 1984, 768, 225, 468, 3700, 1696, 10137, 598, 326, 5338, 1177, 1300, 1177, 273, 997, 18, 3645, 1763, 18, 588, 1499, 2932, 1589, 7923, 309, 1177, 480, 18901, 1031, 18, 5757, 30, 309, 1177, 422, 315, 20, 18, 21, 6877, 4444, 1265, 62, 2419, 812, 12, 84, 16, 997, 13, 468, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 13087, 12, 1650, 4672, 3536, 4444, 87, 279, 1984, 628, 279, 1923, 585, 603, 4234, 18, 225, 2003, 1021, 6496, 2117, 434, 326, 1984, 585, 358, 1262, 18, 15212, 1338, 585, 2207, 24565, 854, 7399, 923, 18, 3536, 293, 273, 5420, 1435, 225, 261, 9068, 16, 2461, 16, 1984, 768, 16, 859, 16, 843, 16, 5481, 13, 273, 15185, 18, 718, 2670, 12, 1650, 16, 315, 768, 7923, 309, 4355, 480, 315, 768, 6877, 468, 1002, 315, 1986, 3699, 4355, 1399, 353, 2057, 1199, 883, 1002, 3502, 4109, 668, 12, 21, 16, 9068, 13, 225, 18901, 1031, 18, 4148, 12, 4406, 768, 13, 225, 309, 486, 1140, 18, 803, 18, 1808, 12, 4406, 768, 4672, 1002, 3502, 2 ]
import sagedoc
def search_doc(s, extra=''): """ Full text search of the SAGE HTML documentation for lines containing s. The search is not case sensitive. """ cmd = 'sage -grepdoc "%s" | grep "%s"'%(s,extra) old_banner = os.environ.has_key('SAGE_BANNER') if old_banner: old_banner = os.environ['SAGE_BANNER'] os.environ['SAGE_BANNER'] = "no" r = os.popen(cmd).read() if old_banner == False: del os.environ['SAGE_BANNER'] else: os.environ['SAGE_BANNER'] = old_banner from sage.server.support import EMBEDDED_MODE if EMBEDDED_MODE: # I.e., running from the notebook print format_search_as_html('Documentation', r, s + extra) else: from sage.misc.all import pager pager()(r)
dcebe748f1ef8b1b2487c34467d71b3d3e2fcf7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dcebe748f1ef8b1b2487c34467d71b3d3e2fcf7d/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2434, 12, 87, 16, 2870, 2218, 11, 4672, 3536, 11692, 977, 1623, 434, 326, 348, 2833, 3982, 7323, 364, 2362, 4191, 272, 18, 225, 1021, 1623, 353, 486, 648, 16692, 18, 3536, 1797, 273, 296, 87, 410, 300, 11556, 84, 2434, 2213, 87, 6, 571, 23366, 2213, 87, 5187, 17105, 87, 16, 7763, 13, 225, 1592, 67, 16563, 273, 1140, 18, 28684, 18, 5332, 67, 856, 2668, 55, 2833, 67, 38, 11489, 654, 6134, 309, 1592, 67, 16563, 30, 1592, 67, 16563, 273, 1140, 18, 28684, 3292, 55, 2833, 67, 38, 11489, 654, 3546, 1140, 18, 28684, 3292, 55, 2833, 67, 38, 11489, 654, 3546, 273, 315, 2135, 6, 436, 273, 1140, 18, 84, 3190, 12, 4172, 2934, 896, 1435, 309, 1592, 67, 16563, 422, 1083, 30, 1464, 1140, 18, 28684, 3292, 55, 2833, 67, 38, 11489, 654, 3546, 469, 30, 1140, 18, 28684, 3292, 55, 2833, 67, 38, 11489, 654, 3546, 273, 1592, 67, 16563, 225, 628, 272, 410, 18, 3567, 18, 13261, 1930, 7141, 22235, 7660, 67, 7038, 309, 7141, 22235, 7660, 67, 7038, 30, 282, 468, 467, 18, 73, 12990, 3549, 628, 326, 14718, 1172, 740, 67, 3072, 67, 345, 67, 2620, 2668, 18905, 2187, 436, 16, 272, 397, 2870, 13, 469, 30, 628, 272, 410, 18, 23667, 18, 454, 1930, 12679, 12679, 1435, 12, 86, 13, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 67, 2434, 12, 87, 16, 2870, 2218, 11, 4672, 3536, 11692, 977, 1623, 434, 326, 348, 2833, 3982, 7323, 364, 2362, 4191, 272, 18, 225, 1021, 1623, 353, 486, 648, 16692, 18, 3536, 1797, 273, 296, 87, 410, 300, 11556, 84, 2434, 2213, 87, 6, 571, 23366, 2213, 87, 5187, 17105, 87, 16, 7763, 13, 225, 1592, 67, 16563, 273, 1140, 18, 28684, 18, 5332, 67, 856, 2668, 55, 2833, 67, 38, 11489, 654, 6134, 309, 1592, 67, 16563, 30, 1592, 67, 16563, 273, 1140, 18, 28684, 3292, 55, 2833, 67, 38, 11489, 654, 3546, 1140, 18, 28684, 3292, 55, 2833, 67, 38, 11489, 654, 3546, 273, 315, 2135, 6, 436, 273, 1140, 18, 84, 3190, 12, 2 ]
source = unicode(source)
if source is not None: source = unicode(source)
def _get_sources(self, cursor, args): ''' Take a list of (name, ttype, lang, source). Add the translations to the cache. Return a dict with the translations. ''' res = {} clause = '' value = [] if len(args) > cursor.IN_MAX: for i in range(0, len(args), cursor.IN_MAX): sub_args = args[i:i + cursor.IN_MAX] res.update(self._get_sources(cursor, sub_args)) return res for name, ttype, lang, source in args: name = unicode(name) ttype = unicode(ttype) lang = unicode(lang) source = unicode(source) trans = self.get(cursor, (lang, ttype, name, source)) if trans is not None: res[(name, ttype, lang, source)] = trans else: res[(name, ttype, lang, source)] = False self.add(cursor, (lang, ttype, name, source), False) if clause: clause += ' OR ' if source: source = source.strip().replace('\n',' ') clause += '(lang = %s ' \ 'AND type = %s ' \ 'AND name = %s ' \ 'AND src = %s ' \ 'AND value != \'\' ' \ 'AND value IS NOT NULL ' \ 'AND fuzzy = false)' value.extend((lang, ttype, str(name), source)) else: clause += '(lang = %s ' \ 'AND type = %s ' \ 'AND name = %s ' \ 'AND value != \'\' ' \ 'AND value IS NOT NULL ' \ 'AND fuzzy = false)' value.extend((lang, ttype, str(name))) if clause: cursor.execute('SELECT lang, type, name, src, value ' \ 'FROM ir_translation ' \ 'WHERE ' + clause, value) for lang, ttype, name, source, value in cursor.fetchall(): res[(name, ttype, lang, source)] = value self.add(cursor, (lang, ttype, name, source), value) return res
3064b752e06cc01a13d8de2d39b10967b20cb1ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/3064b752e06cc01a13d8de2d39b10967b20cb1ed/translation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 10141, 12, 2890, 16, 3347, 16, 833, 4672, 9163, 17129, 279, 666, 434, 261, 529, 16, 27963, 16, 3303, 16, 1084, 2934, 1436, 326, 7863, 358, 326, 1247, 18, 2000, 279, 2065, 598, 326, 7863, 18, 9163, 400, 273, 2618, 6591, 273, 875, 460, 273, 5378, 309, 562, 12, 1968, 13, 405, 3347, 18, 706, 67, 6694, 30, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 1968, 3631, 3347, 18, 706, 67, 6694, 4672, 720, 67, 1968, 273, 833, 63, 77, 30, 77, 397, 3347, 18, 706, 67, 6694, 65, 400, 18, 2725, 12, 2890, 6315, 588, 67, 10141, 12, 9216, 16, 720, 67, 1968, 3719, 327, 400, 364, 508, 16, 27963, 16, 3303, 16, 1084, 316, 833, 30, 508, 273, 5252, 12, 529, 13, 27963, 273, 5252, 12, 88, 723, 13, 3303, 273, 5252, 12, 4936, 13, 309, 1084, 353, 486, 599, 30, 1084, 273, 5252, 12, 3168, 13, 906, 273, 365, 18, 588, 12, 9216, 16, 261, 4936, 16, 27963, 16, 508, 16, 1084, 3719, 309, 906, 353, 486, 599, 30, 400, 63, 12, 529, 16, 27963, 16, 3303, 16, 1084, 25887, 273, 906, 469, 30, 400, 63, 12, 529, 16, 27963, 16, 3303, 16, 1084, 25887, 273, 1083, 365, 18, 1289, 12, 9216, 16, 261, 4936, 16, 27963, 16, 508, 16, 1084, 3631, 1083, 13, 309, 6591, 30, 6591, 1011, 296, 4869, 296, 309, 1084, 30, 1084, 273, 1084, 18, 6406, 7675, 2079, 2668, 64, 82, 17023, 8624, 6591, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 10141, 12, 2890, 16, 3347, 16, 833, 4672, 9163, 17129, 279, 666, 434, 261, 529, 16, 27963, 16, 3303, 16, 1084, 2934, 1436, 326, 7863, 358, 326, 1247, 18, 2000, 279, 2065, 598, 326, 7863, 18, 9163, 400, 273, 2618, 6591, 273, 875, 460, 273, 5378, 309, 562, 12, 1968, 13, 405, 3347, 18, 706, 67, 6694, 30, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 1968, 3631, 3347, 18, 706, 67, 6694, 4672, 720, 67, 1968, 273, 833, 63, 77, 30, 77, 397, 3347, 18, 706, 67, 6694, 65, 400, 18, 2725, 12, 2890, 6315, 588, 67, 10141, 12, 9216, 16, 720, 67, 1968, 3719, 327, 400, 364, 508, 16, 27963, 16, 3303, 2 ]
def format_html(table): r = '<html><head><style type="text/css">a {color: black; text-decoration: none;} </style></head><body>'
def format_header(rev, changeset): url = '%s/log/%s' % (REPO_URL, changeset) return '<a href="%s">Eventlet changeset %s: %s</a><p>' % (url, rev, changeset) def format_html(table, rev, changeset): r = '<html><head><style type="text/css">a.x {color: black; text-decoration: none;} </style></head><body>' r += format_header(rev, changeset)
def format_html(table): r = '<html><head><style type="text/css">a {color: black; text-decoration: none;} </style></head><body>' r += table r += '</body></html>' return r
8d522fc4736968ac3cd598ebbea9e2c50311575c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/8d522fc4736968ac3cd598ebbea9e2c50311575c/generate_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 3374, 12, 9083, 16, 22463, 4672, 880, 273, 1995, 87, 19, 1330, 5258, 87, 11, 738, 261, 862, 2419, 67, 1785, 16, 22463, 13, 327, 2368, 69, 3897, 11613, 87, 6441, 1133, 1810, 22463, 738, 87, 30, 738, 87, 1757, 69, 4438, 84, 1870, 738, 261, 718, 16, 5588, 16, 22463, 13, 225, 1652, 740, 67, 2620, 12, 2121, 16, 5588, 16, 22463, 4672, 436, 273, 2368, 2620, 4438, 1978, 4438, 4060, 618, 1546, 955, 19, 5212, 6441, 69, 18, 92, 288, 3266, 30, 7721, 31, 977, 17, 11880, 367, 30, 6555, 31, 97, 7765, 4060, 4695, 1978, 4438, 3432, 1870, 436, 1011, 740, 67, 3374, 12, 9083, 16, 22463, 13, 436, 1011, 1014, 436, 1011, 4357, 3432, 4695, 2620, 1870, 327, 436, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 1785, 16, 22463, 13, 327, 2368, 69, 3897, 11613, 87, 6441, 1133, 1810, 22463, 738, 87, 30, 738, 87, 1757, 69, 4438, 84, 1870, 738, 261, 718, 16, 5588, 16, 22463, 13, 225, 1652, 740, 67, 2620, 12, 2121, 16, 5588, 16, 22463, 4672, 436, 273, 2368, 2620, 4438, 1978, 4438, 4060, 618, 1546, 955, 19, 5212, 6441, 69, 18, 92, 288, 3266, 30, 7721, 31, 977, 17, 11880, 367, 30, 6555, 31, 97, 7765, 4060, 4695, 1978, 4438, 3432, 1870, 436, 1011, 740, 67, 3374, 12, 9083, 16, 22463, 13, 436, 1011, 1014, 436, 1011, 2 ]
self.assert_(self.i.length == 25)
self.assert_(self.i.length == 26)
def runTest(self): # g1 and g2 are the same, so their intersection is the same self.i = self.g1.intersect(self.g2) self.assert_(self.i.start == self.g1.start) self.assert_(self.i.end == self.g1.end) self.assert_(self.i.length == self.g1.length)
7ea094a5a9369af6702e865d752b1bac938f2e5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5978/7ea094a5a9369af6702e865d752b1bac938f2e5d/test_geometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 12, 2890, 4672, 468, 314, 21, 471, 314, 22, 854, 326, 1967, 16, 1427, 3675, 7619, 353, 326, 1967, 365, 18, 77, 273, 365, 18, 75, 21, 18, 12288, 12, 2890, 18, 75, 22, 13, 365, 18, 11231, 67, 12, 2890, 18, 77, 18, 1937, 422, 365, 18, 75, 21, 18, 1937, 13, 365, 18, 11231, 67, 12, 2890, 18, 77, 18, 409, 422, 365, 18, 75, 21, 18, 409, 13, 365, 18, 11231, 67, 12, 2890, 18, 77, 18, 2469, 422, 365, 18, 75, 21, 18, 2469, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 12, 2890, 4672, 468, 314, 21, 471, 314, 22, 854, 326, 1967, 16, 1427, 3675, 7619, 353, 326, 1967, 365, 18, 77, 273, 365, 18, 75, 21, 18, 12288, 12, 2890, 18, 75, 22, 13, 365, 18, 11231, 67, 12, 2890, 18, 77, 18, 1937, 422, 365, 18, 75, 21, 18, 1937, 13, 365, 18, 11231, 67, 12, 2890, 18, 77, 18, 409, 422, 365, 18, 75, 21, 18, 409, 13, 365, 18, 11231, 67, 12, 2890, 18, 77, 18, 2469, 422, 365, 18, 75, 21, 18, 2469, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
that the shape is still a partition.
that the shape is still a partition. Indices are of the form [i,j] where i is the row-index and j is the column-index, and are 0-based.
def outside_corners(self): """ Returns a list of the positions where we can add a box so that the shape is still a partition.
9683db4d95158b54c00baed7b5cbffa0cffe3831 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9683db4d95158b54c00baed7b5cbffa0cffe3831/partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8220, 67, 3850, 9646, 12, 2890, 4672, 3536, 2860, 279, 666, 434, 326, 6865, 1625, 732, 848, 527, 279, 3919, 1427, 716, 326, 2179, 353, 4859, 279, 3590, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8220, 67, 3850, 9646, 12, 2890, 4672, 3536, 2860, 279, 666, 434, 326, 6865, 1625, 732, 848, 527, 279, 3919, 1427, 716, 326, 2179, 353, 4859, 279, 3590, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
photoinfo['date'] = getDate(photoinfo['fulldescription'])
def getMetadata(photo_id): ''' Get all the metadata for a single image and store it in the photoinfo dict ''' photoinfo = {} url = 'http://www.navy.mil/view_single.asp?id=' + str(photo_id) navyPage = urllib.urlopen(url) data = navyPage.read() soup = BeautifulSoup(data) if soup.find("meta", {'name' : 'HI_RES_IMAGE'}): photoinfo['url'] = soup.find("meta", {'name' : 'HI_RES_IMAGE'}).get('content') if soup.find("meta", {'name' : 'DESCRIPTION'}): photoinfo['fulldescription'] = soup.find("meta", {'name' : 'DESCRIPTION'}).get('content') if soup.find("meta", {'name' : 'ALT_TAG'}): photoinfo['shortdescription'] = soup.find("meta", {'name' : 'ALT_TAG'}).get('content') if photoinfo.get('url') and photoinfo.get('fulldescription') and photoinfo.get('shortdescription'): photoinfo['navyid'] = getNavyIdentifier(photoinfo['url']) #photoinfo['description'] = cleanDescription(photoinfo['fulldescription']) photoinfo['date'] = getDate(photoinfo['fulldescription']) photoinfo['author'] = getAuthor(photoinfo['fulldescription']) photoinfo['location'] = getLocation(photoinfo['fulldescription']) return photoinfo else: # Incorrect photo_id return False
c29787770c8ab97f95095952b2694df3ee6a8596 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7426/c29787770c8ab97f95095952b2694df3ee6a8596/navy_bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 17232, 67, 350, 4672, 9163, 968, 777, 326, 1982, 364, 279, 2202, 1316, 471, 1707, 518, 316, 326, 24542, 885, 617, 2065, 9163, 24542, 885, 617, 273, 2618, 225, 880, 273, 296, 2505, 2207, 5591, 18, 11589, 93, 18, 81, 330, 19, 1945, 67, 7526, 18, 28264, 35, 350, 2218, 397, 609, 12, 17232, 67, 350, 13, 8775, 93, 1964, 273, 11527, 18, 295, 18589, 12, 718, 13, 225, 501, 273, 8775, 93, 1964, 18, 896, 1435, 225, 15418, 273, 28132, 12, 892, 13, 225, 309, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 29994, 67, 7031, 67, 13603, 11, 97, 4672, 24542, 885, 617, 3292, 718, 3546, 273, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 29994, 67, 7031, 67, 13603, 11, 97, 2934, 588, 2668, 1745, 6134, 309, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 15911, 11, 97, 4672, 24542, 885, 617, 3292, 2854, 3384, 3546, 273, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 15911, 11, 97, 2934, 588, 2668, 1745, 6134, 309, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 18255, 67, 7927, 11, 97, 4672, 24542, 885, 617, 3292, 6620, 3384, 3546, 273, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 18255, 67, 7927, 11, 97, 2934, 588, 2668, 1745, 6134, 225, 309, 24542, 885, 617, 18, 588, 2668, 718, 6134, 471, 24542, 885, 617, 18, 588, 2668, 2854, 3384, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 17232, 67, 350, 4672, 9163, 968, 777, 326, 1982, 364, 279, 2202, 1316, 471, 1707, 518, 316, 326, 24542, 885, 617, 2065, 9163, 24542, 885, 617, 273, 2618, 225, 880, 273, 296, 2505, 2207, 5591, 18, 11589, 93, 18, 81, 330, 19, 1945, 67, 7526, 18, 28264, 35, 350, 2218, 397, 609, 12, 17232, 67, 350, 13, 8775, 93, 1964, 273, 11527, 18, 295, 18589, 12, 718, 13, 225, 501, 273, 8775, 93, 1964, 18, 896, 1435, 225, 15418, 273, 28132, 12, 892, 13, 225, 309, 15418, 18, 4720, 2932, 3901, 3113, 13666, 529, 11, 294, 296, 29994, 67, 7031, 67, 13603, 11, 97, 4672, 24542, 885, 617, 3292, 718, 3546, 273, 15418, 18, 4720, 2932, 2 ]
output(u""+mediawiki_messages.get('spamprotectiontitle', self.site()))
def putPage(self, text, comment = None, watchArticle = False, minorEdit = True, newPage = False, token = None, gettoken = False, sysop = False): """ Upload 'text' as new contents for this Page by filling out the edit page.
97a20de5f5c8f5da484625fd4f7f4656062c08fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/97a20de5f5c8f5da484625fd4f7f4656062c08fb/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1964, 12, 2890, 16, 977, 16, 2879, 273, 599, 16, 4267, 7880, 273, 1083, 16, 8439, 4666, 273, 1053, 16, 394, 1964, 273, 1083, 16, 1147, 273, 599, 16, 336, 2316, 273, 1083, 16, 2589, 556, 273, 1083, 4672, 3536, 9414, 296, 955, 11, 487, 394, 2939, 364, 333, 3460, 635, 25740, 596, 326, 3874, 1363, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1964, 12, 2890, 16, 977, 16, 2879, 273, 599, 16, 4267, 7880, 273, 1083, 16, 8439, 4666, 273, 1053, 16, 394, 1964, 273, 1083, 16, 1147, 273, 599, 16, 336, 2316, 273, 1083, 16, 2589, 556, 273, 1083, 4672, 3536, 9414, 296, 955, 11, 487, 394, 2939, 364, 333, 3460, 635, 25740, 596, 326, 3874, 1363, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.no_download = True
def postCheck(self, dl):
c175b751e48f0b533cc11f99aa0c636c70b73bc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/c175b751e48f0b533cc11f99aa0c636c70b73bc8/RapidshareCom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 1564, 12, 2890, 16, 8910, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 1564, 12, 2890, 16, 8910, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if href and not context.get('id'): context['id'] = href
if href: context = self._getContext() if not context.get('id'): context['id'] = href
def _start_enclosure(self, attrsD): attrsD = self._itsAnHrefDamnIt(attrsD) context = self._getContext() attrsD['rel']='enclosure' context.setdefault('links', []).append(FeedParserDict(attrsD)) href = attrsD.get('href') if href and not context.get('id'): context['id'] = href
b46d7e4f5773873813bf0c2abf7f311d20f6ee9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/b46d7e4f5773873813bf0c2abf7f311d20f6ee9d/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 1331, 5919, 12, 2890, 16, 3422, 40, 4672, 3422, 40, 273, 365, 6315, 1282, 979, 15962, 40, 301, 82, 7193, 12, 7039, 40, 13, 819, 273, 365, 6315, 29120, 1435, 3422, 40, 3292, 2878, 3546, 2218, 1331, 5919, 11, 819, 18, 542, 1886, 2668, 7135, 2187, 5378, 2934, 6923, 12, 8141, 2678, 5014, 12, 7039, 40, 3719, 3897, 273, 3422, 40, 18, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 1331, 5919, 12, 2890, 16, 3422, 40, 4672, 3422, 40, 273, 365, 6315, 1282, 979, 15962, 40, 301, 82, 7193, 12, 7039, 40, 13, 819, 273, 365, 6315, 29120, 1435, 3422, 40, 3292, 2878, 3546, 2218, 1331, 5919, 11, 819, 18, 542, 1886, 2668, 7135, 2187, 5378, 2934, 6923, 12, 8141, 2678, 5014, 12, 7039, 40, 3719, 3897, 273, 3422, 40, 18, 588, 2668, 7547, 6134, 309, 3897, 30, 819, 273, 365, 6315, 29120, 1435, 309, 486, 819, 18, 588, 2668, 350, 11, 4672, 819, 3292, 350, 3546, 273, 3897, 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 ]
return json.load(response)
return json.loads(content)
def get_messages(url, credentials=None): """ Receive list of messages """ parsedurl = urlparse.urlparse(url) if parsedurl.scheme == 'https': conn = httplib.HTTPSConnection(parsedurl.netloc) else: conn = httplib.HTTPConnection(parsedurl.netloc) headers = {'Accept': 'application/json'} if credentials: headers['Authorization'] = 'Basic %s' % (credentials.encode('base64').strip()) conn.request("GET", parsedurl.path, headers=headers) response = conn.getresponse() print response.status, response.reason conn.close() if response.status != 200: return [] return json.load(response)
1f9c2d827ce616693dc4c13fdcc34205095c3d3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13970/1f9c2d827ce616693dc4c13fdcc34205095c3d3c/recv_fmtp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6833, 12, 718, 16, 4448, 33, 7036, 4672, 3536, 17046, 666, 434, 2743, 3536, 225, 2707, 718, 273, 15185, 18, 718, 2670, 12, 718, 13, 309, 2707, 718, 18, 9068, 422, 296, 4528, 4278, 1487, 273, 15851, 6673, 18, 18657, 1952, 12, 10817, 718, 18, 2758, 1829, 13, 469, 30, 1487, 273, 15851, 6673, 18, 3693, 1952, 12, 10817, 718, 18, 2758, 1829, 13, 225, 1607, 273, 13666, 5933, 4278, 296, 3685, 19, 1977, 11, 97, 309, 4448, 30, 1607, 3292, 6063, 3546, 273, 296, 8252, 738, 87, 11, 738, 261, 11687, 18, 3015, 2668, 1969, 1105, 16063, 6406, 10756, 225, 1487, 18, 2293, 2932, 3264, 3113, 2707, 718, 18, 803, 16, 1607, 33, 2485, 13, 766, 273, 1487, 18, 588, 2740, 1435, 1172, 766, 18, 2327, 16, 766, 18, 10579, 1487, 18, 4412, 1435, 225, 309, 766, 18, 2327, 480, 4044, 30, 327, 5378, 225, 327, 1163, 18, 17135, 12, 1745, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6833, 12, 718, 16, 4448, 33, 7036, 4672, 3536, 17046, 666, 434, 2743, 3536, 225, 2707, 718, 273, 15185, 18, 718, 2670, 12, 718, 13, 309, 2707, 718, 18, 9068, 422, 296, 4528, 4278, 1487, 273, 15851, 6673, 18, 18657, 1952, 12, 10817, 718, 18, 2758, 1829, 13, 469, 30, 1487, 273, 15851, 6673, 18, 3693, 1952, 12, 10817, 718, 18, 2758, 1829, 13, 225, 1607, 273, 13666, 5933, 4278, 296, 3685, 19, 1977, 11, 97, 309, 4448, 30, 1607, 3292, 6063, 3546, 273, 296, 8252, 738, 87, 11, 738, 261, 11687, 18, 3015, 2668, 1969, 1105, 16063, 6406, 10756, 225, 1487, 18, 2293, 2932, 3264, 3113, 2707, 718, 18, 803, 16, 1607, 33, 2485, 13, 2 ]
return Q(self.trace_pairing(v).det())
return QQ(self.trace_pairing(v).det())
def discriminant(self, v=None): """ Returns the discriminant of the ring of integers of the number field, or if v is specified, the determinant of the trace pairing on the elements of the list v.
2bbf5223397ec2f7cfb9ddfba7025d0cefa90502 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2bbf5223397ec2f7cfb9ddfba7025d0cefa90502/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29649, 20030, 12, 2890, 16, 331, 33, 7036, 4672, 3536, 2860, 326, 29649, 20030, 434, 326, 9221, 434, 12321, 434, 326, 1300, 652, 16, 578, 309, 331, 353, 1269, 16, 326, 6328, 970, 434, 326, 2606, 3082, 310, 603, 326, 2186, 434, 326, 666, 331, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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666, 331, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
authlist = self.esmtp_features["auth"].split()
advertised_authlist = self.esmtp_features["auth"].split()
def encode_plain(user, password): s = "\0%s\0%s" % (user, password) return encode_base64(s.encode('ascii'), eol='')
b35e4efd9e3f99e8a38b5a609a2d5317f5390c37 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b35e4efd9e3f99e8a38b5a609a2d5317f5390c37/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 7446, 12, 1355, 16, 2201, 4672, 272, 273, 1548, 20, 9, 87, 64, 20, 9, 87, 6, 738, 261, 1355, 16, 2201, 13, 327, 2017, 67, 1969, 1105, 12, 87, 18, 3015, 2668, 9184, 19899, 14775, 2218, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 2201, 4672, 272, 273, 1548, 20, 9, 87, 64, 20, 9, 87, 6, 738, 261, 1355, 16, 2201, 13, 327, 2017, 67, 1969, 1105, 12, 87, 18, 3015, 2668, 9184, 19899, 14775, 2218, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'CultureInfo': 'en-US', 'SafeSearch': 'Off', 'Requests': {
'CultureInfo': region_code, 'SafeSearch': 'Off', 'Requests': {
def soap(engine, query, url, numresults = 10): print " %s query..." % engine.capitalize() search_request_retry = config.copyright_connection_tries while search_request_retry: try: if engine == 'google': import google google.LICENSE_KEY = config.google_key data = google.doGoogleSearch('%s "%s"' % (no_result_with_those_words, query)) for entry in data.results: add_in_urllist(url, entry.URL, 'google') elif engine == 'yahoo': import yahoo.search.web data = yahoo.search.web.WebSearch(config.yahoo_appid, query='"%s" %s' % ( query.encode('utf_8'), no_result_with_those_words ), results = numresults) for entry in data.parse_results(): add_in_urllist(url, entry.Url, 'yahoo') elif engine == 'msn': #max_query_len = 150? from SOAPpy import WSDL try: server = WSDL.Proxy('http://soap.search.msn.com/webservices.asmx?wsdl') except: print "Live Search Error" raise params = {'AppID': config.msn_appid, 'Query': '%s "%s"' % (no_result_with_those_words, query), 'CultureInfo': 'en-US', 'SafeSearch': 'Off', 'Requests': { 'SourceRequest':{'Source': 'Web', 'Offset': 0, 'Count': 10, 'ResultFields': 'All',}}} results = '' server_results = server.Search(Request = params) if server_results.Responses[0].Results: results = server_results.Responses[0].Results[0] if results: # list or instance? if type(results) == type([]): for entry in results: add_in_urllist(url, entry.Url, 'msn') else: add_in_urllist(url, results.Url, 'msn') search_request_retry = 0 except KeyboardInterrupt: raise except Exception, err: print "Got an error ->", err # # SOAP.faultType: <Fault SOAP-ENV:Server: Exception from service object: # Daily limit of 1000 queries exceeded for key ***> # if 'Daily limit' in str(err): exceeded_in_queries('google') if 'limit exceeded' in str(err): exceeded_in_queries('yahoo') if search_request_retry: search_request_retry -= 1
df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9930, 12, 8944, 16, 843, 16, 880, 16, 818, 4717, 273, 1728, 4672, 1172, 315, 225, 738, 87, 843, 7070, 738, 4073, 18, 5909, 7053, 554, 1435, 1623, 67, 2293, 67, 9620, 273, 642, 18, 29187, 67, 4071, 67, 2007, 1323, 1623, 67, 2293, 67, 9620, 30, 775, 30, 309, 4073, 422, 296, 9536, 4278, 1930, 5200, 5200, 18, 6065, 23396, 67, 3297, 273, 642, 18, 9536, 67, 856, 501, 273, 5200, 18, 2896, 9639, 2979, 29909, 87, 2213, 87, 5187, 738, 261, 2135, 67, 2088, 67, 1918, 67, 451, 2584, 67, 3753, 16, 843, 3719, 364, 1241, 316, 501, 18, 4717, 30, 527, 67, 267, 67, 718, 1098, 12, 718, 16, 1241, 18, 1785, 16, 296, 9536, 6134, 1327, 4073, 422, 296, 93, 9795, 5161, 4278, 1930, 677, 9795, 5161, 18, 3072, 18, 4875, 501, 273, 677, 9795, 5161, 18, 3072, 18, 4875, 18, 4079, 2979, 12, 1425, 18, 93, 9795, 5161, 67, 19895, 16, 843, 13396, 9, 87, 6, 738, 87, 11, 738, 261, 843, 18, 3015, 2668, 3158, 67, 28, 19899, 1158, 67, 2088, 67, 1918, 67, 451, 2584, 67, 3753, 262, 16, 1686, 273, 818, 4717, 13, 364, 1241, 316, 501, 18, 2670, 67, 4717, 13332, 527, 67, 267, 67, 718, 1098, 12, 718, 16, 1241, 18, 1489, 16, 296, 93, 9795, 5161, 6134, 1327, 4073, 422, 296, 959, 82, 4278, 468, 1896, 67, 2271, 67, 1897, 273, 18478, 35, 628, 16434, 2074, 1930, 30567, 225, 775, 30, 1438, 273, 30567, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9930, 12, 8944, 16, 843, 16, 880, 16, 818, 4717, 273, 1728, 4672, 1172, 315, 225, 738, 87, 843, 7070, 738, 4073, 18, 5909, 7053, 554, 1435, 1623, 67, 2293, 67, 9620, 273, 642, 18, 29187, 67, 4071, 67, 2007, 1323, 1623, 67, 2293, 67, 9620, 30, 775, 30, 309, 4073, 422, 296, 9536, 4278, 1930, 5200, 5200, 18, 6065, 23396, 67, 3297, 273, 642, 18, 9536, 67, 856, 501, 273, 5200, 18, 2896, 9639, 2979, 29909, 87, 2213, 87, 5187, 738, 261, 2135, 67, 2088, 67, 1918, 67, 451, 2584, 67, 3753, 16, 843, 3719, 364, 1241, 316, 501, 18, 4717, 30, 527, 67, 267, 67, 718, 1098, 12, 718, 16, 1241, 18, 1785, 16, 296, 9536, 2 ]
This has nothing to do with pickling. This internal method replaces the cached representative by one in reduced form.
Reduce the element modulo the defining ideal of the quotient ring. This internal method replaces the cached representative by one in reduced form. (Note that this has nothing to do with pickling.)
def _reduce_(self): """ This has nothing to do with pickling. This internal method replaces the cached representative by one in reduced form. TESTS:: sage: R.<x,y> = QQ[]; S.<a,b> = R.quo(x^2 + y^2); type(a) <class 'sage.rings.quotient_ring_element.QuotientRingElement'> sage: a._reduce_() sage: a._QuotientRingElement__rep x """ I = self.parent().defining_ideal() self.__rep = I.reduce(self.__rep)
fe2b46cf11f13c5d5c987520501f153b38a5b3cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fe2b46cf11f13c5d5c987520501f153b38a5b3cb/quotient_ring_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12498, 67, 12, 2890, 4672, 3536, 24614, 326, 930, 26109, 326, 9364, 23349, 434, 326, 26708, 9221, 18, 225, 1220, 2713, 707, 12878, 326, 3472, 23174, 635, 1245, 316, 13162, 646, 18, 225, 261, 8067, 716, 333, 711, 5083, 358, 741, 598, 6002, 2456, 12998, 225, 22130, 55, 2866, 225, 272, 410, 30, 534, 22782, 92, 16, 93, 34, 273, 2238, 53, 8526, 31, 348, 22782, 69, 16, 70, 34, 273, 534, 18, 372, 83, 12, 92, 66, 22, 397, 677, 66, 22, 1769, 618, 12, 69, 13, 411, 1106, 296, 87, 410, 18, 86, 899, 18, 9270, 1979, 67, 8022, 67, 2956, 18, 7678, 1979, 10369, 1046, 29256, 272, 410, 30, 279, 6315, 12498, 67, 1435, 272, 410, 30, 279, 6315, 7678, 1979, 10369, 1046, 972, 14462, 619, 3536, 467, 273, 365, 18, 2938, 7675, 5649, 310, 67, 831, 287, 1435, 365, 16186, 14462, 273, 467, 18, 12498, 12, 2890, 16186, 14462, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12498, 67, 12, 2890, 4672, 3536, 24614, 326, 930, 26109, 326, 9364, 23349, 434, 326, 26708, 9221, 18, 225, 1220, 2713, 707, 12878, 326, 3472, 23174, 635, 1245, 316, 13162, 646, 18, 225, 261, 8067, 716, 333, 711, 5083, 358, 741, 598, 6002, 2456, 12998, 225, 22130, 55, 2866, 225, 272, 410, 30, 534, 22782, 92, 16, 93, 34, 273, 2238, 53, 8526, 31, 348, 22782, 69, 16, 70, 34, 273, 534, 18, 372, 83, 12, 92, 66, 22, 397, 677, 66, 22, 1769, 618, 12, 69, 13, 411, 1106, 296, 87, 410, 18, 86, 899, 18, 9270, 1979, 67, 8022, 67, 2956, 18, 7678, 1979, 10369, 1046, 29256, 272, 410, 30, 279, 6315, 12498, 67, 1435, 2 ]
sf = pygame.Surface ((10, 20), 0, 32) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
for bpp in (8, 16, 24, 32): sf = pygame.Surface ((10, 20), 0, bpp) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
def test_set_pixel (self): sf = pygame.Surface ((10, 20), 0, 32) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
8c52ec7e2d3c922d31ce5b160f9bf0527da94d40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/8c52ec7e2d3c922d31ce5b160f9bf0527da94d40/pixelarray_test.py
[ 1, 8585, 326, 22398, 316, 326,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 67, 11743, 261, 2890, 4672, 9033, 273, 2395, 13957, 18, 11508, 14015, 2163, 16, 4200, 3631, 374, 16, 3847, 13, 9033, 18, 5935, 14015, 20, 16, 374, 16, 374, 3719, 419, 273, 2395, 13957, 18, 9037, 1076, 261, 21668, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
daypos, timepos = divmod(pos, len(self._timeset))
daypos, timepos = divmod(pos, len(timeset))
def _iter(self): year, month, day, hour, minute, second, weekday, yearday, _ = \ self._dtstart.timetuple()
d375f07e08a8fd61f1640e67f981e1abdac8d8d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/d375f07e08a8fd61f1640e67f981e1abdac8d8d1/rrule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2165, 12, 2890, 4672, 3286, 16, 3138, 16, 2548, 16, 6126, 16, 8044, 16, 2205, 16, 7560, 16, 677, 73, 1060, 528, 16, 389, 273, 521, 365, 6315, 7510, 1937, 18, 8584, 278, 2268, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2165, 12, 2890, 4672, 3286, 16, 3138, 16, 2548, 16, 6126, 16, 8044, 16, 2205, 16, 7560, 16, 677, 73, 1060, 528, 16, 389, 273, 521, 365, 6315, 7510, 1937, 18, 8584, 278, 2268, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
tax_code_obj.create_tax_code(cursor, user, tax_code_template, datas['form']['company'], context=context, template2tax_code=template2tax_code)
tax_code_template_obj.create_tax_code(cursor, user, tax_code_template, datas['form']['company'], context=context, template2tax_code=template2tax_code)
def _action_create_account(self, cursor, user, datas, context=None): account_type_template_obj = \ self.pool.get('account.account.type.template') account_template_obj = self.pool.get('account.account.template') tax_code_template_obj = self.pool.get('account.tax.code.template') tax_template_obj = self.pool.get('account.tax.template')
7b0aa114d11fec207e44ed59e7d9e70c94ec9197 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/7b0aa114d11fec207e44ed59e7d9e70c94ec9197/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1128, 67, 2640, 67, 4631, 12, 2890, 16, 3347, 16, 729, 16, 5386, 16, 819, 33, 7036, 4672, 2236, 67, 723, 67, 3202, 67, 2603, 273, 521, 365, 18, 6011, 18, 588, 2668, 4631, 18, 4631, 18, 723, 18, 3202, 6134, 2236, 67, 3202, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 4631, 18, 3202, 6134, 5320, 67, 710, 67, 3202, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 710, 18, 3202, 6134, 5320, 67, 3202, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 3202, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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7036, 4672, 2236, 67, 723, 67, 3202, 67, 2603, 273, 521, 365, 18, 6011, 18, 588, 2668, 4631, 18, 4631, 18, 723, 18, 3202, 6134, 2236, 67, 3202, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 4631, 18, 3202, 6134, 5320, 67, 710, 67, 3202, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 710, 18, 3202, 6134, 5320, 67, 3202, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 18, 3202, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if prop is not None: if args[k] and (isinstance(prop, hyperdb.Multilink) or isinstance(prop, hyperdb.Link)): classname = prop.classname try: linkcl = self._db.getclass(classname) except KeyError: labelprop = None comments[classname] = _('''The linked class %(classname)s no longer exists''')%locals() labelprop = linkcl.labelprop(1) hrefable = os.path.exists( os.path.join(self._db.config.TEMPLATES, classname+'.item')) if isinstance(prop, hyperdb.Multilink) and args[k]: ml = [] for linkid in args[k]: if isinstance(linkid, type(())): sublabel = linkid[0] + ' ' linkids = linkid[1] else: sublabel = '' linkids = [linkid] subml = [] for linkid in linkids: label = classname + linkid try: if labelprop is not None and \ labelprop != 'id': label = linkcl.get(linkid, labelprop) except IndexError: comments['no_link'] = _('''<strike>The linked node no longer exists</strike>''') subml.append('<strike>%s</strike>'%label) else: if hrefable: subml.append('<a href="%s%s">%s</a>'%( classname, linkid, label)) else: subml.append(label) ml.append(sublabel + ', '.join(subml)) cell.append('%s:\n %s'%(k, ', '.join(ml))) elif isinstance(prop, hyperdb.Link) and args[k]: label = classname + args[k] if labelprop is not None and labelprop != 'id':
if prop is None: comments['no_exist'] = _('''<em>The indicated property no longer exists</em>''') cell.append('<em>%s: %s</em>\n'%(k, str(args[k]))) continue if args[k] and (isinstance(prop, hyperdb.Multilink) or isinstance(prop, hyperdb.Link)): classname = prop.classname try: linkcl = self._db.getclass(classname) except KeyError: labelprop = None comments[classname] = _('''The linked class %(classname)s no longer exists''')%locals() labelprop = linkcl.labelprop(1) try: template = find_template(self._db.config.TEMPLATES, classname, 'item') if template[1].startswith('_generic'): raise NoTemplate, 'not really...' hrefable = 1 except NoTemplate: hrefable = 0 if isinstance(prop, hyperdb.Multilink) and args[k]: ml = [] for linkid in args[k]: if isinstance(linkid, type(())): sublabel = linkid[0] + ' ' linkids = linkid[1] else: sublabel = '' linkids = [linkid] subml = [] for linkid in linkids: label = classname + linkid
def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self._nodeid) history.sort() timezone = self._db.getUserTimezone() if direction == 'descending': history.reverse() for prop_n in self._props.keys(): prop = self[prop_n] if isinstance(prop, HTMLProperty): current[prop_n] = prop.plain() # make link if hrefable if (self._props.has_key(prop_n) and isinstance(self._props[prop_n], hyperdb.Link)): classname = self._props[prop_n].classname try: find_template(self._db.config.TEMPLATES, classname, 'item') except NoTemplate: pass else: id = self._klass.get(self._nodeid, prop_n, None) current[prop_n] = '<a href="%s%s">%s</a>'%( classname, id, current[prop_n])
1ea8cff47f70916ee19486dfd32766235b849f94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1ea8cff47f70916ee19486dfd32766235b849f94/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2890, 16, 4068, 2218, 5569, 2846, 2187, 302, 266, 33, 266, 18, 11100, 2668, 64, 72, 6797, 3719, 30, 328, 273, 10228, 32, 2121, 667, 1546, 8189, 7918, 2368, 313, 4438, 451, 20856, 1546, 24, 6, 667, 1546, 3374, 7918, 16, 389, 2668, 5623, 19899, 4357, 451, 4695, 313, 4438, 313, 1870, 16, 389, 2668, 32, 451, 34, 1626, 1757, 451, 1870, 3631, 389, 2668, 32, 451, 34, 1299, 1757, 451, 1870, 3631, 389, 2668, 32, 451, 34, 1803, 1757, 451, 1870, 3631, 389, 2668, 32, 451, 34, 2615, 1757, 451, 1870, 3631, 4357, 313, 1870, 65, 783, 273, 2618, 5678, 273, 2618, 4927, 273, 365, 6315, 22626, 18, 8189, 12, 2890, 6315, 2159, 350, 13, 4927, 18, 3804, 1435, 6371, 273, 365, 6315, 1966, 18, 588, 1299, 17989, 1435, 309, 4068, 422, 296, 5569, 2846, 4278, 4927, 18, 9845, 1435, 364, 2270, 67, 82, 316, 365, 6315, 9693, 18, 2452, 13332, 2270, 273, 365, 63, 5986, 67, 82, 65, 309, 1549, 12, 5986, 16, 3982, 1396, 4672, 783, 63, 5986, 67, 82, 65, 273, 2270, 18, 7446, 1435, 468, 1221, 1692, 309, 3897, 429, 309, 261, 2890, 6315, 9693, 18, 5332, 67, 856, 12, 5986, 67, 82, 13, 471, 1549, 12, 2890, 6315, 9693, 63, 5986, 67, 82, 6487, 9512, 1966, 18, 2098, 3719, 30, 7479, 273, 365, 6315, 9693, 63, 5986, 67, 82, 8009, 18340, 775, 30, 1104, 67, 3202, 12, 2890, 6315, 1966, 18, 1425, 18, 12205, 55, 16, 7479, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2890, 16, 4068, 2218, 5569, 2846, 2187, 302, 266, 33, 266, 18, 11100, 2668, 64, 72, 6797, 3719, 30, 328, 273, 10228, 32, 2121, 667, 1546, 8189, 7918, 2368, 313, 4438, 451, 20856, 1546, 24, 6, 667, 1546, 3374, 7918, 16, 389, 2668, 5623, 19899, 4357, 451, 4695, 313, 4438, 313, 1870, 16, 389, 2668, 32, 451, 34, 1626, 1757, 451, 1870, 3631, 389, 2668, 32, 451, 34, 1299, 1757, 451, 1870, 3631, 389, 2668, 32, 451, 34, 1803, 1757, 451, 1870, 3631, 389, 2668, 32, 451, 34, 2615, 1757, 451, 1870, 3631, 4357, 313, 1870, 65, 783, 273, 2618, 5678, 273, 2618, 4927, 273, 365, 6315, 22626, 18, 8189, 12, 2890, 6315, 2159, 350, 13, 2 ]
reply = getattr(self, 'xwf_email_subscribe_key', None) email_address = mail['from']
reply = getattr(self, 'email_subscribe_key', None) thepin = pin( msg.sender, self.getValueFor('hashkey') )
def mail_subscribe_key(self, context, REQUEST, mail=None, body=''): """ A hook used by the MailBoxer framework, which we provide here as a clean default. """ smtpserver = smtplib.SMTP(self.MailHost.smtp_host, int(self.MailHost.smtp_port)) returnpath=self.getValueFor('returnpath') if not returnpath: returnpath = self.getValueFor('moderator')[0] reply = getattr(self, 'xwf_email_subscribe_key', None) email_address = mail['from'] if reply: reply_text = reply(REQUEST, list_object=context, getValueFor=self.getValueFor, mail=mail, body=body) smtpserver.sendmail(returnpath, [email_address], reply_text) else: pass smtpserver.quit()
23c20aaac6d9dabc6649a8df6a2934aec71d70c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6274/23c20aaac6d9dabc6649a8df6a2934aec71d70c7/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4791, 67, 9174, 67, 856, 12, 2890, 16, 819, 16, 12492, 16, 4791, 33, 7036, 16, 1417, 2218, 11, 4672, 3536, 432, 3953, 1399, 635, 326, 11542, 3514, 264, 8257, 16, 1492, 732, 5615, 2674, 487, 279, 2721, 805, 18, 225, 3536, 17660, 3567, 273, 272, 1010, 6673, 18, 55, 14636, 12, 2890, 18, 6759, 2594, 18, 20278, 67, 2564, 16, 509, 12, 2890, 18, 6759, 2594, 18, 20278, 67, 655, 3719, 225, 327, 803, 33, 2890, 18, 24805, 1290, 2668, 2463, 803, 6134, 309, 486, 327, 803, 30, 327, 803, 273, 365, 18, 24805, 1290, 2668, 1711, 7385, 6134, 63, 20, 65, 225, 4332, 273, 3869, 12, 2890, 16, 296, 3652, 67, 9174, 67, 856, 2187, 599, 13, 225, 326, 13097, 273, 7092, 12, 1234, 18, 15330, 16, 365, 18, 24805, 1290, 2668, 2816, 856, 6134, 262, 225, 309, 4332, 30, 4332, 67, 955, 273, 4332, 12, 5519, 16, 666, 67, 1612, 33, 2472, 16, 2366, 1290, 33, 2890, 18, 24805, 1290, 16, 4791, 33, 4408, 16, 1417, 33, 3432, 13, 17660, 3567, 18, 4661, 4408, 12, 2463, 803, 16, 306, 3652, 67, 2867, 6487, 4332, 67, 955, 13, 469, 30, 1342, 225, 17660, 3567, 18, 27176, 1435, 2, 0, 0, 0, 0, 0, 0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542, 3514, 264, 8257, 16, 1492, 732, 5615, 2674, 487, 279, 2721, 805, 18, 225, 3536, 17660, 3567, 273, 272, 1010, 6673, 18, 55, 14636, 12, 2890, 18, 6759, 2594, 18, 20278, 67, 2564, 16, 509, 12, 2890, 18, 6759, 2594, 18, 20278, 67, 655, 3719, 225, 327, 803, 33, 2890, 18, 24805, 1290, 2668, 2463, 803, 6134, 309, 486, 327, 803, 30, 327, 803, 273, 365, 18, 24805, 1290, 2668, 1711, 7385, 6134, 63, 20, 65, 225, 4332, 273, 3869, 12, 2890, 16, 296, 3652, 67, 9174, 67, 856, 2187, 599, 2 ]
self.body.append( '\\end{itemize}\n' )
self.body.append('\\end{itemize}\n' )
def depart_bullet_list(self, node): self.body.append( '\\end{itemize}\n' )
f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe/python_latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 70, 19994, 67, 1098, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 12, 3718, 409, 95, 1726, 554, 6280, 82, 11, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 70, 19994, 67, 1098, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 12, 3718, 409, 95, 1726, 554, 6280, 82, 11, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
x = complex(x, 0)
x = _to_complex(x)
def cos(x): """cos(x) Return the cosine of x.""" x = complex(x, 0) real = math.cos(x.real) * math.cosh(x.imag) imag = -math.sin(x.real) * math.sinh(x.imag) return complex(real, imag)
d265b40c2f1e228c0cbd532ea68ae4f9079e1876 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d265b40c2f1e228c0cbd532ea68ae4f9079e1876/cmath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4987, 12, 92, 4672, 3536, 14445, 12, 92, 13, 225, 2000, 326, 31633, 434, 619, 12123, 225, 619, 273, 389, 869, 67, 14259, 12, 92, 13, 2863, 273, 4233, 18, 14445, 12, 92, 18, 7688, 13, 380, 4233, 18, 14445, 76, 12, 92, 18, 15374, 13, 8902, 273, 300, 15949, 18, 21861, 12, 92, 18, 7688, 13, 380, 4233, 18, 21861, 76, 12, 92, 18, 15374, 13, 327, 7233, 12, 7688, 16, 8902, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4987, 12, 92, 4672, 3536, 14445, 12, 92, 13, 225, 2000, 326, 31633, 434, 619, 12123, 225, 619, 273, 389, 869, 67, 14259, 12, 92, 13, 2863, 273, 4233, 18, 14445, 12, 92, 18, 7688, 13, 380, 4233, 18, 14445, 76, 12, 92, 18, 15374, 13, 8902, 273, 300, 15949, 18, 21861, 12, 92, 18, 7688, 13, 380, 4233, 18, 21861, 76, 12, 92, 18, 15374, 13, 327, 7233, 12, 7688, 16, 8902, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elapmsg = "Elasped Time: " + self.hhmmss_str(self.duration)
elapmsg = "Elasped Time: " + self.hhmmss_str(int(self.duration))
def launch( self , nsteps, filename = '', caption = "Progress", message = "Calculating...", dflag = 0): """Launch a progress bar dialog and update while a file is being written. nsteps - total steps for the progress bar (final size in bytes of filename) filename - name of file we are waiting for. caption - dialog caption message - text that appears above the progress bar dflag - if True, display duration (in seconds) below progressbar """ self.abort = False filesize = 0 sinc = .1 self.stime = time.time()
30850dda57395442f710cb546912468fcae68fcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/30850dda57395442f710cb546912468fcae68fcc/ProgressBar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 365, 269, 290, 8986, 16, 1544, 273, 10226, 11006, 273, 315, 5491, 3113, 883, 273, 315, 30238, 7070, 16, 302, 6420, 273, 374, 4672, 3536, 9569, 279, 4007, 4653, 6176, 471, 1089, 1323, 279, 585, 353, 3832, 5941, 18, 290, 8986, 300, 2078, 6075, 364, 326, 4007, 4653, 261, 6385, 963, 316, 1731, 434, 1544, 13, 1544, 300, 508, 434, 585, 732, 854, 7336, 364, 18, 11006, 300, 6176, 11006, 883, 300, 977, 716, 14606, 5721, 326, 4007, 4653, 302, 6420, 300, 309, 1053, 16, 2562, 3734, 261, 267, 3974, 13, 5712, 31730, 3536, 225, 365, 18, 18623, 273, 1083, 14104, 273, 374, 5367, 71, 273, 263, 21, 365, 18, 334, 494, 273, 813, 18, 957, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 365, 269, 290, 8986, 16, 1544, 273, 10226, 11006, 273, 315, 5491, 3113, 883, 273, 315, 30238, 7070, 16, 302, 6420, 273, 374, 4672, 3536, 9569, 279, 4007, 4653, 6176, 471, 1089, 1323, 279, 585, 353, 3832, 5941, 18, 290, 8986, 300, 2078, 6075, 364, 326, 4007, 4653, 261, 6385, 963, 316, 1731, 434, 1544, 13, 1544, 300, 508, 434, 585, 732, 854, 7336, 364, 18, 11006, 300, 6176, 11006, 883, 300, 977, 716, 14606, 5721, 326, 4007, 4653, 302, 6420, 300, 309, 1053, 16, 2562, 3734, 261, 267, 3974, 13, 5712, 31730, 3536, 225, 365, 18, 18623, 273, 1083, 14104, 273, 374, 5367, 71, 273, 263, 21, 365, 18, 334, 494, 273, 813, 18, 957, 2 ]
return http.Response(stream=s)
return HTMLResponse(stream=s)
def render(self, ctx): id = self.id(ctx) if not ctx.args.has_key('input'): input_text = '' else: input_text = ctx.args['input'][0] input_text = input_text.replace('\r\n', '\n') # DOS
39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 612, 273, 365, 18, 350, 12, 5900, 13, 309, 486, 1103, 18, 1968, 18, 5332, 67, 856, 2668, 2630, 11, 4672, 810, 67, 955, 273, 875, 469, 30, 810, 67, 955, 273, 1103, 18, 1968, 3292, 2630, 3546, 63, 20, 65, 810, 67, 955, 273, 810, 67, 955, 18, 2079, 2668, 64, 86, 64, 82, 2187, 2337, 82, 6134, 282, 468, 463, 4618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 612, 273, 365, 18, 350, 12, 5900, 13, 309, 486, 1103, 18, 1968, 18, 5332, 67, 856, 2668, 2630, 11, 4672, 810, 67, 955, 273, 875, 469, 30, 810, 67, 955, 273, 1103, 18, 1968, 3292, 2630, 3546, 63, 20, 65, 810, 67, 955, 273, 810, 67, 955, 18, 2079, 2668, 64, 86, 64, 82, 2187, 2337, 82, 6134, 282, 468, 463, 4618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""%(number, number+1))
"""%(save_name, number, number+1))
def __show_page(self, number): global current_log f = self.send_head() if f: f = StringIO() f.write(""" <html><head><title>SAGE Calculator (%s)</title></head>\n <script language=javascript> function scroll_to_bottom() { document.getElementById(%s).scrollIntoView(); document.io%s.elements[0].focus(); }
f222050139d0f9d9c6171de9f4d6247466c1de72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/f222050139d0f9d9c6171de9f4d6247466c1de72/server1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4500, 67, 2433, 12, 2890, 16, 1300, 4672, 2552, 783, 67, 1330, 284, 273, 365, 18, 4661, 67, 1978, 1435, 309, 284, 30, 284, 273, 15777, 1435, 284, 18, 2626, 2932, 3660, 411, 2620, 4438, 1978, 4438, 2649, 34, 55, 2833, 15994, 639, 6142, 87, 13, 1757, 2649, 4695, 1978, 5333, 82, 411, 4263, 2653, 33, 11242, 34, 445, 5532, 67, 869, 67, 9176, 1435, 288, 1668, 18, 24135, 9275, 87, 2934, 12033, 5952, 1767, 5621, 1668, 18, 1594, 9, 87, 18, 6274, 63, 20, 8009, 13923, 5621, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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695, 1978, 5333, 82, 411, 4263, 2653, 33, 11242, 34, 445, 5532, 67, 869, 67, 9176, 1435, 288, 1668, 18, 24135, 9275, 87, 2934, 12033, 5952, 1767, 5621, 1668, 18, 1594, 9, 87, 18, 6274, 63, 20, 8009, 13923, 5621, 289, 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 ]
print_directory() print_arguments()
def g(f=f): f()
41550751b18a239c982718c5055b4428c016b302 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/41550751b18a239c982718c5055b4428c016b302/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 12, 74, 33, 74, 4672, 284, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 12, 74, 33, 74, 4672, 284, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
events = metatool.listAllowedSubjects(content_type = "Event")
my_type = self.getPortalTypeName() events = metatool.listAllowedSubjects(content_type = my_type)
def getEventTypes(self): """fetch a list of the available event types from the vocabulary """ metatool = getToolByName(self, "portal_metadata") events = metatool.listAllowedSubjects(content_type = "Event") return events
ac9c43bbbac9a25538a4e792678f36a9b243df80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11956/ac9c43bbbac9a25538a4e792678f36a9b243df80/event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9832, 2016, 12, 2890, 4672, 3536, 5754, 279, 666, 434, 326, 2319, 871, 1953, 628, 326, 20906, 3536, 5100, 270, 1371, 273, 336, 6364, 5911, 12, 2890, 16, 315, 24386, 67, 4165, 7923, 3399, 67, 723, 273, 365, 18, 588, 24395, 7947, 1435, 2641, 273, 5100, 270, 1371, 18, 1098, 5042, 6638, 87, 12, 1745, 67, 723, 273, 3399, 67, 723, 13, 327, 2641, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9832, 2016, 12, 2890, 4672, 3536, 5754, 279, 666, 434, 326, 2319, 871, 1953, 628, 326, 20906, 3536, 5100, 270, 1371, 273, 336, 6364, 5911, 12, 2890, 16, 315, 24386, 67, 4165, 7923, 3399, 67, 723, 273, 365, 18, 588, 24395, 7947, 1435, 2641, 273, 5100, 270, 1371, 18, 1098, 5042, 6638, 87, 12, 1745, 67, 723, 273, 3399, 67, 723, 13, 327, 2641, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.KillHandler,
def __init__(self, request, client_address, socket_server): self._connect_handlers = [ self.RedirectConnectHandler, self.ServerAuthConnectHandler, self.DefaultConnectResponseHandler] self._get_handlers = [ self.KillHandler, self.NoCacheMaxAgeTimeHandler, self.NoCacheTimeHandler, self.CacheTimeHandler, self.CacheExpiresHandler, self.CacheProxyRevalidateHandler, self.CachePrivateHandler, self.CachePublicHandler, self.CacheSMaxAgeHandler, self.CacheMustRevalidateHandler, self.CacheMustRevalidateMaxAgeHandler, self.CacheNoStoreHandler, self.CacheNoStoreMaxAgeHandler, self.CacheNoTransformHandler, self.DownloadHandler, self.DownloadFinishHandler, self.EchoHeader, self.EchoHeaderOverride, self.EchoAllHandler, self.FileHandler, self.RealFileWithCommonHeaderHandler, self.RealBZ2FileWithCommonHeaderHandler, self.SetCookieHandler, self.AuthBasicHandler, self.AuthDigestHandler, self.SlowServerHandler, self.ContentTypeHandler, self.ServerRedirectHandler, self.ClientRedirectHandler, self.ChromiumSyncTimeHandler, self.MultipartHandler, self.DefaultResponseHandler] self._post_handlers = [ self.EchoTitleHandler, self.EchoAllHandler, self.ChromiumSyncCommandHandler, self.EchoHandler] + self._get_handlers self._put_handlers = [ self.EchoTitleHandler, self.EchoAllHandler, self.EchoHandler] + self._get_handlers
814d8c519498ba4f6ab732363a6f66cc5da8a33c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/814d8c519498ba4f6ab732363a6f66cc5da8a33c/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 16, 1004, 67, 2867, 16, 2987, 67, 3567, 4672, 365, 6315, 3612, 67, 11046, 273, 306, 365, 18, 5961, 5215, 1503, 16, 365, 18, 2081, 1730, 5215, 1503, 16, 365, 18, 1868, 5215, 1064, 1503, 65, 365, 6315, 588, 67, 11046, 273, 306, 365, 18, 2279, 1649, 2747, 9692, 950, 1503, 16, 365, 18, 2279, 1649, 950, 1503, 16, 365, 18, 1649, 950, 1503, 16, 365, 18, 1649, 14449, 1503, 16, 365, 18, 1649, 3886, 426, 5662, 1503, 16, 365, 18, 1649, 6014, 1503, 16, 365, 18, 1649, 4782, 1503, 16, 365, 18, 1649, 55, 2747, 9692, 1503, 16, 365, 18, 1649, 10136, 426, 5662, 1503, 16, 365, 18, 1649, 10136, 426, 5662, 2747, 9692, 1503, 16, 365, 18, 1649, 2279, 2257, 1503, 16, 365, 18, 1649, 2279, 2257, 2747, 9692, 1503, 16, 365, 18, 1649, 2279, 4059, 1503, 16, 365, 18, 7109, 1503, 16, 365, 18, 7109, 11641, 1503, 16, 365, 18, 19704, 1864, 16, 365, 18, 19704, 1864, 6618, 16, 365, 18, 19704, 1595, 1503, 16, 365, 18, 28942, 16, 365, 18, 6955, 812, 1190, 6517, 1864, 1503, 16, 365, 18, 6955, 38, 62, 22, 812, 1190, 6517, 1864, 1503, 16, 365, 18, 694, 6151, 1503, 16, 365, 18, 1730, 8252, 1503, 16, 365, 18, 1730, 9568, 1503, 16, 365, 18, 28733, 2081, 1503, 16, 365, 18, 8046, 1503, 16, 365, 18, 2081, 5961, 1503, 16, 365, 18, 1227, 5961, 1503, 16, 365, 18, 30761, 5077, 4047, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 16, 1004, 67, 2867, 16, 2987, 67, 3567, 4672, 365, 6315, 3612, 67, 11046, 273, 306, 365, 18, 5961, 5215, 1503, 16, 365, 18, 2081, 1730, 5215, 1503, 16, 365, 18, 1868, 5215, 1064, 1503, 65, 365, 6315, 588, 67, 11046, 273, 306, 365, 18, 2279, 1649, 2747, 9692, 950, 1503, 16, 365, 18, 2279, 1649, 950, 1503, 16, 365, 18, 1649, 950, 1503, 16, 365, 18, 1649, 14449, 1503, 16, 365, 18, 1649, 3886, 426, 5662, 1503, 16, 365, 18, 1649, 6014, 1503, 16, 365, 18, 1649, 4782, 1503, 16, 365, 18, 1649, 55, 2747, 9692, 1503, 16, 365, 18, 1649, 10136, 426, 5662, 1503, 16, 365, 18, 1649, 10136, 2 ]
msg = _('argument "-" with mode %r' % self._mode)
msg = _('argument "-" with mode %r') % self._mode
def __call__(self, string): # the special argument "-" means sys.std{in,out} if string == '-': if 'r' in self._mode: return _sys.stdin elif 'w' in self._mode: return _sys.stdout else: msg = _('argument "-" with mode %r' % self._mode) raise ValueError(msg)
f2af8579d9039e824c5815ad0429169908275fa7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f2af8579d9039e824c5815ad0429169908275fa7/argparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 533, 4672, 468, 326, 4582, 1237, 7514, 4696, 2589, 18, 5084, 95, 267, 16, 659, 97, 309, 533, 422, 4014, 30, 309, 296, 86, 11, 316, 365, 6315, 3188, 30, 327, 389, 9499, 18, 21772, 1327, 296, 91, 11, 316, 365, 6315, 3188, 30, 327, 389, 9499, 18, 10283, 469, 30, 1234, 273, 389, 2668, 3446, 7514, 598, 1965, 738, 86, 6134, 738, 365, 6315, 3188, 1002, 2068, 12, 3576, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 533, 4672, 468, 326, 4582, 1237, 7514, 4696, 2589, 18, 5084, 95, 267, 16, 659, 97, 309, 533, 422, 4014, 30, 309, 296, 86, 11, 316, 365, 6315, 3188, 30, 327, 389, 9499, 18, 21772, 1327, 296, 91, 11, 316, 365, 6315, 3188, 30, 327, 389, 9499, 18, 10283, 469, 30, 1234, 273, 389, 2668, 3446, 7514, 598, 1965, 738, 86, 6134, 738, 365, 6315, 3188, 1002, 2068, 12, 3576, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
from zhipy import interpreter
from zhpyi import interpreter
def commandtool(): """command line tool method input: speficy the input source output: speficy the output source python: compile to python and run cmp: input raw zhpy source and run """ parser = OptionParser( usage="usage: %prog [-i|-p] input [-o output]", version="zhpy %s"%version) parser.add_option("-i", "--input", help="speficy the input source", dest="input", default = None) parser.add_option("-o", "--output", help="speficy the output source", dest="output", default = None) parser.add_option("-p", "--python", help="compile to python and run", dest="python", default = None) parser.add_option("-c", "--cmd", help="input zhpy program as string and run", dest="cmp", default = None) (options, args) = parser.parse_args() os.chdir(os.getcwd()) #run as script if options.cmp: test = options.cmp annotator() result = convertor(test) try_run(result) return #run as command #TODO: accept args argv = sys.argv[1:] if len(argv) >= 1: if (options.input is None) and argv[0].endswith("py"): options.input = argv[0] if options.python: options.input = options.python #if options.input: test = file(options.input, "r").read() annotator() result = convertor(test) if len(argv) == 2: if argv[0].endswith("py") and argv[1].endswith("py"): options.output = argv[1] if options.python: filename = os.path.splitext(options.python)[0] file("n_"+filename+".py","w").write(result) print "compile to python and run: %s"%("n_"+filename+".py") if options.output: file(options.output,"w").write(result) else: try_run(result) else: from zhipy import interpreter interpreter()
849f75729d59f2d9ab90eb17e77cfea7deab1d4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/849f75729d59f2d9ab90eb17e77cfea7deab1d4c/zhpy_cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 6738, 13332, 3536, 3076, 980, 5226, 707, 225, 810, 30, 17785, 74, 335, 93, 326, 810, 1084, 876, 30, 17785, 74, 335, 93, 326, 876, 1084, 5790, 30, 4074, 358, 5790, 471, 1086, 9411, 30, 810, 1831, 30484, 2074, 1084, 471, 1086, 3536, 2082, 273, 18862, 12, 4084, 1546, 9167, 30, 738, 14654, 23059, 77, 24718, 84, 65, 810, 23059, 83, 876, 65, 3113, 1177, 1546, 23121, 2074, 738, 87, 28385, 1589, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 77, 3113, 5238, 2630, 3113, 2809, 1546, 87, 347, 74, 335, 93, 326, 810, 1084, 3113, 1570, 1546, 2630, 3113, 805, 273, 599, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 83, 3113, 5238, 2844, 3113, 2809, 1546, 87, 347, 74, 335, 93, 326, 876, 1084, 3113, 1570, 1546, 2844, 3113, 805, 273, 599, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 84, 3113, 5238, 8103, 3113, 2809, 1546, 11100, 358, 5790, 471, 1086, 3113, 1570, 1546, 8103, 3113, 805, 273, 599, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 71, 3113, 5238, 4172, 3113, 2809, 1546, 2630, 30484, 2074, 5402, 487, 533, 471, 1086, 3113, 1570, 1546, 9625, 3113, 805, 273, 599, 13, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 225, 1140, 18, 343, 1214, 12, 538, 18, 588, 11089, 10756, 468, 2681, 487, 2728, 309, 702, 18, 9625, 30, 1842, 273, 702, 18, 9625, 6545, 639, 1435, 563, 273, 1765, 280, 12, 3813, 13, 775, 67, 2681, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 6738, 13332, 3536, 3076, 980, 5226, 707, 225, 810, 30, 17785, 74, 335, 93, 326, 810, 1084, 876, 30, 17785, 74, 335, 93, 326, 876, 1084, 5790, 30, 4074, 358, 5790, 471, 1086, 9411, 30, 810, 1831, 30484, 2074, 1084, 471, 1086, 3536, 2082, 273, 18862, 12, 4084, 1546, 9167, 30, 738, 14654, 23059, 77, 24718, 84, 65, 810, 23059, 83, 876, 65, 3113, 1177, 1546, 23121, 2074, 738, 87, 28385, 1589, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 77, 3113, 5238, 2630, 3113, 2809, 1546, 87, 347, 74, 335, 93, 326, 810, 1084, 3113, 1570, 1546, 2630, 3113, 805, 273, 599, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 83, 3113, 5238, 2844, 3113, 2809, 2 ]
r""" The sequence $tau(n)$, which is the number of divisors of $n$. This sequence is also denoted $d(n)$ (also called $\tau(n)$ or $\sigma_0(n)$), the number of divisors of n. INPUT: n -- positive integer OUTPUT: EXAMPLES: sage: d = sloane.A000005; d The integer sequence tau(n), which is the number of divisors of n. sage: d(1) 1 sage: d(6) 4 sage: d(51) 4 sage: d(100) 9 sage: d(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: d.list(10) [1, 2, 2, 3, 2, 4, 2, 4, 3, 4] AUTHOR: -- Jaap Spies (2006-12-10) -- William Stein (2007-01-08) """ def __init__(self):
def __init__(self): r""" The sequence $tau(n)$, which is the number of divisors of $n$. This sequence is also denoted $d(n)$ (also called $\tau(n)$ or $\sigma_0(n)$), the number of divisors of n. INPUT: n -- positive integer OUTPUT: EXAMPLES: sage: d = sloane.A000005; d The integer sequence tau(n), which is the number of divisors of n. sage: d(1) 1 sage: d(6) 4 sage: d(51) 4 sage: d(100) 9 sage: d(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: d.list(10) [1, 2, 2, 3, 2, 4, 2, 4, 3, 4] AUTHOR: -- Jaap Spies (2006-12-10) -- William Stein (2007-01-08) """
def _eval(self, n): return 0
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 374, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.pool.get('ir.model.access').check(cr, user, self._name, 'read', context=context)
self.pool.get('ir.model.access').check(cr, access_rights_uid or user, self._name, 'read', context=context)
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): """ Search for record/s based on a search domain.
fb1b59cc7592103b77e5eba54e06b0470f245930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/fb1b59cc7592103b77e5eba54e06b0470f245930/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 4422, 16, 729, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 4672, 3536, 5167, 364, 1409, 19, 87, 2511, 603, 279, 1623, 2461, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "WARNING: Going to slow: ", spent, " ", left
print "WARNING: Going too slow: ", spent, " ", left
def emulate_cycle(self): # self.joypad_driver.button_up(True) X = 1<<6 # About 1<<6 to make sure we have a clean distrubution of about # 1<<6 frames per second start_time = time.time() self.handle_events() # Come back to this cycle every 1/X seconds self.emulate(constants.GAMEBOY_CLOCK / X) # if use_rsdl: # RSDL.Delay(100) spent = time.time() - start_time left = (1.0/X) - spent if left > 0: time.sleep(left) else: print "WARNING: Going to slow: ", spent, " ", left
3da070f5d0a13e2c15e48f522e814dfb35203837 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/3da070f5d0a13e2c15e48f522e814dfb35203837/gameboy_implementation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 801, 6243, 67, 13946, 12, 2890, 4672, 468, 365, 18, 30952, 879, 361, 67, 7407, 18, 5391, 67, 416, 12, 5510, 13, 1139, 273, 404, 17685, 26, 468, 9771, 659, 404, 17685, 26, 358, 1221, 3071, 732, 1240, 279, 2721, 1015, 313, 373, 1421, 434, 2973, 468, 404, 17685, 26, 7793, 1534, 2205, 787, 67, 957, 273, 813, 18, 957, 1435, 365, 18, 4110, 67, 5989, 1435, 468, 1286, 73, 1473, 358, 333, 8589, 3614, 404, 19, 60, 3974, 365, 18, 351, 6243, 12, 13358, 18, 43, 1642, 5315, 61, 67, 39, 6589, 342, 1139, 13, 468, 309, 999, 67, 5453, 5761, 30, 468, 565, 14746, 8914, 18, 6763, 12, 6625, 13, 26515, 273, 813, 18, 957, 1435, 300, 787, 67, 957, 2002, 273, 261, 21, 18, 20, 19, 60, 13, 300, 26515, 309, 2002, 405, 374, 30, 813, 18, 19607, 12, 4482, 13, 469, 30, 1172, 315, 9511, 30, 4220, 310, 4885, 11816, 30, 3104, 26515, 16, 315, 3104, 2002, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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421, 434, 2973, 468, 404, 17685, 26, 7793, 1534, 2205, 787, 67, 957, 273, 813, 18, 957, 1435, 365, 18, 4110, 67, 5989, 1435, 468, 1286, 73, 1473, 358, 333, 8589, 3614, 404, 19, 60, 3974, 365, 18, 351, 6243, 12, 13358, 18, 43, 1642, 5315, 61, 67, 39, 6589, 342, 1139, 13, 468, 309, 999, 67, 5453, 5761, 30, 468, 565, 14746, 8914, 18, 6763, 12, 6625, 13, 26515, 273, 813, 18, 957, 1435, 2 ]
req.write('<li><a href="%s">%s</a></li>' % (href_join(mpr.idx_location, project), project))
req.write('<li><a href="%s">%s</a></li>' % (href_join(mpr.idx_location, project), project))
def send_project_index(req, mpr, dir): req.content_type = 'text/html' req.write('<html><head><title>Available Projects</title></head>') req.write('<body><h1>Available Projects</h1><ul>') for project in os.listdir(dir): req.write('<li><a href="%s">%s</a></li>' % (href_join(mpr.idx_location, project), project)) req.write('</ul></body><html>')
a834c4782e0c1c35cf7f1159a7cfaa86bfd7dde0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/a834c4782e0c1c35cf7f1159a7cfaa86bfd7dde0/ModPythonHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4406, 67, 1615, 12, 3658, 16, 312, 683, 16, 1577, 4672, 1111, 18, 1745, 67, 723, 273, 296, 955, 19, 2620, 11, 1111, 18, 2626, 2668, 32, 2620, 4438, 1978, 4438, 2649, 34, 5268, 30491, 1757, 2649, 4695, 1978, 1870, 13, 1111, 18, 2626, 2668, 32, 3432, 4438, 76, 21, 34, 5268, 30491, 1757, 76, 21, 4438, 332, 1870, 13, 364, 1984, 316, 1140, 18, 1098, 1214, 12, 1214, 4672, 1111, 18, 2626, 2668, 32, 549, 4438, 69, 3897, 11613, 87, 24038, 87, 1757, 69, 4695, 549, 1870, 738, 261, 7547, 67, 5701, 12, 81, 683, 18, 3465, 67, 3562, 16, 1984, 3631, 1984, 3719, 1111, 18, 2626, 2668, 1757, 332,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4406, 67, 1615, 12, 3658, 16, 312, 683, 16, 1577, 4672, 1111, 18, 1745, 67, 723, 273, 296, 955, 19, 2620, 11, 1111, 18, 2626, 2668, 32, 2620, 4438, 1978, 4438, 2649, 34, 5268, 30491, 1757, 2649, 4695, 1978, 1870, 13, 1111, 18, 2626, 2668, 32, 3432, 4438, 76, 21, 34, 5268, 30491, 1757, 76, 21, 4438, 332, 1870, 13, 364, 1984, 316, 1140, 18, 1098, 1214, 12, 1214, 4672, 1111, 18, 2626, 2668, 32, 549, 4438, 69, 3897, 11613, 87, 24038, 87, 1757, 69, 4695, 549, 1870, 738, 261, 7547, 67, 5701, 12, 81, 683, 18, 3465, 67, 3562, 16, 1984, 3631, 1984, 3719, 1111, 18, 2626, 2668, 1757, 332, 4695, 3432, 4438, 2620, 1870, 2 ]
footnote = self.document.explicit_targets[label] ref['refid'] = footnote['id']
id = self.document.nameids[label] footnote = self.document.ids[id] ref['refid'] = id
def number_footnote_references(self, startnum): """Assign numbers to autonumbered footnote references.""" i = 0 for ref in self.document.autofootnote_refs: if ref.resolved or ref.hasattr('refid'): continue try: label = self.autofootnote_labels[i] except IndexError: msg = self.document.reporter.error( 'Too many autonumbered footnote references: only %s ' 'corresponding footnotes available.' % len(self.autofootnote_labels)) msgid = self.document.set_id(msg) self.document.messages += msg for ref in self.document.autofootnote_refs[i:]: if ref.resolved or ref.hasattr('refname'): continue prb = nodes.problematic( ref.rawsource, ref.rawsource, refid=msgid) prbid = self.document.set_id(prb) msg.add_backref(prbid) ref.parent.replace(ref, prb) break ref += nodes.Text(label) footnote = self.document.explicit_targets[label] ref['refid'] = footnote['id'] self.document.note_refid(ref) footnote.add_backref(ref['id']) ref.resolved = 1 i += 1
16a3cbc26d0b078fa3f8e18df50b2b84433cdf8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/16a3cbc26d0b078fa3f8e18df50b2b84433cdf8a/references.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 10923, 7652, 67, 14353, 12, 2890, 16, 787, 2107, 4672, 3536, 4910, 5600, 358, 2059, 265, 1226, 329, 14200, 7652, 5351, 12123, 277, 273, 374, 364, 1278, 316, 365, 18, 5457, 18, 6079, 10923, 7652, 67, 9316, 30, 309, 1278, 18, 11792, 578, 1278, 18, 5332, 1747, 2668, 1734, 350, 11, 4672, 1324, 775, 30, 1433, 273, 365, 18, 6079, 10923, 7652, 67, 5336, 63, 77, 65, 1335, 10195, 30, 1234, 273, 365, 18, 5457, 18, 266, 7988, 18, 1636, 12, 296, 10703, 4906, 2059, 265, 1226, 329, 14200, 7652, 5351, 30, 1338, 738, 87, 296, 296, 3850, 17863, 310, 14200, 12903, 2319, 1093, 738, 562, 12, 2890, 18, 6079, 10923, 7652, 67, 5336, 3719, 24389, 273, 365, 18, 5457, 18, 542, 67, 350, 12, 3576, 13, 365, 18, 5457, 18, 6833, 1011, 1234, 364, 1278, 316, 365, 18, 5457, 18, 6079, 10923, 7652, 67, 9316, 63, 77, 30, 14542, 309, 1278, 18, 11792, 578, 1278, 18, 5332, 1747, 2668, 1734, 529, 11, 4672, 1324, 846, 70, 273, 2199, 18, 18968, 2126, 12, 1278, 18, 1899, 3168, 16, 1278, 18, 1899, 3168, 16, 1278, 350, 33, 3576, 350, 13, 846, 19773, 273, 365, 18, 5457, 18, 542, 67, 350, 12, 683, 70, 13, 1234, 18, 1289, 67, 823, 1734, 12, 683, 19773, 13, 1278, 18, 2938, 18, 2079, 12, 1734, 16, 846, 70, 13, 898, 1278, 1011, 2199, 18, 1528, 12, 1925, 13, 612, 273, 365, 18, 5457, 18, 529, 2232, 63, 1925, 65, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 10923, 7652, 67, 14353, 12, 2890, 16, 787, 2107, 4672, 3536, 4910, 5600, 358, 2059, 265, 1226, 329, 14200, 7652, 5351, 12123, 277, 273, 374, 364, 1278, 316, 365, 18, 5457, 18, 6079, 10923, 7652, 67, 9316, 30, 309, 1278, 18, 11792, 578, 1278, 18, 5332, 1747, 2668, 1734, 350, 11, 4672, 1324, 775, 30, 1433, 273, 365, 18, 6079, 10923, 7652, 67, 5336, 63, 77, 65, 1335, 10195, 30, 1234, 273, 365, 18, 5457, 18, 266, 7988, 18, 1636, 12, 296, 10703, 4906, 2059, 265, 1226, 329, 14200, 7652, 5351, 30, 1338, 738, 87, 296, 296, 3850, 17863, 310, 14200, 12903, 2319, 1093, 738, 562, 12, 2890, 18, 6079, 10923, 7652, 67, 5336, 3719, 24389, 2 ]
attrs = [("builder", self._options.builder_name), ("testtype", "layout-tests")] if self._options.master_name: attrs.append(("master", self._options.master_name))
attrs = [("builder", self._options.builder_name), ("testtype", "layout-tests"), ("master", self._options.master_name)]
def _upload_json_files(self): if not self._options.test_results_server: return
9e827c3d9f200979570d47d103509a1162d1ec73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/9e827c3d9f200979570d47d103509a1162d1ec73/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6327, 67, 1977, 67, 2354, 12, 2890, 4672, 309, 486, 365, 6315, 2116, 18, 3813, 67, 4717, 67, 3567, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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327, 67, 1977, 67, 2354, 12, 2890, 4672, 309, 486, 365, 6315, 2116, 18, 3813, 67, 4717, 67, 3567, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str = 'ISA*00* *00* *ZZ*ZZ000 *ZZ*ZZ001 *030828*1128*U*00401*000010121*0*T*:~\n' str += 'GS*HC*ZZ000*ZZ001*20030828*1128*17*X*004010X098~\n' str += 'GE*0*17~\n' str += 'IEA*1*000010555~\n' (err_cde, err_str) = self._get_first_error(str)
str1 = 'ISA*00* *00* *ZZ*ZZ000 *ZZ*ZZ001 *030828*1128*U*00401*000010121*0*T*:~\n' str1 += 'GS*HC*ZZ000*ZZ001*20030828*1128*17*X*004010X098~\n' str1 += 'GE*0*17~\n' str1 += 'IEA*1*000010555~\n' (err_cde, err_str) = self._get_first_error(str1)
def test_IEA_id_match_ISA_id(self): seg = None str = 'ISA*00* *00* *ZZ*ZZ000 *ZZ*ZZ001 *030828*1128*U*00401*000010121*0*T*:~\n' str += 'GS*HC*ZZ000*ZZ001*20030828*1128*17*X*004010X098~\n' str += 'GE*0*17~\n' str += 'IEA*1*000010555~\n' (err_cde, err_str) = self._get_first_error(str) self.assertEqual(err_cde, '001', err_str)
1433c380fc3bf2e7c5ac05b385e1b69e19134b72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11528/1433c380fc3bf2e7c5ac05b385e1b69e19134b72/x12file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8732, 37, 67, 350, 67, 1916, 67, 5127, 37, 67, 350, 12, 2890, 4672, 2291, 273, 599, 609, 21, 273, 296, 5127, 37, 14, 713, 14, 1850, 380, 713, 14, 1850, 380, 27096, 14, 27096, 3784, 1850, 380, 27096, 14, 27096, 11664, 1850, 380, 4630, 6840, 6030, 14, 21, 10392, 14, 57, 14, 26565, 1611, 14, 2787, 15168, 5340, 14, 20, 14, 56, 14, 30, 98, 64, 82, 11, 609, 21, 1011, 296, 16113, 14, 23408, 14, 27096, 3784, 14, 27096, 11664, 14, 6976, 5082, 28, 6030, 14, 21, 10392, 14, 4033, 14, 60, 14, 26565, 23254, 60, 5908, 28, 98, 64, 82, 11, 609, 21, 1011, 296, 7113, 14, 20, 14, 4033, 98, 64, 82, 11, 609, 21, 1011, 296, 8732, 37, 14, 21, 14, 2787, 2163, 2539, 25, 98, 64, 82, 11, 261, 370, 67, 71, 323, 16, 393, 67, 701, 13, 273, 365, 6315, 588, 67, 3645, 67, 1636, 12, 701, 21, 13, 365, 18, 11231, 5812, 12, 370, 67, 71, 323, 16, 296, 11664, 2187, 393, 67, 701, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8732, 37, 67, 350, 67, 1916, 67, 5127, 37, 67, 350, 12, 2890, 4672, 2291, 273, 599, 609, 21, 273, 296, 5127, 37, 14, 713, 14, 1850, 380, 713, 14, 1850, 380, 27096, 14, 27096, 3784, 1850, 380, 27096, 14, 27096, 11664, 1850, 380, 4630, 6840, 6030, 14, 21, 10392, 14, 57, 14, 26565, 1611, 14, 2787, 15168, 5340, 14, 20, 14, 56, 14, 30, 98, 64, 82, 11, 609, 21, 1011, 296, 16113, 14, 23408, 14, 27096, 3784, 14, 27096, 11664, 14, 6976, 5082, 28, 6030, 14, 21, 10392, 14, 4033, 14, 60, 14, 26565, 23254, 60, 5908, 28, 98, 64, 82, 11, 609, 21, 1011, 296, 7113, 14, 20, 14, 4033, 98, 64, 82, 2 ]
row['time'] = iso8601.parse_date(row['time'].value)
date_time = row['time'].value date_time_adjusted = '%s-%s-%s' % ( date_time[0:4], date_time[4:6], date_time[6:]) row['time'] = iso8601.parse_date(date_time_adjusted)
def get_timeseries(self, filter_id, location_id, parameter_id, start_date, end_date): """ SELECT TIME,VALUE,FLAG,DETECTION,COMMENT from ExTimeSeries WHERE filterId = 'MFPS' AND parameterId = 'H.meting' AND locationId = 'BW_NZ_04' AND time BETWEEN '2007-01-01 13:00:00' AND '2008-01-10 13:00:00' """ q = ("select time, value, flag, detection, comment from " "extimeseries where filterid='%s' and locationid='%s' " "and parameterid='%s' and time between '%s' and '%s'" % (filter_id, location_id, parameter_id, start_date.strftime(JDBC_DATE_FORMAT), end_date.strftime(JDBC_DATE_FORMAT))) query_result = self.query(q) result = named_list( query_result, ['time', 'value', 'flag', 'detection', 'comment']) for row in result: row['time'] = iso8601.parse_date(row['time'].value) return result
dbe0014b56e8b79ac3d6636cf61218725679ded2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11153/dbe0014b56e8b79ac3d6636cf61218725679ded2/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28494, 12, 2890, 16, 1034, 67, 350, 16, 2117, 67, 350, 16, 1569, 67, 350, 16, 787, 67, 712, 16, 679, 67, 712, 4672, 3536, 9111, 8721, 16, 4051, 16, 9651, 16, 1639, 1448, 3106, 16, 12200, 628, 1312, 28486, 4852, 1034, 548, 273, 296, 13542, 5857, 11, 4116, 1569, 548, 273, 296, 44, 18, 10578, 310, 11, 4116, 27045, 273, 296, 38, 59, 67, 50, 62, 67, 3028, 11, 4116, 813, 25178, 296, 6976, 27, 17, 1611, 17, 1611, 5958, 30, 713, 30, 713, 11, 4116, 296, 6976, 28, 17, 1611, 17, 2163, 5958, 30, 713, 30, 713, 11, 3536, 1043, 273, 7566, 4025, 813, 16, 460, 16, 2982, 16, 11649, 16, 2879, 628, 315, 315, 408, 4485, 3924, 1625, 1034, 350, 28713, 87, 11, 471, 2117, 350, 28713, 87, 11, 315, 315, 464, 1569, 350, 28713, 87, 11, 471, 813, 3086, 1995, 87, 11, 471, 1995, 87, 4970, 738, 261, 2188, 67, 350, 16, 2117, 67, 350, 16, 1569, 67, 350, 16, 787, 67, 712, 18, 701, 9982, 12, 30499, 67, 4594, 67, 7254, 3631, 679, 67, 712, 18, 701, 9982, 12, 30499, 67, 4594, 67, 7254, 20349, 843, 67, 2088, 273, 365, 18, 2271, 12, 85, 13, 563, 273, 4141, 67, 1098, 12, 843, 67, 2088, 16, 10228, 957, 2187, 296, 1132, 2187, 296, 6420, 2187, 296, 27515, 2187, 296, 3469, 19486, 364, 1027, 316, 563, 30, 1509, 67, 957, 273, 1027, 3292, 957, 29489, 1132, 1509, 67, 957, 67, 13362, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28494, 12, 2890, 16, 1034, 67, 350, 16, 2117, 67, 350, 16, 1569, 67, 350, 16, 787, 67, 712, 16, 679, 67, 712, 4672, 3536, 9111, 8721, 16, 4051, 16, 9651, 16, 1639, 1448, 3106, 16, 12200, 628, 1312, 28486, 4852, 1034, 548, 273, 296, 13542, 5857, 11, 4116, 1569, 548, 273, 296, 44, 18, 10578, 310, 11, 4116, 27045, 273, 296, 38, 59, 67, 50, 62, 67, 3028, 11, 4116, 813, 25178, 296, 6976, 27, 17, 1611, 17, 1611, 5958, 30, 713, 30, 713, 11, 4116, 296, 6976, 28, 17, 1611, 17, 2163, 5958, 30, 713, 30, 713, 11, 3536, 1043, 273, 7566, 4025, 813, 16, 460, 16, 2982, 16, 11649, 16, 2879, 628, 315, 2 ]
all_r = test_all_config_results[c] for t in all_r: s += float(t.score_pos) if len(all_r) == 1: stars = '' elif len(all_r) >= 10: stars = ' ***' elif len(all_r) >= int(1/KEEP_P): stars = ' **' else: stars = ' *' print 'Score: %0.6f %s (%.1f%s%s)' % \ (test.score, test, s / len(all_r), stars, (len(all_r) > 2) and (' in %d' % len(all_r)) or "")
print 'H-Score: %0.9f %s' % (test.score, test)
def ScoreTests(results): scored = [] timed = [] sized = [] t_min = float(min([test.time() for test in results])) #t_max = float(max([test.time() for test in results])) s_min = float(min([test.size() for test in results])) #s_max = float(max([test.size() for test in results])) for test in results: # Hyperbolic function. Smaller scores still better red = 0.999 # minimum factors for each dimension are 1/1000 test.score = ((test.size() - s_min * red) * (test.time() - t_min * red)) scored.append((test.score, test)) timed.append((test.time(), test)) sized.append((test.size(), test)) #end scored.sort() timed.sort() sized.sort() best_by_size = [] best_by_time = [] pos = 0 for (score, test) in scored: pos += 1 test.score_pos = pos c = test.config() if not test_all_config_results.has_key(c): test_all_config_results[c] = [test] else: test_all_config_results[c].append(test) #end #end scored = [x[1] for x in scored] for test in scored: test.size_pos = PosInAlist(sized, test) test.time_pos = PosInAlist(timed, test) #end for test in scored: c = test.config() s = 0.0 all_r = test_all_config_results[c] for t in all_r: s += float(t.score_pos) #end if len(all_r) == 1: stars = '' elif len(all_r) >= 10: stars = ' ***' elif len(all_r) >= int(1/KEEP_P): stars = ' **' else: stars = ' *' print 'Score: %0.6f %s (%.1f%s%s)' % \ (test.score, test, s / len(all_r), stars, (len(all_r) > 2) and (' in %d' % len(all_r)) or "") #end return scored
ca6951c05772975cff7d67dba745c3bc33e71252 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4464/ca6951c05772975cff7d67dba745c3bc33e71252/xdelta3-regtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20671, 14650, 12, 4717, 4672, 4462, 72, 273, 5378, 7491, 273, 5378, 26046, 273, 5378, 225, 268, 67, 1154, 273, 1431, 12, 1154, 3816, 3813, 18, 957, 1435, 364, 1842, 316, 1686, 22643, 468, 88, 67, 1896, 273, 1431, 12, 1896, 3816, 3813, 18, 957, 1435, 364, 1842, 316, 1686, 22643, 272, 67, 1154, 273, 1431, 12, 1154, 3816, 3813, 18, 1467, 1435, 364, 1842, 316, 1686, 22643, 468, 87, 67, 1896, 273, 1431, 12, 1896, 3816, 3813, 18, 1467, 1435, 364, 1842, 316, 1686, 22643, 225, 364, 1842, 316, 1686, 30, 225, 468, 18274, 70, 1415, 445, 18, 9425, 454, 264, 8474, 4859, 7844, 1755, 273, 374, 18, 11984, 225, 468, 5224, 14490, 364, 1517, 4968, 854, 404, 19, 18088, 1842, 18, 6355, 273, 14015, 3813, 18, 1467, 1435, 300, 272, 67, 1154, 380, 1755, 13, 380, 261, 3813, 18, 957, 1435, 300, 268, 67, 1154, 380, 1755, 3719, 225, 4462, 72, 18, 6923, 12443, 3813, 18, 6355, 16, 1842, 3719, 7491, 18, 6923, 12443, 3813, 18, 957, 9334, 1842, 3719, 26046, 18, 6923, 12443, 3813, 18, 1467, 9334, 1842, 3719, 468, 409, 225, 4462, 72, 18, 3804, 1435, 7491, 18, 3804, 1435, 26046, 18, 3804, 1435, 225, 3796, 67, 1637, 67, 1467, 273, 5378, 3796, 67, 1637, 67, 957, 273, 5378, 225, 949, 273, 374, 364, 261, 6355, 16, 1842, 13, 316, 4462, 72, 30, 949, 1011, 404, 1842, 18, 6355, 67, 917, 273, 949, 276, 273, 1842, 18, 1425, 1435, 309, 486, 1842, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20671, 14650, 12, 4717, 4672, 4462, 72, 273, 5378, 7491, 273, 5378, 26046, 273, 5378, 225, 268, 67, 1154, 273, 1431, 12, 1154, 3816, 3813, 18, 957, 1435, 364, 1842, 316, 1686, 22643, 468, 88, 67, 1896, 273, 1431, 12, 1896, 3816, 3813, 18, 957, 1435, 364, 1842, 316, 1686, 22643, 272, 67, 1154, 273, 1431, 12, 1154, 3816, 3813, 18, 1467, 1435, 364, 1842, 316, 1686, 22643, 468, 87, 67, 1896, 273, 1431, 12, 1896, 3816, 3813, 18, 1467, 1435, 364, 1842, 316, 1686, 22643, 225, 364, 1842, 316, 1686, 30, 225, 468, 18274, 70, 1415, 445, 18, 9425, 454, 264, 8474, 4859, 7844, 1755, 273, 374, 18, 11984, 225, 468, 5224, 14490, 364, 1517, 4968, 854, 2 ]
sqlite_defines.append(('PY_MAJOR_VERSION',
sqlite_defines.append(('PY_MAJOR_VERSION',
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
3dc6bb3c25dd2834b198a4bbcff2f9b760d1a2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3dc6bb3c25dd2834b198a4bbcff2f9b760d1a2d9/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 6134, 2, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
opts, args = getopt.getopt(argv, "m:ah", ["commit-name=", "all", "help"])
opts, args = getopt.getopt(argv, "m:aesh", ["commit-name=", "all", "edit-long-comment", "skip-long-comment", "help"])
def __init__(self): self.name = None self.all = None self.help = False self.files = ""
5add7fca73485e5351d7d20e84c1174f86ef00dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11934/5add7fca73485e5351d7d20e84c1174f86ef00dd/dg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 529, 273, 599, 365, 18, 454, 273, 599, 365, 18,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 529, 273, 599, 365, 18, 454, 273, 599, 365, 18, 5201, 273, 1083, 365, 18, 2354, 273, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.stat += (self.stat**2 + getattr(trig,statistic.name)**2)**(1./2)
self.stat = (self.stat**2 + getattr(trig,statistic.name)**2)**(1./2)
def add_trig(self,trig,statistic): self.numifos +=1 if statistic.name == 'effective_snr': self.stat = (self.stat**2 + trig.get_effective_snr()**2)**(1./2) elif statistic.name == 'bitten_l': snr=trig.snr self.rsq= (self.stat**2 + snr**2)**(1./2) self.bl=statistic.get_bittenl( self.bl, snr ) self.stat=min( self.bl, self.rsq ) else: self.stat += (self.stat**2 + getattr(trig,statistic.name)**2)**(1./2) # sets the data for the single inspiral trigger setattr(self,trig.ifo,trig)
96fea81c4503c18e809baef430682114ec19cbb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/96fea81c4503c18e809baef430682114ec19cbb3/CoincInspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 313, 360, 12, 2890, 16, 313, 360, 16, 5642, 5846, 4672, 225, 365, 18, 2107, 430, 538, 1011, 21, 309, 21605, 18, 529, 422, 296, 28894, 67, 8134, 86, 4278, 365, 18, 5642, 273, 261, 2890, 18, 5642, 636, 22, 397, 23142, 18, 588, 67, 28894, 67, 8134, 86, 1435, 636, 22, 13, 636, 12, 21, 18, 19, 22, 13, 1327, 21605, 18, 529, 422, 296, 3682, 2253, 67, 80, 4278, 29248, 33, 313, 360, 18, 8134, 86, 365, 18, 5453, 85, 33, 261, 2890, 18, 5642, 636, 22, 397, 29248, 636, 22, 13, 636, 12, 21, 18, 19, 22, 13, 365, 18, 3083, 33, 5642, 5846, 18, 588, 67, 3682, 2253, 80, 12, 365, 18, 3083, 16, 29248, 262, 365, 18, 5642, 33, 1154, 12, 365, 18, 3083, 16, 365, 18, 5453, 85, 262, 469, 30, 365, 18, 5642, 273, 261, 2890, 18, 5642, 636, 22, 397, 3869, 12, 313, 360, 16, 5642, 5846, 18, 529, 13, 636, 22, 13, 636, 12, 21, 18, 19, 22, 13, 225, 468, 1678, 326, 501, 364, 326, 2202, 316, 1752, 481, 287, 3080, 9241, 12, 2890, 16, 313, 360, 18, 20299, 16, 313, 360, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 313, 360, 12, 2890, 16, 313, 360, 16, 5642, 5846, 4672, 225, 365, 18, 2107, 430, 538, 1011, 21, 309, 21605, 18, 529, 422, 296, 28894, 67, 8134, 86, 4278, 365, 18, 5642, 273, 261, 2890, 18, 5642, 636, 22, 397, 23142, 18, 588, 67, 28894, 67, 8134, 86, 1435, 636, 22, 13, 636, 12, 21, 18, 19, 22, 13, 1327, 21605, 18, 529, 422, 296, 3682, 2253, 67, 80, 4278, 29248, 33, 313, 360, 18, 8134, 86, 365, 18, 5453, 85, 33, 261, 2890, 18, 5642, 636, 22, 397, 29248, 636, 22, 13, 636, 12, 21, 18, 19, 22, 13, 365, 18, 3083, 33, 5642, 5846, 18, 588, 67, 3682, 2253, 80, 12, 365, 18, 2 ]
if type(getattr(py_item, m)) == MethodType:
if ismethod(getattr(py_item, m), m):
def checkModule(self, moduleName, module=None, ignore=()): ''' succeed iff pyclbr.readmodule_ex(modulename) corresponds to the actual module object, module. Any identifiers in ignore are ignored. If no module is provided, the appropriate module is loaded with __import__.'''
72a925f8cd88b62bf84ae9701ad9e59a7e7d85d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/72a925f8cd88b62bf84ae9701ad9e59a7e7d85d9/test_pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 3120, 12, 2890, 16, 9780, 16, 1605, 33, 7036, 16, 2305, 33, 1435, 4672, 9163, 12897, 21437, 2395, 830, 2848, 18, 896, 2978, 67, 338, 12, 1711, 332, 1069, 13, 13955, 358, 326, 3214, 1605, 733, 16, 1605, 18, 225, 5502, 9863, 316, 2305, 854, 5455, 18, 282, 971, 1158, 1605, 353, 2112, 16, 326, 5505, 1605, 353, 4203, 598, 1001, 5666, 972, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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326, 22398, 316, 326, 981, 30, 1652, 866, 3120, 12, 2890, 16, 9780, 16, 1605, 33, 7036, 16, 2305, 33, 1435, 4672, 9163, 12897, 21437, 2395, 830, 2848, 18, 896, 2978, 67, 338, 12, 1711, 332, 1069, 13, 13955, 358, 326, 3214, 1605, 733, 16, 1605, 18, 225, 5502, 9863, 316, 2305, 854, 5455, 18, 282, 971, 1158, 1605, 353, 2112, 16, 326, 5505, 1605, 353, 4203, 598, 1001, 5666, 972, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
identity.current.user.id, approvedStatus.statuscodeid,
identity.current.user.id, self.approvedStatus.statuscodeid,
def add_package(self, package, owner, summary): '''Add a new package to the database. ''' # Check that the tg.identity is allowed to set an owner if not identity.in_any_group('cvsadmin'): return dict(status=False, message='User must be in cvsadmin')
48b4c95df35399b9205c63bf94720f75862df541 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/48b4c95df35399b9205c63bf94720f75862df541/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5610, 12, 2890, 16, 2181, 16, 3410, 16, 4916, 4672, 9163, 986, 279, 394, 2181, 358, 326, 2063, 18, 9163, 468, 2073, 716, 326, 18289, 18, 10781, 353, 2935, 358, 444, 392, 3410, 309, 486, 4215, 18, 267, 67, 2273, 67, 1655, 2668, 71, 6904, 3666, 11, 4672, 327, 2065, 12, 2327, 33, 8381, 16, 883, 2218, 1299, 1297, 506, 316, 276, 6904, 3666, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5610, 12, 2890, 16, 2181, 16, 3410, 16, 4916, 4672, 9163, 986, 279, 394, 2181, 358, 326, 2063, 18, 9163, 468, 2073, 716, 326, 18289, 18, 10781, 353, 2935, 358, 444, 392, 3410, 309, 486, 4215, 18, 267, 67, 2273, 67, 1655, 2668, 71, 6904, 3666, 11, 4672, 327, 2065, 12, 2327, 33, 8381, 16, 883, 2218, 1299, 1297, 506, 316, 276, 6904, 3666, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if {}!=self.readerstates: hresult, newstates = SCardGetStatusChange( self.hcontext, 0, self.readerstates.values() )
if {}!=readerstates: hresult, newstates = SCardGetStatusChange( self.hcontext, 0, readerstates.values() )
def waitforcard( self ): """Wait for card insertion and returns a card service.""" AbstractCardRequest.waitforcard( self ) cardfound=False
bd906620dedf29f1dd4a18dfc01ad590122ac8b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3537/bd906620dedf29f1dd4a18dfc01ad590122ac8b1/PCSCCardRequest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 3327, 12, 365, 262, 30, 3536, 5480, 364, 5270, 12626, 471, 1135, 279, 5270, 1156, 12123, 4115, 6415, 691, 18, 7048, 1884, 3327, 12, 365, 262, 5270, 7015, 33, 8381, 2, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 3327, 12, 365, 262, 30, 3536, 5480, 364, 5270, 12626, 471, 1135, 279, 5270, 1156, 12123, 4115, 6415, 691, 18, 7048, 1884, 3327, 12, 365, 262, 5270, 7015, 33, 8381, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: from sage.misc.preparser import preparse sage: preparse("R.<x> = ZZ['x']") "R = ZZ['x']; (x,) = R._first_ngens(Integer(1))" sage: preparse("R.<x> = ZZ['y']") "R = ZZ['y']; (x,) = R._first_ngens(Integer(1))" sage: preparse("R.<x,y> = ZZ[]") "R = ZZ['x, y']; (x, y,) = R._first_ngens(Integer(2))" sage: preparse("R.<x,y> = ZZ['u,v']") "R = ZZ['u,v']; (x, y,) = R._first_ngens(Integer(2))" sage: preparse("K.<a> = QQ[2^(1/3)]") 'K = QQ[Integer(2)**(Integer(1)/Integer(3))]; (a,) = K._first_ngens(Integer(1))' sage: preparse("K.<a, b> = QQ[2^(1/3), 2^(1/2)]") 'K = QQ[Integer(2)**(Integer(1)/Integer(3)), Integer(2)**(Integer(1)/Integer(2))]; (a, b,) = K._first_ngens(Integer(2))'
def preparse(line, reset=True, do_time=False, ignore_prompts=False): r""" sage: from sage.misc.preparser import preparse sage: preparse("R.<x> = ZZ['x']") "R = ZZ['x']; (x,) = R._first_ngens(Integer(1))" sage: preparse("R.<x> = ZZ['y']") "R = ZZ['y']; (x,) = R._first_ngens(Integer(1))" sage: preparse("R.<x,y> = ZZ[]") "R = ZZ['x, y']; (x, y,) = R._first_ngens(Integer(2))" sage: preparse("R.<x,y> = ZZ['u,v']") "R = ZZ['u,v']; (x, y,) = R._first_ngens(Integer(2))" sage: preparse("K.<a> = QQ[2^(1/3)]") 'K = QQ[Integer(2)**(Integer(1)/Integer(3))]; (a,) = K._first_ngens(Integer(1))' sage: preparse("K.<a, b> = QQ[2^(1/3), 2^(1/2)]") 'K = QQ[Integer(2)**(Integer(1)/Integer(3)), Integer(2)**(Integer(1)/Integer(2))]; (a, b,) = K._first_ngens(Integer(2))' """ try: # [1,2,..,n] notation L, literals = strip_string_literals(line) L = parse_ellipsis(L, preparse_step=False) line = L % literals except SyntaxError: pass # find where the parens are for function assignment notation oparen_index = -1 cparen_index = -1 # for caclulus function notation: paren_level = 0 first_eq_index = -1 global in_single_quote, in_double_quote, in_triple_quote line = line.rstrip() # xreadlines leaves the '\n' at end of line L = line.lstrip() if len(L) > 0 and L[0] in ['#', '!']: return line if L.startswith('...'): i = line.find('...') return line[:i+3] + preparse(line[i+3:], reset=reset, do_time=do_time, ignore_prompts=ignore_prompts) # Wrap integers with ZZ() and reals with RR(). 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('"; C="')" else: O = "Integer("; C = ")" line = line[:num_start] + O + zz + C + line[i:] return line, len(O+C) i = 0 num_start = -1 in_number = False is_real = False in_args = False if reset: in_single_quote = False in_double_quote = False in_triple_quote = False if ignore_prompts: # Get rid of leading sage: and >>> so that pasting of examples from # the documentation works. line = strip_prompts(line) while i < len(line): # Update quote parsing if line[i] == "'": if not in_quote(): in_single_quote = True i += 1 continue elif in_single_quote: in_single_quote = False i += 1 continue elif line[i:i+3] == '"""': if not in_quote(): in_triple_quote = True i += 3 continue elif in_triple_quote: in_triple_quote = False i += 3 continue elif line[i] == '"': if not in_quote(): in_double_quote = True i += 1 continue elif in_double_quote: in_double_quote = False i += 1 continue # Decide if we should wrap a particular integer or real literal if in_number: if line[i] == ".": is_real = True elif not line[i].isdigit(): # end of a number # Do we wrap? if in_quote(): # do not wrap pass elif i < len(line) and line[i] in 'eE': # Yes, in scientific notation, so will wrap later is_real = True i += 1 if i < len(line) and line[i] == '-': i += 2 continue elif i < len(line) and line[i] in 'rR': # Raw number so do not wrap; but have to get rid of the "r". line = line[:i] + line[i+1:] else: line, n = wrap_num(i, line, is_real, num_start) i += n in_number = False is_real = False continue elif line[i] == ";" and not in_quote(): line = line[:i+1] + preparse(line[i+1:], reset, do_time, ignore_prompts) i = len(line) continue # Support for generator construction syntax: # "obj.<gen0,gen1,...,genN> = objConstructor(...)" # is converted into # "obj = objConstructor(..., names=("gen0", "gen1", ..., "genN")); \ # (gen0, gen1, ..., genN,) = obj.gens()" # # Also, obj.<gen0,gen1,...,genN> = R[...] is converted into # "obj = R['gen0,gen1,..., genN']; (gen0, gen1, ..., genN,) = obj.gens()" # # LIMITATIONS: # - The entire constructor *must* be on one line. # # AUTHORS: # -- 2006-04-14: Joe Wetherell (jlwether@alum.mit.edu) # -- 2006-04-17: William Stein - improvements to allow multiple statements. # -- 2006-05-01: William -- fix bug that Joe found # -- 2006-10-31: William -- fix so obj doesn't have to be mutated elif (line[i:i+2] == ".<") and not in_quote(): try: gen_end = line.index(">", i+2) except ValueError: # Syntax Error -- let Python notice and raise the error i += 2 continue gen_begin = i while gen_begin > 0 and line[gen_begin-1] != ';': gen_begin -= 1 # parse out the object name and the list of generator names gen_obj = line[gen_begin:i].strip() gen_list = [s.strip() for s in line[i+2:gen_end].split(',')] for g in gen_list: if (not g.isalnum() and not g.replace("_","").isalnum()) or len(g) == 0 or not g[0].isalpha(): raise SyntaxError, "variable name (='%s') must be alpha-numeric and begin with a letter"%g # format names as a list of strings and a list of variables gen_names = tuple(gen_list) gen_vars = ", ".join(gen_list) # find end of constructor: # either end of line, next semicolon, or next #. line_after = line[gen_end:] c = line_after.find('#') if c==-1: c = len(line_after) s = line_after.find(';') if s==-1: s = len(line_after) c = min(c,s) + gen_end # Find where the parenthesis of the constructor ends if line[:c].rstrip()[-1] == ']': # brackets constructor c0 = line[:c].find(']') d0 = line[:c0].rfind('[') if c0 == -1: raise SyntaxError, 'constructor must end with ) or ]' in_square_brackets = line[d0+1:c0] if in_square_brackets.strip() == '': # as a convenience to the user, 'K.<a> = ZZ[]' -> 'K.<a> = ZZ["a"]' in_square_brackets = "'%s'" % gen_vars line_new = '%s%s%s; (%s,) = %s._first_ngens(%s)'%( line[:i] + line[gen_end+1:d0+1], in_square_brackets, line[c0:c], gen_vars, gen_obj, gen_vars.count(',')+1) else: c0 = line[:c].rfind(')') # General constructor -- rewrite the input line as two commands # We have to determine whether or not to put a comma before # the list of names. We do this only if there are already # arguments to the constructor. Some constructors have no # arguments, e.g., "K.<a> = f.root_field( )" c1 = line[:c0].rfind('(') if len(line[c1+1:c0].strip()) > 0: sep = ',' else: sep = '' line_new = '%s%snames=%s); (%s,) = %s._first_ngens(%s)'%( line[:i] + line[gen_end+1:c0], sep, gen_names, gen_vars, gen_obj, gen_vars.count(',')+1) line = line_new + line[c:] #i = len(line_new) i += 1 continue # Support for calculus-like function assignment, the line # "f(x,y,z) = sin(x^3 - 4*y) + y^x" # gets turnd into # "f = SR(sin(x^3 - 4*y) + y^x).function(x,y,z)" # AUTHORS: # - Bobby Moretti: initial version - 02/2007 # - William Stein: make variables become defined if they aren't already defined. elif (line[i] == "(") and not in_quote(): paren_level += 1 # we need to make sure that this is the first open paren we find if oparen_index == -1: oparen_index = i i += 1 continue elif (line[i] == ")") and not in_quote(): cparen_index = i paren_level -= 1 i += 1 continue elif (line[i] == "=") and paren_level == 0 and not in_quote(): if first_eq_index == -1: first_eq_index = i eq = i if cparen_index == -1: i += 1 continue # make sure the '=' sign is on its own, reprsenting assignment eq_chars = ["=", "!", ">", "<", "+", "-", "*", "/", "^"] if eq+1 < len(line) and (line[eq-1] in eq_chars or line[eq+1] in eq_chars): i += 1 continue line_before = line[:oparen_index].strip() if line_before == "" or not line_before.isalnum(): i += 1 continue if eq != first_eq_index: i += 1 continue vars_end = cparen_index vars_begin = oparen_index+1 # figure out where the line ends line_after = line[vars_end+1:] try: a = line.index("#") except ValueError: a = len(line) try: b = line.index(";") except ValueError: b = len(line) a = min(a,b) vars = line[vars_begin:vars_end].split(",") vars = [v.strip() for v in vars] b = [] # construct the parsed line k = line[:vars_begin-1].rfind(';') if k == -1: k = len(line) - len(line.lstrip()) b.append(line[:k]) b.append('_=var("%s");'%(','.join(vars))) b.append(line[k:vars_begin-1]) b.append('=') b.append('symbolic_expression(') b.append(line[eq+1:a].strip()) b.append(').function(') b.append(','.join(vars)) b.append(')') b.append(line[a:]) line = ''.join(b) # i should get set to the position of the first paren after the new # assignment operator n = len(line_before) i = line.find('=', n) + 2 continue # ####### END CALCULUS ######## # exponents can be either ^ or ** elif line[i] == "^" and not in_quote(): line = line[:i] + "**" + line[i+1:] i += 2 continue elif line[i] == "." and i > 0 and i < len(line)-1 and not in_quote() and \ (isalphadigit_(line[i-1]) or line[i-1] == ")" or line[i-1] == ']') and line[i+1].isdigit(): # Generators: replace all ".<number>" by ".gen(<number>)" # If . is preceeded by \, then replace "\." by ".". j = i+1 while j < len(line) and line[j].isdigit(): j += 1 line = line[:i] + ".gen(" + line[i+1:j] + ")" + line[j:] i = j+4 if not in_number and \ not in_quote(): if i < len(line)-1 and line[i] == '\\': j = i+1 while j < len(line) and line[j].isspace(): j += 1 while j < len(line) and not line[j] in '*/;:\\#\'"': j += 1 line = line[:i] + "._backslash_(" + line[i+1:j] + ')' + line[j:] elif (line[i].isdigit() or \ (len(line)>i+1 and line[i] == '.' and line[i+1].isdigit())) and \ (i == 0 or (i > 0 and not (isalphadigit_(line[i-1]) \ or line[i-1] == ')'))): in_number = True num_start = i # Decide if we hit a comment, so we're done. if line[i] == '#' and not (in_single_quote or in_double_quote or in_triple_quote): i = len(line) break i += 1 if in_number: line, _ = wrap_num(i, line, is_real, num_start) # Time command like in MAGMA: (commented out, since it's standard in IPython now) L = line.lstrip() if do_time: if L[:5] == "time ": # strip semicolon from end of line if line[-1:] == ";": line = line[:-1] indent = ' '*(len(line) - len(L)) line = indent + '__time__=misc.cputime(); __wall__=misc.walltime(); %s; print \ "Time: CPU %%.2f s, Wall: %%.2f s"%%(misc.cputime(__time__), misc.walltime(__wall__))'%L[4:] return line
cf09301fa857850ed335f942676ba3db235b1226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/cf09301fa857850ed335f942676ba3db235b1226/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2670, 12, 1369, 16, 2715, 33, 5510, 16, 741, 67, 957, 33, 8381, 16, 2305, 67, 17401, 1092, 33, 8381, 4672, 436, 8395, 3536, 775, 30, 468, 306, 21, 16, 22, 16, 838, 16, 82, 65, 12155, 511, 16, 18228, 273, 2569, 67, 1080, 67, 80, 11235, 12, 1369, 13, 511, 273, 1109, 67, 292, 17829, 12, 48, 16, 675, 2670, 67, 4119, 33, 8381, 13, 980, 273, 511, 738, 18228, 1335, 18453, 30, 1342, 225, 468, 1104, 1625, 326, 30821, 854, 364, 445, 6661, 12155, 1061, 7892, 67, 1615, 273, 300, 21, 276, 13012, 67, 1615, 273, 300, 21, 225, 468, 364, 3474, 830, 17284, 445, 12155, 30, 22146, 67, 2815, 273, 374, 1122, 67, 11253, 67, 1615, 273, 300, 21, 225, 2552, 316, 67, 7526, 67, 6889, 16, 316, 67, 9056, 67, 6889, 16, 316, 67, 313, 2444, 67, 6889, 980, 273, 980, 18, 86, 6406, 1435, 225, 468, 619, 896, 3548, 15559, 326, 2337, 82, 11, 622, 679, 434, 980, 511, 273, 980, 18, 80, 6406, 1435, 309, 562, 12, 48, 13, 405, 374, 471, 511, 63, 20, 65, 316, 10228, 7, 2187, 11817, 3546, 30, 327, 980, 225, 309, 511, 18, 17514, 1918, 2668, 7821, 4672, 277, 273, 980, 18, 4720, 2668, 7821, 13, 327, 980, 10531, 77, 15, 23, 65, 397, 675, 2670, 12, 1369, 63, 77, 15, 23, 30, 6487, 2715, 33, 6208, 16, 741, 67, 957, 33, 2896, 67, 957, 16, 2305, 67, 17401, 1092, 33, 6185, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2670, 12, 1369, 16, 2715, 33, 5510, 16, 741, 67, 957, 33, 8381, 16, 2305, 67, 17401, 1092, 33, 8381, 4672, 436, 8395, 3536, 775, 30, 468, 306, 21, 16, 22, 16, 838, 16, 82, 65, 12155, 511, 16, 18228, 273, 2569, 67, 1080, 67, 80, 11235, 12, 1369, 13, 511, 273, 1109, 67, 292, 17829, 12, 48, 16, 675, 2670, 67, 4119, 33, 8381, 13, 980, 273, 511, 738, 18228, 1335, 18453, 30, 1342, 225, 468, 1104, 1625, 326, 30821, 854, 364, 445, 6661, 12155, 1061, 7892, 67, 1615, 273, 300, 21, 276, 13012, 67, 1615, 273, 300, 21, 225, 468, 364, 3474, 830, 17284, 445, 12155, 30, 22146, 67, 2815, 273, 374, 1122, 67, 11253, 2 ]
backgroundSubtractedExposure = exposure.Factory(exposure, exposure.getMaskedImage().getBBox(), true)
maskedImage = exposure.getMaskedImage() bbox = afwImg.BBox(maskedImage.getXY0(), maskedImage.getWidth(), maskedImage.getHeight()) backgroundSubtractedExposure = exposure.Factory(exposure, bbox, true)
def estimateBackground(exposure, backgroundPolicy, subtract=True): """Estimate exposure's background using parameters in backgroundPolicy. If subtract is true, make a copy of the exposure and subtract the background. Return background, backgroundSubtractedExposure""" backgroundSubtractedExposure = exposure.Factory(exposure, exposure.getMaskedImage().getBBox(), true) image = exposure.getMaskedImage().getImage() background = getBackground(image, backgroundPolicy) del image if not background: raise RuntimeError, "Unable to estimate background for exposure" if not subtract: return background, None copyImage = backgroundSubtractedExposure.getMaskedImage().getImage() copyImage -= background.getImageF() del copyImage return background, backgroundSubtractedExposure
fec080f54dbacecfc7c862ca65fb75f947ed2bc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6523/fec080f54dbacecfc7c862ca65fb75f947ed2bc1/sourceDetection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11108, 8199, 12, 22739, 16, 5412, 2582, 16, 10418, 33, 5510, 4672, 3536, 13638, 14620, 1807, 5412, 1450, 1472, 316, 5412, 2582, 18, 225, 971, 10418, 353, 638, 16, 1221, 279, 1610, 434, 326, 14620, 471, 10418, 326, 5412, 18, 225, 2000, 5412, 16, 5412, 27904, 329, 424, 11291, 8395, 13196, 2040, 273, 14620, 18, 588, 5796, 329, 2040, 1435, 8472, 273, 10073, 91, 12804, 18, 30944, 12, 23455, 2040, 18, 588, 8546, 20, 9334, 13196, 2040, 18, 588, 2384, 9334, 13196, 2040, 18, 588, 2686, 10756, 5412, 27904, 329, 424, 11291, 273, 14620, 18, 1733, 12, 22739, 16, 8472, 16, 638, 13, 225, 1316, 273, 14620, 18, 588, 5796, 329, 2040, 7675, 588, 2040, 1435, 5412, 273, 336, 8199, 12, 2730, 16, 5412, 2582, 13, 1464, 1316, 225, 309, 486, 5412, 30, 1002, 7265, 16, 315, 3370, 358, 11108, 5412, 364, 14620, 6, 225, 309, 486, 10418, 30, 327, 5412, 16, 599, 225, 1610, 2040, 273, 5412, 27904, 329, 424, 11291, 18, 588, 5796, 329, 2040, 7675, 588, 2040, 1435, 1610, 2040, 3947, 5412, 18, 588, 2040, 42, 1435, 1464, 1610, 2040, 225, 327, 5412, 16, 5412, 27904, 329, 424, 11291, 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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326, 5412, 18, 225, 2000, 5412, 16, 5412, 27904, 329, 424, 11291, 8395, 13196, 2040, 273, 14620, 18, 588, 5796, 329, 2040, 1435, 8472, 273, 10073, 91, 12804, 18, 30944, 12, 23455, 2040, 18, 588, 8546, 20, 9334, 13196, 2040, 18, 588, 2384, 9334, 13196, 2040, 18, 588, 2686, 10756, 5412, 27904, 329, 424, 11291, 273, 14620, 18, 1733, 12, 22739, 16, 8472, 16, 638, 13, 225, 1316, 273, 14620, 18, 588, 5796, 329, 2040, 7675, 588, 2040, 1435, 5412, 273, 2 ]
return S_OK({'Successful':successful,'Failed':failed}) def setFileMode(self,lfns,connection=False): connection = self._getConnection(connection)
return S_OK( {'Successful':successful, 'Failed':failed} ) def setFileMode( self, lfns, connection = False ): connection = self._getConnection( connection )
def setFileOwner(self,lfns,connection=False): connection = self._getConnection(connection) """ Get set the group for the supplied files """ res = self._findFiles(lfns,['FileID','UID'],connection=connection) if not res['OK']: return res failed = res['Value']['Failed'] successful = {} for lfn in res['Value']['Successful'].keys(): owner = lfns[lfn]['Owner'] if type(owner) in StringTypes: userRes = self.db.ugManager.findUser(owner) if not userRes['OK']: return userRes owner = userRes['Value'] currentOwner = res['Value']['Successful'][lfn]['UID'] if int(owner) == int(currentOwner): successful[lfn] = True else: fileID = res['Value']['Successful'][lfn]['FileID'] res = self._setFileOwner(fileID,owner,connection=connection) if not res['OK']: failed[lfn] = res['Message'] else: successful[lfn] = True return S_OK({'Successful':successful,'Failed':failed})
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19658, 5541, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 968, 444, 326, 1041, 364, 326, 4580, 1390, 3536, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, 16, 3292, 812, 734, 17023, 3060, 17337, 4071, 33, 4071, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 2535, 273, 400, 3292, 620, 21712, 2925, 3546, 6873, 273, 2618, 364, 328, 4293, 316, 400, 3292, 620, 21712, 14277, 29489, 2452, 13332, 3410, 273, 18594, 2387, 63, 80, 4293, 23962, 5541, 3546, 309, 618, 12, 8443, 13, 316, 514, 2016, 30, 729, 607, 273, 365, 18, 1966, 18, 637, 1318, 18, 4720, 1299, 12, 8443, 13, 309, 486, 729, 607, 3292, 3141, 3546, 30, 327, 729, 607, 3410, 273, 729, 607, 3292, 620, 3546, 783, 5541, 273, 400, 3292, 620, 21712, 14277, 3546, 63, 80, 4293, 23962, 3060, 3546, 309, 509, 12, 8443, 13, 422, 509, 12, 2972, 5541, 4672, 6873, 63, 80, 4293, 65, 273, 1053, 469, 30, 585, 734, 273, 400, 3292, 620, 21712, 14277, 3546, 63, 80, 4293, 23962, 812, 734, 3546, 400, 273, 365, 6315, 542, 812, 5541, 12, 768, 734, 16, 8443, 16, 4071, 33, 4071, 13, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 80, 4293, 65, 273, 400, 3292, 1079, 3546, 469, 30, 6873, 63, 80, 4293, 65, 273, 1053, 327, 348, 67, 3141, 12590, 11, 14277, 4278, 18418, 11189, 2925, 4278, 7307, 6792, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19658, 5541, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 968, 444, 326, 1041, 364, 326, 4580, 1390, 3536, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, 16, 3292, 812, 734, 17023, 3060, 17337, 4071, 33, 4071, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 2535, 273, 400, 3292, 620, 21712, 2925, 3546, 6873, 273, 2618, 364, 328, 4293, 316, 400, 3292, 620, 21712, 14277, 29489, 2452, 13332, 3410, 273, 18594, 2387, 63, 80, 4293, 23962, 5541, 3546, 309, 618, 12, 8443, 13, 316, 514, 2016, 30, 729, 607, 273, 365, 18, 1966, 18, 637, 1318, 18, 4720, 1299, 12, 8443, 13, 309, 2 ]
for i in range(NEVENTS):
for i_unused in range(NEVENTS):
def __init__(self): self.options = None # Game options self.state = snapshot() # A snapshot structure self.snapsht = snapshot() # Last snapshot taken for time-travel purposes self.quad = None # contents of our quadrant self.damage = [0.0] * NDEVICES # damage encountered self.future = [] # future events for i in range(NEVENTS): self.future.append(event()) self.passwd = None; # Self Destruct password self.enemies = [] self.quadrant = None # where we are in the large self.sector = None # where we are in the small self.tholian = None # Tholian enemy object self.base = None # position of base in current quadrant self.battle = None # base coordinates being attacked self.plnet = None # location of planet in quadrant self.gamewon = False # Finished! self.ididit = False # action taken -- allows enemy to attack self.alive = False # we are alive (not killed) self.justin = False # just entered quadrant self.shldup = False # shields are up self.shldchg = False # shield is changing (affects efficiency) self.iscate = False # super commander is here self.ientesc = False # attempted escape from supercommander self.resting = False # rest time self.icraft = False # Kirk in Galileo self.landed = False # party on planet (true), on ship (false) self.alldone = False # game is now finished self.neutz = False # Romulan Neutral Zone self.isarmed = False # probe is armed self.inorbit = False # orbiting a planet self.imine = False # mining self.icrystl = False # dilithium crystals aboard self.iseenit = False # seen base attack report self.thawed = False # thawed game self.condition = None # "green", "yellow", "red", "docked", "dead" self.iscraft = None # "onship", "offship", "removed" self.skill = None # Player skill level self.inkling = 0 # initial number of klingons self.inbase = 0 # initial number of bases self.incom = 0 # initial number of commanders self.inscom = 0 # initial number of commanders self.inrom = 0 # initial number of commanders self.instar = 0 # initial stars self.intorps = 0 # initial/max torpedoes self.torps = 0 # number of torpedoes self.ship = 0 # ship type -- 'E' is Enterprise self.abandoned = 0 # count of crew abandoned in space self.length = 0 # length of game self.klhere = 0 # klingons here self.casual = 0 # causalties self.nhelp = 0 # calls for help self.nkinks = 0 # count of energy-barrier crossings self.iplnet = None # planet # in quadrant self.inplan = 0 # initial planets self.irhere = 0 # Romulans in quadrant self.isatb = 0 # =2 if super commander is attacking base self.tourn = None # tournament number self.nprobes = 0 # number of probes available self.inresor = 0.0 # initial resources self.intime = 0.0 # initial time self.inenrg = 0.0 # initial/max energy self.inshld = 0.0 # initial/max shield self.inlsr = 0.0 # initial life support resources self.indate = 0.0 # initial date self.energy = 0.0 # energy level self.shield = 0.0 # shield level self.warpfac = 0.0 # warp speed self.lsupres = 0.0 # life support reserves self.optime = 0.0 # time taken by current operation self.damfac = 0.0 # damage factor self.lastchart = 0.0 # time star chart was last updated self.cryprob = 0.0 # probability that crystal will work self.probe = None # object holding probe course info self.height = 0.0 # height of orbit around planet
eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 2116, 273, 599, 202, 7, 14121, 702, 365, 18, 2019, 273, 4439, 1435, 202, 7, 432, 4439, 3695, 365, 18, 28449, 87, 647, 273, 4439, 1435, 202, 7, 6825, 4439, 9830, 364, 813, 17, 313, 7882, 13694, 365, 18, 21733, 273, 599, 202, 7, 2939, 434, 3134, 9474, 6890, 365, 18, 72, 301, 410, 273, 306, 20, 18, 20, 65, 380, 423, 18953, 55, 202, 7, 302, 301, 410, 9919, 365, 18, 14343, 273, 5378, 202, 202, 7, 3563, 2641, 364, 277, 67, 14375, 316, 1048, 12, 5407, 6465, 55, 4672, 365, 18, 14343, 18, 6923, 12, 2575, 10756, 365, 18, 24002, 225, 273, 599, 31, 202, 202, 7, 18954, 10597, 8813, 2201, 365, 18, 275, 351, 606, 273, 5378, 365, 18, 21733, 6890, 273, 599, 202, 7, 1625, 732, 854, 316, 326, 7876, 365, 18, 5709, 280, 273, 599, 202, 7, 1625, 732, 854, 316, 326, 5264, 365, 18, 451, 355, 2779, 273, 599, 202, 7, 935, 355, 2779, 570, 351, 93, 733, 365, 18, 1969, 273, 599, 202, 7, 1754, 434, 1026, 316, 783, 9474, 6890, 365, 18, 70, 4558, 298, 273, 599, 202, 7, 1026, 5513, 3832, 13843, 329, 365, 18, 412, 2758, 273, 599, 202, 7, 2117, 434, 4995, 278, 316, 9474, 6890, 365, 18, 13957, 91, 265, 273, 1083, 202, 7, 29745, 5, 365, 18, 350, 350, 305, 273, 1083, 202, 7, 1301, 9830, 1493, 5360, 570, 351, 93, 358, 13843, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 2116, 273, 599, 202, 7, 14121, 702, 365, 18, 2019, 273, 4439, 1435, 202, 7, 432, 4439, 3695, 365, 18, 28449, 87, 647, 273, 4439, 1435, 202, 7, 6825, 4439, 9830, 364, 813, 17, 313, 7882, 13694, 365, 18, 21733, 273, 599, 202, 7, 2939, 434, 3134, 9474, 6890, 365, 18, 72, 301, 410, 273, 306, 20, 18, 20, 65, 380, 423, 18953, 55, 202, 7, 302, 301, 410, 9919, 365, 18, 14343, 273, 5378, 202, 202, 7, 3563, 2641, 364, 277, 67, 14375, 316, 1048, 12, 5407, 6465, 55, 4672, 365, 18, 14343, 18, 6923, 12, 2575, 10756, 365, 18, 24002, 225, 273, 599, 31, 202, 202, 7, 18954, 2 ]
TR( contents = [
TR( contents = [
def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )]), P ( contents = [ Img( src = '%(ROOT)simages/germanylogo.png', width = 16, height = 10), A( 'Deutsch', href='%(BASE)sde/' )]), P ( contents = [ Img( src = '%(ROOT)simages/greecelogo.png', width = 16, height = 10), A( '&#917;&#955;&#955;&#951;&#965;&#953;&#954;&#940;', href='%(BASE)sel/' )]), P ( contents = [ Img( src = '%(ROOT)simages/francelogo.png', width = 16, height = 10), A( 'Fran&#231;ais', href='%(BASE)sfr/' )]), P ( contents = [ Img( src = '%(ROOT)simages/italylogo.png', width = 16, height = 10), A( 'Italiano', href='%(BASE)sit/' )]), P ( contents = [ Img( src = '%(ROOT)simages/netherlandslogo.png', width = 16, height = 10), A( 'Nederlands', href='%(BASE)snl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/polandlogo.png', width = 16, height = 10), A( 'Polski', href='%(BASE)spl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/portugallogo.png', width = 16, height = 10), A( 'Portugu&#234;s', href='%(BASE)spt/' )]), P ( contents = [ Img( src = '%(ROOT)simages/russialogo.png', width = 16, height = 10), A( '&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;', href='%(BASE)sru/' )]), P ( contents = [ Img( src = '%(ROOT)simages/spanishlogo.png', width = 16, height = 10), A( 'Espa&#241ol', href='%(BASE)ses/' )]), P ( contents = [ Img( src = '%(ROOT)simages/finlandlogo.png', width = 16, height = 10), A( 'Suomi', href='%(BASE)sfi/' )]), P ( contents = [ Img( src = '%(ROOT)simages/swedenlogo.png', width = 16, height = 10), A( 'Svenska', href='%(BASE)ssv/' )]), P ( contents = [ Img( src = '%(ROOT)simages/czechlogo.png', width = 16, height = 10), A( '&#268;esky', href='%(BASE)scs/' )]) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['news'], href=makeURL( 'news/', lang ) )]), Tree ( A( _N['archive'], href=makeURL( 'news/archive/', lang ) ) ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['introduction'], href=makeURL( 'introduction/', lang ) ) ]), Tree \ ( [ #A( _N['status'], href=makeURL('introduction/status/everything.html' ), A( _N['screenshots'], href=makeURL( 'pictures/screenshots/', lang) ), A( _N['ports'], href=makeURL( 'introduction/ports', lang ) ), A( _N['license'], href='%(BASE)slicense.html' ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['download'], href=makeURL( 'download', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['documentation'] ]), Tree \ ( [ A( _N['users'], href=makeURL( 'documentation/users/', lang ) ), Tree \ ( [ A( _N['installation'], href=makeURL( 'documentation/users/installation', lang ) ), A( _N['using'], href=makeURL( 'documentation/users/using', lang ) ), A( _N['shell'], href=makeURL( 'documentation/users/shell/index', lang ) ), A( _N['applications'], href=makeURL( 'documentation/users/applications/index', lang ) ), A( _N['faq'], href=makeURL( 'documentation/users/faq', lang ) ), #_N['ports'], #A( _N['links'], href=makeURL( 'documentation/users/links', lang ) ) ] ), A( _N['developers'], href=makeURL( 'documentation/developers/index', lang ) ), Tree \ ( [ A( _N['contribute'], href=makeURL( 'documentation/developers/contribute', lang ) ), A( 'Roadmap', href=makeURL( 'documentation/developers/roadmap', lang ) ), A( _N['bug-tracker'], href='http://sourceforge.net/tracker/?atid=439463&group_id=43586&func=browse' ), A( _N['working-with-subversion'], href=makeURL( 'documentation/developers/svn', lang ) ), A( _N['compiling'], href=makeURL( 'documentation/developers/compiling', lang ) ), A( _N['application-development-manual'], href=makeURL( 'documentation/developers/app-dev/index', lang ) ), A( _N['zune-application-development-manual'], href=makeURL( 'documentation/developers/zune-application-development', lang ) ), A( _N['system-development-manual'], href=makeURL( 'documentation/developers/system-development', lang ) ), A( _N['debugging-manual'], href=makeURL( 'documentation/developers/debugging', lang ) ), A( _N['reference'], href=makeURL( 'documentation/developers/autodocs/index', lang ) ), A( _N['specifications'], href=makeURL( 'documentation/developers/specifications/', lang ) ), A( _N['ui-style-guide'], href=makeURL( 'documentation/developers/ui', lang ) ), A( _N['documenting'], href=makeURL( 'documentation/developers/documenting', lang ) ), A( _N['porting'], href=makeURL( 'documentation/developers/porting', lang ) ), A( _N['translating'], href=makeURL( 'documentation/developers/translating', lang ) ), A( _N['summaries'], href=makeURL( 'documentation/developers/summaries/', lang ) ), A( _N['links'], href=makeURL( 'documentation/developers/links', lang ) ) ] ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['contact'], href=makeURL( 'contact', lang ) )]), Tree \ ( [ A( _N['mailing-lists'], href=makeURL( 'contact', lang, 'mailing-lists' ) ), #A( _N['forums'], href=makeURL( 'contact', lang, 'forums' ) ), A( _N['irc-channels'], href=makeURL( 'contact', lang, 'irc-channels' ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['credits'], href=makeURL( 'credits', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( 'Acknowledgements', href=makeURL( 'acknowledgements', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['pictures']]), Tree \ ( [ A( _N['developers'], href=makeURL( 'pictures/developers/', lang ) ), A( _N['developers-together'], href=makeURL( 'pictures/developers-together/', lang ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['sponsors'], href=makeURL( 'sponsors', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['linking'], href=makeURL( 'linking', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['links'], href=makeURL( 'links', lang ) )]) ] ) counter = Img( src = 'http://www.hepe.com/cgi-bin/wwwcount.cgi?df=aros.dat&dd=E&ft=0' ) sponsors = Table\ ( cellspacing = 5, cellpadding = 0, contents = [ TR ( TD ( A ( Img( src = '%(ROOT)simages/trustec-small.png', border = 0 ), href = 'http://www.trustsec.de/' ) ) ), TR ( TD ( A ( Img( src = '%(ROOT)simages/genesi-small.gif', border = 0 ), href = 'http://www.pegasosppc.com/' ) ) ), TR ( TD ( A \ ( Img \ ( src = 'http://sflogo.sourceforge.net/sflogo.php?group_id=43586&type=1', width = 88, height = 31, border = 0, alt = 'SourceForge Logo' ), href = 'http://sourceforge.net/' ) ) ) ] ) bar = Table( border = 0, cellpadding = 2, cellspacing = 2, width = 171, valign = 'top', contents = [ TR( valign = 'top', contents = [ TD( rowspan = 8, width=15 ), TD() ] ), TR( valign = 'top', contents = TD( navigation ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = counter ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = sponsors ) ), TR( TD(), height=30 ), TR \ ( valign = 'top', contents = TD \ ( align = 'center', contents = A \ ( Img \ ( src = '%(ROOT)simages/noeupatents-small.png', border = 0 ), href = 'http://petition.eurolinux.org/' ) ) ) ] ) statsPHP = ''' <?php //define("_BBC_PAGE_NAME", "my page title"); define("_BBCLONE_DIR", "%(ROOT)smybbclone/"); define("COUNTER", _BBCLONE_DIR."index.php"); if (file_exists(COUNTER)) include_once(COUNTER); ?> ''' statsPHP2 = ''' <?php echo date("m.d.y"); ?> ''' statsPHP3 = ''' <?php echo "<map name=\\"map\\">"; echo "<area shape=\\"rect\\" coords=\\"11,80,82,95\\" alt=\\"http://www.aros.org\\" href=\\"http://www.aros.org\\">"; echo "<area shape=\\"rect\\" coords=\\"87,78,165,95\\" alt=\\"AROS-Exec\\" href=\\"http://www.aros-exec.org\\">"; echo "<area shape=\\"rect\\" coords=\\"244,77,323,95166,77,240,95\\" alt=\\"Team AROS\\" href=\\"http://www.teamaros.org\\">"; echo "<area shape=\\"rect\\" coords=\\"166,77,240,95\\" alt=\\"AROS-Exec Archives\\" href=\\"http://archives.aros-exec.org\\">"; echo "</map>"; ?> ''' statsPHP4 = ''' <?php echo "<table width=\\"100%%\\"><tr><td>"; echo "<div style=\\"text-align: right;\\">"; echo "<font color=\\"#aaaaaa\\">"; ?> ''' statsPHP6 = ''' <?php echo "</font></div>"; echo "</p></tr></td></table>"; ?> ''' statsPHP5= ''' <?php include( '/home/groups/a/ar/aros/htdocs/rsfeed/browserdetect.php'); $win_ie56 = (browser_detection('browser') == 'ie' ) && (browser_detection('number') >= 5 ) && (browser_detection('number') < 7 ); if ($win_ie56) { echo \"<img src=\\"/images/kittymascot.gif\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.gif\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } else { echo \"<img src=\\"/images/kittymascot.png\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.png\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } ?> ''' page = HTML( [ Head( [ Charset( charset ), Title( 'AROS Research Operating System' ), Link( href = '%(ROOT)saros.css', type = 'text/css', rel = 'stylesheet' ), Meta( name = 'keywords', content = 'AROS, OS, operating system, research, open source, portage' ) ] ), Body( style = 'margin: 0px;', bgcolor = '#ffffff', contents = [ statsPHP3, Table( border = 0, cellspacing = 0, cellpadding = 0, width = '100%%', contents = [ TR( [ TD( halign = 'top', width = '100%%', height = 109, background='%(ROOT)simages/backgroundtop.png' ,rowspan = 4, contents = statsPHP5)
6f57d571cb5a191a538d1b271f46a3e100233a4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/6f57d571cb5a191a538d1b271f46a3e100233a4d/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 10437, 18, 6446, 11, 262, 16, 432, 12, 389, 50, 3292, 8712, 17337, 3897, 33, 6540, 1785, 12, 2611, 16, 3303, 8623, 65, 262, 16, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 275, 13740, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 296, 664, 13740, 2187, 3897, 2218, 17105, 8369, 13, 87, 1093, 262, 65, 3631, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 693, 9353, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 296, 758, 22605, 2187, 3897, 2218, 17105, 8369, 13, 87, 323, 2473, 262, 65, 3631, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 11556, 557, 12970, 83, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 21312, 29, 4033, 31, 18642, 29, 2539, 31, 18642, 29, 2539, 31, 18642, 8778, 21, 31, 18642, 29, 9222, 31, 18642, 29, 8643, 31, 18642, 29, 6564, 31, 18642, 29, 7132, 31, 2187, 3897, 2218, 17105, 8369, 13, 1786, 2473, 262, 65, 3631, 453, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 10437, 18, 6446, 11, 262, 16, 432, 12, 389, 50, 3292, 8712, 17337, 3897, 33, 6540, 1785, 12, 2611, 16, 3303, 8623, 65, 262, 16, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 275, 13740, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 296, 664, 13740, 2187, 3897, 2218, 17105, 8369, 13, 87, 1093, 2 ]
p_url = '/admin/product/product/%s/' % product.pk pv_url = '/admin/product/productvariation/%s/delete/' % product.pk
p_url = reverse_admin_url(Product, 'change', args=(product.pk,)) pv_url = reverse_admin_url(ProductVariation, 'delete', args=(product.pk,))
def list_variations(configurableproduct): opts = configurableproduct.get_all_options() output = "{% load admin_modify adminmedia %}" output += "<table>" for p_opt in opts: opt_strs = [] [opt_strs.append(opt.name) for opt in p_opt] opt_str = ', '.join(opt_strs) product = configurableproduct.get_product_from_options(p_opt) if product: p_url = '/admin/product/product/%s/' % product.pk pv_url = '/admin/product/productvariation/%s/delete/' % product.pk output += """ <tr> <td>%s</td> <td><a href="%s">%s</a></td> <td><a class="deletelink" href="%s">%s</a></td> </tr> """ % (opt_str, p_url, product.slug, pv_url, _("Delete ProductVariation")) else: #opt_pks = [str(opt.pk) for opt in p_opt] #opt_pks = ','.join(opt_pks) # TODO [NFA]: Blocked by Django ticket #7738. opt_pks = '' add_url = '/admin/product/productvariation/add/' + \ "?product=%s&parent=%s&options=%s" % ( configurableproduct.product.pk, configurableproduct.product.pk, opt_pks) output += """ <tr> <td>%s</td> <td/> <td><a href="%s" class="add-another" id="add_productvariation"> <img src="{%% admin_media_prefix %%}img/admin/icon_addlink.gif" width="10" height="10" alt="Add ProductVariation"/> Add Variation</a></td> </tr> """ % (opt_str, add_url) output += "</table>" t = Template(output) return t.render(Context())
d5511ada1d2012a751b78b5b036cd931c9b31d80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/171/d5511ada1d2012a751b78b5b036cd931c9b31d80/satchmo_product_admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4093, 1012, 12, 1425, 7463, 5896, 4672, 1500, 273, 14593, 5896, 18, 588, 67, 454, 67, 2116, 1435, 876, 273, 4144, 9, 1262, 3981, 67, 17042, 3981, 5829, 738, 1532, 876, 1011, 3532, 2121, 2984, 364, 293, 67, 3838, 316, 1500, 30, 2153, 67, 24432, 273, 5378, 306, 3838, 67, 24432, 18, 6923, 12, 3838, 18, 529, 13, 364, 2153, 316, 293, 67, 3838, 65, 2153, 67, 701, 273, 2265, 2418, 5701, 12, 3838, 67, 24432, 13, 225, 3017, 273, 14593, 5896, 18, 588, 67, 5896, 67, 2080, 67, 2116, 12, 84, 67, 3838, 13, 309, 3017, 30, 293, 67, 718, 273, 4219, 67, 3666, 67, 718, 12, 4133, 16, 296, 3427, 2187, 833, 28657, 5896, 18, 5465, 16, 3719, 9770, 67, 718, 273, 4219, 67, 3666, 67, 718, 12, 4133, 23771, 16, 296, 3733, 2187, 833, 28657, 5896, 18, 5465, 16, 3719, 876, 1011, 3536, 411, 313, 34, 411, 4465, 9822, 87, 1757, 4465, 34, 411, 4465, 4438, 69, 3897, 11613, 87, 24038, 87, 1757, 69, 4695, 4465, 34, 411, 4465, 4438, 69, 667, 1546, 19003, 27269, 6, 3897, 11613, 87, 24038, 87, 1757, 69, 4695, 4465, 34, 7765, 313, 34, 3536, 738, 261, 3838, 67, 701, 16, 293, 67, 718, 16, 3017, 18, 6436, 16, 9770, 67, 718, 16, 389, 2932, 2613, 8094, 23771, 6, 3719, 469, 30, 468, 3838, 67, 5465, 87, 273, 306, 701, 12, 3838, 18, 5465, 13, 364, 2153, 316, 293, 67, 3838, 65, 468, 3838, 67, 5465, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4093, 1012, 12, 1425, 7463, 5896, 4672, 1500, 273, 14593, 5896, 18, 588, 67, 454, 67, 2116, 1435, 876, 273, 4144, 9, 1262, 3981, 67, 17042, 3981, 5829, 738, 1532, 876, 1011, 3532, 2121, 2984, 364, 293, 67, 3838, 316, 1500, 30, 2153, 67, 24432, 273, 5378, 306, 3838, 67, 24432, 18, 6923, 12, 3838, 18, 529, 13, 364, 2153, 316, 293, 67, 3838, 65, 2153, 67, 701, 273, 2265, 2418, 5701, 12, 3838, 67, 24432, 13, 225, 3017, 273, 14593, 5896, 18, 588, 67, 5896, 67, 2080, 67, 2116, 12, 84, 67, 3838, 13, 309, 3017, 30, 293, 67, 718, 273, 4219, 67, 3666, 67, 718, 12, 4133, 16, 296, 3427, 2187, 833, 28657, 5896, 2 ]
p = pool.QueuePool(creator=mock_dbapi.connect, pool_size=3,
p = self._queuepool_fixture(pool_size=3,
def test_trick_the_counter(self): """this is a "flaw" in the connection pool; since threadlocal uses a single ConnectionFairy per thread with an open/close counter, you can fool the counter into giving you a ConnectionFairy with an ambiguous counter. i.e. its not true reference counting."""
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, 313, 1200, 67, 5787, 67, 7476, 12, 2890, 4672, 3536, 2211, 353, 279, 315, 2242, 2219, 6, 316, 326, 1459, 2845, 31, 3241, 2650, 3729, 4692, 279, 2202, 4050, 42, 1826, 93, 1534, 2650, 598, 392, 1696, 19, 4412, 3895, 16, 1846, 848, 284, 1371, 326, 3895, 1368, 21057, 1846, 279, 4050, 42, 1826, 93, 598, 392, 20399, 3895, 18, 225, 277, 18, 73, 18, 2097, 486, 638, 2114, 22075, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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848, 284, 1371, 326, 3895, 1368, 21057, 1846, 279, 4050, 42, 1826, 93, 598, 392, 20399, 3895, 18, 225, 277, 18, 73, 18, 2097, 486, 638, 2114, 22075, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
z3cfile = z3c.pt.PageTemplateFile(
z3cfile = pagetemplate.PageTemplateFile(
def testBigTablePathFile(self): table = self.table
0362910487a742f6f9bbfbad6694fa0f51c35813 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9696/0362910487a742f6f9bbfbad6694fa0f51c35813/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9901, 1388, 743, 812, 12, 2890, 4672, 1014, 273, 365, 18, 2121, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print result.keys()
def get_campaign_purchase_line_ids(self , cr, uid, ids, context): result = {}
d33b01638b25348f4ae35965351a308e159b193b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/d33b01638b25348f4ae35965351a308e159b193b/dm_purchase_advanced.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14608, 67, 12688, 12104, 67, 1369, 67, 2232, 12, 2890, 269, 4422, 16, 4555, 16, 3258, 16, 819, 4672, 563, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12104, 67, 1369, 67, 2232, 12, 2890, 269, 4422, 16, 4555, 16, 3258, 16, 819, 4672, 563, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
msg += wrap('pattern: %s' % pattern)
if pattern: msg += wrap('pattern: %s' % pattern)
def email_notify(alert, records, argstr): global FROMADDR global ALERTURL global DEBUGLEVEL global DEVELOPERADDR if len(records) == 0: return msg = "" if DEBUGLEVEL > 0: msg = "*** THIS MESSAGE WAS SENT IN DEBUG MODE, DON'T TAKE IT INTO ACCOUNT ***\n\n" msg += "Hello\n\n" msg += wrap("Below are the results of the email alert that you set up with the CERN Document Server. This is an automatic message, please don't reply to its address. For any question, use <%s> instead." % supportemail) email = get_email(alert[0]) url = weburl + "/search.py?" + argstr pattern = get_pattern(argstr) catalogue = get_catalogue(argstr) catword = 'collection' if get_catalogue_num(argstr) > 1: catword += 's' time = strftime("%d-%m-%Y") msg += '\n' + wrap('alert name: %s' % alert[5]) msg += wrap('pattern: %s' % pattern) if catalogue: msg += wrap('%s: %s' % (catword, catalogue)) msg += wrap('frequency: %s ' % format_frequency(alert[3])) msg += wrap('run time: %s ' % strftime("%a %d-%m-%Y %H:%M:%S")) recword = 'record' if len(records) > 1: recword += 's' msg += wrap('found: %s %s' % (len(records), recword)) msg += "url: <%s/search.py?%s>\n" % (weburl, argstr) msg += wrap_records(print_records(records)) msg += "\n-- \nCERN Document Server Alert Service <%s>\nUnsubscribe? See <%s>\nNeed human intervention? Contact <%s>" % (weburl, ALERTURL, supportemail) subject = 'Alert %s run on %s' % (alert[5], time) body = forge_email(FROMADDR, email, subject, msg) if DEBUGLEVEL > 0: print "********************************************************************************" print body print "********************************************************************************" if DEBUGLEVEL < 2: send_email(FROMADDR, email, body) if DEBUGLEVEL == 4: for a in DEVELOPERADDR: send_email(FROMADDR, a, body)
ccffb769787c8a50f3c580a7cce3916a487c950a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/ccffb769787c8a50f3c580a7cce3916a487c950a/alert_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 12336, 12, 11798, 16, 3853, 16, 833, 313, 4672, 2552, 4571, 14142, 2552, 7981, 11539, 1785, 2552, 6369, 10398, 2552, 2030, 24397, 3194, 14142, 225, 309, 562, 12, 7094, 13, 422, 374, 30, 327, 225, 1234, 273, 1408, 225, 309, 6369, 10398, 405, 374, 30, 1234, 273, 315, 14465, 20676, 9841, 678, 3033, 348, 2222, 2120, 6369, 11741, 16, 463, 673, 11, 56, 399, 37, 6859, 24142, 12421, 29437, 18852, 64, 82, 64, 82, 6, 225, 1234, 1011, 315, 18601, 64, 82, 64, 82, 6, 1234, 1011, 2193, 2932, 28730, 854, 326, 1686, 434, 326, 2699, 6881, 716, 1846, 444, 731, 598, 326, 385, 654, 50, 4319, 3224, 18, 225, 1220, 353, 392, 5859, 883, 16, 9582, 2727, 1404, 4332, 358, 2097, 1758, 18, 225, 2457, 1281, 5073, 16, 999, 23930, 87, 34, 3560, 1199, 738, 2865, 3652, 13, 225, 2699, 273, 336, 67, 3652, 12, 11798, 63, 20, 5717, 225, 880, 273, 3311, 718, 397, 2206, 3072, 18, 2074, 7225, 397, 833, 313, 1936, 273, 336, 67, 4951, 12, 1968, 313, 13, 20833, 273, 336, 67, 7199, 344, 12, 1968, 313, 13, 6573, 1095, 273, 296, 5548, 11, 309, 336, 67, 7199, 344, 67, 2107, 12, 1968, 313, 13, 405, 404, 30, 6573, 1095, 1011, 296, 87, 11, 225, 813, 273, 10405, 27188, 72, 6456, 81, 6456, 61, 7923, 225, 1234, 1011, 2337, 82, 11, 397, 2193, 2668, 11798, 508, 30, 738, 87, 11, 738, 6881, 63, 25, 5717, 309, 1936, 30, 1234, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 12336, 12, 11798, 16, 3853, 16, 833, 313, 4672, 2552, 4571, 14142, 2552, 7981, 11539, 1785, 2552, 6369, 10398, 2552, 2030, 24397, 3194, 14142, 225, 309, 562, 12, 7094, 13, 422, 374, 30, 327, 225, 1234, 273, 1408, 225, 309, 6369, 10398, 405, 374, 30, 1234, 273, 315, 14465, 20676, 9841, 678, 3033, 348, 2222, 2120, 6369, 11741, 16, 463, 673, 11, 56, 399, 37, 6859, 24142, 12421, 29437, 18852, 64, 82, 64, 82, 6, 225, 1234, 1011, 315, 18601, 64, 82, 64, 82, 6, 1234, 1011, 2193, 2932, 28730, 854, 326, 1686, 434, 326, 2699, 6881, 716, 1846, 444, 731, 598, 326, 385, 654, 50, 4319, 3224, 18, 225, 1220, 353, 392, 5859, 883, 16, 2 ]
self.update_(nil)
def fetchItemValues(item): title = item.getTitle() feedTitle = item.getFeed().getTitle() keep = item.showSaveButton() share = item.hasSharableURL() threads.callOnMainThread(finishSetup, title, feedTitle, keep, share) def finishSetup(title, feedTitle, keep, share): self.titleLabel.setStringValue_(title) self.feedLabel.setStringValue_(feedTitle) self.keepButton.setEnabled_(keep) self.shareButton.setEnabled_(share) self.update_(nil) eventloop.addUrgentCall(lambda:fetchItemValues(item), "Fetching item values")
def setup(self, item, renderer): self.playingItem = item self.titleLabel.setStringValue_(unicode(item.getTitle())) self.feedLabel.setStringValue_(unicode(item.getFeed().getTitle())) self.keepButton.setEnabled_(item.showSaveButton()) self.shareButton.setEnabled_(item.hasSharableURL()) self.renderer = renderer self.update_(nil)
1aef0d6dd1087e85f1cb4f16ae4c51b3ae99df1b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/1aef0d6dd1087e85f1cb4f16ae4c51b3ae99df1b/VideoDisplay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 761, 16, 5690, 4672, 365, 18, 1601, 310, 1180, 273, 761, 365, 18, 2649, 2224, 18, 542, 19733, 67, 12, 9124, 12, 1726, 18, 588, 4247, 1435, 3719, 365, 18, 7848, 2224, 18, 542, 19733, 67, 12, 9124, 12, 1726, 18, 588, 8141, 7675, 588, 4247, 1435, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 761, 16, 5690, 4672, 365, 18, 1601, 310, 1180, 273, 761, 365, 18, 2649, 2224, 18, 542, 19733, 67, 12, 9124, 12, 1726, 18, 588, 4247, 1435, 3719, 365, 18, 7848, 2224, 18, 542, 19733, 67, 12, 9124, 12, 1726, 18, 588, 8141, 7675, 588, 4247, 1435, 3719, 365, 18, 10102, 3616, 18, 542, 1526, 67, 12, 1726, 18, 4500, 4755, 3616, 10756, 365, 18, 14419, 3616, 18, 542, 1526, 67, 12, 1726, 18, 5332, 1555, 297, 429, 1785, 10756, 365, 18, 14374, 273, 5690, 365, 18, 2725, 67, 12, 20154, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
without effecting this threads data:
without affecting this thread's data:
... def squared(self):
349104f3c25913589a248c31691ec7d2190401af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/349104f3c25913589a248c31691ec7d2190401af/_threading_local.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 21778, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 21778, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'bytes'."""
'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.""" if not isinstance(zinfo_or_arcname, ZipInfo): zinfo = ZipInfo(filename=zinfo_or_arcname, date_time=time.localtime(time.time())) zinfo.compress_type = self.compression else: zinfo = zinfo_or_arcname
def writestr(self, zinfo, bytes): """Write a file into the archive. The contents is the string 'bytes'.""" self._writecheck(zinfo) zinfo.file_size = len(bytes) # Uncompressed size zinfo.CRC = binascii.crc32(bytes) # CRC-32 checksum if zinfo.compress_type == ZIP_DEFLATED: co = zlib.compressobj(zlib.Z_DEFAULT_COMPRESSION, zlib.DEFLATED, -15) bytes = co.compress(bytes) + co.flush() zinfo.compress_size = len(bytes) # Compressed size else: zinfo.compress_size = zinfo.file_size zinfo.header_offset = self.fp.tell() # Start of header bytes self.fp.write(zinfo.FileHeader()) zinfo.file_offset = self.fp.tell() # Start of file bytes self.fp.write(bytes) if zinfo.flag_bits & 0x08: # Write CRC and file sizes after the file data self.fp.write(struct.pack("<lll", zinfo.CRC, zinfo.compress_size, zinfo.file_size)) self.filelist.append(zinfo) self.NameToInfo[zinfo.filename] = zinfo
33331e271a17ff37ca21224255394ebde60c9b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/33331e271a17ff37ca21224255394ebde60c9b05/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7262, 313, 12, 2890, 16, 998, 1376, 16, 1731, 4672, 3536, 3067, 279, 585, 1368, 326, 5052, 18, 225, 1021, 2939, 353, 326, 533, 296, 3890, 10332, 225, 296, 94, 1376, 67, 280, 67, 11828, 529, 11, 353, 3344, 279, 8603, 966, 791, 578, 326, 508, 434, 326, 585, 316, 326, 5052, 12123, 309, 486, 1549, 12, 94, 1376, 67, 280, 67, 11828, 529, 16, 8603, 966, 4672, 998, 1376, 273, 8603, 966, 12, 3459, 33, 94, 1376, 67, 280, 67, 11828, 529, 16, 1509, 67, 957, 33, 957, 18, 3729, 957, 12, 957, 18, 957, 1435, 3719, 998, 1376, 18, 14706, 67, 723, 273, 365, 18, 23766, 469, 30, 998, 1376, 273, 998, 1376, 67, 280, 67, 11828, 529, 365, 6315, 2626, 1893, 12, 94, 1376, 13, 998, 1376, 18, 768, 67, 1467, 273, 562, 12, 3890, 13, 5411, 468, 1351, 15385, 963, 998, 1376, 18, 26803, 273, 28222, 18, 22988, 1578, 12, 3890, 13, 4202, 468, 21773, 17, 1578, 6697, 309, 998, 1376, 18, 14706, 67, 723, 422, 18277, 67, 12904, 48, 6344, 30, 1825, 273, 24220, 18, 14706, 2603, 12, 94, 2941, 18, 62, 67, 5280, 67, 4208, 14227, 16, 24220, 18, 12904, 48, 6344, 16, 300, 3600, 13, 1731, 273, 1825, 18, 14706, 12, 3890, 13, 397, 1825, 18, 11330, 1435, 998, 1376, 18, 14706, 67, 1467, 273, 562, 12, 3890, 13, 565, 468, 5427, 4638, 963, 469, 30, 998, 1376, 18, 14706, 67, 1467, 273, 998, 1376, 18, 768, 67, 1467, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7262, 313, 12, 2890, 16, 998, 1376, 16, 1731, 4672, 3536, 3067, 279, 585, 1368, 326, 5052, 18, 225, 1021, 2939, 353, 326, 533, 296, 3890, 10332, 225, 296, 94, 1376, 67, 280, 67, 11828, 529, 11, 353, 3344, 279, 8603, 966, 791, 578, 326, 508, 434, 326, 585, 316, 326, 5052, 12123, 309, 486, 1549, 12, 94, 1376, 67, 280, 67, 11828, 529, 16, 8603, 966, 4672, 998, 1376, 273, 8603, 966, 12, 3459, 33, 94, 1376, 67, 280, 67, 11828, 529, 16, 1509, 67, 957, 33, 957, 18, 3729, 957, 12, 957, 18, 957, 1435, 3719, 998, 1376, 18, 14706, 67, 723, 273, 365, 18, 23766, 469, 30, 998, 1376, 273, 998, 1376, 67, 280, 67, 2 ]
n = width - len(s) if n <= 0: return s half = n/2 if n%2 and width%2: half = half+1 return ' '*half + s + ' '*(n-half)
return s.center(width)
def center(s, width): """center(s, width) -> string Return a center version of s, in a field of the specified width. padded with spaces as needed. The string is never truncated. """ n = width - len(s) if n <= 0: return s half = n/2 if n%2 and width%2: # This ensures that center(center(s, i), j) = center(s, j) half = half+1 return ' '*half + s + ' '*(n-half)
4e577568f34ac8283d2070929bf3c3090b3e722f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4e577568f34ac8283d2070929bf3c3090b3e722f/string.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4617, 12, 87, 16, 1835, 4672, 3536, 5693, 12, 87, 16, 1835, 13, 317, 533, 225, 2000, 279, 4617, 1177, 434, 272, 16, 316, 279, 652, 434, 326, 1269, 1835, 18, 14426, 598, 7292, 487, 3577, 18, 225, 1021, 533, 353, 5903, 15282, 18, 225, 3536, 290, 273, 1835, 300, 562, 12, 87, 13, 309, 290, 1648, 374, 30, 327, 272, 8816, 273, 290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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4617, 12, 87, 16, 1835, 4672, 3536, 5693, 12, 87, 16, 1835, 13, 317, 533, 225, 2000, 279, 4617, 1177, 434, 272, 16, 316, 279, 652, 434, 326, 1269, 1835, 18, 14426, 598, 7292, 487, 3577, 18, 225, 1021, 533, 353, 5903, 15282, 18, 225, 3536, 290, 273, 1835, 300, 562, 12, 87, 13, 309, 290, 1648, 374, 30, 327, 272, 8816, 273, 290, 19, 22, 309, 290, 9, 22, 471, 1835, 9, 22, 30, 468, 1220, 11932, 716, 4617, 12, 5693, 12, 87, 16, 277, 3631, 525, 13, 273, 4617, 12, 87, 16, 525, 13, 8816, 273, 8816, 15, 21, 327, 296, 14609, 20222, 397, 225, 272, 397, 296, 14609, 12, 82, 17, 20222, 13, 225, 2, -100 ]
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 301) else quickfix.IntField.__init__(self, 301, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 26403, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 26403, 16, 501, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
" returns module and compiled function "
" returns module and compiled function "
def compile_test(function, annotation, isolate=True, **kwds): " returns module and compiled function " if llvm_test(): if run_isolated_only and not isolate: py.test.skip("skipping not isolated test") # maintain only 3 isolated process (if any) _cleanup(leave=3) optimize = kwds.pop('optimize', optimize_tests) mod, fn = genllvm_compile(function, annotation, optimize=optimize, logging=False, isolate=isolate, **kwds) if isolate: ext_modules.append(mod) return mod, fn
e0c8e4067d13cd5f4b1e95d81f08d37a1be8fe76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/e0c8e4067d13cd5f4b1e95d81f08d37a1be8fe76/runtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 3813, 12, 915, 16, 3204, 16, 30630, 33, 5510, 16, 2826, 25577, 4672, 315, 1135, 1605, 471, 7743, 445, 315, 309, 328, 3070, 81, 67, 3813, 13332, 309, 1086, 67, 291, 30469, 67, 3700, 471, 486, 30630, 30, 2395, 18, 3813, 18, 7457, 2932, 7457, 1382, 486, 25790, 1842, 7923, 225, 468, 17505, 1338, 890, 25790, 1207, 261, 430, 1281, 13, 389, 16732, 12, 19574, 33, 23, 13, 10979, 273, 17149, 18, 5120, 2668, 29155, 2187, 10979, 67, 16341, 13, 681, 16, 2295, 273, 3157, 2906, 3489, 67, 11100, 12, 915, 16, 3204, 16, 10979, 33, 29155, 16, 2907, 33, 8381, 16, 30630, 33, 291, 30144, 16, 2826, 25577, 13, 309, 30630, 30, 1110, 67, 6400, 18, 6923, 12, 1711, 13, 327, 681, 16, 2295, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 3813, 12, 915, 16, 3204, 16, 30630, 33, 5510, 16, 2826, 25577, 4672, 315, 1135, 1605, 471, 7743, 445, 315, 309, 328, 3070, 81, 67, 3813, 13332, 309, 1086, 67, 291, 30469, 67, 3700, 471, 486, 30630, 30, 2395, 18, 3813, 18, 7457, 2932, 7457, 1382, 486, 25790, 1842, 7923, 225, 468, 17505, 1338, 890, 25790, 1207, 261, 430, 1281, 13, 389, 16732, 12, 19574, 33, 23, 13, 10979, 273, 17149, 18, 5120, 2668, 29155, 2187, 10979, 67, 16341, 13, 681, 16, 2295, 273, 3157, 2906, 3489, 67, 11100, 12, 915, 16, 3204, 16, 10979, 33, 29155, 16, 2907, 33, 8381, 16, 30630, 33, 291, 30144, 16, 2826, 25577, 13, 309, 30630, 30, 1110, 67, 6400, 2 ]
p = Integer(p)
if not isinstance(p, Integer): p = Integer(p) if not isinstance(prec, Integer): prec = Integer(prec) if not isinstance(halt, Integer): halt = Integer(halt)
def Zp(p, prec = 20, type = 'capped-rel', print_mode = None, halt = 40, names = None, check=True): """ Return a model of the $p$-adic integer $\Z_p$. INPUT: p -- integer the p in Z_p prec -- integer (default: 20) the precision cap of the ring. Except for the fixed modulus case, individual elements keep track of their own precision. type -- string (default: 'capped-rel') see notes section below for options. print_mode -- string (default: series) the print mode; see notes section below for options. halt -- integer (default: 40): only applicable for type='lazy' check -- bool (default: True): wether to verify that the input is valid. OUTPUT: the corresponding p-adic ring EXAMPLES: We create rings with various parameters sage: Zp(7) 7-adic Ring with capped relative precision 20 sage: Zp(9) Traceback (most recent call last): ... ValueError: p must be prime sage: Zp(17, 5) 17-adic Ring with capped relative precision 5 sage: Zp(17, 5)(-1) 16 + 16*17 + 16*17^2 + 16*17^3 + 16*17^4 + O(17^5) It works even with a fairly huge cap: sage: Zp(next_prime(10^50), 100000) 100000000000000000000000000000000000000000000000151-adic Ring with capped relative precision 100000 We create each type of ring: sage: Zp(7, 20, 'capped-rel') 7-adic Ring with capped relative precision 20 sage: Zp(7, 20, 'fixed-mod') 7-adic Ring of fixed modulus 7^20 sage: Zp(7, 20, 'capped-abs') 7-adic Ring with capped absolute precision 20 #sage: Zp(7, 20, 'lazy') #Lazy 7-adic Ring We create a capped relative ring with each print mode: sage: k = Zp(7, 8, print_mode='series'); k 7-adic Ring with capped relative precision 8 sage: k(7*(19)) 5*7 + 2*7^2 + O(7^9) sage: k(7*(-19)) 2*7 + 4*7^2 + 6*7^3 + 6*7^4 + 6*7^5 + 6*7^6 + 6*7^7 + 6*7^8 + O(7^9) sage: k = Zp(7, print_mode='val-unit'); k 7-adic Ring with capped relative precision 20 sage: k(7*(19)) 7 * 19 + O(7^21) sage: k(7*(-19)) 7 * 79792266297611982 + O(7^21) sage: k = Zp(7, print_mode='terse'); k 7-adic Ring with capped relative precision 20 sage: k(7*(19)) 133 + O(7^21) sage: k(7*(-19)) 558545864083283874 + O(7^21) Note that $p$-adic rings are cached (via weak references): sage: a = Zp(7); b = Zp(7) sage: a is b True We create some elements in various rings: sage: R = Zp(5); a = R(4); a 4 + O(5^20) sage: S = Zp(5, 10, type = 'capped-abs'); b = S(2); b 2 + O(5^10) sage: a + b 1 + 5 + O(5^10) NOTES: type -- string (default: 'capped-rel'), the type of p-adic ring. 'capped-rel' -- pAdicRingCappedRelative. This is the default, considers precision as the precision of the unit part. Tracks precision of individual elements, but bounds the precision of any element with a precision cap. 'fixed-mod' -- pAdicRingFixedMod. This is basically a wrapper around $\Z / p^n \Z$, adding functions appropriate to p-adics. This is the fastest option. 'capped-abs' -- pAdicRingCappedAbsolute. The same as pAdicRingFixedMod, but keeps track of precision. 'lazy' -- pAdicRingLazy. Uses lazy elements so that additional precision can be requested during a computation. There is some amount of performance penalty because of this ability. print_mode -- string (default: None) Leaving print_mode as None uses the global default print mode. Other allowable values are: 'val-unit' -- elements are displayed as p^k*u 'terse' -- elements are displayed as an integer in base 10 'series' -- elements are displayed as series in p 'digits' -- elements are displayed as a string of base p digits 'bars' -- elements are displayed as a string of base p digits with separators For more details and more control, see sage.rings.padics.padic_printing or look at padic_printing.<tab> from the command line. """ if check: p = Integer(p) if not p.is_prime(): raise ValueError, "p must be prime" if not isinstance(prec, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(prec, (int, long)): prec = Integer(prec) if not isinstance(halt, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(halt, (int, long)): halt = Integer(halt) if names is None: name = str(p) elif isinstance(names, tuple): name = names[0] else: name = str(names) if type != 'lazy': key = (p, prec, type, name, print_mode) else: key = (p, prec, halt, name, print_mode) if padic_ring_cache.has_key(key): K = padic_ring_cache[key]() if not (K is None): return K if (type == 'capped-rel'): K = pAdicRingCappedRelative(p, prec, print_mode, name) elif (type == 'fixed-mod'): K = pAdicRingFixedMod(p, prec, print_mode, name) elif (type == 'capped-abs'): K = pAdicRingCappedAbsolute(p, prec, print_mode, name) elif (type == 'lazy'): raise NotImplementedError, "lazy p-adics need more work. Sorry." K = pAdicRingLazy(p, prec, print_mode, halt, name) else: raise ValueError, "type must be one of 'capped-rel', 'fixed-mod', 'capped-abs' or 'lazy'" padic_ring_cache[key] = weakref.ref(K) return K
52b1691f211d5745f1620cd0a7f20ac04ca573c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/52b1691f211d5745f1620cd0a7f20ac04ca573c9/factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2285, 84, 12, 84, 16, 13382, 273, 4200, 16, 618, 273, 296, 5909, 1845, 17, 2878, 2187, 1172, 67, 3188, 273, 599, 16, 18389, 273, 8063, 16, 1257, 273, 599, 16, 866, 33, 5510, 4672, 3536, 2000, 279, 938, 434, 326, 271, 84, 8, 17, 20333, 3571, 271, 64, 62, 67, 84, 8, 18, 225, 12943, 30, 293, 1493, 3571, 326, 293, 316, 2285, 67, 84, 13382, 1493, 3571, 261, 1886, 30, 4200, 13, 326, 6039, 3523, 434, 326, 9221, 18, 25209, 364, 326, 5499, 24770, 648, 16, 7327, 2186, 3455, 3298, 434, 3675, 4953, 6039, 18, 618, 1493, 533, 261, 1886, 30, 296, 5909, 1845, 17, 2878, 6134, 2621, 10913, 2442, 5712, 364, 702, 18, 1172, 67, 3188, 1493, 533, 261, 1886, 30, 4166, 13, 326, 1172, 1965, 31, 2621, 10913, 2442, 5712, 364, 702, 18, 18389, 1493, 3571, 261, 1886, 30, 8063, 4672, 1338, 12008, 364, 618, 2218, 15998, 11, 866, 1493, 1426, 261, 1886, 30, 1053, 4672, 341, 2437, 358, 3929, 716, 326, 810, 353, 923, 18, 225, 11550, 30, 326, 4656, 293, 17, 20333, 9221, 225, 5675, 8900, 11386, 30, 1660, 752, 26537, 598, 11191, 1472, 272, 410, 30, 2285, 84, 12, 27, 13, 2371, 17, 20333, 25463, 598, 3523, 1845, 3632, 6039, 4200, 272, 410, 30, 2285, 84, 12, 29, 13, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, 2068, 30, 293, 1297, 506, 17014, 272, 410, 30, 2285, 84, 12, 4033, 16, 1381, 13, 8043, 17, 20333, 25463, 598, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2285, 84, 12, 84, 16, 13382, 273, 4200, 16, 618, 273, 296, 5909, 1845, 17, 2878, 2187, 1172, 67, 3188, 273, 599, 16, 18389, 273, 8063, 16, 1257, 273, 599, 16, 866, 33, 5510, 4672, 3536, 2000, 279, 938, 434, 326, 271, 84, 8, 17, 20333, 3571, 271, 64, 62, 67, 84, 8, 18, 225, 12943, 30, 293, 1493, 3571, 326, 293, 316, 2285, 67, 84, 13382, 1493, 3571, 261, 1886, 30, 4200, 13, 326, 6039, 3523, 434, 326, 9221, 18, 25209, 364, 326, 5499, 24770, 648, 16, 7327, 2186, 3455, 3298, 434, 3675, 4953, 6039, 18, 618, 1493, 533, 261, 1886, 30, 296, 5909, 1845, 17, 2878, 6134, 2621, 10913, 2442, 5712, 364, 702, 18, 1172, 67, 2 ]
<type 'None'>
<type 'NoneType'>
... def g():
297abadc6b871c61388c3df2e5e7b3e531a9a813 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/297abadc6b871c61388c3df2e5e7b3e531a9a813/test_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 540, 1652, 314, 13332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 540, 1652, 314, 13332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
width, height = self.superview().frame().size
superview = self.superview() if superview is None: return width, height = superview.frame().size
def recalculateFrame(self): width, height = self.superview().frame().size if width == 0 or height == 0: return if self._glyphs: columnCount = int(width / self._cellWidth) rowCount = len(self._glyphs) / columnCount if columnCount * rowCount < len(self._glyphs): rowCount += 1 newWidth = self._cellWidth * columnCount newHeight = self._cellHeight * rowCount else: columnCount = 0 rowCount = 0 newWidth = newHeight = 0 if not self.inLiveResize(): if width > newWidth: newWidth = width if height > newHeight: newHeight = height self.setFrame_(((0, 0), (newWidth, newHeight))) self._columnCount = columnCount self._rowCount = rowCount self.setNeedsDisplay_(True)
3791ac4ee394c67b719633b6c1b1eeafd6db7e5e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8848/3791ac4ee394c67b719633b6c1b1eeafd6db7e5e/glyphCellView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26657, 3219, 12, 2890, 4672, 2240, 1945, 273, 365, 18, 9565, 1945, 1435, 309, 2240, 1945, 353, 599, 30, 327, 1835, 16, 2072, 273, 2240, 1945, 18, 3789, 7675, 1467, 309, 1835, 422, 374, 578, 2072, 422, 374, 30, 327, 309, 365, 6315, 19426, 87, 30, 22429, 273, 509, 12, 2819, 342, 365, 6315, 3855, 2384, 13, 14888, 273, 562, 12, 2890, 6315, 19426, 87, 13, 342, 22429, 309, 22429, 380, 14888, 411, 562, 12, 2890, 6315, 19426, 87, 4672, 14888, 1011, 404, 23542, 273, 365, 6315, 3855, 2384, 380, 22429, 24104, 273, 365, 6315, 3855, 2686, 380, 14888, 469, 30, 22429, 273, 374, 14888, 273, 374, 23542, 273, 24104, 273, 374, 309, 486, 365, 18, 267, 12328, 12182, 13332, 309, 1835, 405, 23542, 30, 23542, 273, 1835, 309, 2072, 405, 24104, 30, 24104, 273, 2072, 365, 18, 542, 3219, 67, 12443, 12, 20, 16, 374, 3631, 261, 2704, 2384, 16, 24104, 20349, 365, 6315, 2827, 1380, 273, 22429, 365, 6315, 492, 1380, 273, 14888, 365, 18, 542, 26419, 4236, 67, 12, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26657, 3219, 12, 2890, 4672, 2240, 1945, 273, 365, 18, 9565, 1945, 1435, 309, 2240, 1945, 353, 599, 30, 327, 1835, 16, 2072, 273, 2240, 1945, 18, 3789, 7675, 1467, 309, 1835, 422, 374, 578, 2072, 422, 374, 30, 327, 309, 365, 6315, 19426, 87, 30, 22429, 273, 509, 12, 2819, 342, 365, 6315, 3855, 2384, 13, 14888, 273, 562, 12, 2890, 6315, 19426, 87, 13, 342, 22429, 309, 22429, 380, 14888, 411, 562, 12, 2890, 6315, 19426, 87, 4672, 14888, 1011, 404, 23542, 273, 365, 6315, 3855, 2384, 380, 22429, 24104, 273, 365, 6315, 3855, 2686, 380, 14888, 469, 30, 22429, 273, 374, 14888, 273, 374, 23542, 273, 24104, 273, 374, 309, 486, 365, 18, 267, 12328, 2 ]
self.assertEqual(b.rpartition(b'w'), (b'', b'', b'mississippi'))
self.assertEqual(b.partition(b'w'), (b'mississippi', b'', b''))
def test_partition(self): b = self.type2test(b'mississippi') self.assertEqual(b.partition(b'ss'), (b'mi', b'ss', b'issippi')) self.assertEqual(b.rpartition(b'w'), (b'', b'', b'mississippi'))
efa45f35b529a61aceb4e1266ded7a0b268b0c17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/efa45f35b529a61aceb4e1266ded7a0b268b0c17/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10534, 12, 2890, 4672, 324, 273, 365, 18, 723, 22, 3813, 12, 70, 17784, 1054, 1054, 625, 7259, 6134, 365, 18, 11231, 5812, 12, 70, 18, 10534, 12, 70, 1807, 87, 19899, 261, 70, 17784, 77, 2187, 324, 1807, 87, 2187, 324, 11, 1054, 625, 7259, 26112, 365, 18, 11231, 5812, 12, 70, 18, 86, 10534, 12, 70, 11, 91, 19899, 261, 70, 11, 2187, 324, 11, 2187, 324, 17784, 1054, 1054, 625, 7259, 26112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10534, 12, 2890, 4672, 324, 273, 365, 18, 723, 22, 3813, 12, 70, 17784, 1054, 1054, 625, 7259, 6134, 365, 18, 11231, 5812, 12, 70, 18, 10534, 12, 70, 1807, 87, 19899, 261, 70, 17784, 77, 2187, 324, 1807, 87, 2187, 324, 11, 1054, 625, 7259, 26112, 365, 18, 11231, 5812, 12, 70, 18, 86, 10534, 12, 70, 11, 91, 19899, 261, 70, 11, 2187, 324, 11, 2187, 324, 17784, 1054, 1054, 625, 7259, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._lock.acquire() try: path = normpath(path) self.mount_tree[path] = MountFS.FileMount(path, callable, info_callable) finally: self._lock.release()
path = normpath(path) self.mount_tree[path] = MountFS.FileMount(path, callable, info_callable) @synchronize
def mountfile(self, path, open_callable=None, info_callable=None): self._lock.acquire() try: path = normpath(path) self.mount_tree[path] = MountFS.FileMount(path, callable, info_callable) finally: self._lock.release()
55488646ab3bb52783488eb894e034bb2323f1b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5578/55488646ab3bb52783488eb894e034bb2323f1b7/mountfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5344, 768, 12, 2890, 16, 589, 16, 1696, 67, 7293, 33, 7036, 16, 1123, 67, 7293, 33, 7036, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 589, 273, 20446, 12, 803, 13, 365, 18, 4778, 67, 3413, 63, 803, 65, 273, 13076, 4931, 18, 812, 8725, 12, 803, 16, 4140, 16, 1123, 67, 7293, 13, 3095, 30, 365, 6315, 739, 18, 9340, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1696, 67, 7293, 33, 7036, 16, 1123, 67, 7293, 33, 7036, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 589, 273, 20446, 12, 803, 13, 365, 18, 4778, 67, 3413, 63, 803, 65, 273, 13076, 4931, 18, 812, 8725, 12, 803, 16, 4140, 16, 1123, 67, 7293, 13, 3095, 30, 365, 6315, 739, 18, 9340, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
c, "http://www.acme.com/foo%2f%25/<<%0anew/",
c, "http://www.acme.com/foo%2f%25/<<%0anewå/æøå",
def test_url_encoding(self): # Try some URL encodings of the PATHs. # (the behaviour here has changed from libwww-perl) from cookielib import CookieJar, DefaultCookiePolicy
955695bec1f630813e54be181c6fabb67ef37742 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/955695bec1f630813e54be181c6fabb67ef37742/test_cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 718, 67, 5999, 12, 2890, 4672, 468, 6161, 2690, 1976, 24118, 434, 326, 7767, 87, 18, 468, 261, 5787, 14273, 2674, 711, 3550, 628, 2561, 5591, 17, 457, 80, 13, 628, 15860, 77, 30575, 1930, 10201, 10813, 16, 2989, 6151, 2582, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 718, 67, 5999, 12, 2890, 4672, 468, 6161, 2690, 1976, 24118, 434, 326, 7767, 87, 18, 468, 261, 5787, 14273, 2674, 711, 3550, 628, 2561, 5591, 17, 457, 80, 13, 628, 15860, 77, 30575, 1930, 10201, 10813, 16, 2989, 6151, 2582, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 'Shared' in roles:
if 'Shared' in object_roles:
def allowed(self, object, object_roles=None): """Check whether the user has access to object, assuming that object.__roles__ is the given roles.""" if object_roles is None or 'Anonymous' in object_roles: return 1 usr_roles=self.getRolesInContext(object) for role in object_roles: if role in usr_roles: # The user apparently has one of the necessary # roles, but first make sure the object exists # in the context of the parent of the acl_users # folder. ufolder = getattr(self, 'aq_parent', None) ucontext = getattr(ufolder, 'aq_parent', None) if ucontext is not None: if object is None: # This is a strange rule, though # it doesn't cause any security holes. SDH return 1 if not hasattr(object, 'aq_inContextOf'): if hasattr(object, 'im_self'): # This is a method. Grab its self. object=object.im_self if not hasattr(object, 'aq_inContextOf'): # object is not wrapped, therefore we # can't determine context. # Fail the access attempt. Otherwise # this would be a security hole. return None if not object.aq_inContextOf(ucontext, 1): if 'Shared' in object_roles: # Damn, old role setting. Waaa object_roles=self._shared_roles(object) if 'Anonymous' in roles: return 1 return None # Note that if self were not wrapped, it would # not be possible to determine the user's context # and this method would return 1. # However, as long as user folders always return # wrapped user objects, this is safe. return 1
995ab4d721e0d0e83a1b565d61aad7f69e7f302a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/995ab4d721e0d0e83a1b565d61aad7f69e7f302a/User.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2935, 12, 2890, 16, 733, 16, 733, 67, 7774, 33, 7036, 4672, 3536, 1564, 2856, 326, 729, 711, 2006, 358, 733, 16, 15144, 716, 733, 16186, 7774, 972, 353, 326, 864, 4900, 12123, 309, 733, 67, 7774, 353, 599, 578, 296, 18792, 11, 316, 733, 67, 7774, 30, 327, 404, 16575, 67, 7774, 33, 2890, 18, 588, 6898, 29334, 12, 1612, 13, 364, 2478, 316, 733, 67, 7774, 30, 309, 2478, 316, 16575, 67, 7774, 30, 468, 1021, 729, 29614, 715, 711, 1245, 434, 326, 4573, 468, 4900, 16, 1496, 1122, 1221, 3071, 326, 733, 1704, 468, 316, 326, 819, 434, 326, 982, 434, 326, 7895, 67, 5577, 468, 3009, 18, 582, 5609, 273, 3869, 12, 2890, 16, 296, 69, 85, 67, 2938, 2187, 599, 13, 582, 2472, 273, 3869, 12, 696, 1498, 16, 296, 69, 85, 67, 2938, 2187, 599, 13, 309, 582, 2472, 353, 486, 599, 30, 309, 733, 353, 599, 30, 468, 1220, 353, 279, 609, 726, 1720, 16, 11376, 468, 518, 3302, 1404, 4620, 1281, 4373, 26299, 18, 15951, 44, 327, 404, 309, 486, 3859, 12, 1612, 16, 296, 69, 85, 67, 267, 1042, 951, 11, 4672, 309, 3859, 12, 1612, 16, 296, 381, 67, 2890, 11, 4672, 468, 1220, 353, 279, 707, 18, 225, 17150, 2097, 365, 18, 733, 33, 1612, 18, 381, 67, 2890, 309, 486, 3859, 12, 1612, 16, 296, 69, 85, 67, 267, 1042, 951, 11, 4672, 468, 733, 353, 486, 5805, 16, 13526, 732, 468, 848, 1404, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2935, 12, 2890, 16, 733, 16, 733, 67, 7774, 33, 7036, 4672, 3536, 1564, 2856, 326, 729, 711, 2006, 358, 733, 16, 15144, 716, 733, 16186, 7774, 972, 353, 326, 864, 4900, 12123, 309, 733, 67, 7774, 353, 599, 578, 296, 18792, 11, 316, 733, 67, 7774, 30, 327, 404, 16575, 67, 7774, 33, 2890, 18, 588, 6898, 29334, 12, 1612, 13, 364, 2478, 316, 733, 67, 7774, 30, 309, 2478, 316, 16575, 67, 7774, 30, 468, 1021, 729, 29614, 715, 711, 1245, 434, 326, 4573, 468, 4900, 16, 1496, 1122, 1221, 3071, 326, 733, 1704, 468, 316, 326, 819, 434, 326, 982, 434, 326, 7895, 67, 5577, 468, 3009, 18, 582, 5609, 273, 3869, 12, 2890, 16, 2 ]
["help", "port=", "baud=", "rtscts", "xonxoff", "localport"])
["help", "port=", "baud=", "rtscts", "xonxoff", "localport="])
def stop(self): """Stop copying""" if self.alive: self.alive = False self.thread_read.join()
9f28a563c2c4afc7867589a5e1be1fb3d5b696ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/9f28a563c2c4afc7867589a5e1be1fb3d5b696ed/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 4947, 8933, 8395, 309, 365, 18, 11462, 30, 365, 18, 11462, 273, 1083, 365, 18, 5930, 67, 896, 18, 5701, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not section or section == "DEFAULT":
if not section or section == DEFAULTSECT: option = self.optionxform(option)
def has_option(self, section, option): """Check for the existence of a given option in a given section.""" if not section or section == "DEFAULT": return option in self.__defaults elif not self.has_section(section): return 0 else: option = self.optionxform(option) return option in self.__sections[section]
490cbf56868a5118b635128d808b569527adaab6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/490cbf56868a5118b635128d808b569527adaab6/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 1564, 364, 326, 15782, 434, 279, 864, 1456, 316, 279, 864, 2442, 12123, 309, 486, 2442, 578, 2442, 422, 3331, 1090, 1268, 30, 1456, 273, 365, 18, 3482, 92, 687, 12, 3482, 13, 327, 1456, 316, 365, 16186, 7606, 1327, 486, 365, 18, 5332, 67, 3464, 12, 3464, 4672, 327, 374, 469, 30, 1456, 273, 365, 18, 3482, 92, 687, 12, 3482, 13, 327, 1456, 316, 365, 16186, 11657, 63, 3464, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 1564, 364, 326, 15782, 434, 279, 864, 1456, 316, 279, 864, 2442, 12123, 309, 486, 2442, 578, 2442, 422, 3331, 1090, 1268, 30, 1456, 273, 365, 18, 3482, 92, 687, 12, 3482, 13, 327, 1456, 316, 365, 16186, 7606, 1327, 486, 365, 18, 5332, 67, 3464, 12, 3464, 4672, 327, 374, 469, 30, 1456, 273, 365, 18, 3482, 92, 687, 12, 3482, 13, 327, 1456, 316, 365, 16186, 11657, 63, 3464, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._opener = CachedOpenerDirector(*handlers)
self._opener = urllib2.build_opener(*handlers) self._opener.addheaders = []
def _get_opener(self): """Build a urllib2 OpenerDirector based on request options.""" if self._opener is None: handlers = [] # if you specify a ProxyHandler when creating the opener # it _must_ come before all other handlers in the list or urllib2 # chokes. if self.opts.proxies: handlers.append( CachedProxyHandler(self.opts.proxies) ) if keepalive_handler and self.opts.keepalive: handlers.append( keepalive_handler ) if range_handlers and (self.opts.range or self.opts.reget): handlers.extend( range_handlers ) handlers.append( auth_handler ) self._opener = CachedOpenerDirector(*handlers) return self._opener
f8e09d44bf6d99154cb2e13ba3803e9ac22a7adc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7001/f8e09d44bf6d99154cb2e13ba3803e9ac22a7adc/grabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 25098, 12, 2890, 4672, 3536, 3116, 279, 11527, 22, 6066, 708, 28280, 2511, 603, 590, 702, 12123, 309, 365, 6315, 25098, 353, 599, 30, 4919, 273, 5378, 468, 309, 1846, 4800, 279, 7659, 1503, 1347, 4979, 326, 20532, 468, 518, 389, 11926, 67, 12404, 1865, 777, 1308, 4919, 316, 326, 666, 578, 11527, 22, 468, 462, 601, 281, 18, 309, 365, 18, 4952, 18, 20314, 606, 30, 4919, 18, 6923, 12, 15771, 3886, 1503, 12, 2890, 18, 4952, 18, 20314, 606, 13, 262, 309, 26210, 67, 4176, 471, 365, 18, 4952, 18, 10102, 11462, 30, 4919, 18, 6923, 12, 26210, 67, 4176, 262, 309, 1048, 67, 11046, 471, 261, 2890, 18, 4952, 18, 3676, 578, 365, 18, 4952, 18, 266, 588, 4672, 4919, 18, 14313, 12, 1048, 67, 11046, 262, 4919, 18, 6923, 12, 1357, 67, 4176, 262, 377, 365, 6315, 25098, 273, 11527, 22, 18, 3510, 67, 25098, 30857, 11046, 13, 282, 365, 6315, 25098, 18, 1289, 2485, 273, 5378, 327, 365, 6315, 25098, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 25098, 12, 2890, 4672, 3536, 3116, 279, 11527, 22, 6066, 708, 28280, 2511, 603, 590, 702, 12123, 309, 365, 6315, 25098, 353, 599, 30, 4919, 273, 5378, 468, 309, 1846, 4800, 279, 7659, 1503, 1347, 4979, 326, 20532, 468, 518, 389, 11926, 67, 12404, 1865, 777, 1308, 4919, 316, 326, 666, 578, 11527, 22, 468, 462, 601, 281, 18, 309, 365, 18, 4952, 18, 20314, 606, 30, 4919, 18, 6923, 12, 15771, 3886, 1503, 12, 2890, 18, 4952, 18, 20314, 606, 13, 262, 309, 26210, 67, 4176, 471, 365, 18, 4952, 18, 10102, 11462, 30, 4919, 18, 6923, 12, 26210, 67, 4176, 262, 309, 1048, 67, 11046, 471, 261, 2890, 18, 4952, 18, 3676, 578, 2 ]
if len(self.instance.secondary_nodes) != 1:
if len(instance.secondary_nodes) != 1:
def CheckPrereq(self): """Check prerequisites.
e90225317101f9d3088352270741c7986fc344d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/e90225317101f9d3088352270741c7986fc344d0/cmd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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not cbFun(sendRequestHandle, None,
if not cbFun(sendRequestHandle, errorIndication,
def _handleResponse( self, snmpEngine, transportDomain, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineId, contextName, pduVersion, PDU, timeout, retryCount, pMod, rspPDU, sendRequestHandle, (cbFun, cbCtx) ): varBindTable = pMod.apiBulkPDU.getVarBindTable(PDU, rspPDU)
27e2d28b7cb3e387c17a11f2e2a8deb4ce7a6aa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/587/27e2d28b7cb3e387c17a11f2e2a8deb4ce7a6aa1/cmdgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 1064, 12, 365, 16, 15366, 4410, 16, 4736, 3748, 16, 4736, 1887, 16, 883, 7798, 1488, 16, 4373, 1488, 16, 4373, 461, 16, 4373, 2355, 16, 819, 4410, 548, 16, 819, 461, 16, 21160, 1444, 16, 453, 16214, 16, 2021, 16, 30084, 16, 293, 1739, 16, 12049, 52, 16214, 16, 12413, 3259, 16, 261, 7358, 22783, 16, 2875, 6442, 13, 262, 30, 569, 3357, 1388, 273, 293, 1739, 18, 2425, 13112, 52, 16214, 18, 588, 1537, 3357, 1388, 12, 52, 16214, 16, 12049, 52, 16214, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 1064, 12, 365, 16, 15366, 4410, 16, 4736, 3748, 16, 4736, 1887, 16, 883, 7798, 1488, 16, 4373, 1488, 16, 4373, 461, 16, 4373, 2355, 16, 819, 4410, 548, 16, 819, 461, 16, 21160, 1444, 16, 453, 16214, 16, 2021, 16, 30084, 16, 293, 1739, 16, 12049, 52, 16214, 16, 12413, 3259, 16, 261, 7358, 22783, 16, 2875, 6442, 13, 262, 30, 569, 3357, 1388, 273, 293, 1739, 18, 2425, 13112, 52, 16214, 18, 588, 1537, 3357, 1388, 12, 52, 16214, 16, 12049, 52, 16214, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return idaapi.apply_cdecl(ea, type) def ParseTypes(input, flags):
return idaapi.apply_cdecl(ea, newtype) def ParseTypes(inputtype, flags):
def SetType(ea, type): """ Set type of function/variable @param ea: the address of the object @param type: the type string in C declaration form. Must contain the closing ';' if specified as an empty string, then the assciated with 'ea' will be deleted @return: 1-ok, 0-failed. """ return idaapi.apply_cdecl(ea, type)
4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 559, 12, 24852, 16, 618, 4672, 3536, 1000, 618, 434, 445, 19, 6105, 225, 632, 891, 24164, 30, 326, 1758, 434, 326, 733, 632, 891, 618, 30, 326, 618, 533, 316, 385, 8266, 646, 18, 6753, 912, 326, 7647, 7554, 309, 1269, 487, 392, 1008, 533, 16, 1508, 326, 487, 1017, 10206, 598, 296, 24852, 11, 903, 506, 4282, 225, 632, 2463, 30, 404, 17, 601, 16, 374, 17, 7307, 18, 3536, 327, 612, 69, 2425, 18, 9010, 67, 71, 8840, 12, 24852, 16, 618, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 559, 12, 24852, 16, 618, 4672, 3536, 1000, 618, 434, 445, 19, 6105, 225, 632, 891, 24164, 30, 326, 1758, 434, 326, 733, 632, 891, 618, 30, 326, 618, 533, 316, 385, 8266, 646, 18, 6753, 912, 326, 7647, 7554, 309, 1269, 487, 392, 1008, 533, 16, 1508, 326, 487, 1017, 10206, 598, 296, 24852, 11, 903, 506, 4282, 225, 632, 2463, 30, 404, 17, 601, 16, 374, 17, 7307, 18, 3536, 327, 612, 69, 2425, 18, 9010, 67, 71, 8840, 12, 24852, 16, 618, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out += "In <strong><a href=\"
out += "<strong><a href=\"
def print_results_overview(colls, results_final_nb_total, results_final_nb, cpu_time): "Prints results overview box with links to particular collections below." out = "" if len(colls) == 1: # if one collection only, print nothing: return out # first find total number of hits: out += "<p><table width=\"100%%\" border=0 cellspacing=0 cellpadding=2>" \ "<tr><td class=\"results\"><strong>Results overview:</strong> Found <strong>%s</strong> records in %.2f seconds.</td></tr>" % \ (nice_number(results_final_nb_total), cpu_time) # then print hits per collection: out += "<tr><td class=\"resultsbis\">" for coll in colls: if results_final_nb[coll] > 0: out += "In <strong><a href=\"#%s\">%s</a></strong>, " \ "<a href=\"#%s\">%s records found</a><br>" \ % (urllib.quote(coll), coll, urllib.quote(coll), nice_number(results_final_nb[coll])) out += "</td></tr></table>\n" return out
03e310531e299959e23e689e2221361a7aa1e6d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/03e310531e299959e23e689e2221361a7aa1e6d6/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 4717, 67, 26081, 12, 1293, 3251, 16, 1686, 67, 6385, 67, 6423, 67, 4963, 16, 1686, 67, 6385, 67, 6423, 16, 8326, 67, 957, 4672, 315, 15402, 1686, 18471, 3919, 598, 4716, 358, 6826, 6980, 5712, 1199, 596, 273, 1408, 309, 562, 12, 1293, 3251, 13, 422, 404, 30, 468, 309, 1245, 1849, 1338, 16, 1172, 5083, 30, 327, 596, 468, 1122, 1104, 2078, 1300, 434, 11076, 30, 596, 1011, 3532, 84, 4438, 2121, 1835, 5189, 6625, 11438, 2412, 5795, 33, 20, 2484, 14080, 33, 20, 2484, 9598, 33, 22, 2984, 521, 3532, 313, 4438, 4465, 667, 5189, 4717, 2412, 4438, 9110, 34, 3447, 18471, 19814, 9110, 34, 10750, 411, 9110, 9822, 87, 1757, 9110, 34, 3853, 316, 12639, 22, 74, 3974, 17347, 4465, 4695, 313, 2984, 738, 521, 261, 82, 1812, 67, 2696, 12, 4717, 67, 6385, 67, 6423, 67, 4963, 3631, 8326, 67, 957, 13, 468, 1508, 1172, 11076, 1534, 1849, 30, 596, 1011, 3532, 313, 4438, 4465, 667, 5189, 4717, 70, 291, 21121, 364, 4508, 316, 645, 3251, 30, 309, 1686, 67, 6385, 67, 6423, 63, 12910, 65, 405, 374, 30, 596, 1011, 315, 382, 411, 9110, 4438, 69, 3897, 5189, 7, 9, 87, 2412, 9822, 87, 1757, 69, 4695, 9110, 20401, 315, 521, 3532, 69, 3897, 5189, 7, 9, 87, 2412, 9822, 87, 3853, 1392, 1757, 69, 4438, 2848, 2984, 521, 738, 261, 718, 2941, 18, 6889, 12, 12910, 3631, 4508, 16, 11527, 18, 6889, 12, 12910, 3631, 13752, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 4717, 67, 26081, 12, 1293, 3251, 16, 1686, 67, 6385, 67, 6423, 67, 4963, 16, 1686, 67, 6385, 67, 6423, 16, 8326, 67, 957, 4672, 315, 15402, 1686, 18471, 3919, 598, 4716, 358, 6826, 6980, 5712, 1199, 596, 273, 1408, 309, 562, 12, 1293, 3251, 13, 422, 404, 30, 468, 309, 1245, 1849, 1338, 16, 1172, 5083, 30, 327, 596, 468, 1122, 1104, 2078, 1300, 434, 11076, 30, 596, 1011, 3532, 84, 4438, 2121, 1835, 5189, 6625, 11438, 2412, 5795, 33, 20, 2484, 14080, 33, 20, 2484, 9598, 33, 22, 2984, 521, 3532, 313, 4438, 4465, 667, 5189, 4717, 2412, 4438, 9110, 34, 3447, 18471, 19814, 9110, 34, 10750, 411, 9110, 9822, 87, 1757, 9110, 34, 2 ]
BLANK_FILE_NAME = dirname(abspath(__file__)) + "/blank.pdf"
BLANK_FILE_NAME = dirname(realpath(__file__)) + "/blank.pdf"
def main(): # Handle Arguments BLANK_FILE_NAME = dirname(abspath(__file__)) + "/blank.pdf" if len(sys.argv) < 2: print "Usage: ./bookfold.py input.pdf" sys.exit(1) else: print sys.argv[1] input_doc = sys.argv[1] blank = PdfFileReader(file(BLANK_FILE_NAME, "rb")) input1 = PdfFileReader(file(input_doc, "rb")) # Copy the Input Document to Output (padding if necessary) cloned_output = get_cloned_output_writer(input1, blank) with tempfile.TemporaryFile() as temp_pdf: cloned_output.write(temp_pdf) input2 = PdfFileReader(temp_pdf) rearranged_output = get_rearranged_output_writer(input2) output_doc_name = generate_output_name(input_doc) with file(output_doc_name, "wb") as output_stream: rearranged_output.write(output_stream)
f1fef5b43f8554f58c354551a6acdfe995981246 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/71/f1fef5b43f8554f58c354551a6acdfe995981246/bookfold.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5004, 13599, 29727, 67, 3776, 67, 1985, 273, 4283, 12, 7688, 803, 12, 972, 768, 972, 3719, 397, 2206, 12111, 18, 7699, 6, 225, 309, 562, 12, 9499, 18, 19485, 13, 411, 576, 30, 1172, 315, 5357, 30, 263, 19, 3618, 16007, 18, 2074, 810, 18, 7699, 6, 2589, 18, 8593, 12, 21, 13, 469, 30, 1172, 2589, 18, 19485, 63, 21, 65, 810, 67, 2434, 273, 2589, 18, 19485, 63, 21, 65, 225, 7052, 225, 273, 9989, 812, 2514, 12, 768, 12, 38, 24307, 67, 3776, 67, 1985, 16, 315, 6731, 6, 3719, 810, 21, 273, 9989, 812, 2514, 12, 768, 12, 2630, 67, 2434, 16, 315, 6731, 6, 3719, 225, 468, 5631, 326, 2741, 4319, 358, 3633, 261, 9598, 309, 4573, 13, 13027, 67, 2844, 273, 336, 67, 830, 8184, 67, 2844, 67, 6299, 12, 2630, 21, 16, 7052, 13, 225, 598, 13275, 18, 23808, 1435, 487, 1906, 67, 7699, 30, 13027, 67, 2844, 18, 2626, 12, 5814, 67, 7699, 13, 225, 810, 22, 273, 9989, 812, 2514, 12, 5814, 67, 7699, 13, 283, 5399, 2330, 67, 2844, 273, 336, 67, 266, 5399, 2330, 67, 2844, 67, 6299, 12, 2630, 22, 13, 876, 67, 2434, 67, 529, 273, 2103, 67, 2844, 67, 529, 12, 2630, 67, 2434, 13, 225, 598, 585, 12, 2844, 67, 2434, 67, 529, 16, 315, 9464, 7923, 487, 876, 67, 3256, 30, 283, 5399, 2330, 67, 2844, 18, 2626, 12, 2844, 67, 3256, 13, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2774, 13332, 468, 5004, 13599, 29727, 67, 3776, 67, 1985, 273, 4283, 12, 7688, 803, 12, 972, 768, 972, 3719, 397, 2206, 12111, 18, 7699, 6, 225, 309, 562, 12, 9499, 18, 19485, 13, 411, 576, 30, 1172, 315, 5357, 30, 263, 19, 3618, 16007, 18, 2074, 810, 18, 7699, 6, 2589, 18, 8593, 12, 21, 13, 469, 30, 1172, 2589, 18, 19485, 63, 21, 65, 810, 67, 2434, 273, 2589, 18, 19485, 63, 21, 65, 225, 7052, 225, 273, 9989, 812, 2514, 12, 768, 12, 38, 24307, 67, 3776, 67, 1985, 16, 315, 6731, 6, 3719, 810, 21, 273, 9989, 812, 2514, 12, 768, 12, 2630, 67, 2434, 16, 315, 6731, 6, 3719, 225, 468, 5631, 326, 2 ]
'price' : price
'price' : price, 'edition' : '1',
def add_book(request): if request.method == "POST": form = BookForm(request.POST) if form.is_valid(): student_id = form.cleaned_data['seller'] price = form.cleaned_data['price'] barcode = form.cleaned_data['barcode'] try: metabook = MetaBook.objects.get(barcode=barcode) except MetaBook.DoesNotExist: initial = { 'barcode' : barcode, 'seller' : student_id, 'price' : price } form = NewBookForm(initial=initial) vars = {'form' : form} template = 'books/add_new_book.html' return rtr(template, vars, context_instance=RC(request)) try: seller = User.objects.get(id=student_id) except User.DoesNotExist: seller = import_user(student_id) if seller == None: message = "Invalid Student ID: %s" % student_id return tidy_error(request, message) book = Book(price=price, status="F", metabook=metabook, seller=seller) book.save() Log(book=book, who=request.user, action='A').save() vars = { 'title' : metabook.title, 'book_id' : book.id } template = 'books/update_book/added.html' return rtr(template, vars, context_instance=RC(request)) # the form isn't valid. send the user back. vars = {'form' : form} template = 'books/add_book.html' return rtr(template, vars, context_instance=RC(request)) else: # the user is hitting the page for the first time form = BookForm() vars = {'form' : form} template = 'books/add_book.html' return rtr(template, vars, context_instance=RC(request))
9941edc1e025df2677100e118266f423b3f0d815 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8671/9941edc1e025df2677100e118266f423b3f0d815/books.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3618, 12, 2293, 4672, 309, 590, 18, 2039, 422, 315, 3798, 6877, 646, 273, 20258, 1204, 12, 2293, 18, 3798, 13, 309, 646, 18, 291, 67, 877, 13332, 18110, 67, 350, 273, 646, 18, 6200, 329, 67, 892, 3292, 1786, 749, 3546, 6205, 273, 646, 18, 6200, 329, 67, 892, 3292, 8694, 3546, 21231, 273, 646, 18, 6200, 329, 67, 892, 3292, 3215, 710, 3546, 775, 30, 5100, 378, 1184, 273, 6565, 9084, 18, 6911, 18, 588, 12, 3215, 710, 33, 3215, 710, 13, 1335, 6565, 9084, 18, 15264, 30, 2172, 273, 288, 296, 3215, 710, 11, 294, 21231, 16, 296, 1786, 749, 11, 294, 18110, 67, 350, 16, 296, 8694, 11, 294, 6205, 16, 296, 329, 608, 11, 294, 296, 21, 2187, 289, 646, 273, 1166, 9084, 1204, 12, 6769, 33, 6769, 13, 4153, 273, 13666, 687, 11, 294, 646, 97, 1542, 273, 296, 12567, 19, 1289, 67, 2704, 67, 3618, 18, 2620, 11, 327, 436, 313, 12, 3202, 16, 4153, 16, 819, 67, 1336, 33, 11529, 12, 2293, 3719, 775, 30, 29804, 273, 2177, 18, 6911, 18, 588, 12, 350, 33, 26240, 67, 350, 13, 1335, 2177, 18, 15264, 30, 29804, 273, 1930, 67, 1355, 12, 26240, 67, 350, 13, 309, 29804, 422, 599, 30, 883, 273, 315, 1941, 934, 1100, 319, 1599, 30, 738, 87, 6, 738, 18110, 67, 350, 327, 28792, 67, 1636, 12, 2293, 16, 883, 13, 6978, 273, 20258, 12, 8694, 33, 8694, 16, 1267, 1546, 42, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3618, 12, 2293, 4672, 309, 590, 18, 2039, 422, 315, 3798, 6877, 646, 273, 20258, 1204, 12, 2293, 18, 3798, 13, 309, 646, 18, 291, 67, 877, 13332, 18110, 67, 350, 273, 646, 18, 6200, 329, 67, 892, 3292, 1786, 749, 3546, 6205, 273, 646, 18, 6200, 329, 67, 892, 3292, 8694, 3546, 21231, 273, 646, 18, 6200, 329, 67, 892, 3292, 3215, 710, 3546, 775, 30, 5100, 378, 1184, 273, 6565, 9084, 18, 6911, 18, 588, 12, 3215, 710, 33, 3215, 710, 13, 1335, 6565, 9084, 18, 15264, 30, 2172, 273, 288, 296, 3215, 710, 11, 294, 21231, 16, 296, 1786, 749, 11, 294, 18110, 67, 350, 16, 296, 8694, 11, 294, 6205, 16, 296, 2 ]
preprocessor=cc + " -E",
preprocessor=cpp,
def customize_compiler(compiler): """Do any platform-specific customization of a CCompiler instance. Mainly needed on Unix, so we can plug in the information that varies across Unices and is stored in Python's Makefile. """ if compiler.compiler_type == "unix": (cc, opt, ccshared, ldshared, so_ext) = \ get_config_vars('CC', 'OPT', 'CCSHARED', 'LDSHARED', 'SO') cc_cmd = cc + ' ' + opt compiler.set_executables( preprocessor=cc + " -E", # not always! compiler=cc_cmd, compiler_so=cc_cmd + ' ' + ccshared, linker_so=ldshared, linker_exe=cc) compiler.shared_lib_extension = so_ext
3cae4f751724c51adceff65f8f14b7b5a109b967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3cae4f751724c51adceff65f8f14b7b5a109b967/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20236, 67, 9576, 12, 9576, 4672, 3536, 3244, 1281, 4072, 17, 12524, 1679, 1588, 434, 279, 385, 9213, 791, 18, 225, 12740, 715, 3577, 603, 9480, 16, 1427, 732, 848, 15852, 316, 326, 1779, 716, 569, 606, 10279, 1351, 1242, 471, 353, 4041, 316, 6600, 1807, 4344, 768, 18, 3536, 309, 5274, 18, 9576, 67, 723, 422, 315, 21136, 6877, 261, 952, 16, 2153, 16, 4946, 11574, 16, 16916, 11574, 16, 1427, 67, 408, 13, 273, 521, 336, 67, 1425, 67, 4699, 2668, 6743, 2187, 296, 15620, 2187, 296, 6743, 8325, 5879, 2187, 296, 12069, 8325, 5879, 2187, 296, 3584, 6134, 225, 4946, 67, 4172, 273, 4946, 397, 296, 296, 397, 2153, 5274, 18, 542, 67, 4177, 322, 1538, 12, 31445, 33, 4057, 84, 16, 565, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20236, 67, 9576, 12, 9576, 4672, 3536, 3244, 1281, 4072, 17, 12524, 1679, 1588, 434, 279, 385, 9213, 791, 18, 225, 12740, 715, 3577, 603, 9480, 16, 1427, 732, 848, 15852, 316, 326, 1779, 716, 569, 606, 10279, 1351, 1242, 471, 353, 4041, 316, 6600, 1807, 4344, 768, 18, 3536, 309, 5274, 18, 9576, 67, 723, 422, 315, 21136, 6877, 261, 952, 16, 2153, 16, 4946, 11574, 16, 16916, 11574, 16, 1427, 67, 408, 13, 273, 521, 336, 67, 1425, 67, 4699, 2668, 6743, 2187, 296, 15620, 2187, 296, 6743, 8325, 5879, 2187, 296, 12069, 8325, 5879, 2187, 296, 3584, 6134, 225, 4946, 67, 4172, 273, 4946, 397, 296, 296, 397, 2153, 5274, 18, 542, 67, 4177, 322, 2 ]
v -- something that defines a set of points in 3 space, for example:
v -- something that defines a set of points in 3 space, for example:
def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (all of the same length) -- this is treated the same as a matrix. texture -- (default: "automatic"), solid light blue OPTIONAL KEYWORDS: interpolation_type - 'linear', 'nn' (nearest neighbor), 'spline' 'linear' will perform linear interpolation The option 'nn' will interpolate by averaging the value of the nearest neighbors, this produces an interpolating function that is smoother than a linear interpolation, it has one derivative everywhere except at the sample points. The option 'spline' interpolates using a bivariate B-spline. When v is a matrix the default is to use linear interpolation, when v is a list of points the default is nearest neighbor. degree - an integer between 1 and 5, controls the degree of spline used for spline interpolation. For data that is highly oscillatory use higher values point_list - If point_list=True is passed, then if the array is a list of lists of length three, it will be treated as an array of points rather than a 3xn array. num_points - Number of points to sample interpolating function in each direction. By default for an nxn array this is n. **kwds -- all other arguments are passed to the surface function OUTPUT: a 3d plot EXAMPLES: We plot a matrix that illustrates summation modulo $n$. sage: n = 5; list_plot3d(matrix(RDF,n,[(i+j)%n for i in [1..n] for j in [1..n]])) We plot a matrix of values of sin. sage: pi = float(pi) sage: m = matrix(RDF, 6, [sin(i^2 + j^2) for i in [0,pi/5,..,pi] for j in [0,pi/5,..,pi]]) sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3]) Though it doesn't change the shap of the graph, increasing num_points can increase the clarity of the graph sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3],num_points=40) We can change the interpolation type sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3]) We can make this look better by increasing the number of samples sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3],num_points=40) Lets try a spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline',frame_aspect_ratio=[1,1,1/3]) That spline doesn't capture the oscillation very well, lets try a higher degree spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline', degree=5, frame_aspect_ratio=[1,1,1/3]) We plot a list of lists: sage: show(list_plot3d([[1, 1, 1, 1], [1, 2, 1, 2], [1, 1, 3, 1], [1, 2, 1, 4]])) We plot a list of points: As a first example we can extract the (x,y,z) coordinates from the above example and make a list plot out of it. By default we do linear interpolation. sage: l=[] sage: for i in range(6): ... for j in range(6): ... l.append((float(i*pi/5),float(j*pi/5),m[i,j])) sage: list_plot3d(l,texture='yellow') Note that the points do not have to be regularly sampled. For example sage: l=[] sage: for i in range(-5,5): ... for j in range(-5,5): ... l.append((normalvariate(0,1),normalvariate(0,1),normalvariate(0,1))) sage: list_plot3d(l,interpolation_type='nn',texture='yellow',num_points=100) """ import numpy if texture == "automatic": texture = "lightblue" if is_Matrix(v): if interpolation_type=='default' or interpolation_type=='linear' and not kwds.has_key('num_points'): return list_plot3d_matrix(v, texture=texture, **kwds) else: l=[] for i in xrange(v.nrows()): for j in xrange(v.ncols()): l.append((i,j,v[i,j])) return list_plot3d_tuples(l,interpolation_type,texture,**kwds) if type(v)==numpy.ndarray: return list_plot3d(matrix(v),interpolation_type,texture,**kwds) if isinstance(v, list): if len(v) == 0: # return empty 3d graphic from base import Graphics3d return Graphics3d() elif isinstance(v[0],tuple) or point_list==True and len(v[0]) == 3: return list_plot3d_tuples(v,interpolation_type,texture=texture, **kwds) else: return list_plot3d_array_of_arrays(v, interpolation_type,texture, **kwds) raise TypeError, "v must be a matrix or list"
ea74ed1949e5ccd70daa2a51401dd3e411dc0d2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ea74ed1949e5ccd70daa2a51401dd3e411dc0d2f/list_plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4032, 23, 72, 12, 90, 16, 12851, 67, 723, 2218, 1886, 2187, 11428, 1546, 5854, 4941, 3113, 1634, 67, 1098, 33, 7036, 16, 636, 25577, 4672, 3536, 432, 890, 17, 31236, 3207, 434, 279, 9034, 2553, 635, 326, 666, 271, 90, 8, 434, 3143, 316, 890, 17, 31236, 3476, 18, 225, 12943, 30, 331, 1493, 5943, 716, 11164, 279, 444, 434, 3143, 316, 890, 3476, 16, 364, 3454, 30, 380, 279, 3148, 380, 279, 666, 434, 890, 17, 17705, 380, 279, 666, 434, 6035, 261, 454, 434, 326, 1967, 769, 13, 1493, 333, 353, 13974, 326, 1967, 487, 279, 3148, 18, 11428, 1493, 261, 1886, 30, 315, 5854, 4941, 6, 3631, 18035, 9052, 8024, 225, 14930, 5311, 23287, 30, 225, 12851, 67, 723, 300, 296, 12379, 2187, 296, 9074, 11, 261, 25785, 10553, 3631, 296, 13106, 558, 11, 225, 296, 12379, 11, 225, 903, 3073, 9103, 12851, 225, 1021, 1456, 296, 9074, 11, 903, 13156, 635, 23713, 5755, 326, 460, 434, 326, 11431, 11003, 16, 333, 15505, 392, 7326, 1776, 445, 716, 353, 3029, 1632, 1614, 2353, 279, 9103, 12851, 16, 518, 711, 1245, 16417, 3614, 6051, 1335, 622, 326, 3296, 3143, 18, 225, 1021, 1456, 296, 13106, 558, 11, 7326, 815, 1450, 279, 324, 27693, 605, 17, 13106, 558, 18, 225, 5203, 331, 353, 279, 3148, 326, 805, 353, 358, 999, 9103, 12851, 16, 1347, 331, 353, 279, 666, 434, 3143, 326, 805, 353, 11431, 10553, 18, 225, 10782, 300, 392, 3571, 3086, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4032, 23, 72, 12, 90, 16, 12851, 67, 723, 2218, 1886, 2187, 11428, 1546, 5854, 4941, 3113, 1634, 67, 1098, 33, 7036, 16, 636, 25577, 4672, 3536, 432, 890, 17, 31236, 3207, 434, 279, 9034, 2553, 635, 326, 666, 271, 90, 8, 434, 3143, 316, 890, 17, 31236, 3476, 18, 225, 12943, 30, 331, 1493, 5943, 716, 11164, 279, 444, 434, 3143, 316, 890, 3476, 16, 364, 3454, 30, 380, 279, 3148, 380, 279, 666, 434, 890, 17, 17705, 380, 279, 666, 434, 6035, 261, 454, 434, 326, 1967, 769, 13, 1493, 333, 353, 13974, 326, 1967, 487, 279, 3148, 18, 11428, 1493, 261, 1886, 30, 315, 5854, 4941, 6, 3631, 18035, 9052, 8024, 225, 14930, 2 ]
return cls
return cls.RedirectContext()
def setredirect(cls, redirect): cls.redirect = staticmethod(redirect) return cls
0e3b538e21cea125f893468e3838575e7619c791 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/0e3b538e21cea125f893468e3838575e7619c791/orngServerFiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 7590, 12, 6429, 16, 3136, 4672, 2028, 18, 7590, 273, 760, 2039, 12, 7590, 13, 327, 2028, 18, 5961, 1042, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 7590, 12, 6429, 16, 3136, 4672, 2028, 18, 7590, 273, 760, 2039, 12, 7590, 13, 327, 2028, 18, 5961, 1042, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
The preferred method to construct an :class:`Inspector` is via the
The preferred method to construct an :class:`.Inspector` is via the
def cache(fn, self, con, *args, **kw): info_cache = kw.get('info_cache', None) if info_cache is None: return fn(self, con, *args, **kw) key = ( fn.__name__, tuple(a for a in args if isinstance(a, basestring)), tuple((k, v) for k, v in kw.iteritems() if isinstance(v, (basestring, int, float))) ) ret = info_cache.get(key) if ret is None: ret = fn(self, con, *args, **kw) info_cache[key] = ret return ret
914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d/reflection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1247, 12, 4293, 16, 365, 16, 356, 16, 380, 1968, 16, 2826, 9987, 4672, 1123, 67, 2493, 273, 5323, 18, 588, 2668, 1376, 67, 2493, 2187, 599, 13, 309, 1123, 67, 2493, 353, 599, 30, 327, 2295, 12, 2890, 16, 356, 16, 380, 1968, 16, 2826, 9987, 13, 498, 273, 261, 2295, 16186, 529, 972, 16, 3193, 12, 69, 364, 279, 316, 833, 309, 1549, 12, 69, 16, 10699, 13, 3631, 3193, 12443, 79, 16, 331, 13, 364, 417, 16, 331, 316, 5323, 18, 2165, 3319, 1435, 309, 1549, 12, 90, 16, 261, 18602, 371, 16, 509, 16, 1431, 20349, 262, 325, 273, 1123, 67, 2493, 18, 588, 12, 856, 13, 309, 325, 353, 599, 30, 325, 273, 2295, 12, 2890, 16, 356, 16, 380, 1968, 16, 2826, 9987, 13, 1123, 67, 2493, 63, 856, 65, 273, 325, 327, 325, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1247, 12, 4293, 16, 365, 16, 356, 16, 380, 1968, 16, 2826, 9987, 4672, 1123, 67, 2493, 273, 5323, 18, 588, 2668, 1376, 67, 2493, 2187, 599, 13, 309, 1123, 67, 2493, 353, 599, 30, 327, 2295, 12, 2890, 16, 356, 16, 380, 1968, 16, 2826, 9987, 13, 498, 273, 261, 2295, 16186, 529, 972, 16, 3193, 12, 69, 364, 279, 316, 833, 309, 1549, 12, 69, 16, 10699, 13, 3631, 3193, 12443, 79, 16, 331, 13, 364, 417, 16, 331, 316, 5323, 18, 2165, 3319, 1435, 309, 1549, 12, 90, 16, 261, 18602, 371, 16, 509, 16, 1431, 20349, 262, 325, 273, 1123, 67, 2493, 18, 588, 12, 856, 13, 309, 325, 353, 599, 30, 325, 273, 2 ]
raise "\nERROR: Invalid Tree Item. "
raise Exception("\nERROR: Invalid Tree Item. ")
def SetPyData(self, item, data): """Sets the data associated to an item."""
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 9413, 751, 12, 2890, 16, 761, 16, 501, 4672, 3536, 2785, 326, 501, 3627, 358, 392, 761, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
operator = 'in'
if res_ids: opeartor = 'in'
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
b04f3e28317eb5cd6ecb626c9d77dcd96edaafda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/b04f3e28317eb5cd6ecb626c9d77dcd96edaafda/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 652, 67, 2603, 422, 1014, 30, 327, 3258, 327, 365, 16186, 8837, 67, 10543, 67, 267, 12, 3353, 16, 652, 6315, 350, 21, 16, 652, 6315, 2878, 16, 652, 6315, 350, 22, 16, 3258, 16, 3726, 16, 652, 6315, 723, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 652, 67, 2603, 422, 1014, 30, 327, 3258, 327, 365, 16186, 8837, 67, 10543, 67, 267, 12, 3353, 16, 652, 6315, 350, 21, 16, 652, 6315, 2878, 16, 652, 6315, 350, 22, 16, 3258, 16, 3726, 16, 652, 6315, 723, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def exists(self,lfns,connection=False): connection = self._getConnection(connection)
def exists( self, lfns, connection = False ): connection = self._getConnection( connection )
def exists(self,lfns,connection=False): connection = self._getConnection(connection) """ Determine whether a file exists in the catalog """ res = self._findFiles(lfns,connection=connection) successful = dict.fromkeys(res['Value']['Successful'],True) failed = {} for lfn,error in res['Value']['Failed'].items(): if error == 'No such file or directory': successful[lfn] = False else: failed[lfn] = error return S_OK({"Successful":successful,"Failed":failed})
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1704, 12, 365, 16, 18594, 2387, 16, 1459, 273, 1083, 262, 30, 1459, 273, 365, 6315, 588, 1952, 12, 1459, 262, 3536, 10229, 2856, 279, 585, 1704, 316, 326, 6222, 3536, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, 16, 4071, 33, 4071, 13, 6873, 273, 2065, 18, 2080, 2452, 12, 455, 3292, 620, 21712, 14277, 17337, 5510, 13, 2535, 273, 2618, 364, 328, 4293, 16, 1636, 316, 400, 3292, 620, 21712, 2925, 29489, 3319, 13332, 309, 555, 422, 296, 2279, 4123, 585, 578, 1867, 4278, 6873, 63, 80, 4293, 65, 273, 1083, 469, 30, 2535, 63, 80, 4293, 65, 273, 555, 327, 348, 67, 3141, 12590, 6, 14277, 6877, 18418, 10837, 2925, 6877, 7307, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 365, 6315, 588, 1952, 12, 1459, 262, 3536, 10229, 2856, 279, 585, 1704, 316, 326, 6222, 3536, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, 16, 4071, 33, 4071, 13, 6873, 273, 2065, 18, 2080, 2452, 12, 455, 3292, 620, 21712, 14277, 17337, 5510, 13, 2535, 273, 2618, 364, 328, 4293, 16, 1636, 316, 400, 3292, 620, 21712, 2925, 29489, 3319, 13332, 309, 555, 422, 296, 2279, 4123, 585, 578, 1867, 4278, 6873, 63, 80, 4293, 65, 273, 1083, 469, 30, 2535, 63, 80, 4293, 65, 273, 555, 327, 348, 67, 3141, 12590, 6, 14277, 6877, 18418, 10837, 2925, 6877, 7307, 6792, 2, -100 ]
raise BackendError('Panda',"ERROR : could not find supported locations in the %s cloud for %s, %s" % (job.backend.requirements.cloud,job.inputdata.dataset,job.backend.libds))
raise BackendError('Panda',"ERROR : could not find supported locations in the %s cloud for %s, %s" % (job.backend.requirements.cloud,dataset,job.backend.libds))
def runPandaBrokerage(job): # get locations when site==AUTO if job.backend.site == "AUTO": libdslocation = [] if job.backend.libds: try: libdslocation = Client.getLocations(job.backend.libds,[],job.backend.requirements.cloud,False,False) except exceptions.SystemExit: raise BackendError('Panda','Error in Client.getLocations for libDS') if not libdslocation: raise ApplicationConfigurationError(None,'Could not locate libDS %s'%job.backend.libds) else: libdslocation = libdslocation.values()[0] tmpSites = [] if job.inputdata: dataset = '' try: dataset = job.inputdata.dataset[0] except: try: dataset = job.inputdata.DQ2dataset except: raise ApplicationConfigurationError(None,'Could not determine input datasetname for Panda brokerage') if not dataset: raise ApplicationConfigurationError(None,'Could not determine input datasetname for Panda brokerage') fileList = [] try: fileList = Client.queryFilesInDataset(dataset,False) except exceptions.SystemExit: raise BackendError('Panda','Error in Client.queryFilesInDataset') try: dsLocationMap = Client.getLocations(dataset,fileList,job.backend.requirements.cloud,False,False,expCloud=True) except exceptions.SystemExit: raise BackendError('Panda','Error in Client.getLocations') # no location if dsLocationMap == {}: raise BackendError('Panda',"ERROR : could not find supported locations in the %s cloud for %s" % (job.backend.requirements.cloud,job.inputdata.dataset[0])) # run brokerage for tmpItem in dsLocationMap.values(): if not libdslocation or tmpItem == libdslocation: tmpSites.append(tmpItem[0]) else: for site,spec in Client.PandaSites.iteritems(): if spec['cloud']==job.backend.requirements.cloud and spec['status']=='online' and not Client.isExcudedSite(site): if not libdslocation or site == libdslocation: tmpSites.append(site) if not tmpSites: raise BackendError('Panda',"ERROR : could not find supported locations in the %s cloud for %s, %s" % (job.backend.requirements.cloud,job.inputdata.dataset,job.backend.libds)) tag = '' try: tag = 'Atlas-%s' % job.application.atlas_release except: pass try: status,out = Client.runBrokerage(tmpSites,tag,verbose=False,trustIS=config['trustIS']) except exceptions.SystemExit: raise BackendError('Panda','Exception in Client.runBrokerage: %s %s'%(sys.exc_info()[0],sys.exc_info()[1])) if status != 0: raise BackendError('Panda','Non-zero to run brokerage for automatic assignment: %s' % out) if not Client.PandaSites.has_key(out): raise BackendError('Panda','brokerage gave wrong PandaSiteID:%s' % out) # set site job.backend.site = out # patch for BNL if job.backend.site == "ANALY_BNL": job.backend.site = "ANALY_BNL_ATLAS_1" # long queue if job.backend.requirements.long: job.backend.site = re.sub('ANALY_','ANALY_LONG_',job.backend.site) job.backend.actualCE = job.backend.site # correct the cloud in case site was not AUTO job.backend.requirements.cloud = Client.PandaSites[job.backend.site]['cloud'] logger.info('Panda brokerage results: cloud %s, site %s'%(job.backend.requirements.cloud,job.backend.site))
3f526908c9f22ead6d732694154b735c755d32c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/3f526908c9f22ead6d732694154b735c755d32c5/Panda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 52, 464, 69, 11194, 410, 12, 4688, 4672, 468, 336, 7838, 1347, 2834, 631, 18909, 225, 309, 1719, 18, 9993, 18, 4256, 422, 315, 18909, 6877, 2561, 2377, 3562, 273, 5378, 309, 1719, 18, 9993, 18, 2941, 2377, 30, 775, 30, 2561, 2377, 3562, 273, 2445, 18, 588, 10985, 12, 4688, 18, 9993, 18, 2941, 2377, 16, 63, 6487, 4688, 18, 9993, 18, 16175, 18, 7277, 16, 8381, 16, 8381, 13, 1335, 4798, 18, 22729, 30, 1002, 11736, 668, 2668, 52, 464, 69, 17023, 668, 316, 2445, 18, 588, 10985, 364, 2561, 3948, 6134, 309, 486, 2561, 2377, 3562, 30, 1002, 4257, 1750, 668, 12, 7036, 11189, 4445, 486, 10627, 2561, 3948, 738, 87, 11, 9, 4688, 18, 9993, 18, 2941, 2377, 13, 469, 30, 2561, 2377, 3562, 273, 2561, 2377, 3562, 18, 2372, 1435, 63, 20, 65, 225, 1853, 17055, 273, 5378, 309, 1719, 18, 2630, 892, 30, 3709, 273, 875, 775, 30, 3709, 273, 1719, 18, 2630, 892, 18, 8682, 63, 20, 65, 1335, 30, 775, 30, 3709, 273, 1719, 18, 2630, 892, 18, 40, 53, 22, 8682, 1335, 30, 1002, 4257, 1750, 668, 12, 7036, 11189, 4445, 486, 4199, 810, 3709, 529, 364, 453, 464, 69, 8625, 410, 6134, 309, 486, 3709, 30, 1002, 4257, 1750, 668, 12, 7036, 11189, 4445, 486, 4199, 810, 3709, 529, 364, 453, 464, 69, 8625, 410, 6134, 225, 18645, 273, 5378, 775, 30, 18645, 225, 273, 2445, 18, 2271, 2697, 382, 10656, 12, 8682, 16, 8381, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 52, 464, 69, 11194, 410, 12, 4688, 4672, 468, 336, 7838, 1347, 2834, 631, 18909, 225, 309, 1719, 18, 9993, 18, 4256, 422, 315, 18909, 6877, 2561, 2377, 3562, 273, 5378, 309, 1719, 18, 9993, 18, 2941, 2377, 30, 775, 30, 2561, 2377, 3562, 273, 2445, 18, 588, 10985, 12, 4688, 18, 9993, 18, 2941, 2377, 16, 63, 6487, 4688, 18, 9993, 18, 16175, 18, 7277, 16, 8381, 16, 8381, 13, 1335, 4798, 18, 22729, 30, 1002, 11736, 668, 2668, 52, 464, 69, 17023, 668, 316, 2445, 18, 588, 10985, 364, 2561, 3948, 6134, 309, 486, 2561, 2377, 3562, 30, 1002, 4257, 1750, 668, 12, 7036, 11189, 4445, 486, 10627, 2561, 3948, 738, 87, 11, 9, 4688, 2 ]
xml_data = unicode(xml_data, 'utf-32be').encode('utf-8')
def _detectEncoding(self, xml_data): """Given a document, tries to detect its XML encoding.""" xml_encoding = sniffed_xml_encoding = None try: if xml_data[:4] == '\x4c\x6f\xa7\x94': # EBCDIC xml_data = self._ebcdic_to_ascii(xml_data) elif xml_data[:4] == '\x00\x3c\x00\x3f': # UTF-16BE sniffed_xml_encoding = 'utf-16be' xml_data = unicode(xml_data, 'utf-16be').encode('utf-8') elif (len(xml_data) >= 4) and (xml_data[:2] == '\xfe\xff') \ and (xml_data[2:4] != '\x00\x00'): # UTF-16BE with BOM sniffed_xml_encoding = 'utf-16be' xml_data = unicode(xml_data[2:], 'utf-16be').encode('utf-8') elif xml_data[:4] == '\x3c\x00\x3f\x00': # UTF-16LE sniffed_xml_encoding = 'utf-16le' xml_data = unicode(xml_data, 'utf-16le').encode('utf-8') elif (len(xml_data) >= 4) and (xml_data[:2] == '\xff\xfe') and \ (xml_data[2:4] != '\x00\x00'): # UTF-16LE with BOM sniffed_xml_encoding = 'utf-16le' xml_data = unicode(xml_data[2:], 'utf-16le').encode('utf-8') elif xml_data[:4] == '\x00\x00\x00\x3c': # UTF-32BE sniffed_xml_encoding = 'utf-32be' xml_data = unicode(xml_data, 'utf-32be').encode('utf-8') elif xml_data[:4] == '\x3c\x00\x00\x00': # UTF-32LE sniffed_xml_encoding = 'utf-32le' xml_data = unicode(xml_data, 'utf-32le').encode('utf-8') elif xml_data[:4] == '\x00\x00\xfe\xff': # UTF-32BE with BOM sniffed_xml_encoding = 'utf-32be' xml_data = unicode(xml_data[4:], 'utf-32be').encode('utf-8') elif xml_data[:4] == '\xff\xfe\x00\x00': # UTF-32LE with BOM sniffed_xml_encoding = 'utf-32le' xml_data = unicode(xml_data[4:], 'utf-32le').encode('utf-8') elif xml_data[:3] == '\xef\xbb\xbf': # UTF-8 with BOM sniffed_xml_encoding = 'utf-8' xml_data = unicode(xml_data[3:], 'utf-8').encode('utf-8') else: sniffed_xml_encoding = 'ascii' pass xml_encoding_match = re.compile \ ('^<\?.*encoding=[\'"](.*?)[\'"].*\?>')\ .match(xml_data) if xml_encoding_match is None: # By Kovid to use the content-type header in HTML files xml_encoding_match = re.compile(r'<meta.*?http-equiv=[\'"]Content-type[\'"].*?content=[\'"].*?charset=(\S+).*?[\'"]', re.IGNORECASE).search(xml_data) except: xml_encoding_match = None if xml_encoding_match: xml_encoding = xml_encoding_match.groups()[0].lower() if sniffed_xml_encoding and \ (xml_encoding in ('iso-10646-ucs-2', 'ucs-2', 'csunicode', 'iso-10646-ucs-4', 'ucs-4', 'csucs4', 'utf-16', 'utf-32', 'utf_16', 'utf_32', 'utf16', 'u16')): xml_encoding = sniffed_xml_encoding return xml_data, xml_encoding, sniffed_xml_encoding
731811e871f20bd77d869ea51ffa661da0fdeb26 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/731811e871f20bd77d869ea51ffa661da0fdeb26/BeautifulSoup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16518, 4705, 12, 2890, 16, 2025, 67, 892, 4672, 3536, 6083, 279, 1668, 16, 9327, 358, 5966, 2097, 3167, 2688, 12123, 2025, 67, 5999, 273, 26974, 329, 67, 2902, 67, 5999, 273, 599, 775, 30, 309, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 24, 71, 64, 92, 26, 74, 64, 6995, 27, 64, 92, 11290, 4278, 468, 512, 16283, 2565, 39, 2025, 67, 892, 273, 365, 6315, 24008, 4315, 335, 67, 869, 67, 9184, 12, 2902, 67, 892, 13, 1327, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 713, 64, 92, 23, 71, 64, 92, 713, 64, 92, 23, 74, 4278, 468, 6380, 17, 2313, 5948, 26974, 329, 67, 2902, 67, 5999, 273, 296, 3158, 17, 2313, 2196, 11, 2025, 67, 892, 273, 5252, 12, 2902, 67, 892, 16, 296, 3158, 17, 2313, 2196, 16063, 3015, 2668, 3158, 17, 28, 6134, 1327, 261, 1897, 12, 2902, 67, 892, 13, 1545, 1059, 13, 471, 261, 2902, 67, 892, 10531, 22, 65, 422, 2337, 26947, 64, 5297, 6134, 521, 471, 261, 2902, 67, 892, 63, 22, 30, 24, 65, 480, 2337, 92, 713, 64, 92, 713, 11, 4672, 468, 6380, 17, 2313, 5948, 598, 25408, 26974, 329, 67, 2902, 67, 5999, 273, 296, 3158, 17, 2313, 2196, 11, 2025, 67, 892, 273, 5252, 12, 2902, 67, 892, 63, 22, 30, 6487, 296, 3158, 17, 2313, 2196, 16063, 3015, 2668, 3158, 17, 28, 6134, 1327, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 23, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16518, 4705, 12, 2890, 16, 2025, 67, 892, 4672, 3536, 6083, 279, 1668, 16, 9327, 358, 5966, 2097, 3167, 2688, 12123, 2025, 67, 5999, 273, 26974, 329, 67, 2902, 67, 5999, 273, 599, 775, 30, 309, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 24, 71, 64, 92, 26, 74, 64, 6995, 27, 64, 92, 11290, 4278, 468, 512, 16283, 2565, 39, 2025, 67, 892, 273, 365, 6315, 24008, 4315, 335, 67, 869, 67, 9184, 12, 2902, 67, 892, 13, 1327, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 713, 64, 92, 23, 71, 64, 92, 713, 64, 92, 23, 74, 4278, 468, 6380, 17, 2313, 5948, 26974, 329, 67, 2902, 67, 5999, 273, 296, 2 ]
elif pr("Branch:") or pr("Tag"):
elif pr("Branch:"): self.branches.append(pr.value) state = self.SINGLE elif pr("Tag"):
def parse(self, revision): from datetime import datetime
99161ee430dbc4a866be3eb80981544ead94434b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/99161ee430dbc4a866be3eb80981544ead94434b/monotone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 6350, 4672, 628, 3314, 1930, 3314, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 6350, 4672, 628, 3314, 1930, 3314, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
aliases = Utils.FindMatchingAddresses(name, self.members,
aliases = Utils.FindMatchingAddresses(name, self.members,
def DeleteMember(self, name, whence=None, admin_notif=None, userack=1):
d4117e2559487604b13fa55121d903681fad00c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d4117e2559487604b13fa55121d903681fad00c3/MailList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4419, 12, 2890, 16, 508, 16, 23692, 33, 7036, 16, 3981, 67, 902, 430, 33, 7036, 16, 729, 484, 33, 21, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4419, 12, 2890, 16, 508, 16, 23692, 33, 7036, 16, 3981, 67, 902, 430, 33, 7036, 16, 729, 484, 33, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") obj = cls(*args, **kwargs)
if hasattr(warnings, 'catch_warnings'): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") obj = cls(*args, **kwargs)
def assertDeprecated(self, cls, *args, **kwargs): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") obj = cls(*args, **kwargs)
0a96eae12228b4e67a7ad3864e41ed5063f6b330 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3482/0a96eae12228b4e67a7ad3864e41ed5063f6b330/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 13534, 12, 2890, 16, 2028, 16, 380, 1968, 16, 2826, 4333, 4672, 598, 5599, 18, 14683, 67, 12103, 12, 3366, 33, 5510, 13, 487, 341, 30, 5599, 18, 9647, 2188, 2932, 17737, 7923, 1081, 273, 2028, 30857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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 13534, 12, 2890, 16, 2028, 16, 380, 1968, 16, 2826, 4333, 4672, 598, 5599, 18, 14683, 67, 12103, 12, 3366, 33, 5510, 13, 487, 341, 30, 5599, 18, 9647, 2188, 2932, 17737, 7923, 1081, 273, 2028, 30857, 1968, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ans = ans._fix(context=context)
ans = ans._fix(context)
def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision.
b277e15abb88b70aabae5a4859ba6920ae8be40f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b277e15abb88b70aabae5a4859ba6920ae8be40f/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2892, 831, 12, 2890, 16, 1308, 16, 26105, 273, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2892, 831, 12, 2890, 16, 1308, 16, 26105, 273, 374, 16, 819, 33, 7036, 4672, 3536, 990, 279, 342, 324, 16, 358, 819, 18, 4036, 6039, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
separator += linesep * (1 + isdigest)
separator += linesep
def _parsebody(self, container, fp): # Parse the body, but first split the payload on the content-type # boundary if present. boundary = container.get_boundary() isdigest = (container.get_type() == 'multipart/digest') # If there's a boundary, split the payload text into its constituent # parts and parse each separately. Otherwise, just parse the rest of # the body as a single message. Note: any exceptions raised in the # recursive parse need to have their line numbers coerced. if boundary: preamble = epilogue = None # Split into subparts. The first boundary we're looking for won't # have the leading newline since we're at the start of the body # text. separator = '--' + boundary payload = fp.read() start = payload.find(separator) if start < 0: raise Errors.BoundaryError( "Couldn't find starting boundary: %s" % boundary) if start > 0: # there's some pre-MIME boundary preamble preamble = payload[0:start] # Find out what kind of line endings we're using start += len(separator) cre = re.compile('\r\n|\r|\n') mo = cre.search(payload, start) if mo: start += len(mo.group(0)) * (1 + isdigest) # We create a compiled regexp first because we need to be able to # specify the start position, and the module function doesn't # support this signature. :( cre = re.compile('(?P<sep>\r\n|\r|\n)' + re.escape(separator) + '--') mo = cre.search(payload, start) if not mo: raise Errors.BoundaryError( "Couldn't find terminating boundary: %s" % boundary) terminator = mo.start() linesep = mo.group('sep') if mo.end() < len(payload): # there's some post-MIME boundary epilogue epilogue = payload[mo.end():] # We split the textual payload on the boundary separator, which # includes the trailing newline. If the container is a # multipart/digest then the subparts are by default message/rfc822 # instead of text/plain. In that case, they'll have an extra # newline before the headers to distinguish the message's headers # from the subpart headers. separator += linesep * (1 + isdigest) parts = payload[start:terminator].split(linesep + separator) for part in parts: msgobj = self.parsestr(part) container.preamble = preamble container.epilogue = epilogue container.attach(msgobj) elif container.get_main_type() == 'multipart': # Very bad. A message is a multipart with no boundary! raise Errors.BoundaryError( 'multipart message with no defined boundary') elif container.get_type() == 'message/delivery-status': # This special kind of type contains blocks of headers separated # by a blank line. We'll represent each header block as a # separate Message object blocks = [] while 1: blockmsg = self._class() self._parseheaders(blockmsg, fp) if not len(blockmsg): # No more header blocks left break blocks.append(blockmsg) container.set_payload(blocks) elif container.get_main_type() == 'message': # Create a container for the payload, but watch out for there not # being any headers left try: msg = self.parse(fp) except Errors.HeaderParseError: msg = self._class() self._parsebody(msg, fp) container.attach(msg) else: container.set_payload(fp.read())
f6caeba03a59944602f7c0eec69c9f275f9608eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f6caeba03a59944602f7c0eec69c9f275f9608eb/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, 67, 16604, 1435, 353, 10171, 273, 261, 3782, 18, 588, 67, 723, 1435, 422, 296, 16404, 19, 10171, 6134, 468, 971, 1915, 1807, 279, 7679, 16, 1416, 326, 2385, 977, 1368, 2097, 29152, 10744, 468, 2140, 471, 1109, 1517, 18190, 18, 225, 5272, 16, 2537, 1109, 326, 3127, 434, 468, 326, 1417, 487, 279, 2202, 883, 18, 225, 3609, 30, 1281, 4798, 11531, 316, 326, 468, 5904, 1109, 1608, 358, 1240, 3675, 980, 5600, 12270, 72, 18, 309, 7679, 30, 27841, 273, 5529, 21947, 344, 273, 599, 468, 5385, 1368, 720, 6019, 18, 225, 1021, 1122, 7679, 732, 4565, 7849, 364, 8462, 1404, 468, 1240, 326, 7676, 9472, 3241, 732, 4565, 622, 326, 787, 434, 326, 1417, 468, 977, 18, 4182, 273, 16979, 397, 7679, 2385, 273, 4253, 18, 896, 1435, 787, 273, 2385, 18, 4720, 12, 11287, 13, 309, 787, 411, 374, 30, 1002, 9372, 18, 11941, 668, 12, 315, 16342, 1404, 1104, 5023, 7679, 30, 738, 87, 6, 738, 7679, 13, 309, 787, 405, 374, 30, 468, 1915, 1807, 2690, 675, 17, 18178, 7679, 27841, 27841, 273, 2385, 63, 20, 30, 1937, 65, 468, 4163, 596, 4121, 3846, 434, 980, 679, 899, 732, 4565, 1450, 787, 1011, 562, 12, 11287, 13, 1519, 273, 283, 18, 11100, 2668, 64, 86, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, 67, 16604, 1435, 353, 10171, 273, 261, 3782, 18, 588, 67, 723, 1435, 422, 296, 16404, 19, 10171, 6134, 468, 971, 1915, 1807, 279, 7679, 16, 1416, 326, 2385, 977, 1368, 2097, 29152, 10744, 468, 2140, 471, 1109, 1517, 18190, 18, 225, 5272, 16, 2537, 1109, 326, 3127, 434, 468, 326, 1417, 487, 279, 2202, 883, 18, 225, 3609, 30, 1281, 4798, 11531, 316, 326, 468, 5904, 1109, 1608, 358, 1240, 3675, 980, 5600, 12270, 72, 18, 309, 7679, 30, 27841, 273, 5529, 2 ]
except (socket.error, http.client.HTTPException) as e: retry = (errno.ECONNRESET, errno.ECONNABORTED, http.client.BadStatusLine) if i or e[0] not in retry:
except socket.error as e: if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED): raise except http.client.BadStatusLine: if i:
def request(self, host, handler, request_body, verbose=0): #retry request once if cached connection has gone cold for i in (0, 1): try: return self.single_request(host, handler, request_body, verbose) except (socket.error, http.client.HTTPException) as e: retry = (errno.ECONNRESET, errno.ECONNABORTED, http.client.BadStatusLine) #close after we sent request if i or e[0] not in retry: raise
4e874cac2247e151dcc6489aec509af127d55401 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4e874cac2247e151dcc6489aec509af127d55401/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1479, 16, 1838, 16, 590, 67, 3432, 16, 3988, 33, 20, 4672, 468, 9620, 590, 3647, 309, 3472, 1459, 711, 22296, 645, 72, 364, 277, 316, 261, 20, 16, 404, 4672, 775, 30, 327, 365, 18, 7526, 67, 2293, 12, 2564, 16, 1838, 16, 590, 67, 3432, 16, 3988, 13, 1335, 261, 7814, 18, 1636, 16, 1062, 18, 2625, 18, 3693, 503, 13, 487, 425, 30, 3300, 273, 261, 19088, 18, 41, 27733, 26665, 16, 8402, 18, 41, 27733, 2090, 11245, 16, 1062, 18, 2625, 18, 6434, 1482, 1670, 13, 468, 4412, 1839, 732, 3271, 590, 309, 277, 578, 425, 63, 20, 65, 486, 316, 3300, 30, 1002, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1479, 16, 1838, 16, 590, 67, 3432, 16, 3988, 33, 20, 4672, 468, 9620, 590, 3647, 309, 3472, 1459, 711, 22296, 645, 72, 364, 277, 316, 261, 20, 16, 404, 4672, 775, 30, 327, 365, 18, 7526, 67, 2293, 12, 2564, 16, 1838, 16, 590, 67, 3432, 16, 3988, 13, 1335, 261, 7814, 18, 1636, 16, 1062, 18, 2625, 18, 3693, 503, 13, 487, 425, 30, 3300, 273, 261, 19088, 18, 41, 27733, 26665, 16, 8402, 18, 41, 27733, 2090, 11245, 16, 1062, 18, 2625, 18, 6434, 1482, 1670, 13, 468, 4412, 1839, 732, 3271, 590, 309, 277, 578, 425, 63, 20, 65, 486, 316, 3300, 30, 1002, 2, -100, -100, -100, -100, -100, -100 ]
elif report_error:
else:
def trHandleCode(code, gen_dict_line, report_error, output_format): import time try: err = prj_srs.ImportFromEPSG( code ) except: err = 1 if err != 0 and report_error: print 'Unable to lookup ',code,', either not a valid EPSG' print 'code, or it the EPSG csv files are not accessable.' sys.exit(2) else: if output_format == '-pretty_wkt': if gen_dict_line: print 'EPSG:',code print prj_srs.ExportToPrettyWkt() if output_format == '-xml': print prj_srs.ExportToXML() if output_format == '-wkt': if gen_dict_line: print 'EPSG:',code print prj_srs.ExportToWkt() if output_format == '-proj4': out_string = prj_srs.ExportToProj4() name = prj_srs.GetAttrValue('PROJCS') if name is None: name = prj_srs.GetAttrValue('GEOGCS') print '# '+name if err == 0 and string.find(out_string,'+proj=') > -1: print '<%s> %s no_defs <>' % (str(code), out_string) elif report_error: print '# Unable to translate coordinate system into PROJ.4 format.' if output_format == '-postgis': name = prj_srs.GetAttrValue('PROJCS') if name is None: name = prj_srs.GetAttrValue('GEOGCS') try: proj4text = prj_srs.ExportToProj4() except: err = 1 wkt = prj_srs.ExportToWkt() print '---' print '--- EPSG : %s' % name print '---' if err: print '-- (unable to translate)' else: print 'INSERT INTO "spatial_ref_sys" ("srid","auth_name","auth_srid","srtext","proj4text") VALUES (%s,\'EPSG\',%s,\'%s\',\'%s\');' % \ (str(code),str(code),wkt,proj4text)
8409f97a1cc83675aaaec53f5be210030b1712fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/8409f97a1cc83675aaaec53f5be210030b1712fb/epsg_tr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 433, 3259, 1085, 12, 710, 16, 3157, 67, 1576, 67, 1369, 16, 2605, 67, 1636, 16, 876, 67, 2139, 4672, 225, 1930, 813, 225, 775, 30, 393, 273, 27378, 67, 87, 5453, 18, 5010, 1265, 41, 5857, 43, 12, 981, 262, 1335, 30, 393, 273, 404, 225, 309, 393, 480, 374, 471, 2605, 67, 1636, 30, 1172, 296, 3370, 358, 3689, 2265, 710, 16, 2187, 3344, 486, 279, 923, 512, 5857, 43, 11, 1172, 296, 710, 16, 578, 518, 326, 512, 5857, 43, 6101, 1390, 854, 486, 2006, 429, 1093, 2589, 18, 8593, 12, 22, 13, 469, 30, 309, 876, 67, 2139, 422, 2400, 19073, 67, 91, 8629, 4278, 309, 3157, 67, 1576, 67, 1369, 30, 1172, 296, 41, 5857, 43, 30, 2187, 710, 225, 1172, 27378, 67, 87, 5453, 18, 6144, 774, 20491, 59, 8629, 1435, 225, 309, 876, 67, 2139, 422, 2400, 2902, 4278, 1172, 27378, 67, 87, 5453, 18, 6144, 774, 4201, 1435, 225, 309, 876, 67, 2139, 422, 2400, 91, 8629, 4278, 309, 3157, 67, 1576, 67, 1369, 30, 1172, 296, 41, 5857, 43, 30, 2187, 710, 225, 1172, 27378, 67, 87, 5453, 18, 6144, 774, 59, 8629, 1435, 225, 309, 876, 67, 2139, 422, 2400, 17995, 24, 4278, 596, 67, 1080, 273, 27378, 67, 87, 5453, 18, 6144, 774, 626, 78, 24, 1435, 225, 508, 273, 27378, 67, 87, 5453, 18, 967, 3843, 620, 2668, 3373, 46, 4596, 6134, 309, 508, 353, 599, 30, 508, 273, 27378, 67, 87, 5453, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 433, 3259, 1085, 12, 710, 16, 3157, 67, 1576, 67, 1369, 16, 2605, 67, 1636, 16, 876, 67, 2139, 4672, 225, 1930, 813, 225, 775, 30, 393, 273, 27378, 67, 87, 5453, 18, 5010, 1265, 41, 5857, 43, 12, 981, 262, 1335, 30, 393, 273, 404, 225, 309, 393, 480, 374, 471, 2605, 67, 1636, 30, 1172, 296, 3370, 358, 3689, 2265, 710, 16, 2187, 3344, 486, 279, 923, 512, 5857, 43, 11, 1172, 296, 710, 16, 578, 518, 326, 512, 5857, 43, 6101, 1390, 854, 486, 2006, 429, 1093, 2589, 18, 8593, 12, 22, 13, 469, 30, 309, 876, 67, 2139, 422, 2400, 19073, 67, 91, 8629, 4278, 309, 3157, 67, 1576, 67, 1369, 30, 1172, 296, 2 ]
0.92387953251128674), (2.1598449493429825, 0.83146961230254546),
0.92387953251128674), (2.1598449493429825, 0.831469612302545...),
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -- a function of one variable p1, p2 -- two points to refine between plot_points -- (default: 5) the minimal number of plot points. adaptive_recursion -- (default: 5) how many levels of recursion to go before giving up when doing adaptive refinement. Setting this to 0 disables adaptive refinement. adaptive_tolerance -- (default: 0.01) how large a difference should be before the adaptive refinement code considers it significant. See the documentation for plot() for more information. OUTPUT: list -- a list of points (x, f(x)) in the interval xrange, which aproximate the function f. TESTS: sage: from sage.plot.plot import generate_plot_points sage: generate_plot_points(sin, (0, pi), plot_points=2, adaptive_recursion=0) [(0.0, 0.0), (3.1415926535897931, 1.2246...e-16)] sage: generate_plot_points(sin(x), (-pi, pi), randomize=False) [(-3.1415926535897931, -1.2246...e-16), (-2.748893571891069, -0.38268343236508989), (-2.3561944901923448, -0.707106781186547...), (-2.1598449493429825, -0.83146961230254546), (-1.9634954084936207, -0.92387953251128674), (-1.7671458676442586, -0.98078528040323043), (-1.5707963267948966, -1.0), (-1.3744467859455345, -0.98078528040323043), (-1.1780972450961724, -0.92387953251128674), (-0.98174770424681035, -0.83146961230254524), (-0.78539816339744828, -0.707106781186547...), (-0.39269908169872414, -0.38268343236508978), (0.0, 0.0), (0.39269908169872414, 0.38268343236508978), (0.78539816339744828, 0.707106781186547...), (0.98174770424681035, 0.83146961230254524), (1.1780972450961724, 0.92387953251128674), (1.3744467859455345, 0.98078528040323043), (1.5707963267948966, 1.0), (1.7671458676442586, 0.98078528040323043), (1.9634954084936207, 0.92387953251128674), (2.1598449493429825, 0.83146961230254546), (2.3561944901923448, 0.707106781186547...), (2.748893571891069, 0.38268343236508989), (3.1415926535897931, 1.2246...e-16)] This shows that lowering adaptive_tolerance and raising adaptive_recursion both increase the number of subdivision points: sage: x = var('x') sage: f = sin(1/x) sage: [len(generate_plot_points(f, (-pi, pi), adaptive_tolerance=i)) for i in [0.01, 0.001, 0.0001]] [42, 67, 104] sage: [len(generate_plot_points(f, (-pi, pi), adaptive_recursion=i)) for i in [5, 10, 15]] [34, 144, 897] """ x, data = var_and_list_of_values(xrange, plot_points) xmin = data[0] xmax = data[-1] delta = float(xmax-xmin) / plot_points random = current_randstate().python_random().random exceptions = 0; msg='' exception_indices = [] for i in range(len(data)): xi = data[i] # Slightly randomize the interior sample points if # randomize is true if randomize and i > 0 and i < plot_points-1: xi += delta*(random() - 0.5) try: data[i] = (float(xi), float(f(xi))) if str(data[i][1]) in ['nan', 'NaN', 'inf', '-inf']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) if i == 0: for j in range(1, 99): xj = xi + delta*j/100.0 try: data[i] = (float(xj), float(f(xj))) # nan != nan if data[i][1] != data[i][1]: continue break except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: pass else: exceptions += 1 exception_indices.append(i) elif i == plot_points-1: for j in range(1, 99): xj = xi - delta*j/100.0 try: data[i] = (float(xj), float(f(xj))) # nan != nan if data[i][1] != data[i][1]: continue break except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: pass else: exceptions += 1 exception_indices.append(i) else: exceptions += 1 exception_indices.append(i) exceptions += 1 exception_indices.append(i) data = [data[i] for i in range(len(data)) if i not in exception_indices] # adaptive refinement i, j = 0, 0 adaptive_tolerance = delta * float(adaptive_tolerance) adaptive_recursion = int(adaptive_recursion) while i < len(data) - 1: for p in adaptive_refinement(f, data[i], data[i+1], adaptive_tolerance=adaptive_tolerance, adaptive_recursion=adaptive_recursion): data.insert(i+1, p) i += 1 i += 1 if (len(data) == 0 and exceptions > 0) or exceptions > 10: sage.misc.misc.verbose("WARNING: When plotting, failed to evaluate function at %s points."%exceptions, level=0) sage.misc.misc.verbose("Last error message: '%s'"%msg, level=0) return data
7d47c9787ca7bd441904f4820a1ea3c72893977e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7d47c9787ca7bd441904f4820a1ea3c72893977e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 4672, 436, 8395, 9029, 3207, 3143, 364, 279, 445, 284, 316, 326, 3673, 12314, 18, 1021, 5855, 688, 25994, 820, 4886, 364, 20947, 279, 445, 284, 18, 2164, 326, 14525, 364, 3207, 364, 279, 2477, 434, 326, 4886, 18, 225, 12943, 30, 284, 1493, 279, 445, 434, 1245, 2190, 293, 21, 16, 293, 22, 1493, 2795, 3143, 358, 30446, 3086, 3207, 67, 4139, 3639, 1493, 261, 1886, 30, 1381, 13, 326, 16745, 1300, 434, 3207, 3143, 18, 5855, 688, 67, 31347, 1493, 261, 1886, 30, 1381, 13, 3661, 4906, 7575, 434, 13917, 358, 1960, 1865, 21057, 731, 1347, 9957, 5855, 688, 25994, 820, 18, 13274, 333, 358, 374, 24960, 5855, 688, 25994, 820, 18, 5855, 688, 67, 25456, 1493, 261, 1886, 30, 374, 18, 1611, 13, 3661, 7876, 279, 7114, 1410, 506, 1865, 326, 5855, 688, 25994, 820, 981, 1959, 24290, 518, 14177, 18, 225, 2164, 326, 7323, 364, 3207, 1435, 364, 1898, 1779, 18, 225, 11550, 30, 666, 1493, 279, 666, 434, 3143, 261, 92, 16, 284, 12, 92, 3719, 316, 326, 3673, 12314, 16, 1492, 513, 303, 92, 4988, 326, 445, 284, 18, 225, 22130, 55, 30, 272, 410, 30, 628, 272, 410, 18, 4032, 18, 4032, 1930, 2103, 67, 4032, 67, 4139, 272, 410, 30, 2103, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 4672, 436, 8395, 9029, 3207, 3143, 364, 279, 445, 284, 316, 326, 3673, 12314, 18, 1021, 5855, 688, 25994, 820, 4886, 364, 20947, 279, 445, 284, 18, 2164, 326, 14525, 364, 3207, 364, 279, 2477, 434, 326, 4886, 18, 225, 12943, 30, 284, 1493, 279, 445, 434, 1245, 2190, 293, 21, 16, 293, 22, 1493, 2795, 3143, 358, 30446, 3086, 3207, 67, 4139, 3639, 1493, 261, 1886, 30, 1381, 13, 326, 16745, 1300, 434, 3207, 3143, 18, 5855, 688, 67, 31347, 1493, 2 ]
} for p in self.manager.getAddablePortletTypes()]
} for p in self.manager.getAddablePortletTypes() if check_permission(p)]
def sort_key(v): return v.get('title')
0d3b209de78f0e51c2f32c9e6a6f24c87266e1c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12194/0d3b209de78f0e51c2f32c9e6a6f24c87266e1c6/editmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 856, 12, 90, 4672, 327, 331, 18, 588, 2668, 2649, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 856, 12, 90, 4672, 327, 331, 18, 588, 2668, 2649, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Subwidget Class --------- ----- selection ComboBox filter ComboBox dirlist ScrolledListBox filelist ScrolledListBox""" def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixFileSelectBox', ['options'], cnf, kw) self.subwidget_list['dirlist'] = _dummyScrolledListBox(self, 'dirlist') self.subwidget_list['filelist'] = _dummyScrolledListBox(self, 'filelist') self.subwidget_list['filter'] = _dummyComboBox(self, 'filter') self.subwidget_list['selection'] = _dummyComboBox(self, 'selection') def apply_filter(self): self.tk.call(self._w, 'filter')
Subwidget Class --------- ----- selection ComboBox filter ComboBox dirlist ScrolledListBox filelist ScrolledListBox""" def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixFileSelectBox', ['options'], cnf, kw) self.subwidget_list['dirlist'] = _dummyScrolledListBox(self, 'dirlist') self.subwidget_list['filelist'] = _dummyScrolledListBox(self, 'filelist') self.subwidget_list['filter'] = _dummyComboBox(self, 'filter') self.subwidget_list['selection'] = _dummyComboBox(self, 'selection') def apply_filter(self): self.tk.call(self._w, 'filter')
def popdown(self):
0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1843, 2378, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s=L3PacketSocket(*args, **kargs)
if not isinstance(x, Gen): x = SetGen(x) s=conf.L3socket(*args, **kargs)
def send(x, inter=0, *args, **kargs): """Send packets at layer 3""" s=L3PacketSocket(*args, **kargs) for p in x: s.send(p) time.sleep(inter)
722a4073400c335f86f3f613ddc3e31e4e032485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/722a4073400c335f86f3f613ddc3e31e4e032485/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 92, 16, 1554, 33, 20, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 3536, 3826, 12640, 622, 3018, 890, 8395, 309, 486, 1549, 12, 92, 16, 10938, 4672, 619, 273, 1000, 7642, 12, 92, 13, 272, 33, 3923, 18, 48, 23, 7814, 30857, 1968, 16, 2826, 79, 1968, 13, 364, 293, 316, 619, 30, 272, 18, 4661, 12, 84, 13, 813, 18, 19607, 12, 2761, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 12, 92, 16, 1554, 33, 20, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 3536, 3826, 12640, 622, 3018, 890, 8395, 309, 486, 1549, 12, 92, 16, 10938, 4672, 619, 273, 1000, 7642, 12, 92, 13, 272, 33, 3923, 18, 48, 23, 7814, 30857, 1968, 16, 2826, 79, 1968, 13, 364, 293, 316, 619, 30, 272, 18, 4661, 12, 84, 13, 813, 18, 19607, 12, 2761, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def isFirefoxLocked(self, profile_path): """ Checks if a firefox profile is open. Looks for parent lock file in firefox profile. If file exists, profile is open. Args: profile_path: path to profile folder """ lock = os.path.join(profile_path, self.lockname) return os.path.exists(lock)
def isFirefoxLocked(self, profile_path): """ Checks if a firefox profile is open.
00d72a461cb1ea885a85d2ef38ae54199ba28ea1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/00d72a461cb1ea885a85d2ef38ae54199ba28ea1/installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 9723, 13873, 8966, 12, 2890, 16, 3042, 67, 803, 4672, 3536, 13074, 309, 279, 4452, 13873, 3042, 353, 1696, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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13873, 3042, 353, 1696, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Mailbox
IMailbox
def authenticateUserPASS(self, user, password): """Perform authentication of a username/password login. @type user: C{str} @param user: The name of the user attempting to log in. @type password: C{str} @param password: The password to attempt to authenticate with. @rtype: C{Deferred} @return: A deferred whose callback invoked if the login is successful, and whose errback will be invoked otherwise. """ if self.portal is not None: return self.portal.login( cred.credentials.UsernamePassword(user, password), None, Mailbox ) return defer.fail(cred.error.UnauthorizedLogin())
c65ae3e1b754c76ebb48087f5eae255a0467d27f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/c65ae3e1b754c76ebb48087f5eae255a0467d27f/pop3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8929, 1299, 10884, 12, 2890, 16, 729, 16, 2201, 4672, 3536, 4990, 5107, 434, 279, 2718, 19, 3664, 3925, 18, 225, 632, 723, 729, 30, 385, 95, 701, 97, 632, 891, 729, 30, 1021, 508, 434, 326, 729, 15600, 358, 613, 316, 18, 225, 632, 723, 2201, 30, 385, 95, 701, 97, 632, 891, 2201, 30, 1021, 2201, 358, 4395, 358, 8929, 598, 18, 225, 632, 86, 723, 30, 385, 95, 16886, 97, 632, 2463, 30, 432, 7045, 8272, 1348, 8187, 309, 326, 3925, 353, 6873, 16, 471, 8272, 29642, 903, 506, 8187, 3541, 18, 3536, 309, 365, 18, 24386, 353, 486, 599, 30, 327, 365, 18, 24386, 18, 5819, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8929, 1299, 10884, 12, 2890, 16, 729, 16, 2201, 4672, 3536, 4990, 5107, 434, 279, 2718, 19, 3664, 3925, 18, 225, 632, 723, 729, 30, 385, 95, 701, 97, 632, 891, 729, 30, 1021, 508, 434, 326, 729, 15600, 358, 613, 316, 18, 225, 632, 723, 2201, 30, 385, 95, 701, 97, 632, 891, 2201, 30, 1021, 2201, 358, 4395, 358, 8929, 598, 18, 225, 632, 86, 723, 30, 385, 95, 16886, 97, 632, 2463, 30, 432, 7045, 8272, 1348, 8187, 309, 326, 3925, 353, 6873, 16, 471, 8272, 29642, 903, 506, 8187, 3541, 18, 3536, 309, 365, 18, 24386, 353, 486, 599, 30, 327, 365, 18, 24386, 18, 5819, 12, 6197, 18, 11687, 18, 8575, 3913, 12, 2 ]