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
def fl_set_button(ob, pushed): """ fl_set_button(ob, pushed) """ _fl_set_button(ob, pushed) _fl_get_button_numb = cfuncproto(so_libforms, "fl_get_button_numb", cty.c_int, [cty.POINTER(FL_OBJECT)],
def fl_set_button(pObject, pushed): """ fl_set_button(pObject, pushed) """ _fl_set_button(pObject, pushed) _fl_get_button_numb = cfuncproto(so_libforms, "fl_get_button_numb", cty.c_int, [cty.POINTER(FL_OBJECT)],
def fl_set_button(ob, pushed): """ fl_set_button(ob, pushed) """ _fl_set_button(ob, pushed)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 5391, 12, 947, 16, 18543, 4672, 3536, 1183, 67, 542, 67, 5391, 12, 947, 16, 18543, 13, 3536, 225, 389, 2242, 67, 542, 67, 5391, 12, 947, 16, 18543, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 981, 30, 1652, 1183, 67, 542, 67, 5391, 12, 947, 16, 18543, 4672, 3536, 1183, 67, 542, 67, 5391, 12, 947, 16, 18543, 13, 3536, 225, 389, 2242, 67, 542, 67, 5391, 12, 947, 16, 18543, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 get_all_selected_packages(self, tree_model):
def get_all_selected_packages(self, tree_model, boolean_col = 0,\ name_col = 1):
# def get_all_selected_packages(tree_model): {{{
e3a2e4486d7a2734be0004681f6488176d4a351e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/e3a2e4486d7a2734be0004681f6488176d4a351e/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 336, 67, 454, 67, 8109, 67, 10308, 12, 3413, 67, 2284, 4672, 10179, 95, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 336, 67, 454, 67, 8109, 67, 10308, 12, 3413, 67, 2284, 4672, 10179, 95, 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 ]
req.write(rating.firstChild.nodeValue)
req.write(trustresult.getElementsByTagName("rating")[0].firstChild.nodeValue)
def query(self, req): if (req.method == "POST" or req.method == "GET"): form = util.FieldStorage(req, 1) strategy = form["strategy"] source = form["source"] sink = form["sink"] if strategy == "": strategy = "Default" opt = self.parse_options(form) options = self.parse_options(form, True) pgpresult = None if self.config["debug"] == "1": reload(xmlgen) f = xmlgen.Factory() r = [] if opt["pgpquery"]: # first, check the PGP server: try: exec("from PGPPathfinders.%sPathfinder import %sPathfinder" % (self.config["pgpserver"]["pathfinder"],self.config["pgpserver"]["pathfinder"])) exec('pathfinder = %sPathfinder(self.config["%s"])' % (self.config["pgpserver"]["pathfinder"], self.config["pgpserver"]["pathfinder"])) #if self.config["debug"] == "1": # exec("reload(PGPPathfinders.%sPathfinder)" % (self.config["pgpserver"]["pathfinder"])) except (ImportError): # put the hardcoded one here raise ImportError pgptime = time.time() pgp_result = str(pathfinder.graph(source, sink)) pgptime = time.time() - pgptime pgp_result = minidom.parseString(pgp_result).documentElement connected = pgp_result.getElementsByTagName("connected")[0] pgp_path = pgp_result.getElementsByTagName("path")[0] pgp_error = pgp_result.getElementsByTagName("error")[0] pgp_result = f.pgp_result(search_time=pgptime)[connected.toxml(), pgp_path.toxml(), pgp_error.toxml()] #r.append(pgp_result) if opt["trustquery"]: # then, check the TrustServer: try: trustresult = self.send_query(strategy, source, sink, options) trustresult = minidom.parseString(trustresult).documentElement try: trust_rating = trustresult.getElementsByTagName("rating")[0].toxml() except IndexError: trust_rating = str(f.rating("0")) try: trust_path = trustresult.getElementsByTagName("path")[0].toxml() except IndexError: trust_path = str(f.path("N/A")) try: trust_data = trustresult.getElementsByTagName("data")[0].toxml() except IndexError: trust_data = str(f.data("N/A")) try: trust_error = trustresult.getElementsByTagName("error")[0].toxml() except IndexError: trust_error = str(f.error("None")) #req.write("Source: %s\n Sink: %s\n Options: %s\n\n" % (source, sink, options)) #req.write("Host: %s\n Port: %i\n\n" % (self.config['trustserver']['host'], int(self.config['trustserver']['port']))) #req.write("Trust Result: %s\n\n" % (trustresult)) trust_result = f.trust_result(trust_host = self.config['trustserver']['host'], trust_port = self.config['trustserver']['port'])[trust_rating, trust_path, trust_data, trust_error] #r.append(trust_result) except error, (errno, errstr): req.write("Error(%s): %s" % (errno, errstr)) #else: # req.write("%s" % (pgpresult)) #if opt["trustoutput"] == "short" and not pgpresult: # req.write("-1") #elif opt["trustquery"]: #if (opt["trustquery"] and opt["trustoutput"] == "short") or opt["pgpoutput"] == "short": # maybe deal with errors somewhere in here... if opt["trustoutput"] == "short": if connected.firstChild.nodeValue == "0": req.write("-1") else: req.write(rating.firstChild.nodeValue) else: r.extend([f.source(source), f.sink(sink), f.options(options)]) if opt["pgpquery"]: r.append(pgp_result) if opt["trustquery"]: r.append(trust_result) req.write(self.xml_indenter(str(f.result[r]))) return apache.OK else: # hmm, something went horribly wrong. return apache.HTTP_METHOD_NOT_ALLOWED
17e2120aff20c945e455a940e5092e5d22602ec4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2336/17e2120aff20c945e455a940e5092e5d22602ec4/frontend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 1111, 4672, 309, 261, 3658, 18, 2039, 422, 315, 3798, 6, 578, 1111, 18, 2039, 422, 315, 3264, 6, 4672, 646, 273, 1709, 18, 974, 3245, 12, 3658, 16, 404, 13, 6252, 273, 646, 9614, 14914, 11929, 1084, 273, 646, 9614, 3168, 11929, 9049, 273, 646, 9614, 17074, 11929, 225, 309, 6252, 422, 1408, 30, 6252, 273, 315, 1868, 6, 225, 2153, 273, 365, 18, 2670, 67, 2116, 12, 687, 13, 702, 273, 365, 18, 2670, 67, 2116, 12, 687, 16, 1053, 13, 225, 293, 6403, 2088, 273, 599, 309, 365, 18, 1425, 9614, 4148, 11929, 422, 315, 21, 6877, 7749, 12, 2902, 4507, 13, 284, 273, 2025, 4507, 18, 1733, 1435, 436, 273, 5378, 309, 2153, 9614, 84, 6403, 2271, 11929, 30, 468, 1122, 16, 866, 326, 21222, 1438, 30, 775, 30, 1196, 2932, 2080, 21222, 743, 4720, 414, 7866, 87, 743, 15356, 1930, 738, 87, 743, 15356, 6, 738, 261, 2890, 18, 1425, 9614, 84, 6403, 3567, 6, 6362, 6, 803, 15356, 6, 6487, 2890, 18, 1425, 9614, 84, 6403, 3567, 6, 6362, 6, 803, 15356, 11929, 3719, 1196, 2668, 803, 15356, 273, 738, 87, 743, 15356, 12, 2890, 18, 1425, 9614, 9, 87, 11929, 2506, 738, 261, 2890, 18, 1425, 9614, 84, 6403, 3567, 6, 6362, 6, 803, 15356, 6, 6487, 365, 18, 1425, 9614, 84, 6403, 3567, 6, 6362, 6, 803, 15356, 11929, 3719, 468, 430, 365, 18, 1425, 9614, 4148, 11929, 422, 315, 21, 6877, 468, 202, 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, 843, 12, 2890, 16, 1111, 4672, 309, 261, 3658, 18, 2039, 422, 315, 3798, 6, 578, 1111, 18, 2039, 422, 315, 3264, 6, 4672, 646, 273, 1709, 18, 974, 3245, 12, 3658, 16, 404, 13, 6252, 273, 646, 9614, 14914, 11929, 1084, 273, 646, 9614, 3168, 11929, 9049, 273, 646, 9614, 17074, 11929, 225, 309, 6252, 422, 1408, 30, 6252, 273, 315, 1868, 6, 225, 2153, 273, 365, 18, 2670, 67, 2116, 12, 687, 13, 702, 273, 365, 18, 2670, 67, 2116, 12, 687, 16, 1053, 13, 225, 293, 6403, 2088, 273, 599, 309, 365, 18, 1425, 9614, 4148, 11929, 422, 315, 21, 6877, 7749, 12, 2902, 4507, 13, 284, 273, 2025, 4507, 18, 1733, 1435, 436, 273, 2 ]
return ''.join(responseLines)
return ''.join(responseLines), isClosing, timedOut
def readResponse(self, command, args): """Reads the POP3 server's response. Also sets self.isClosing to True if the server closes the socket, which tells found_terminator() to close when the response has been sent. """ isMulti = self.isMultiline(command, args) responseLines = [] isFirstLine = True while True: line = self.serverFile.readline() if not line: # The socket's been closed by the server, probably by QUIT. self.isClosing = True break elif not isMulti or (isFirstLine and line.startswith('-ERR')): # A single-line response. responseLines.append(line) break elif line == '.\r\n': # The termination line. responseLines.append(line) break else: # A normal line - append it to the response and carry on. responseLines.append(line) isFirstLine = False return ''.join(responseLines)
2c2119a1ca15b490c9dbbaf612e7be0e189c1b7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/2c2119a1ca15b490c9dbbaf612e7be0e189c1b7e/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26694, 12, 2890, 16, 1296, 16, 833, 4672, 3536, 7483, 326, 26839, 23, 1438, 1807, 766, 18, 225, 8080, 1678, 365, 18, 291, 15745, 358, 1053, 309, 326, 1438, 13445, 326, 2987, 16, 1492, 24551, 1392, 67, 9505, 639, 1435, 358, 1746, 1347, 326, 766, 711, 2118, 3271, 18, 3536, 25129, 273, 365, 18, 291, 5049, 12554, 12, 3076, 16, 833, 13, 766, 5763, 273, 5378, 17447, 1670, 273, 1053, 1323, 1053, 30, 980, 273, 365, 18, 3567, 812, 18, 896, 1369, 1435, 309, 486, 980, 30, 468, 1021, 2987, 1807, 2118, 4375, 635, 326, 1438, 16, 8656, 635, 10110, 1285, 18, 365, 18, 291, 15745, 273, 1053, 898, 1327, 486, 25129, 578, 261, 291, 3759, 1670, 471, 980, 18, 17514, 1918, 2668, 17, 9712, 26112, 30, 468, 432, 2202, 17, 1369, 766, 18, 766, 5763, 18, 6923, 12, 1369, 13, 898, 1327, 980, 422, 2418, 64, 86, 64, 82, 4278, 468, 1021, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26694, 12, 2890, 16, 1296, 16, 833, 4672, 3536, 7483, 326, 26839, 23, 1438, 1807, 766, 18, 225, 8080, 1678, 365, 18, 291, 15745, 358, 1053, 309, 326, 1438, 13445, 326, 2987, 16, 1492, 24551, 1392, 67, 9505, 639, 1435, 358, 1746, 1347, 326, 766, 711, 2118, 3271, 18, 3536, 25129, 273, 365, 18, 291, 5049, 12554, 12, 3076, 16, 833, 13, 766, 5763, 273, 5378, 17447, 1670, 273, 1053, 1323, 1053, 30, 980, 273, 365, 18, 3567, 812, 18, 896, 1369, 1435, 309, 486, 980, 30, 468, 1021, 2987, 1807, 2118, 4375, 635, 326, 1438, 16, 8656, 635, 10110, 1285, 18, 365, 18, 291, 15745, 273, 1053, 898, 1327, 486, 25129, 578, 261, 291, 3759, 1670, 471, 2 ]
"""Sets duration as 24 Hours if event is selcted for all day
"""Sets duration as 24 Hours if event is selected for all day
def onchange_allday(self, cr, uid, ids, allday, context=None): """Sets duration as 24 Hours if event is selcted for all day @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of calendar event’s IDs. @param allday: Value of allday boolean @param context: A standard dictionary for contextual values """ if not allday or not ids: return {} event = self.browse(cr, uid, ids, context=context)[0] value = { 'duration': 24 } return {'value': value}
6de4c3eb3ab87a7de1e048b6e72e54e52d13188b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6de4c3eb3ab87a7de1e048b6e72e54e52d13188b/base_calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 454, 2881, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 777, 2881, 16, 819, 33, 7036, 4672, 3536, 2785, 3734, 487, 4248, 670, 4390, 309, 871, 353, 3170, 364, 777, 2548, 632, 891, 365, 30, 1021, 733, 4407, 632, 891, 4422, 30, 326, 783, 1027, 16, 628, 326, 2063, 3347, 16, 632, 891, 4555, 30, 326, 783, 729, 163, 227, 252, 87, 1599, 364, 4373, 4271, 16, 632, 891, 3258, 30, 987, 434, 5686, 871, 163, 227, 252, 87, 7115, 18, 632, 891, 777, 2881, 30, 1445, 434, 777, 2881, 1250, 632, 891, 819, 30, 432, 4529, 3880, 364, 22724, 924, 3536, 309, 486, 777, 2881, 578, 486, 3258, 30, 327, 2618, 871, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 25146, 20, 65, 460, 273, 288, 296, 8760, 4278, 4248, 289, 327, 13666, 1132, 4278, 460, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 454, 2881, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 777, 2881, 16, 819, 33, 7036, 4672, 3536, 2785, 3734, 487, 4248, 670, 4390, 309, 871, 353, 3170, 364, 777, 2548, 632, 891, 365, 30, 1021, 733, 4407, 632, 891, 4422, 30, 326, 783, 1027, 16, 628, 326, 2063, 3347, 16, 632, 891, 4555, 30, 326, 783, 729, 163, 227, 252, 87, 1599, 364, 4373, 4271, 16, 632, 891, 3258, 30, 987, 434, 5686, 871, 163, 227, 252, 87, 7115, 18, 632, 891, 777, 2881, 30, 1445, 434, 777, 2881, 1250, 632, 891, 819, 30, 432, 4529, 3880, 364, 22724, 924, 3536, 309, 486, 777, 2881, 578, 486, 3258, 30, 327, 2618, 871, 273, 2 ]
cfg = ConfigParser.SafeConfigParser() try: fp = repo.opener('hgrc', 'r') os.unlink(fp.name) cfg.readfp(fp) except IOError, inst: if inst.errno != errno.ENOENT: raise if not cfg.has_section('paths'): cfg.add_section('paths') cfg.set('paths', 'default', abspath) cfg.write(repo.opener('hgrc', 'w'))
f = repo.opener("hgrc", "w") f.write("[paths]\n") f.write("default = %s\n" % abspath)
def __del__(self): if self.dir_: self.rmtree(self.dir_, True)
efd87da83dbaa5fa82f65b12ccb7b0e84d78512c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/efd87da83dbaa5fa82f65b12ccb7b0e84d78512c/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 18, 1214, 67, 30, 365, 18, 86, 17371, 12, 2890, 18, 1214, 67, 16, 1053, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 18, 1214, 67, 30, 365, 18, 86, 17371, 12, 2890, 18, 1214, 67, 16, 1053, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self.TileColouring(tile, self.IsTileInFoV(x, y))
return self.TileColouring(tile, emphasis)
def ViewedTile(self, x, y): tile = self.GetDisplayTileInfo(x, y) if tile is not None: return self.TileColouring(tile, self.IsTileInFoV(x, y)) return " "
cf8882d55bb3db5b71d55e3f6b599a2c62299aba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/cf8882d55bb3db5b71d55e3f6b599a2c62299aba/roguelike.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4441, 329, 9337, 12, 2890, 16, 619, 16, 677, 4672, 4769, 273, 365, 18, 967, 4236, 9337, 966, 12, 92, 16, 677, 13, 309, 4769, 353, 486, 599, 30, 327, 365, 18, 9337, 26404, 310, 12, 15368, 16, 801, 844, 17247, 13, 327, 315, 315, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4441, 329, 9337, 12, 2890, 16, 619, 16, 677, 4672, 4769, 273, 365, 18, 967, 4236, 9337, 966, 12, 92, 16, 677, 13, 309, 4769, 353, 486, 599, 30, 327, 365, 18, 9337, 26404, 310, 12, 15368, 16, 801, 844, 17247, 13, 327, 315, 315, 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 ]
if monthlyWage <> "": if monthlyWage.strip().isdigit(): if float(monthlyWage) > 5000.00: hourlyWage = float(monthlyWage) / 160.00 else: hourlyWage = float(monthlyWage) else: hourlyWage = 0.00 else: hourlyWage = 0.00 if self.debug == True: print str(round(hourlyWage,2)) return str(round(hourlyWage,2))
if monthlyWage <> "": if monthlyWage.strip().isdigit(): if float(monthlyWage) > 5000.00: hourlyWage = float(monthlyWage) / 160.00 else: hourlyWage = float(monthlyWage) else: hourlyWage = 0.00 else: hourlyWage = 0.00 if self.debug == True: print str(round(hourlyWage,2)) return str(round(hourlyWage,2))
def calcHourlyWage(self, monthlyWage):
47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3d5e993c3e/svcpointxml_406_writer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 13433, 715, 59, 410, 12, 2890, 16, 31114, 59, 410, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 13433, 715, 59, 410, 12, 2890, 16, 31114, 59, 410, 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 ]
raise ValueError, "don't expect %s here inside list, expect 'dd' or 'dt'" % repr(tagname)
raise ValueError, "don't expect %s here inside list, expect 'dd' or 'dt'" % \ repr(tagname)
def compile_dl(self, attdict, content, extra, program): # by transformation #print "compile", tagname, attdict atts = attdict.copy() # by transformation #print "compile", tagname, attdict atts = attdict.copy() bulletmaker = bulletMaker("dl", atts, self.context) # now do each element as a separate paragraph import types contentcopy = list(content) # copy for destruction bullet = "" while contentcopy: e = contentcopy[0] del contentcopy[0] te = type(e) if te is types.StringType: if e.strip(): #string.strip(e): raise ValueError, "don't expect CDATA between list elements" elif not contentcopy: break # done at ending whitespace else: continue # ignore intermediate whitespace elif te is types.TupleType: (tagname, attdict1, content1, extra) = e if tagname!="dd" and tagname!="dt": raise ValueError, "don't expect %s here inside list, expect 'dd' or 'dt'" % repr(tagname) if tagname=="dt": if bullet: raise ValueError, "dt will not be displayed unless followed by a dd: "+repr(bullet) if content1: if len(content1)!=1: raise ValueError, "only simple strings supported in dd content currently: "+repr(content1) bullet = content1[0] if type(bullet) is not types.StringType: raise ValueError, "only simple strings supported in dd content currently: "+repr(content1) elif tagname=="dd": newatts = atts.copy() if attdict1: newatts.update(attdict1) bulletmaker.makeBullet(newatts, bl=bullet) self.compile_para(newatts, content1, extra, program) bullet = "" # don't use this bullet again if bullet: raise ValueError, "dt will not be displayed unless followed by a dd"+repr(bullet)
041e2d265f4d145658b08edc02ff501d425029d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/041e2d265f4d145658b08edc02ff501d425029d6/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 5761, 12, 2890, 16, 2403, 1576, 16, 913, 16, 2870, 16, 5402, 4672, 468, 635, 8620, 468, 1188, 315, 11100, 3113, 25586, 16, 2403, 1576, 15687, 273, 2403, 1576, 18, 3530, 1435, 468, 635, 8620, 468, 1188, 315, 11100, 3113, 25586, 16, 2403, 1576, 15687, 273, 2403, 1576, 18, 3530, 1435, 31650, 29261, 273, 31650, 12373, 2932, 5761, 3113, 15687, 16, 365, 18, 2472, 13, 468, 2037, 741, 1517, 930, 487, 279, 9004, 10190, 1930, 1953, 913, 3530, 273, 666, 12, 1745, 13, 468, 1610, 364, 2832, 313, 4062, 31650, 273, 1408, 1323, 913, 3530, 30, 425, 273, 913, 3530, 63, 20, 65, 1464, 913, 3530, 63, 20, 65, 6489, 273, 618, 12, 73, 13, 309, 6489, 353, 1953, 18, 780, 559, 30, 309, 425, 18, 6406, 13332, 468, 1080, 18, 6406, 12, 73, 4672, 1002, 2068, 16, 315, 19752, 1404, 4489, 28294, 3086, 666, 2186, 6, 1327, 486, 913, 3530, 30, 898, 468, 2731, 622, 11463, 7983, 469, 30, 1324, 468, 2305, 12110, 7983, 1327, 6489, 353, 1953, 18, 9038, 559, 30, 261, 2692, 529, 16, 2403, 1576, 21, 16, 913, 21, 16, 2870, 13, 273, 425, 309, 25586, 5, 1546, 449, 6, 471, 25586, 5, 1546, 7510, 6877, 1002, 2068, 16, 315, 19752, 1404, 4489, 738, 87, 2674, 4832, 666, 16, 4489, 296, 449, 11, 578, 296, 7510, 4970, 738, 521, 8480, 12, 2692, 529, 13, 309, 25586, 31713, 7510, 6877, 309, 31650, 30, 1002, 2068, 16, 315, 7510, 903, 486, 506, 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, 4074, 67, 5761, 12, 2890, 16, 2403, 1576, 16, 913, 16, 2870, 16, 5402, 4672, 468, 635, 8620, 468, 1188, 315, 11100, 3113, 25586, 16, 2403, 1576, 15687, 273, 2403, 1576, 18, 3530, 1435, 468, 635, 8620, 468, 1188, 315, 11100, 3113, 25586, 16, 2403, 1576, 15687, 273, 2403, 1576, 18, 3530, 1435, 31650, 29261, 273, 31650, 12373, 2932, 5761, 3113, 15687, 16, 365, 18, 2472, 13, 468, 2037, 741, 1517, 930, 487, 279, 9004, 10190, 1930, 1953, 913, 3530, 273, 666, 12, 1745, 13, 468, 1610, 364, 2832, 313, 4062, 31650, 273, 1408, 1323, 913, 3530, 30, 425, 273, 913, 3530, 63, 20, 65, 1464, 913, 3530, 63, 20, 65, 6489, 273, 618, 12, 73, 13, 309, 2 ]
def assertRaisesMessage(self, exception, callable, message, *args, **kwargs):
_nocheck = "don't compare exception values (the exception is enough)" def assertRaisesMessage(self, exception, callable, message, *args, **kwargs):
def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): try: callable(*args, **kwargs) except exception, msg: self.assertEqual(str(msg), message) else: if hasattr(excClass,'__name__'): excName = excClass.__name__ else: excName = str(excClass) raise self.failureException, excName
1ea88748963503c94615f53ae26300832b1b51e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1ea88748963503c94615f53ae26300832b1b51e1/test_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 389, 2135, 1893, 273, 315, 19752, 1404, 3400, 1520, 924, 261, 5787, 1520, 353, 7304, 2225, 1652, 1815, 12649, 6141, 1079, 12, 2890, 16, 1520, 16, 4140, 16, 883, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 4140, 30857, 1968, 16, 2826, 4333, 13, 1335, 1520, 16, 1234, 30, 365, 18, 11231, 5812, 12, 701, 12, 3576, 3631, 883, 13, 469, 30, 309, 3859, 12, 10075, 797, 11189, 972, 529, 7250, 4672, 3533, 461, 273, 3533, 797, 16186, 529, 972, 469, 30, 3533, 461, 273, 609, 12, 10075, 797, 13, 1002, 365, 18, 12251, 503, 16, 3533, 461, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 389, 2135, 1893, 273, 315, 19752, 1404, 3400, 1520, 924, 261, 5787, 1520, 353, 7304, 2225, 1652, 1815, 12649, 6141, 1079, 12, 2890, 16, 1520, 16, 4140, 16, 883, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 4140, 30857, 1968, 16, 2826, 4333, 13, 1335, 1520, 16, 1234, 30, 365, 18, 11231, 5812, 12, 701, 12, 3576, 3631, 883, 13, 469, 30, 309, 3859, 12, 10075, 797, 11189, 972, 529, 7250, 4672, 3533, 461, 273, 3533, 797, 16186, 529, 972, 469, 30, 3533, 461, 273, 609, 12, 10075, 797, 13, 1002, 365, 18, 12251, 503, 16, 3533, 461, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def trace_tabulate_jet( self , d , e , order , xs ): myshape = self.domain_shape() xs_dim = map( shapes.pt_maps[ myshape ][ d ]( e ) , xs ) return [ self.select_vector_component( i ).tabulate_jet( order , \ xs_dim ) \
def trace_tabulate_jet( self , d , e , order , xs ): myshape = self.domain_shape() xs_dim = map( shapes.pt_maps[ myshape ][ d ]( e ) , xs ) return [ self.select_vector_component( i ).tabulate_jet( order , \ xs_dim ) \
def trace_tabulate_jet( self , d , e , order , xs ): myshape = self.domain_shape() xs_dim = map( shapes.pt_maps[ myshape ][ d ]( e ) , xs ) return [ self.select_vector_component( i ).tabulate_jet( order , \ xs_dim ) \ for i in range(self.tensor_shape()[0]) ]
286669aaa36faacaf1137f9d65d51b5e298282d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/625/286669aaa36faacaf1137f9d65d51b5e298282d7/polynomial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 7032, 6243, 67, 78, 278, 12, 365, 269, 302, 269, 425, 269, 1353, 269, 9280, 262, 30, 3399, 4867, 273, 365, 18, 4308, 67, 4867, 1435, 9280, 67, 3509, 273, 852, 12, 14736, 18, 337, 67, 10711, 63, 3399, 4867, 308, 63, 302, 308, 12, 425, 262, 269, 9280, 262, 327, 306, 365, 18, 4025, 67, 7737, 67, 4652, 12, 277, 262, 18, 7032, 6243, 67, 78, 278, 12, 1353, 269, 521, 9280, 67, 3509, 262, 521, 364, 277, 316, 1048, 12, 2890, 18, 13720, 67, 4867, 1435, 63, 20, 5717, 308, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 7032, 6243, 67, 78, 278, 12, 365, 269, 302, 269, 425, 269, 1353, 269, 9280, 262, 30, 3399, 4867, 273, 365, 18, 4308, 67, 4867, 1435, 9280, 67, 3509, 273, 852, 12, 14736, 18, 337, 67, 10711, 63, 3399, 4867, 308, 63, 302, 308, 12, 425, 262, 269, 9280, 262, 327, 306, 365, 18, 4025, 67, 7737, 67, 4652, 12, 277, 262, 18, 7032, 6243, 67, 78, 278, 12, 1353, 269, 521, 9280, 67, 3509, 262, 521, 364, 277, 316, 1048, 12, 2890, 18, 13720, 67, 4867, 1435, 63, 20, 5717, 308, 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 ]
self.__left, self__operator, self.__right = 1, '=', 1
self.__left, self.__operator, self.__right = 1, '=', 1
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + _rec_get(ids2, table, parent)
2d0c91fb693fae1f6a0b7cf3371ef4af30c0a0bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/2d0c91fb693fae1f6a0b7cf3371ef4af30c0a0bf/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819, 33, 2472, 13, 327, 3258, 397, 389, 3927, 67, 588, 12, 2232, 22, 16, 1014, 16, 982, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819, 33, 2472, 13, 327, 3258, 397, 389, 3927, 67, 588, 12, 2232, 22, 16, 1014, 16, 982, 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 ]
return Type('nsTArray', T=basetype, const=const, ref=ref)
return Type('InfallibleTArray', T=basetype, const=const, ref=ref)
def _cxxArrayType(basetype, const=0, ref=0): return Type('nsTArray', T=basetype, const=const, ref=ref)
e747c228863b7cd4617e39132277a04718fae2d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/e747c228863b7cd4617e39132277a04718fae2d4/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 71, 5279, 27182, 12, 70, 2759, 388, 16, 1866, 33, 20, 16, 1278, 33, 20, 4672, 327, 1412, 2668, 13149, 454, 1523, 56, 1076, 2187, 399, 33, 70, 2759, 388, 16, 1866, 33, 10248, 16, 1278, 33, 1734, 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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, 399, 33, 70, 2759, 388, 16, 1866, 33, 10248, 16, 1278, 33, 1734, 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, -100, -100, -100, -100, -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 the generators for this ideal, which are the same as the ZZ-basis for this ideal.
Return the generators for this ideal, which are the same as the `\\ZZ`-basis for this ideal.
def gens(self): """ Return the generators for this ideal, which are the same as the ZZ-basis for this ideal.
1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 773, 12, 2890, 4672, 3536, 2000, 326, 13327, 364, 333, 23349, 16, 1492, 854, 326, 1967, 487, 326, 2285, 62, 17, 23774, 364, 333, 23349, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 773, 12, 2890, 4672, 3536, 2000, 326, 13327, 364, 333, 23349, 16, 1492, 854, 326, 1967, 487, 326, 2285, 62, 17, 23774, 364, 333, 23349, 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 ]
os.path.isdir(gitfile):
".log" in gitfile or os.path.isdir(gitfile):
def main(): """Main function of this module.""" source_files = [] kconfig_files = [] defined_features = set() referenced_features = dict() # use 'git ls-files' to get the worklist pop = Popen("git ls-files", stdout=PIPE, stderr=STDOUT, shell=True) (stdout, _) = pop.communicate() # wait until finished if len(stdout) > 0 and stdout[-1] == "\n": stdout = stdout[:-1] for gitfile in stdout.rsplit("\n"): if ".git" in gitfile or "ChangeLog" in gitfile or \ os.path.isdir(gitfile): continue if REGEX_FILE_KCONFIG.match(gitfile): kconfig_files.append(gitfile) else: # All non-Kconfig files are checked for consistency source_files.append(gitfile) for sfile in source_files: parse_source_file(sfile, referenced_features) for kfile in kconfig_files: parse_kconfig_file(kfile, defined_features, referenced_features) print "Undefined symbol used\tFile list" for feature in sorted(referenced_features): if feature not in defined_features: if feature.endswith("_MODULE"): # Avoid false positives for kernel modules if feature[:-len("_MODULE")] in defined_features: continue if "FOO" in feature or "BAR" in feature: continue files = referenced_features.get(feature) print "%s:\t%s" % (feature, ", ".join(files))
45791c1b30b99d17c6fd40cda4a765a3d3133559 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/45791c1b30b99d17c6fd40cda4a765a3d3133559/checkkconfigsymbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 445, 434, 333, 1605, 12123, 1084, 67, 2354, 273, 5378, 417, 1425, 67, 2354, 273, 5378, 2553, 67, 7139, 273, 444, 1435, 8042, 67, 7139, 273, 2065, 1435, 225, 468, 999, 296, 6845, 7180, 17, 2354, 11, 358, 336, 326, 1440, 1098, 1843, 273, 14339, 2932, 6845, 7180, 17, 2354, 3113, 3909, 33, 27602, 16, 4514, 33, 882, 16864, 16, 5972, 33, 5510, 13, 261, 10283, 16, 389, 13, 273, 1843, 18, 5702, 318, 2659, 1435, 225, 468, 2529, 3180, 6708, 309, 562, 12, 10283, 13, 405, 374, 471, 3909, 18919, 21, 65, 422, 1548, 82, 6877, 3909, 273, 3909, 10531, 17, 21, 65, 225, 364, 5071, 768, 316, 3909, 18, 86, 4939, 31458, 82, 6, 4672, 309, 3552, 6845, 6, 316, 5071, 768, 578, 315, 3043, 1343, 6, 316, 5071, 768, 578, 521, 3552, 1330, 6, 316, 5071, 768, 578, 1140, 18, 803, 18, 291, 1214, 12, 6845, 768, 4672, 1324, 309, 25941, 67, 3776, 67, 47, 7203, 18, 1916, 12, 6845, 768, 4672, 417, 1425, 67, 2354, 18, 6923, 12, 6845, 768, 13, 469, 30, 468, 4826, 1661, 17, 47, 1425, 1390, 854, 5950, 364, 14297, 1084, 67, 2354, 18, 6923, 12, 6845, 768, 13, 225, 364, 272, 768, 316, 1084, 67, 2354, 30, 1109, 67, 3168, 67, 768, 12, 87, 768, 16, 8042, 67, 7139, 13, 225, 364, 417, 768, 316, 417, 1425, 67, 2354, 30, 1109, 67, 79, 1425, 67, 768, 12, 79, 768, 16, 2553, 67, 7139, 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, 2774, 13332, 3536, 6376, 445, 434, 333, 1605, 12123, 1084, 67, 2354, 273, 5378, 417, 1425, 67, 2354, 273, 5378, 2553, 67, 7139, 273, 444, 1435, 8042, 67, 7139, 273, 2065, 1435, 225, 468, 999, 296, 6845, 7180, 17, 2354, 11, 358, 336, 326, 1440, 1098, 1843, 273, 14339, 2932, 6845, 7180, 17, 2354, 3113, 3909, 33, 27602, 16, 4514, 33, 882, 16864, 16, 5972, 33, 5510, 13, 261, 10283, 16, 389, 13, 273, 1843, 18, 5702, 318, 2659, 1435, 225, 468, 2529, 3180, 6708, 309, 562, 12, 10283, 13, 405, 374, 471, 3909, 18919, 21, 65, 422, 1548, 82, 6877, 3909, 273, 3909, 10531, 17, 21, 65, 225, 364, 5071, 768, 316, 3909, 18, 86, 4939, 31458, 2 ]
" --gps-start-time "+str(start)+\ " --gps-end-time "+str(end)+\
" --gps-start-time "+str(int(start))+\ " --gps-end-time "+str(int(end))+\
def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gps-start-time "+str(start)+\ " --gps-end-time "+str(end)+\ ''' | ligolw_print -t segment -c start_time -c end_time --delimiter " "''' #== run segment query segs = GetCommandOutput(segment_cmd) #== construct segments as structure seglist=[] segs=segs.split('\n') for seg in segs: if seg=='': continue try: [seg_start,seg_end]=seg.split(' ') seglist.append(segment(int(seg_start),int(seg_end))) except: continue seglist = segmentlist([seglist]) return seglist
3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11086, 67, 12838, 12, 1937, 16, 409, 16, 6420, 4672, 3536, 2860, 279, 3267, 1098, 4191, 326, 5155, 4982, 1492, 326, 864, 2982, 1703, 2695, 316, 326, 864, 3879, 18, 3536, 225, 468, 631, 4872, 3267, 843, 3267, 67, 4172, 273, 315, 80, 360, 355, 91, 67, 9273, 67, 2271, 1493, 2271, 17, 12838, 6, 16971, 315, 1493, 9273, 67, 718, 2333, 2207, 5680, 1966, 18, 80, 17626, 18, 771, 28012, 18, 28049, 6, 16971, 315, 1493, 6702, 17, 12838, 13773, 6420, 16971, 315, 1493, 75, 1121, 17, 1937, 17, 957, 13773, 701, 12, 474, 12, 1937, 3719, 16971, 315, 1493, 75, 1121, 17, 409, 17, 957, 13773, 701, 12, 474, 12, 409, 3719, 16971, 9163, 571, 16917, 355, 91, 67, 1188, 300, 88, 3267, 300, 71, 787, 67, 957, 300, 71, 679, 67, 957, 1493, 15751, 315, 2491, 6309, 468, 631, 1086, 3267, 843, 23114, 273, 968, 2189, 1447, 12, 9273, 67, 4172, 13, 225, 468, 631, 4872, 5155, 487, 3695, 2291, 1098, 33, 8526, 23114, 33, 307, 564, 18, 4939, 2668, 64, 82, 6134, 364, 2291, 316, 23114, 30, 309, 2291, 18920, 4278, 225, 1324, 775, 30, 306, 5680, 67, 1937, 16, 5680, 67, 409, 65, 33, 5680, 18, 4939, 2668, 8624, 2291, 1098, 18, 6923, 12, 9273, 12, 474, 12, 5680, 67, 1937, 3631, 474, 12, 5680, 67, 409, 20349, 1335, 30, 225, 1324, 225, 2291, 1098, 273, 3267, 1098, 3816, 5680, 1098, 5717, 327, 2291, 1098, 225, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11086, 67, 12838, 12, 1937, 16, 409, 16, 6420, 4672, 3536, 2860, 279, 3267, 1098, 4191, 326, 5155, 4982, 1492, 326, 864, 2982, 1703, 2695, 316, 326, 864, 3879, 18, 3536, 225, 468, 631, 4872, 3267, 843, 3267, 67, 4172, 273, 315, 80, 360, 355, 91, 67, 9273, 67, 2271, 1493, 2271, 17, 12838, 6, 16971, 315, 1493, 9273, 67, 718, 2333, 2207, 5680, 1966, 18, 80, 17626, 18, 771, 28012, 18, 28049, 6, 16971, 315, 1493, 6702, 17, 12838, 13773, 6420, 16971, 315, 1493, 75, 1121, 17, 1937, 17, 957, 13773, 701, 12, 474, 12, 1937, 3719, 16971, 315, 1493, 75, 1121, 17, 409, 17, 957, 13773, 701, 12, 474, 12, 409, 3719, 16971, 9163, 571, 16917, 2 ]
if self.current.get_selection().count_selected_rows() > 1:
if self.current_selection.count_selected_rows() > 1:
def current_button_press(self, widget, event): self.volume_hide() if event.button == 3: self.set_menu_contextual_items_visible() self.mainmenu.popup(None, None, None, event.button, event.time) # Don't change the selection for a right-click. This # will allow the user to select multiple rows and then # right-click (instead of right-clicking and having # the current selection change to the current row) if self.current.get_selection().count_selected_rows() > 1: return True
8cbdded67d2cd4af1d043eab95abc449dd591f9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8cbdded67d2cd4af1d043eab95abc449dd591f9b/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 783, 67, 5391, 67, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 365, 18, 9491, 67, 11248, 1435, 309, 871, 18, 5391, 422, 890, 30, 365, 18, 542, 67, 5414, 67, 2472, 1462, 67, 3319, 67, 8613, 1435, 365, 18, 5254, 5414, 18, 16086, 12, 7036, 16, 599, 16, 599, 16, 871, 18, 5391, 16, 871, 18, 957, 13, 468, 7615, 1404, 2549, 326, 4421, 364, 279, 2145, 17, 7475, 18, 1220, 468, 903, 1699, 326, 729, 358, 2027, 3229, 2595, 471, 1508, 468, 2145, 17, 7475, 261, 8591, 684, 434, 2145, 17, 7475, 310, 471, 7999, 468, 326, 783, 4421, 2549, 358, 326, 783, 1027, 13, 309, 365, 18, 2972, 67, 10705, 18, 1883, 67, 8109, 67, 3870, 1435, 405, 404, 30, 327, 1053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 783, 67, 5391, 67, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 365, 18, 9491, 67, 11248, 1435, 309, 871, 18, 5391, 422, 890, 30, 365, 18, 542, 67, 5414, 67, 2472, 1462, 67, 3319, 67, 8613, 1435, 365, 18, 5254, 5414, 18, 16086, 12, 7036, 16, 599, 16, 599, 16, 871, 18, 5391, 16, 871, 18, 957, 13, 468, 7615, 1404, 2549, 326, 4421, 364, 279, 2145, 17, 7475, 18, 1220, 468, 903, 1699, 326, 729, 358, 2027, 3229, 2595, 471, 1508, 468, 2145, 17, 7475, 261, 8591, 684, 434, 2145, 17, 7475, 310, 471, 7999, 468, 326, 783, 4421, 2549, 358, 326, 783, 1027, 13, 309, 365, 18, 2972, 67, 10705, 18, 1883, 67, 8109, 67, 2 ]
a = os.path.join(cmds['basedir'] ,a)
a = os.path.join(cmds['outputdir'] ,a)
def parseArgs(args): """ Parse the command line args return a commands dict and directory. Sanity check all the things being passed in. """ cmds = {} cmds['quiet'] = 0 cmds['verbose'] = 0 cmds['excludes'] = [] cmds['baseurl'] = None cmds['groupfile'] = None cmds['sumtype'] = 'sha' cmds['noepoch'] = False cmds['pretty'] = 0
8d61af4de7289e56b302e753fc65b8f6c6e8e780 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/8d61af4de7289e56b302e753fc65b8f6c6e8e780/genpkgmetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2615, 12, 1968, 4672, 3536, 2884, 326, 1296, 980, 833, 327, 279, 4364, 2065, 471, 1867, 18, 23123, 866, 777, 326, 9198, 3832, 2275, 316, 18, 3536, 13446, 273, 2618, 13446, 3292, 20380, 3546, 273, 374, 13446, 3292, 11369, 3546, 273, 374, 13446, 3292, 338, 8993, 3546, 273, 5378, 13446, 3292, 1969, 718, 3546, 273, 599, 13446, 3292, 1655, 768, 3546, 273, 599, 13446, 3292, 1364, 723, 3546, 273, 296, 7819, 11, 13446, 3292, 2135, 12015, 3546, 273, 1083, 13446, 3292, 19073, 3546, 273, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2615, 12, 1968, 4672, 3536, 2884, 326, 1296, 980, 833, 327, 279, 4364, 2065, 471, 1867, 18, 23123, 866, 777, 326, 9198, 3832, 2275, 316, 18, 3536, 13446, 273, 2618, 13446, 3292, 20380, 3546, 273, 374, 13446, 3292, 11369, 3546, 273, 374, 13446, 3292, 338, 8993, 3546, 273, 5378, 13446, 3292, 1969, 718, 3546, 273, 599, 13446, 3292, 1655, 768, 3546, 273, 599, 13446, 3292, 1364, 723, 3546, 273, 296, 7819, 11, 13446, 3292, 2135, 12015, 3546, 273, 1083, 13446, 3292, 19073, 3546, 273, 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 ]
'SAGE Library Source Code',
'Sage Library Source Code',
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file).
ae2ebdf61ef0e4abf79e5e38de819254d5ad978b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/ae2ebdf61ef0e4abf79e5e38de819254d5ad978b/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 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 ]
sorted_edges_iterator=iter(sorted(self.edges(), cmp=lambda x,y: weight_function(x)-weight_function(y)))
sorted_edges_iterator=iter(sorted(self.edges(), cmp=cmp))
def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False.
c61ea2b1e2f04826b363d788e6f74366b6d120e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c61ea2b1e2f04826b363d788e6f74366b6d120e3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 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, 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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, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 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 ]
return objects
return super(ThirdPartyBalance, self).parse(cursor, user, report, objects, datas, context)
def _get_objects(self, cursor, user, ids, model, datas, context): party_obj = self.pool.get('relationship.party') move_line_obj = self.pool.get('account.move.line') company_obj = self.pool.get('company.company') company = company_obj.browse(cursor, user, datas['form']['company'], context=context) context['company'] = company context['digits'] = company.currency.digits context['fiscalyear'] = datas['form']['fiscalyear'] line_query = move_line_obj.query_get(cursor, user, context=context) if datas['form']['posted']: posted_clause = "and m.state = 'posted' " else: posted_clause = ""
a400e413c3c56f8c41becdd5169ebce9ff61f2f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/a400e413c3c56f8c41becdd5169ebce9ff61f2f6/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6911, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 938, 16, 5386, 16, 819, 4672, 18285, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 12873, 18, 21214, 6134, 3635, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8501, 18, 1369, 6134, 9395, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 16840, 18, 16840, 6134, 9395, 273, 9395, 67, 2603, 18, 25731, 12, 9216, 16, 729, 16, 5386, 3292, 687, 21712, 16840, 17337, 819, 33, 2472, 13, 819, 3292, 16840, 3546, 273, 9395, 819, 3292, 16649, 3546, 273, 9395, 18, 7095, 18, 16649, 819, 3292, 74, 291, 771, 6874, 3546, 273, 5386, 3292, 687, 21712, 74, 291, 771, 6874, 3546, 980, 67, 2271, 273, 3635, 67, 1369, 67, 2603, 18, 2271, 67, 588, 12, 9216, 16, 729, 16, 819, 33, 2472, 13, 309, 5386, 3292, 687, 21712, 2767, 329, 3546, 30, 23082, 67, 18128, 273, 315, 464, 312, 18, 2019, 273, 296, 2767, 329, 11, 315, 469, 30, 23082, 67, 18128, 273, 1408, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6911, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 938, 16, 5386, 16, 819, 4672, 18285, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 12873, 18, 21214, 6134, 3635, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8501, 18, 1369, 6134, 9395, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 16840, 18, 16840, 6134, 9395, 273, 9395, 67, 2603, 18, 25731, 12, 9216, 16, 729, 16, 5386, 3292, 687, 21712, 16840, 17337, 819, 33, 2472, 13, 819, 3292, 16840, 3546, 273, 9395, 819, 3292, 16649, 3546, 273, 9395, 18, 7095, 18, 16649, 819, 3292, 74, 291, 771, 6874, 3546, 273, 5386, 3292, 687, 21712, 74, 291, 771, 2 ]
if self.resource_type == "Texture": return ("client_buffer_id_", "kNoError", "GL_INVALID_OPERATION") return ("client_texture_id_", "kNoError", "GL_INVALID_OPERATION")
return ("kInvalidClientId", "kNoError", "GL_INVALID_VALUE")
def GetInvalidArg(self, offset, index): """returns an invalid value by index.""" if self.resource_type == "Texture": return ("client_buffer_id_", "kNoError", "GL_INVALID_OPERATION") return ("client_texture_id_", "kNoError", "GL_INVALID_OPERATION")
9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 6154, 392, 2057, 460, 635, 770, 12123, 309, 365, 18, 3146, 67, 723, 422, 315, 10967, 6877, 327, 7566, 2625, 67, 4106, 67, 350, 67, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 22040, 7923, 327, 7566, 2625, 67, 955, 594, 67, 350, 67, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 22040, 7923, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 6154, 392, 2057, 460, 635, 770, 12123, 309, 365, 18, 3146, 67, 723, 422, 315, 10967, 6877, 327, 7566, 2625, 67, 4106, 67, 350, 67, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 22040, 7923, 327, 7566, 2625, 67, 955, 594, 67, 350, 67, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 22040, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
If the variable name is unknown to the object, the variable is added.
If the attribute name is unknown to the object, the attribute is added.
def __setitem__(self, varName, newVal): ''' Change the values of one time series (through []). If the variable name is unknown to the object, the variable is added. Arguments: varName : variable name; string. values : an array of compatible size Retuns: self, the object (so operations can be chained). ''' #attribute names must be strings if not isinstance(varName, str): raise TypeError('Argument "varName" must be of type str.') #functions accepts arrays and floats if not isinstance(newVal, (ndarray, float, int)): raise TypeError('Argument "newVals" must be of either type ' + 'numpy.ndarray", "float" or "int".') #if self._numObs is undetermined; this array sets the number of array elements if self._numObs == None and isinstance(newVal, ndarray): self._numObs = newVal.shape[0] #arrays must all have the same number of rows if isinstance(newVal, ndarray) and \ not (self.numObs() == newVal.shape[0]): raise ValueError('Argument "newVals" must have same number ' + 'of rows as the existing variables.') #put data into dict self.dataDict[varName] = newVal
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 13722, 16, 20957, 4672, 9163, 7576, 326, 924, 434, 1245, 813, 4166, 261, 10064, 5378, 2934, 971, 326, 1566, 508, 353, 5917, 358, 326, 733, 16, 326, 1566, 353, 3096, 18, 225, 13599, 30, 13722, 294, 2190, 508, 31, 533, 18, 924, 225, 294, 392, 526, 434, 7318, 963, 225, 17100, 27595, 30, 365, 16, 326, 733, 261, 2048, 5295, 848, 506, 20269, 2934, 9163, 468, 4589, 1257, 1297, 506, 2064, 309, 486, 1549, 12, 1401, 461, 16, 609, 4672, 1002, 3580, 2668, 1379, 315, 1401, 461, 6, 1297, 506, 434, 618, 609, 1093, 13, 468, 10722, 8104, 5352, 471, 19172, 309, 486, 1549, 12, 2704, 3053, 16, 261, 25681, 16, 1431, 16, 509, 3719, 30, 1002, 3580, 2668, 1379, 315, 2704, 13169, 6, 1297, 506, 434, 3344, 618, 296, 397, 296, 15974, 18, 25681, 3113, 315, 5659, 6, 578, 315, 474, 12013, 13, 468, 430, 365, 6315, 2107, 27637, 353, 22927, 4443, 329, 31, 333, 526, 1678, 326, 1300, 434, 526, 2186, 309, 365, 6315, 2107, 27637, 422, 599, 471, 1549, 12, 2704, 3053, 16, 8304, 4672, 365, 6315, 2107, 27637, 273, 20957, 18, 4867, 63, 20, 65, 468, 16223, 1297, 777, 1240, 326, 1967, 1300, 434, 2595, 309, 1549, 12, 2704, 3053, 16, 8304, 13, 471, 521, 486, 261, 2890, 18, 2107, 27637, 1435, 422, 20957, 18, 4867, 63, 20, 65, 4672, 1002, 2068, 2668, 1379, 315, 2704, 13169, 6, 1297, 1240, 1967, 1300, 296, 397, 296, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 13722, 16, 20957, 4672, 9163, 7576, 326, 924, 434, 1245, 813, 4166, 261, 10064, 5378, 2934, 971, 326, 1566, 508, 353, 5917, 358, 326, 733, 16, 326, 1566, 353, 3096, 18, 225, 13599, 30, 13722, 294, 2190, 508, 31, 533, 18, 924, 225, 294, 392, 526, 434, 7318, 963, 225, 17100, 27595, 30, 365, 16, 326, 733, 261, 2048, 5295, 848, 506, 20269, 2934, 9163, 468, 4589, 1257, 1297, 506, 2064, 309, 486, 1549, 12, 1401, 461, 16, 609, 4672, 1002, 3580, 2668, 1379, 315, 1401, 461, 6, 1297, 506, 434, 618, 609, 1093, 13, 468, 10722, 8104, 5352, 471, 19172, 309, 486, 1549, 12, 2704, 3053, 16, 261, 25681, 16, 2 ]
if width >= 0 or width == None:
if width is None or width >= 0:
def setup(**geometry): """ Sets the size and position of the main window. Keywords are width, height, startx and starty: width: either a size in pixels or a fraction of the screen. Default is 50% of screen. height: either the height in pixels or a fraction of the screen. Default is 75% of screen. Setting either width or height to None before drawing will force use of default geometry as in older versions of turtle.py startx: starting position in pixels from the left edge of the screen. Default is to center window. Setting startx to None is the default and centers window horizontally on screen. starty: starting position in pixels from the top edge of the screen. Default is to center window. Setting starty to None is the default and centers window vertically on screen. Examples: >>> setup (width=200, height=200, startx=0, starty=0) sets window to 200x200 pixels, in upper left of screen >>> setup(width=.75, height=0.5, startx=None, starty=None) sets window to 75% of screen by 50% of screen and centers >>> setup(width=None) forces use of default geometry as in older versions of turtle.py """ global _width, _height, _startx, _starty width = geometry.get('width',_width) if width >= 0 or width == None: _width = width else: raise ValueError("width can not be less than 0") height = geometry.get('height',_height) if height >= 0 or height == None: _height = height else: raise ValueError("height can not be less than 0") startx = geometry.get('startx', _startx) if startx >= 0 or startx == None: _startx = _startx else: raise ValueError("startx can not be less than 0") starty = geometry.get('starty', _starty) if starty >= 0 or starty == None: _starty = starty else: raise ValueError("startx can not be less than 0") if _root and _width and _height: if 0 < _width <= 1: _width = _root.winfo_screenwidth() * +width if 0 < _height <= 1: _height = _root.winfo_screenheight() * _height # center window on screen if _startx is None: _startx = (_root.winfo_screenwidth() - _width) / 2 if _starty is None: _starty = (_root.winfo_screenheight() - _height) / 2 _root.geometry("%dx%d+%d+%d" % (_width, _height, _startx, _starty))
2f073a68aebfe15f6967ebba4d6d0ba59563fea6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/2f073a68aebfe15f6967ebba4d6d0ba59563fea6/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 636, 14330, 4672, 3536, 11511, 326, 963, 471, 1754, 434, 326, 2774, 2742, 18, 225, 1929, 3753, 854, 1835, 16, 2072, 16, 787, 92, 471, 787, 93, 30, 225, 1835, 30, 3344, 279, 963, 316, 8948, 578, 279, 8330, 434, 326, 5518, 18, 2989, 353, 6437, 9, 434, 5518, 18, 2072, 30, 3344, 326, 2072, 316, 8948, 578, 279, 8330, 434, 326, 5518, 18, 2989, 353, 18821, 9, 434, 5518, 18, 225, 13274, 3344, 1835, 578, 2072, 358, 599, 1865, 16327, 903, 2944, 999, 434, 805, 5316, 487, 316, 12156, 5244, 434, 268, 295, 5929, 18, 2074, 225, 787, 92, 30, 5023, 1754, 316, 8948, 628, 326, 2002, 3591, 434, 326, 5518, 18, 2989, 353, 358, 4617, 2742, 18, 13274, 787, 92, 358, 599, 353, 326, 805, 471, 17723, 2742, 366, 6157, 1230, 603, 5518, 18, 225, 787, 93, 30, 5023, 1754, 316, 8948, 628, 326, 1760, 3591, 434, 326, 5518, 18, 2989, 353, 358, 4617, 2742, 18, 13274, 787, 93, 358, 599, 353, 326, 805, 471, 17723, 2742, 3173, 6478, 603, 5518, 18, 225, 19830, 30, 4080, 3875, 261, 2819, 33, 6976, 16, 2072, 33, 6976, 16, 787, 92, 33, 20, 16, 787, 93, 33, 20, 13, 225, 1678, 2742, 358, 4044, 92, 6976, 8948, 16, 316, 3854, 2002, 434, 5518, 225, 4080, 3875, 12, 2819, 33, 18, 5877, 16, 2072, 33, 20, 18, 25, 16, 787, 92, 33, 7036, 16, 787, 93, 33, 7036, 13, 225, 1678, 2742, 358, 18821, 9, 434, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 636, 14330, 4672, 3536, 11511, 326, 963, 471, 1754, 434, 326, 2774, 2742, 18, 225, 1929, 3753, 854, 1835, 16, 2072, 16, 787, 92, 471, 787, 93, 30, 225, 1835, 30, 3344, 279, 963, 316, 8948, 578, 279, 8330, 434, 326, 5518, 18, 2989, 353, 6437, 9, 434, 5518, 18, 2072, 30, 3344, 326, 2072, 316, 8948, 578, 279, 8330, 434, 326, 5518, 18, 2989, 353, 18821, 9, 434, 5518, 18, 225, 13274, 3344, 1835, 578, 2072, 358, 599, 1865, 16327, 903, 2944, 999, 434, 805, 5316, 487, 316, 12156, 5244, 434, 268, 295, 5929, 18, 2074, 225, 787, 92, 30, 5023, 1754, 316, 8948, 628, 326, 2002, 3591, 434, 326, 5518, 18, 2989, 353, 358, 2 ]
raise DocImportError(path, sys.exc_type, sys.exc_value)
raise DocImportError(path, sys.exc_info())
def importfile(path): """Import a Python source file or compiled file given its path.""" magic = imp.get_magic() file = open(path, 'r') if file.read(len(magic)) == magic: kind = imp.PY_COMPILED else: kind = imp.PY_SOURCE file.close() filename = os.path.basename(path) name, ext = os.path.splitext(filename) file = open(path, 'r') try: module = imp.load_module(name, file, path, (ext, 'r', kind)) except: raise DocImportError(path, sys.exc_type, sys.exc_value) file.close() return module
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 768, 12, 803, 4672, 3536, 5010, 279, 6600, 1084, 585, 578, 7743, 585, 864, 2097, 589, 12123, 8146, 273, 1646, 18, 588, 67, 11179, 1435, 585, 273, 1696, 12, 803, 16, 296, 86, 6134, 309, 585, 18, 896, 12, 1897, 12, 11179, 3719, 422, 8146, 30, 3846, 273, 1646, 18, 16235, 67, 31075, 6687, 469, 30, 3846, 273, 1646, 18, 16235, 67, 6537, 585, 18, 4412, 1435, 1544, 273, 1140, 18, 803, 18, 13909, 12, 803, 13, 508, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 3459, 13, 585, 273, 1696, 12, 803, 16, 296, 86, 6134, 775, 30, 1605, 273, 1646, 18, 945, 67, 2978, 12, 529, 16, 585, 16, 589, 16, 261, 408, 16, 296, 86, 2187, 3846, 3719, 1335, 30, 1002, 3521, 5010, 668, 12, 803, 16, 2589, 18, 10075, 67, 1376, 10756, 585, 18, 4412, 1435, 327, 1605, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 768, 12, 803, 4672, 3536, 5010, 279, 6600, 1084, 585, 578, 7743, 585, 864, 2097, 589, 12123, 8146, 273, 1646, 18, 588, 67, 11179, 1435, 585, 273, 1696, 12, 803, 16, 296, 86, 6134, 309, 585, 18, 896, 12, 1897, 12, 11179, 3719, 422, 8146, 30, 3846, 273, 1646, 18, 16235, 67, 31075, 6687, 469, 30, 3846, 273, 1646, 18, 16235, 67, 6537, 585, 18, 4412, 1435, 1544, 273, 1140, 18, 803, 18, 13909, 12, 803, 13, 508, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 3459, 13, 585, 273, 1696, 12, 803, 16, 296, 86, 6134, 775, 30, 1605, 273, 1646, 18, 945, 67, 2978, 12, 529, 16, 585, 16, 589, 16, 261, 408, 2 ]
**kwargs
**flup_kwargs
def to_int(opt_name): try: setattr(options, opt_name, int(getattr(options, opt_name))) except ValueError: parser.error('--%s value must be an integer' % opt_name.replace('_', '-'))
a8687d6f0f3479f043c3b0a485ef9d47e358566a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/a8687d6f0f3479f043c3b0a485ef9d47e358566a/apps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 474, 12, 3838, 67, 529, 4672, 775, 30, 9241, 12, 2116, 16, 2153, 67, 529, 16, 509, 12, 588, 1747, 12, 2116, 16, 2153, 67, 529, 20349, 1335, 2068, 30, 2082, 18, 1636, 2668, 413, 9, 87, 460, 1297, 506, 392, 3571, 11, 738, 2153, 67, 529, 18, 2079, 2668, 67, 2187, 4014, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 474, 12, 3838, 67, 529, 4672, 775, 30, 9241, 12, 2116, 16, 2153, 67, 529, 16, 509, 12, 588, 1747, 12, 2116, 16, 2153, 67, 529, 20349, 1335, 2068, 30, 2082, 18, 1636, 2668, 413, 9, 87, 460, 1297, 506, 392, 3571, 11, 738, 2153, 67, 529, 18, 2079, 2668, 67, 2187, 4014, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
at.params['md_virial'] = s / (HARTREE/(BOHR**3))
at.params['md_stress'] = at.virial/at.cell_volume() / (HARTREE/(BOHR**3))
def costfn(config_list, pot, wf=1.0, ws=0.5, we=0.1, bulk_mod=2000.0/294156.6447): s = fzeros((3,3)) normweight = sqrt(wf*wf + ws*ws + we*we) wf /= normweight ws /= normweight we /= normweight dist_f = 0.0; norm_f = 0.0 dist_e = 0.0; norm_e = 0.0 dist_s = 0.0; norm_s = 0.0 for ati, at in enumerate(config_list): pot.calc(at, virial=s, calc_force=True, calc_energy=True) at.params['md_energy'] = at.params['energy'] / HARTREE at.params['md_virial'] = s / (HARTREE/(BOHR**3)) at.md_force = at.force / (HARTREE/BOHR) for i in frange(at.n): for j in (1,2,3): dist_f += (at.md_force[j,i] - at.dft_force[j,i])**2.0 norm_f += at.dft_force[j,i]**2.0 for i in (1,2,3): for j in (1,2,3): dist_s += (at.md_virial[i,j] - at.dft_virial[i,j])**2.0 norm_s += bulk_mod**2.0 for i, ati in enumerate(config_list): for j, atj in enumerate(config_list): if j <= i: continue diff_md = ati.md_energy - atj.md_energy diff_ai = ati.dft_energy - atj.dft_energy norm_e += diff_ai**2.0 dist_e += (diff_md - diff_ai)**2.0 dist_f = sqrt(dist_f / norm_f) dist_s = sqrt(dist_s / norm_s) dist_e = sqrt(dist_e / norm_e) return config_list, (wf*dist_f + ws*dist_s + we*dist_e, dist_f, dist_s, dist_e)
c678eb69f4e3322139aeed2586b2b437a89e282f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/c678eb69f4e3322139aeed2586b2b437a89e282f/sio2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6991, 4293, 12, 1425, 67, 1098, 16, 5974, 16, 11578, 33, 21, 18, 20, 16, 4945, 33, 20, 18, 25, 16, 732, 33, 20, 18, 21, 16, 8280, 67, 1711, 33, 17172, 18, 20, 19, 5540, 24, 28946, 18, 1105, 9462, 4672, 225, 272, 273, 284, 22008, 12443, 23, 16, 23, 3719, 225, 4651, 4865, 273, 5700, 12, 15581, 14, 15581, 397, 4945, 14, 4749, 397, 732, 14, 1814, 13, 11578, 9531, 4651, 4865, 4945, 9531, 4651, 4865, 732, 9531, 4651, 4865, 225, 2411, 67, 74, 273, 374, 18, 20, 31, 4651, 67, 74, 273, 374, 18, 20, 2411, 67, 73, 273, 374, 18, 20, 31, 4651, 67, 73, 273, 374, 18, 20, 2411, 67, 87, 273, 374, 18, 20, 31, 4651, 67, 87, 273, 374, 18, 20, 225, 364, 622, 77, 16, 622, 316, 4241, 12, 1425, 67, 1098, 4672, 5974, 18, 12448, 12, 270, 16, 16831, 649, 33, 87, 16, 7029, 67, 5734, 33, 5510, 16, 7029, 67, 15358, 33, 5510, 13, 225, 622, 18, 2010, 3292, 1264, 67, 15358, 3546, 273, 622, 18, 2010, 3292, 15358, 3546, 342, 670, 4928, 9719, 622, 18, 2010, 3292, 1264, 67, 334, 663, 3546, 273, 622, 18, 25692, 649, 19, 270, 18, 3855, 67, 9491, 1435, 342, 261, 44, 4928, 9719, 19, 12, 5315, 15024, 636, 23, 3719, 622, 18, 1264, 67, 5734, 273, 622, 18, 5734, 342, 261, 44, 4928, 9719, 19, 5315, 15024, 13, 225, 364, 277, 316, 284, 3676, 12, 270, 18, 82, 4672, 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, 6991, 4293, 12, 1425, 67, 1098, 16, 5974, 16, 11578, 33, 21, 18, 20, 16, 4945, 33, 20, 18, 25, 16, 732, 33, 20, 18, 21, 16, 8280, 67, 1711, 33, 17172, 18, 20, 19, 5540, 24, 28946, 18, 1105, 9462, 4672, 225, 272, 273, 284, 22008, 12443, 23, 16, 23, 3719, 225, 4651, 4865, 273, 5700, 12, 15581, 14, 15581, 397, 4945, 14, 4749, 397, 732, 14, 1814, 13, 11578, 9531, 4651, 4865, 4945, 9531, 4651, 4865, 732, 9531, 4651, 4865, 225, 2411, 67, 74, 273, 374, 18, 20, 31, 4651, 67, 74, 273, 374, 18, 20, 2411, 67, 73, 273, 374, 18, 20, 31, 4651, 67, 73, 273, 374, 18, 20, 2411, 67, 87, 273, 374, 2 ]
a[i] = mean_value - a[i]
a[i] = mirror - a[i]
def run(args): run_mode = args.pop(0) assert run_mode in run_modes filename = args.pop(0) data = Gwyddion.dump.read(filename) dfield = data['/0/data'] a = dfield['data'] n = len(a) mean_value = (min(a) + max(a))/2.0 for i in range(n): a[i] = mean_value - a[i] Gwyddion.dump.write(data, filename)
2a985203d3906454fb40e78992e5a6a752fd3300 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/2a985203d3906454fb40e78992e5a6a752fd3300/invert_python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 4672, 1086, 67, 3188, 273, 833, 18, 5120, 12, 20, 13, 1815, 1086, 67, 3188, 316, 1086, 67, 19282, 225, 1544, 273, 833, 18, 5120, 12, 20, 13, 501, 273, 611, 91, 93, 449, 285, 18, 8481, 18, 896, 12, 3459, 13, 302, 1518, 273, 501, 3292, 19, 20, 19, 892, 3546, 279, 273, 302, 1518, 3292, 892, 3546, 225, 290, 273, 562, 12, 69, 13, 3722, 67, 1132, 273, 261, 1154, 12, 69, 13, 397, 943, 12, 69, 3719, 19, 22, 18, 20, 364, 277, 316, 1048, 12, 82, 4672, 279, 63, 77, 65, 273, 15593, 300, 279, 63, 77, 65, 611, 91, 93, 449, 285, 18, 8481, 18, 2626, 12, 892, 16, 1544, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 4672, 1086, 67, 3188, 273, 833, 18, 5120, 12, 20, 13, 1815, 1086, 67, 3188, 316, 1086, 67, 19282, 225, 1544, 273, 833, 18, 5120, 12, 20, 13, 501, 273, 611, 91, 93, 449, 285, 18, 8481, 18, 896, 12, 3459, 13, 302, 1518, 273, 501, 3292, 19, 20, 19, 892, 3546, 279, 273, 302, 1518, 3292, 892, 3546, 225, 290, 273, 562, 12, 69, 13, 3722, 67, 1132, 273, 261, 1154, 12, 69, 13, 397, 943, 12, 69, 3719, 19, 22, 18, 20, 364, 277, 316, 1048, 12, 82, 4672, 279, 63, 77, 65, 273, 15593, 300, 279, 63, 77, 65, 611, 91, 93, 449, 285, 18, 8481, 18, 2626, 12, 892, 16, 1544, 2 ]
convert_unicode = False
def __init__(self, config, griffith_dir, fallback=True): #mapper = Session.mapper self.config = config self.data_dir = griffith_dir
99f25dfdd3c0a9ef6970a2f3a8bb4c4ac4090c3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2687/99f25dfdd3c0a9ef6970a2f3a8bb4c4ac4090c3d/sql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 16, 3821, 3048, 483, 67, 1214, 16, 5922, 33, 5510, 4672, 468, 13919, 273, 3877, 18, 13919, 365, 18, 1425, 273, 642, 365, 18, 892, 67, 1214, 273, 3821, 3048, 483, 67, 1214, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
cherrypy.config.update('config.cfg') cherrypy.quickstart(Root(),'/')
InputThread().start() cherrypy.quickstart(Root(),'/','config.cfg')
def run(self): go = True while go: cmd = raw_input(">") if cmd=="exit": go = False cherrypy.engine.exit()
d90638052c766fb6e66e30cde88beb39e18c3e23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14104/d90638052c766fb6e66e30cde88beb39e18c3e23/webmines.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1960, 273, 1053, 1323, 1960, 30, 1797, 273, 1831, 67, 2630, 2932, 2984, 13, 309, 1797, 31713, 8593, 6877, 1960, 273, 1083, 462, 370, 28398, 18, 8944, 18, 8593, 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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2890, 4672, 1960, 273, 1053, 1323, 1960, 30, 1797, 273, 1831, 67, 2630, 2932, 2984, 13, 309, 1797, 31713, 8593, 6877, 1960, 273, 1083, 462, 370, 28398, 18, 8944, 18, 8593, 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 ]
send_email(from_addr, to_addr, content=body)
send_email(from_addr, to_addr, subject="Error notification", content=body)
def send_error_report_to_admin(header, url, time_msg, browser, client, error, sys_error, traceback_msg): """ Sends an email to the admin with client info and tracestack """ from_addr = '%s Alert Engine <%s>' % (cdsname, alertengineemail) to_addr = adminemail body = """
13ef718111c611660b8cb9b870d705447981ce16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/13ef718111c611660b8cb9b870d705447981ce16/errorlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 1636, 67, 6006, 67, 869, 67, 3666, 12, 3374, 16, 880, 16, 813, 67, 3576, 16, 4748, 16, 1004, 16, 555, 16, 2589, 67, 1636, 16, 10820, 67, 3576, 4672, 3536, 2479, 87, 392, 2699, 358, 326, 3981, 598, 1004, 1123, 471, 1284, 5710, 484, 3536, 628, 67, 4793, 273, 225, 1995, 87, 17913, 10507, 23930, 87, 1870, 738, 261, 71, 2377, 529, 16, 6881, 8944, 3652, 13, 358, 67, 4793, 273, 3981, 3652, 1417, 273, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 1636, 67, 6006, 67, 869, 67, 3666, 12, 3374, 16, 880, 16, 813, 67, 3576, 16, 4748, 16, 1004, 16, 555, 16, 2589, 67, 1636, 16, 10820, 67, 3576, 4672, 3536, 2479, 87, 392, 2699, 358, 326, 3981, 598, 1004, 1123, 471, 1284, 5710, 484, 3536, 628, 67, 4793, 273, 225, 1995, 87, 17913, 10507, 23930, 87, 1870, 738, 261, 71, 2377, 529, 16, 6881, 8944, 3652, 13, 358, 67, 4793, 273, 3981, 3652, 1417, 273, 3536, 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 ]
self.isTest = False
def __init__(self): """Initialises the State object that holds the state of the app. The default settings are read from Options.py and bayescustomize.ini and are then overridden by the command-line processing code in the __main__ code below.""" # Open the log file. if options.verbose: self.logFile = open('_pop3proxy.log', 'wb', 0)
38162d4d907fe3e4c5679f4e7231ffe1339613bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/38162d4d907fe3e4c5679f4e7231ffe1339613bd/proxytrainer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 4435, 6141, 326, 3287, 733, 716, 14798, 326, 919, 434, 326, 595, 18, 1021, 805, 1947, 854, 855, 628, 5087, 18, 2074, 471, 324, 528, 742, 1192, 554, 18, 8767, 471, 854, 1508, 11000, 635, 326, 1296, 17, 1369, 4929, 981, 316, 326, 1001, 5254, 972, 981, 5712, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3536, 4435, 6141, 326, 3287, 733, 716, 14798, 326, 919, 434, 326, 595, 18, 1021, 805, 1947, 854, 855, 628, 5087, 18, 2074, 471, 324, 528, 742, 1192, 554, 18, 8767, 471, 854, 1508, 11000, 635, 326, 1296, 17, 1369, 4929, 981, 316, 326, 1001, 5254, 972, 981, 5712, 12123, 468, 3502, 326, 613, 585, 18, 309, 702, 18, 11369, 30, 365, 18, 1330, 812, 273, 1696, 2668, 67, 5120, 23, 5656, 18, 1330, 2187, 296, 9464, 2187, 374, 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 ]
return (result, status_code, headers_result)
return (result, headers_set[0], headers_set[1])
def start_response(status, headers, exc_info=None): status_code = status headers_result = headers return output.append
34e9816e351f5148472fea5ab578aa460f755892 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/34e9816e351f5148472fea5ab578aa460f755892/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 1267, 67, 710, 273, 1267, 1607, 67, 2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 1267, 67, 710, 273, 1267, 1607, 67, 2088, 273, 1607, 327, 876, 18, 6923, 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 ]
return idaapi.make_ascii_string(ea, endea - ea, GetLongPrm(INF_STRTYPE))
return idaapi.make_ascii_string(ea, endea - ea, GetLongPrm(INF_STRTYPE))
def MakeStr(ea, endea): """ Create a string. This function creates a string (the string type is determined by the value of GetLongPrm(INF_STRTYPE)) @param ea: linear address @param endea: ending address of the string (excluded) if endea == BADADDR, then length of string will be calculated by the kernel @return: 1-ok, 0-failure @note: The type of an existing string is returned by GetStringType() """ return idaapi.make_ascii_string(ea, endea - ea, GetLongPrm(INF_STRTYPE))
f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 1585, 12, 24852, 16, 570, 323, 69, 4672, 3536, 1788, 279, 533, 18, 225, 1220, 445, 3414, 279, 533, 261, 5787, 533, 618, 353, 11383, 635, 326, 460, 434, 968, 3708, 2050, 81, 12, 19212, 67, 3902, 2399, 3719, 225, 632, 891, 24164, 30, 9103, 1758, 632, 891, 570, 323, 69, 30, 11463, 1758, 434, 326, 533, 261, 24602, 13, 309, 570, 323, 69, 422, 16467, 14142, 16, 1508, 769, 434, 533, 903, 506, 8894, 635, 326, 5536, 225, 632, 2463, 30, 404, 17, 601, 16, 374, 17, 12251, 225, 632, 7652, 30, 1021, 618, 434, 392, 2062, 533, 353, 2106, 635, 18921, 559, 1435, 3536, 327, 612, 69, 2425, 18, 6540, 67, 9184, 67, 1080, 12, 24852, 16, 570, 323, 69, 300, 24164, 16, 968, 3708, 2050, 81, 12, 19212, 67, 3902, 2399, 3719, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4344, 1585, 12, 24852, 16, 570, 323, 69, 4672, 3536, 1788, 279, 533, 18, 225, 1220, 445, 3414, 279, 533, 261, 5787, 533, 618, 353, 11383, 635, 326, 460, 434, 968, 3708, 2050, 81, 12, 19212, 67, 3902, 2399, 3719, 225, 632, 891, 24164, 30, 9103, 1758, 632, 891, 570, 323, 69, 30, 11463, 1758, 434, 326, 533, 261, 24602, 13, 309, 570, 323, 69, 422, 16467, 14142, 16, 1508, 769, 434, 533, 903, 506, 8894, 635, 326, 5536, 225, 632, 2463, 30, 404, 17, 601, 16, 374, 17, 12251, 225, 632, 7652, 30, 1021, 618, 434, 392, 2062, 533, 353, 2106, 635, 18921, 559, 1435, 3536, 327, 612, 69, 2425, 18, 6540, 67, 9184, 67, 1080, 12, 2 ]
self.__speed *= self.ship.speednerf
def handleAvatarControls(self, task): """ Check on the arrow keys and update the "avatar" (ship). """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%( base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar hpr = %s\n"%( base.localAvatar.getHpr().pPrintValues(),)) assert self.debugPrint("handleAvatarControls(task=%s)"%(task,)) physObject = self.actorNode.getPhysicsObject() contact = self.actorNode.getContactVector() # get the button states: forward = inputState.isSet("forward") reverse = inputState.isSet("reverse") turnLeft = inputState.isSet("slideLeft") or inputState.isSet("turnLeft") turnRight = inputState.isSet("slideRight") or inputState.isSet("turnRight") slide = inputState.isSet("slide") slideLeft = 0 slideRight = 0 jump = inputState.isSet("jump") # Determine what the speeds are based on the buttons: # Check for Auto-Sailing if self.ship.getIsAutoSailing(): forward = 1 reverse = 0 else: forward = 0 # How far did we move based on the amount of time elapsed? dt = ClockObject.getGlobalClock().getDt() if reverse: # Reverse kills Travel Speed totally self.straightHeading = 0 elif (self.__speed < (self.ship.acceleration + self.ship.speedboost) * self.ship.speednerf) and forward: # If not at MinSpeed, Accelerate regardless self.straightHeading += dt * 1.5 elif self.ship.threatCounter: # If ship is recently damaged, do not increase Travel Speed self.straightHeading = min(1.0 / self.MAX_STRAIGHT_SAIL_BONUS * self.STRAIGHT_SAIL_BONUS_TIME * self.ship.speednerf, self.straightHeading) elif turnLeft or turnRight or not forward: # Reset Straight Sailing Bonus self.straightHeading -= dt * self.TURNING_BONUS_REDUCTION else: # Add in the Straight Sailing Time self.straightHeading += dt self.straightHeading = max(0, min(self.STRAIGHT_SAIL_BONUS_TIME, self.straightHeading)) # Straight Sailing Acceleration Bonus straightSailBonus = 0.0 straightSailBonus = self.straightHeading / self.STRAIGHT_SAIL_BONUS_TIME straightSailBonus = min(self.MAX_STRAIGHT_SAIL_BONUS, straightSailBonus * self.MAX_STRAIGHT_SAIL_BONUS) self.__speed=(forward and self.ship.acceleration) or \ (reverse and -self.ship.reverseAcceleration) avatarSlideSpeed=self.ship.acceleration * 0.5 * straightSailBonus #self.__slideSpeed=slide and ( # (turnLeft and -avatarSlideSpeed) or # (turnRight and avatarSlideSpeed)) self.__slideSpeed=(forward or reverse) and ( (slideLeft and -avatarSlideSpeed) or (slideRight and avatarSlideSpeed)) self.__rotationSpeed=not slide and ( (turnLeft and self.ship.turnRate) or (turnRight and -self.ship.turnRate)) # Add in Straight Sailing Multiplier self.__speed *= straightSailBonus self.__speed += self.ship.speedboost self.__slideSpeed *= straightSailBonus maxSpeed = self.ship.maxSpeed self.__speed *= self.ship.speednerf # Enable debug turbo modec debugRunning = inputState.isSet("debugRunning") if(debugRunning): self.__speed*=base.debugRunningMultiplier self.__slideSpeed*=base.debugRunningMultiplier self.__rotationSpeed*=1.25 maxSpeed = self.ship.maxSpeed * base.debugRunningMultiplier #*# self.currentTurning += self.__rotationSpeed if self.currentTurning > self.ship.maxTurn: self.currentTurning = self.ship.maxTurn elif self.currentTurning < -self.ship.maxTurn: self.currentTurning = -self.ship.maxTurn if turnLeft or turnRight: mult = .9 elif forward or reverse: mult = .82 else: mult = .8 self.currentTurning *= mult if self.currentTurning < 0.001 and self.currentTurning > -0.001: self.currentTurning = 0.0 self.__rotationSpeed = self.currentTurning #print "########################" #print self.__speed #print self.ship.baseAcceleration #print self.ship.acceleration #print self.ship.speedboost #print straightSailBonus # Broadcast Event to Handlers (ShipStatusMeter) messenger.send("setShipSpeed-%s" % (self.ship.getDoId()), [self.__speed, self.getMaxSpeed()]) if self.wantDebugIndicator: self.displayDebugInfo() if self.needToDeltaPos: self.setPriorParentVector() self.needToDeltaPos = 0 #------------------------------ #debugTempH=self.shipNodePath.getH() if __debug__: q1=self.shipNodePath.getQuat() q2=physObject.getOrientation() q1.normalize() q2.normalize() assert q1.isSameDirection(q2) or (q1.getHpr() == q2.getHpr()) assert self.shipNodePath.getPos().almostEqual( physObject.getPosition(), 0.0001) #------------------------------
9aafee4e4afd1a297615b085bf344b65c9f76ce1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/9aafee4e4afd1a297615b085bf344b65c9f76ce1/ShipPilot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 315, 19660, 6, 261, 3261, 2934, 3536, 309, 1001, 4148, 972, 30, 309, 365, 18, 17369, 2829, 13140, 30, 603, 7956, 2829, 18, 6923, 2932, 3729, 23999, 949, 273, 738, 87, 64, 82, 6, 17105, 1026, 18, 3729, 23999, 18, 588, 1616, 7675, 84, 5108, 1972, 9334, 3719, 603, 7956, 2829, 18, 6923, 2932, 3729, 23999, 366, 683, 273, 738, 87, 64, 82, 6, 17105, 1026, 18, 3729, 23999, 18, 588, 44, 683, 7675, 84, 5108, 1972, 9334, 3719, 1815, 365, 18, 4148, 5108, 2932, 4110, 23999, 16795, 12, 4146, 5095, 87, 2225, 17105, 4146, 16, 3719, 24758, 921, 273, 365, 18, 3362, 907, 18, 588, 3731, 1900, 2102, 921, 1435, 5388, 273, 365, 18, 3362, 907, 18, 588, 6567, 5018, 1435, 468, 336, 326, 3568, 5493, 30, 5104, 273, 810, 1119, 18, 291, 694, 2932, 11565, 7923, 4219, 273, 810, 1119, 18, 291, 694, 2932, 9845, 7923, 7005, 3910, 273, 810, 1119, 18, 291, 694, 2932, 26371, 3910, 7923, 578, 810, 1119, 18, 291, 694, 2932, 20922, 3910, 7923, 7005, 4726, 273, 810, 1119, 18, 291, 694, 2932, 26371, 4726, 7923, 578, 810, 1119, 18, 291, 694, 2932, 20922, 4726, 7923, 12701, 273, 810, 1119, 18, 291, 694, 2932, 26371, 7923, 12701, 3910, 273, 374, 12701, 4726, 273, 374, 11833, 273, 810, 1119, 18, 291, 694, 2932, 24574, 7923, 468, 10229, 4121, 326, 8632, 87, 854, 2511, 603, 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, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 315, 19660, 6, 261, 3261, 2934, 3536, 309, 1001, 4148, 972, 30, 309, 365, 18, 17369, 2829, 13140, 30, 603, 7956, 2829, 18, 6923, 2932, 3729, 23999, 949, 273, 738, 87, 64, 82, 6, 17105, 1026, 18, 3729, 23999, 18, 588, 1616, 7675, 84, 5108, 1972, 9334, 3719, 603, 7956, 2829, 18, 6923, 2932, 3729, 23999, 366, 683, 273, 738, 87, 64, 82, 6, 17105, 1026, 18, 3729, 23999, 18, 588, 44, 683, 7675, 84, 5108, 1972, 9334, 3719, 1815, 365, 18, 4148, 5108, 2932, 4110, 23999, 16795, 12, 4146, 5095, 87, 2225, 17105, 4146, 16, 3719, 24758, 921, 273, 365, 2 ]
raise NotImplementedError
def c(i, j): return a[j].dx(i) - a[i].dx(j) return c(0,1)
def rot(self, o, a): raise NotImplementedError # FIXME
914cc5220dc787f77df0bda7c0900e1c78013234 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/914cc5220dc787f77df0bda7c0900e1c78013234/transformations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4168, 12, 2890, 16, 320, 16, 279, 4672, 225, 1652, 276, 12, 77, 16, 525, 4672, 327, 279, 63, 78, 8009, 13437, 12, 77, 13, 300, 279, 63, 77, 8009, 13437, 12, 78, 13, 327, 276, 12, 20, 16, 21, 13, 468, 9852, 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,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316, 326, 981, 30, 1652, 4168, 12, 2890, 16, 320, 16, 279, 4672, 225, 1652, 276, 12, 77, 16, 525, 4672, 327, 279, 63, 78, 8009, 13437, 12, 77, 13, 300, 279, 63, 77, 8009, 13437, 12, 78, 13, 327, 276, 12, 20, 16, 21, 13, 468, 9852, 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 ]
((not man) or delta-bitcount(man) > max_extra_prec):
((not man) or delta-bitcount(abs(man)) > max_extra_prec):
def mpf_sum(xs, prec=0, rnd=round_fast): """ Sum a list of mpf values efficiently and accurately (typically no temporary roundoff occurs). If prec=0, the final result will not be rounded either. There may be roundoff error or cancellation if extremely large exponent differences occur. """ man = 0 exp = 0 max_extra_prec = prec*2 or 1000000 # XXX special = None for x in xs: xsign, xman, xexp, xbc = x if xman: if xsign: xman = -xman delta = xexp - exp if xexp >= exp: # x much larger than existing sum? # first: quick test if (delta > max_extra_prec) and \ ((not man) or delta-bitcount(man) > max_extra_prec): man = xman exp = xexp else: man += (xman << delta) else: delta = -delta # x much smaller than existing sum? if delta-xbc > max_extra_prec: if not man: man, exp = xman, xexp else: man = (man << delta) + xman exp = xexp elif xexp: special = mpf_add(special or fzero, x, 1) # Will be inf or nan if special: return special return from_man_exp(man, exp, prec, rnd)
8fa5e97bfacea0aff85c9829fddb7f0632abfd01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11851/8fa5e97bfacea0aff85c9829fddb7f0632abfd01/libmpf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 74, 67, 1364, 12, 13713, 16, 13382, 33, 20, 16, 20391, 33, 2260, 67, 8076, 4672, 3536, 9352, 279, 666, 434, 6749, 74, 924, 14382, 715, 471, 19361, 5173, 261, 12846, 6478, 1158, 6269, 3643, 3674, 9938, 2934, 971, 13382, 33, 20, 16, 326, 727, 563, 903, 486, 506, 16729, 3344, 18, 225, 6149, 2026, 506, 3643, 3674, 555, 578, 7272, 309, 23755, 2357, 7876, 9100, 16440, 3334, 18, 3536, 3161, 273, 374, 1329, 273, 374, 943, 67, 7763, 67, 4036, 273, 13382, 14, 22, 578, 15088, 225, 468, 11329, 4582, 273, 599, 364, 619, 316, 9280, 30, 619, 2977, 16, 619, 4728, 16, 619, 2749, 16, 619, 13459, 273, 619, 309, 619, 4728, 30, 309, 619, 2977, 30, 619, 4728, 273, 300, 92, 4728, 3622, 273, 619, 2749, 300, 1329, 309, 619, 2749, 1545, 1329, 30, 468, 619, 9816, 10974, 2353, 2062, 2142, 35, 468, 1122, 30, 9549, 1842, 309, 261, 9878, 405, 943, 67, 7763, 67, 4036, 13, 471, 521, 14015, 902, 3161, 13, 578, 3622, 17, 3682, 1883, 12, 5113, 12, 4728, 3719, 405, 943, 67, 7763, 67, 4036, 4672, 3161, 273, 619, 4728, 1329, 273, 619, 2749, 469, 30, 3161, 1011, 261, 92, 4728, 2296, 3622, 13, 469, 30, 3622, 273, 300, 9878, 468, 619, 9816, 10648, 2353, 2062, 2142, 35, 309, 3622, 17, 6114, 71, 405, 943, 67, 7763, 67, 4036, 30, 309, 486, 3161, 30, 3161, 16, 1329, 273, 619, 4728, 16, 619, 2749, 469, 30, 3161, 273, 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, 6749, 74, 67, 1364, 12, 13713, 16, 13382, 33, 20, 16, 20391, 33, 2260, 67, 8076, 4672, 3536, 9352, 279, 666, 434, 6749, 74, 924, 14382, 715, 471, 19361, 5173, 261, 12846, 6478, 1158, 6269, 3643, 3674, 9938, 2934, 971, 13382, 33, 20, 16, 326, 727, 563, 903, 486, 506, 16729, 3344, 18, 225, 6149, 2026, 506, 3643, 3674, 555, 578, 7272, 309, 23755, 2357, 7876, 9100, 16440, 3334, 18, 3536, 3161, 273, 374, 1329, 273, 374, 943, 67, 7763, 67, 4036, 273, 13382, 14, 22, 578, 15088, 225, 468, 11329, 4582, 273, 599, 364, 619, 316, 9280, 30, 619, 2977, 16, 619, 4728, 16, 619, 2749, 16, 619, 13459, 273, 619, 309, 619, 4728, 30, 309, 619, 2 ]
else: return None return coverage_file
return True
def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage.
cb5ba75cf843f2c74de2f7116b0c7ad99b95596b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/cb5ba75cf843f2c74de2f7116b0c7ad99b95596b/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 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 ]
self.display.vprint(VERB_STD, \
display.vprint(VERB_STD, \
def ttyloop(task, nodeset, timeout, display): """Manage the interactive prompt to run command""" readline_avail = False if task.default("USER_interactive"): assert sys.stdin.isatty() try: import readline readline_setup() readline_avail = True except ImportError: pass self.display.vprint(VERB_STD, \ "Enter 'quit' to leave this interactive mode") rc = 0 ns = NodeSet(nodeset) ns_info = True cmd = "" while task.default("USER_running") or cmd.lower() != 'quit': try: if task.default("USER_interactive") and \ not task.default("USER_running"): if ns_info: self.display.vprint(VERB_QUIET, \ "Working with nodes: %s" % ns) ns_info = False prompt = "clush> " else: prompt = "" # Set SIGUSR1 handler if needed if task.default("USER_handle_SIGUSR1"): signal.signal(signal.SIGUSR1, signal_handler) try: cmd = raw_input(prompt) finally: signal.signal(signal.SIGUSR1, signal.SIG_IGN) except EOFError: print return except UpdatePromptException: if task.default("USER_interactive"): continue return except KeyboardInterrupt, kbe: if display.gather: # Suspend task, so we can safely access its data from # the main thread task.suspend() print_warn = False # Display command output, but cannot order buffers by rc nodesetify = lambda v: (v[0], NodeSet.fromlist(v[1])) for buf, nodeset in sorted(map(nodesetify, task.iter_buffers()), cmp=bufnodeset_cmp): if not print_warn: print_warn = True self.display.vprint_err(VERB_STD, \ "Warning: Caught keyboard interrupt!") display.print_gather(nodeset, buf) # Return code handling ns_ok = NodeSet() for rc, nodelist in task.iter_retcodes(): ns_ok.add(NodeSet.fromlist(nodelist)) if rc != 0: # Display return code if not ok ( != 0) ns = NodeSet.fromlist(nodelist) self.display.vprint_err(VERB_QUIET, \ "clush: %s: exited with exit code %s" % (ns, rc)) # Add uncompleted nodeset to exception object kbe.uncompleted_nodes = ns - ns_ok # Display nodes that didn't answer within command timeout delay if task.num_timeout() > 0: self.display.vprint_err(VERB_QUIET, \ "clush: %s: command timeout" % \ NodeSet.fromlist(task.iter_keys_timeout())) raise kbe if task.default("USER_running"): ns_reg, ns_unreg = NodeSet(), NodeSet() for c in task._engine.clients(): if c.registered: ns_reg.add(c.key) else: ns_unreg.add(c.key) if ns_unreg: pending = "\nclush: pending(%d): %s" % (len(ns_unreg), ns_unreg) else: pending = "" self.display.vprint_err(VERB_QUIET, "clush: interrupt (^C to " \ "abort task)\nclush: in progress(%d): %s%s" % (len(ns_reg), \ ns_reg, pending)) else: cmdl = cmd.lower() try: ns_info = True if cmdl.startswith('+'): ns.update(cmdl[1:]) elif cmdl.startswith('-'): ns.difference_update(cmdl[1:]) elif cmdl.startswith('@'): ns = NodeSet(cmdl[1:]) elif cmdl == '=': display.gather = not display.gather if display.gather: self.display.vprint(VERB_STD, \ "Switching to gathered output format") else: self.display.vprint(VERB_STD, \ "Switching to standard output format") ns_info = False continue elif not cmdl.startswith('?'): # if ?, just print ns_info ns_info = False except NodeSetParseError: self.display.vprint_err(VERB_QUIET, \ "clush: nodeset parse error (ignoring)") if ns_info: continue if cmdl.startswith('!') and len(cmd.strip()) > 0: run_command(task, cmd[1:], None, timeout, display) elif cmdl != "quit": if not cmd: continue if readline_avail: readline.write_history_file(get_history_file()) run_command(task, cmd, ns, timeout, display) return rc
40e717199e01e0d30a142905d4bb8e333c468cd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/40e717199e01e0d30a142905d4bb8e333c468cd4/Clush.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21520, 6498, 12, 4146, 16, 2199, 278, 16, 2021, 16, 2562, 4672, 3536, 21258, 326, 12625, 6866, 358, 1086, 1296, 8395, 12023, 67, 842, 671, 273, 1083, 309, 1562, 18, 1886, 2932, 4714, 67, 24761, 6, 4672, 1815, 2589, 18, 21772, 18, 291, 270, 4098, 1435, 775, 30, 1930, 12023, 12023, 67, 8401, 1435, 12023, 67, 842, 671, 273, 1053, 1335, 11308, 30, 1342, 2562, 18, 90, 1188, 12, 2204, 38, 67, 882, 40, 16, 521, 315, 10237, 296, 27176, 11, 358, 8851, 333, 12625, 1965, 7923, 225, 4519, 273, 374, 3153, 273, 2029, 694, 12, 4690, 278, 13, 3153, 67, 1376, 273, 1053, 1797, 273, 1408, 1323, 1562, 18, 1886, 2932, 4714, 67, 8704, 7923, 578, 1797, 18, 8167, 1435, 480, 296, 27176, 4278, 775, 30, 309, 1562, 18, 1886, 2932, 4714, 67, 24761, 7923, 471, 521, 486, 1562, 18, 1886, 2932, 4714, 67, 8704, 6, 4672, 309, 3153, 67, 1376, 30, 365, 18, 5417, 18, 90, 1188, 12, 2204, 38, 67, 8627, 1584, 16, 521, 315, 14836, 598, 2199, 30, 738, 87, 6, 738, 3153, 13, 3153, 67, 1376, 273, 1083, 6866, 273, 315, 830, 1218, 34, 315, 469, 30, 6866, 273, 1408, 468, 1000, 7004, 27984, 21, 1838, 309, 3577, 309, 1562, 18, 1886, 2932, 4714, 67, 4110, 67, 18513, 27984, 21, 6, 4672, 4277, 18, 10420, 12, 10420, 18, 18513, 27984, 21, 16, 4277, 67, 4176, 13, 775, 30, 1797, 273, 1831, 67, 2630, 12, 13325, 13, 3095, 30, 4277, 18, 10420, 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, 21520, 6498, 12, 4146, 16, 2199, 278, 16, 2021, 16, 2562, 4672, 3536, 21258, 326, 12625, 6866, 358, 1086, 1296, 8395, 12023, 67, 842, 671, 273, 1083, 309, 1562, 18, 1886, 2932, 4714, 67, 24761, 6, 4672, 1815, 2589, 18, 21772, 18, 291, 270, 4098, 1435, 775, 30, 1930, 12023, 12023, 67, 8401, 1435, 12023, 67, 842, 671, 273, 1053, 1335, 11308, 30, 1342, 2562, 18, 90, 1188, 12, 2204, 38, 67, 882, 40, 16, 521, 315, 10237, 296, 27176, 11, 358, 8851, 333, 12625, 1965, 7923, 225, 4519, 273, 374, 3153, 273, 2029, 694, 12, 4690, 278, 13, 3153, 67, 1376, 273, 1053, 1797, 273, 1408, 1323, 1562, 18, 1886, 2932, 4714, 67, 8704, 7923, 578, 1797, 2 ]
config = KConfig("ginkgo") ggroup = KConfigGroup(config, "general") size = ggroup.readEntry("size", QSize(800, 500)).toSize() self.resize(size) position = ggroup.readEntry("position", QPoint(200, 100)).toPoint() self.move(position) self.restoreState(ggroup.readEntry("state", QByteArray()).toByteArray()) self.descriptionSplitterState = ggroup.readEntry("description-splitter-state", QByteArray()).toByteArray() resourcesUris = ggroup.readEntry("active-resources", QStringList()).toStringList() for uri in resourcesUris: self.openResource(uri, True, True)
try: config = KConfig("ginkgo") ggroup = KConfigGroup(config, "general") size = ggroup.readEntry("size", QSize(800, 500)).toSize() self.resize(size) position = ggroup.readEntry("position", QPoint(200, 100)).toPoint() self.move(position) self.restoreState(ggroup.readEntry("state", QByteArray()).toByteArray()) self.descriptionSplitterState = ggroup.readEntry("description-splitter-state", QByteArray()).toByteArray() resourcesUris = ggroup.readEntry("active-resources", QStringList()).toStringList() for uri in resourcesUris: self.openResource(uri, True, True) except Exception, e: print "[Ginkgo] An error occurred while restoring the settings: '%s'." % str(e)
def restoreSettings(self): config = KConfig("ginkgo") ggroup = KConfigGroup(config, "general") size = ggroup.readEntry("size", QSize(800, 500)).toSize() self.resize(size) position = ggroup.readEntry("position", QPoint(200, 100)).toPoint() self.move(position) self.restoreState(ggroup.readEntry("state", QByteArray()).toByteArray()) self.descriptionSplitterState = ggroup.readEntry("description-splitter-state", QByteArray()).toByteArray() resourcesUris = ggroup.readEntry("active-resources", QStringList()).toStringList() for uri in resourcesUris: self.openResource(uri, True, True)
82391663fda7aa47d096acd3a0194e37c77c0457 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1729/82391663fda7aa47d096acd3a0194e37c77c0457/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 2628, 12, 2890, 4672, 775, 30, 642, 273, 1475, 809, 2932, 75, 754, 3240, 7923, 314, 1655, 273, 1475, 809, 1114, 12, 1425, 16, 315, 12259, 7923, 963, 273, 314, 1655, 18, 896, 1622, 2932, 1467, 3113, 2238, 1225, 12, 17374, 16, 6604, 13, 2934, 869, 1225, 1435, 365, 18, 15169, 12, 1467, 13, 225, 1754, 273, 314, 1655, 18, 896, 1622, 2932, 3276, 3113, 2238, 2148, 12, 6976, 16, 2130, 13, 2934, 869, 2148, 1435, 365, 18, 8501, 12, 3276, 13, 365, 18, 13991, 1119, 12, 75, 1655, 18, 896, 1622, 2932, 2019, 3113, 2238, 8826, 1435, 2934, 869, 8826, 10756, 225, 365, 18, 3384, 26738, 1119, 273, 314, 1655, 18, 896, 1622, 2932, 3384, 17, 4939, 387, 17, 2019, 3113, 2238, 8826, 1435, 2934, 869, 8826, 1435, 225, 2703, 23900, 273, 314, 1655, 18, 896, 1622, 2932, 3535, 17, 4683, 3113, 2238, 780, 682, 1435, 2934, 10492, 682, 1435, 364, 2003, 316, 2703, 23900, 30, 365, 18, 3190, 1420, 12, 1650, 16, 1053, 16, 1053, 13, 1335, 1185, 16, 425, 30, 1172, 5158, 43, 754, 3240, 65, 1922, 555, 7841, 1323, 3127, 6053, 326, 1947, 30, 1995, 87, 14550, 738, 609, 12, 73, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 2628, 12, 2890, 4672, 775, 30, 642, 273, 1475, 809, 2932, 75, 754, 3240, 7923, 314, 1655, 273, 1475, 809, 1114, 12, 1425, 16, 315, 12259, 7923, 963, 273, 314, 1655, 18, 896, 1622, 2932, 1467, 3113, 2238, 1225, 12, 17374, 16, 6604, 13, 2934, 869, 1225, 1435, 365, 18, 15169, 12, 1467, 13, 225, 1754, 273, 314, 1655, 18, 896, 1622, 2932, 3276, 3113, 2238, 2148, 12, 6976, 16, 2130, 13, 2934, 869, 2148, 1435, 365, 18, 8501, 12, 3276, 13, 365, 18, 13991, 1119, 12, 75, 1655, 18, 896, 1622, 2932, 2019, 3113, 2238, 8826, 1435, 2934, 869, 8826, 10756, 225, 365, 18, 3384, 26738, 1119, 273, 314, 1655, 18, 896, 1622, 2932, 3384, 17, 2 ]
if self.lastBuilding: filename = self.neighborhood + '_building_styles.txt' fname = Filename(self.styleManager.stylePathPrefix + '/alpha/DIRECT/LevelEditor/StyleFiles/' + filename) f = open(fname.toOsSpecific(), 'a') f.write('\n') style = DNAFlatBuildingStyle(building = self.lastBuilding) style.output(f) f.close()
dnaObject = self.selectedDNARoot if dnaObject: if DNAClassEqual(dnaObject, DNA_FLAT_BUILDING): filename = self.neighborhood + '_building_styles.txt' fname = Filename(self.styleManager.stylePathPrefix + '/alpha/DIRECT/LevelEditor/StyleFiles/' + filename) f = open(fname.toOsSpecific(), 'a') f.write('\n') style = DNAFlatBuildingStyle(building = dnaObject) style.output(f) f.close() return print 'Must select building before saving building style'
def saveBuildingStyle(self): if self.lastBuilding: # Valid wall, add style to file filename = self.neighborhood + '_building_styles.txt' fname = Filename(self.styleManager.stylePathPrefix + '/alpha/DIRECT/LevelEditor/StyleFiles/' + filename) f = open(fname.toOsSpecific(), 'a') # Add a blank line f.write('\n') # Now output style details to file style = DNAFlatBuildingStyle(building = self.lastBuilding) style.output(f) # Close the file f.close()
de04270464b14b300ef6060444772d8ce4f0cf8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/de04270464b14b300ef6060444772d8ce4f0cf8a/LevelEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 16713, 2885, 12, 2890, 4672, 309, 365, 18, 2722, 16713, 30, 468, 2364, 17662, 16, 527, 2154, 358, 585, 1544, 273, 365, 18, 18168, 19619, 397, 2070, 3510, 310, 67, 10218, 18, 5830, 11, 5299, 273, 16671, 12, 2890, 18, 4060, 1318, 18, 4060, 28910, 397, 1173, 5429, 19, 17541, 19, 2355, 6946, 19, 2885, 2697, 2473, 397, 1544, 13, 284, 273, 1696, 12, 12749, 18, 869, 15112, 9969, 9334, 296, 69, 6134, 468, 1436, 279, 7052, 980, 284, 18, 2626, 2668, 64, 82, 6134, 468, 4494, 876, 2154, 3189, 358, 585, 2154, 273, 463, 11277, 16384, 16713, 2885, 12, 3510, 310, 273, 365, 18, 2722, 16713, 13, 2154, 18, 2844, 12, 74, 13, 468, 3527, 326, 585, 284, 18, 4412, 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, 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 12, 2890, 18, 4060, 1318, 18, 4060, 28910, 397, 1173, 5429, 19, 17541, 19, 2355, 6946, 19, 2885, 2697, 2473, 397, 1544, 13, 284, 273, 1696, 12, 12749, 18, 869, 15112, 9969, 9334, 296, 69, 6134, 468, 1436, 279, 7052, 980, 284, 18, 2626, 2668, 64, 82, 6134, 468, 4494, 876, 2154, 3189, 358, 585, 2154, 273, 463, 11277, 16384, 16713, 2885, 12, 3510, 310, 273, 365, 18, 2722, 16713, 13, 2154, 18, 2844, 12, 74, 13, 468, 3527, 326, 2 ]
try: body = [output, extra] except NameError: body = [output]
body = [output]
def perform_modifytranslations(rnkID, ln, sel_type, trans, confirm, callback='yes'): """Modify the translations of a rank method""" output = '' subtitle = '' cdslangs = get_languages() cdslangs.sort() if confirm in ["2", 2] and rnkID: finresult = modify_translations(rnkID, cdslangs, sel_type, trans, "rnkMETHOD") rnk_name = get_def_name(rnkID, "rnkMETHOD")[0][1] rnk_dict = dict(get_i8n_name('', ln, get_rnk_nametypes()[0][0], "rnkMETHOD")) if rnkID and rnk_dict.has_key(int(rnkID)): rnkID = int(rnkID) subtitle = """<a name="3">3. Modify translations for rank method '%s'</a>""" % rnk_name if type(trans) is str: trans = [trans] if sel_type == '': sel_type = get_rnk_nametypes()[0][0] header = ['Language', 'Translation'] actions = [] text = """ <span class="adminlabel">Name type</span> <select name="sel_type" class="admin_w200"> """ types = get_rnk_nametypes() if len(types) > 1: for (key, value) in types: text += """<option value="%s" %s>%s""" % (key, key == sel_type and 'selected="selected"' or '', value) trans_names = get_name(rnkID, ln, key, "rnkMETHOD") if trans_names and trans_names[0][0]: text += ": %s" % trans_names[0][0] text += "</option>" text += """</select>""" output += createhiddenform(action="modifytranslations", text=text, button="Select", rnkID=rnkID, ln=ln, confirm=0) if confirm in [-1, "-1", 0, "0"]: trans = [] for key, value in cdslangs: try: trans_names = get_name(rnkID, key, sel_type, "rnkMETHOD") trans.append(trans_names[0][0]) except StandardError, e: trans.append('') for nr in range(0,len(cdslangs)): actions.append(["%s %s" % (cdslangs[nr][1], (cdslangs[nr][0]==cdslang and '<small>(def)</small>' or ''))]) actions[-1].append('<input type="text" name="trans" size="30" value="%s"/>' % trans[nr]) text = tupletotable(header=header, tuple=actions) output += createhiddenform(action="modifytranslations", text=text, button="Modify", rnkID=rnkID, sel_type=sel_type, ln=ln, confirm=2) if sel_type and len(trans) and confirm in ["2", 2]: output += write_outcome(finresult) try: body = [output, extra] except NameError: body = [output] return addadminbox(subtitle + """&nbsp;&nbsp&nbsp;<small>[<a title="See guide" href="%s/admin/bibrank/guide.html#mt">?</a>]</small>""" % weburl, body)
e7e9dc2ccb39f6626e14a7fa9e36775c6d60119d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e7e9dc2ccb39f6626e14a7fa9e36775c6d60119d/bibrankadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 13457, 12, 27639, 79, 734, 16, 7211, 16, 357, 67, 723, 16, 906, 16, 6932, 16, 1348, 2218, 9707, 11, 4672, 3536, 11047, 326, 7863, 434, 279, 6171, 707, 8395, 225, 876, 273, 875, 20281, 273, 875, 7976, 2069, 539, 87, 273, 336, 67, 14045, 1435, 7976, 2069, 539, 87, 18, 3804, 1435, 225, 309, 6932, 316, 8247, 22, 3113, 576, 65, 471, 20594, 79, 734, 30, 574, 2088, 273, 5612, 67, 13457, 12, 27639, 79, 734, 16, 7976, 2069, 539, 87, 16, 357, 67, 723, 16, 906, 16, 315, 27639, 79, 5327, 7923, 225, 20594, 79, 67, 529, 273, 336, 67, 536, 67, 529, 12, 27639, 79, 734, 16, 315, 27639, 79, 5327, 7923, 63, 20, 6362, 21, 65, 20594, 79, 67, 1576, 273, 2065, 12, 588, 67, 77, 28, 82, 67, 529, 2668, 2187, 7211, 16, 336, 67, 27639, 79, 67, 17808, 15180, 1435, 63, 20, 6362, 20, 6487, 315, 27639, 79, 5327, 6, 3719, 309, 20594, 79, 734, 471, 20594, 79, 67, 1576, 18, 5332, 67, 856, 12, 474, 12, 27639, 79, 734, 3719, 30, 20594, 79, 734, 273, 509, 12, 27639, 79, 734, 13, 20281, 273, 3536, 32, 69, 508, 1546, 23, 6441, 23, 18, 9518, 7863, 364, 6171, 707, 1995, 87, 11, 1757, 69, 2984, 3660, 738, 20594, 79, 67, 529, 225, 309, 618, 12, 2338, 13, 353, 609, 30, 906, 273, 306, 2338, 65, 309, 357, 67, 723, 422, 875, 30, 357, 67, 723, 273, 336, 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, 3073, 67, 17042, 13457, 12, 27639, 79, 734, 16, 7211, 16, 357, 67, 723, 16, 906, 16, 6932, 16, 1348, 2218, 9707, 11, 4672, 3536, 11047, 326, 7863, 434, 279, 6171, 707, 8395, 225, 876, 273, 875, 20281, 273, 875, 7976, 2069, 539, 87, 273, 336, 67, 14045, 1435, 7976, 2069, 539, 87, 18, 3804, 1435, 225, 309, 6932, 316, 8247, 22, 3113, 576, 65, 471, 20594, 79, 734, 30, 574, 2088, 273, 5612, 67, 13457, 12, 27639, 79, 734, 16, 7976, 2069, 539, 87, 16, 357, 67, 723, 16, 906, 16, 315, 27639, 79, 5327, 7923, 225, 20594, 79, 67, 529, 273, 336, 67, 536, 67, 529, 12, 27639, 79, 734, 16, 315, 27639, 79, 5327, 7923, 2 ]
def fix_fragment(self, match): """Return a href attribute with colons replaced by hyphens. """ return match.group(1) + match.group(2).replace(':', '-')
def fix_fragment(self, prefix, fragment): """Return a href/id attribute with colons replaced by hyphens. """ return prefix + fragment.replace(':', '-')
def fix_fragment(self, match): """Return a href attribute with colons replaced by hyphens. """ return match.group(1) + match.group(2).replace(':', '-')
aaff3f1ebe4046e60af24bc5f9e321a2422a600d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/aaff3f1ebe4046e60af24bc5f9e321a2422a600d/epub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 11956, 12, 2890, 16, 845, 4672, 3536, 990, 279, 3897, 1566, 598, 645, 7008, 8089, 635, 4855, 28776, 18, 3536, 327, 845, 18, 1655, 12, 21, 13, 397, 845, 18, 1655, 12, 22, 2934, 2079, 2668, 30, 2187, 4014, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 11956, 12, 2890, 16, 845, 4672, 3536, 990, 279, 3897, 1566, 598, 645, 7008, 8089, 635, 4855, 28776, 18, 3536, 327, 845, 18, 1655, 12, 21, 13, 397, 845, 18, 1655, 12, 22, 2934, 2079, 2668, 30, 2187, 4014, 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 ]
original_testrunner_args = args args = args[1:] options, positional = parser.parse_args(args) merge_options(options, defaults) options.original_testrunner_args = original_testrunner_args
options, positional = parser.parse_args(args[1:], defaults) options.original_testrunner_args = args
def apply_auto_progress(args): if args and '--auto-progress' in args: if sys.stdout.isatty(): progress = '--progress' else: progress = '--no-progress'
d7279b410b19b1663e2cdd24c2dbea97a7cc284e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10007/d7279b410b19b1663e2cdd24c2dbea97a7cc284e/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 6079, 67, 8298, 12, 1968, 4672, 309, 833, 471, 3534, 6079, 17, 8298, 11, 316, 833, 30, 309, 2589, 18, 10283, 18, 291, 270, 4098, 13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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, 1652, 2230, 67, 6079, 67, 8298, 12, 1968, 4672, 309, 833, 471, 3534, 6079, 17, 8298, 11, 316, 833, 30, 309, 2589, 18, 10283, 18, 291, 270, 4098, 13332, 4007, 273, 3534, 8298, 11, 469, 30, 4007, 273, 3534, 2135, 17, 8298, 11, 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 ]
@param kls: class @type kls: class @param text: (optional) name of class @type text: text
@param kls: class object for debuggable class @param name: (optional) name of class
def append(kls,text=None): """Add a class to the list of entries
6078bfdc1efb8e29b7a4028200db71a2948b0cd8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/6078bfdc1efb8e29b7a4028200db71a2948b0cd8/debug_classes.py
[ 1, 8585, 326, 22398, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 79, 3251, 16, 955, 33, 7036, 4672, 3536, 986, 279, 667, 358, 326, 666, 434, 3222, 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 ]
def ogr_gml_6(): if not gdaltest.have_gml_reader: return 'skip' files = ['test_point1', 'test_point2', 'test_point3'] fids = [] for filename in files: fids[:] = [] gml_ds = ogr.Open( 'data' + os.sep + filename + '.gml' ) lyr = gml_ds.GetLayer() feat = lyr.GetNextFeature() while feat is not None: if ( feat.GetFID() < 0 ) or ( feat.GetFID() in fids ): os.remove( 'data' + os.sep + filename + '.gfs' ) gdaltest.post_reason( 'Wrong FID value' ) return 'fail' fids.append(feat.GetFID()) feat = lyr.GetNextFeature() os.remove( 'data' + os.sep + filename + '.gfs' )
def ogr_gml_7(): if not gdaltest.have_gml_reader: return 'skip' gml_ds = ogr.Open( 'data/test_point.gml' ) lyr = gml_ds.GetLayer() ldefn = lyr.GetLayerDefn() if ldefn.GetFieldDefn(0).GetFieldTypeName(ldefn.GetFieldDefn(0).GetType())\ != 'Real': return 'fail' if ldefn.GetFieldDefn(1).GetFieldTypeName(ldefn.GetFieldDefn(1).GetType())\ != 'Integer': return 'fail' if ldefn.GetFieldDefn(2).GetFieldTypeName(ldefn.GetFieldDefn(2).GetType())\ != 'String': return 'fail'
def ogr_gml_5(): if not gdaltest.have_gml_reader: return 'skip' gml_ds = ogr.Open( 'data/ticket_2349_test_1.gml' ) lyr = gml_ds.GetLayerByName('MyPolyline') lyr.SetAttributeFilter( 'height > 300' ) lyr.GetNextFeature() return 'success'
d4adcd02adadcdbb956ebbb3d5ac842582f7aa6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/d4adcd02adadcdbb956ebbb3d5ac842582f7aa6e/ogr_gml_read.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 19005, 67, 25, 13332, 225, 309, 486, 15551, 2390, 395, 18, 21516, 67, 19005, 67, 10530, 30, 327, 296, 7457, 11, 225, 314, 781, 67, 2377, 273, 320, 3197, 18, 3678, 12, 296, 892, 19, 16282, 67, 4366, 7616, 67, 3813, 67, 21, 18, 19005, 11, 262, 225, 18519, 86, 273, 314, 781, 67, 2377, 18, 967, 4576, 5911, 2668, 12062, 25519, 6134, 225, 18519, 86, 18, 694, 1499, 1586, 12, 296, 4210, 405, 11631, 11, 262, 225, 18519, 86, 18, 967, 2134, 4595, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 19005, 67, 25, 13332, 225, 309, 486, 15551, 2390, 395, 18, 21516, 67, 19005, 67, 10530, 30, 327, 296, 7457, 11, 225, 314, 781, 67, 2377, 273, 320, 3197, 18, 3678, 12, 296, 892, 19, 16282, 67, 4366, 7616, 67, 3813, 67, 21, 18, 19005, 11, 262, 225, 18519, 86, 273, 314, 781, 67, 2377, 18, 967, 4576, 5911, 2668, 12062, 25519, 6134, 225, 18519, 86, 18, 694, 1499, 1586, 12, 296, 4210, 405, 11631, 11, 262, 225, 18519, 86, 18, 967, 2134, 4595, 1435, 225, 327, 296, 4768, 11, 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 ]
def __get__(self, obj, objtype=None):
def __get__(self, obj, type=None):
def __get__(self, obj, objtype=None): if obj is None: return self value = self._func(obj) setattr(obj, self._name, value) return value
1f318cea86708f84c5dfe80565e6d06e2ab99067 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14437/1f318cea86708f84c5dfe80565e6d06e2ab99067/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 972, 12, 2890, 16, 1081, 16, 618, 33, 7036, 4672, 309, 1081, 353, 599, 30, 327, 365, 460, 273, 365, 6315, 644, 12, 2603, 13, 9241, 12, 2603, 16, 365, 6315, 529, 16, 460, 13, 327, 460, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 972, 12, 2890, 16, 1081, 16, 618, 33, 7036, 4672, 309, 1081, 353, 599, 30, 327, 365, 460, 273, 365, 6315, 644, 12, 2603, 13, 9241, 12, 2603, 16, 365, 6315, 529, 16, 460, 13, 327, 460, 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 ]
max_db_ver = (4, 6)
max_db_ver = (4, 5)
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')
7165d6f17f5ecc232a443f93d3396cbd6e8c7a8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/7165d6f17f5ecc232a443f93d3396cbd6e8c7a8c/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 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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 ]
[ 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 ]
"""Start a background download for <script src=""> tags"""
"""Start a background download for <script src=""> tags After that, self.js_client points to the proxy client object""" debug(FILTER, "%s jsScriptSrc %r", self, url)
def jsScriptSrc (self, url, language): """Start a background download for <script src=""> tags""" assert self.htmlparser.state[0]=='parse', "non-parse state %s" % self.htmlparser.state ver = get_js_ver(language) if self.base_url: url = urlparse.urljoin(self.base_url, url) else: url = urlparse.urljoin(self.url, url) # unquote and norm url = url_norm(url) host = stripsite(url)[0] if not host: error(FILTER, "invalid script src url %r at %s (base %r)", url, self.url, self.base_url) return self.htmlparser.state = ('wait', url) self.htmlparser.waited = 1 self.js_src = True self.js_client = HttpProxyClient(self.jsScriptData, (url, ver)) headers = get_wc_client_headers(host) # note: some javascript servers do not specify content encoding # so only accept non-encoded content here headers['Accept-Encoding'] = 'identity\r' ClientServerMatchmaker(self.js_client, "GET %s HTTP/1.0" % url_quote(url), # request headers, '', # content mime="application/x-javascript", )
49db0e6e8d49d9f3681aec19c4a2214733171f10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/49db0e6e8d49d9f3681aec19c4a2214733171f10/JSFilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 7740, 261, 2890, 16, 880, 16, 2653, 4672, 3536, 1685, 279, 5412, 4224, 364, 411, 4263, 1705, 1546, 6441, 2342, 7360, 716, 16, 365, 18, 2924, 67, 2625, 3143, 358, 326, 2889, 1004, 733, 8395, 1198, 12, 11126, 16, 2213, 87, 3828, 3651, 7740, 738, 86, 3113, 365, 16, 880, 13, 1815, 365, 18, 2620, 4288, 18, 2019, 63, 20, 65, 18920, 2670, 2187, 315, 5836, 17, 2670, 919, 738, 87, 6, 738, 365, 18, 2620, 4288, 18, 2019, 1924, 273, 336, 67, 2924, 67, 502, 12, 4923, 13, 309, 365, 18, 1969, 67, 718, 30, 880, 273, 15185, 18, 718, 5701, 12, 2890, 18, 1969, 67, 718, 16, 880, 13, 469, 30, 880, 273, 15185, 18, 718, 5701, 12, 2890, 18, 718, 16, 880, 13, 468, 25611, 471, 4651, 880, 273, 880, 67, 7959, 12, 718, 13, 1479, 273, 2569, 4256, 12, 718, 25146, 20, 65, 309, 486, 1479, 30, 555, 12, 11126, 16, 315, 5387, 2728, 1705, 880, 738, 86, 622, 738, 87, 261, 1969, 738, 86, 2225, 16, 880, 16, 365, 18, 718, 16, 365, 18, 1969, 67, 718, 13, 327, 365, 18, 2620, 4288, 18, 2019, 273, 7707, 7048, 2187, 880, 13, 365, 18, 2620, 4288, 18, 7048, 329, 273, 404, 365, 18, 2924, 67, 4816, 273, 1053, 365, 18, 2924, 67, 2625, 273, 2541, 3886, 1227, 12, 2890, 18, 2924, 3651, 751, 16, 261, 718, 16, 1924, 3719, 1607, 273, 336, 67, 27594, 67, 2625, 67, 2485, 12, 2564, 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, 3828, 3651, 7740, 261, 2890, 16, 880, 16, 2653, 4672, 3536, 1685, 279, 5412, 4224, 364, 411, 4263, 1705, 1546, 6441, 2342, 7360, 716, 16, 365, 18, 2924, 67, 2625, 3143, 358, 326, 2889, 1004, 733, 8395, 1198, 12, 11126, 16, 2213, 87, 3828, 3651, 7740, 738, 86, 3113, 365, 16, 880, 13, 1815, 365, 18, 2620, 4288, 18, 2019, 63, 20, 65, 18920, 2670, 2187, 315, 5836, 17, 2670, 919, 738, 87, 6, 738, 365, 18, 2620, 4288, 18, 2019, 1924, 273, 336, 67, 2924, 67, 502, 12, 4923, 13, 309, 365, 18, 1969, 67, 718, 30, 880, 273, 15185, 18, 718, 5701, 12, 2890, 18, 1969, 67, 718, 16, 880, 13, 469, 30, 880, 273, 15185, 2 ]
ld_args.extend (extra_postargs)
ld_args.extend(extra_postargs)
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None):
35c5384ab8055cc66d91421c142147c213766a95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/35c5384ab8055cc66d91421c142147c213766a95/bcppcompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, 7036, 16, 3359, 67, 15536, 33, 7036, 16, 1198, 33, 20, 16, 2870, 67, 1484, 1968, 33, 7036, 16, 2870, 67, 2767, 1968, 33, 7036, 16, 1361, 67, 5814, 33, 7036, 4672, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, 7036, 16, 3359, 67, 15536, 33, 7036, 16, 1198, 33, 20, 16, 2870, 67, 1484, 1968, 33, 7036, 16, 2870, 67, 2767, 1968, 33, 7036, 16, 1361, 67, 5814, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
session = self.get_current_session() if session.audio_recording_file_name is None: session.start_recording_audio() else: session.stop_recording_audio()
self.get_current_session().toggle_recording()
def cmd_record(self, *args): """:record \t Toggle audio recording""" session = self.get_current_session() if session.audio_recording_file_name is None: session.start_recording_audio() else: session.stop_recording_audio()
ac5f5a5dbddc7c19861e59c86d89ca7df5c3443b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/ac5f5a5dbddc7c19861e59c86d89ca7df5c3443b/sip_session2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 67, 3366, 12, 2890, 16, 380, 1968, 4672, 3536, 30, 3366, 521, 88, 399, 9891, 7447, 14949, 8395, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 67, 3366, 12, 2890, 16, 380, 1968, 4672, 3536, 30, 3366, 521, 88, 399, 9891, 7447, 14949, 8395, 1339, 273, 365, 18, 588, 67, 2972, 67, 3184, 1435, 309, 1339, 18, 11509, 67, 3366, 310, 67, 768, 67, 529, 353, 599, 30, 1339, 18, 1937, 67, 3366, 310, 67, 11509, 1435, 469, 30, 1339, 18, 5681, 67, 3366, 310, 67, 11509, 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 ]
inclusions=[pim_ns.allCollection, pim_ns.trashCollection, pim_ns.inCollection, pim_ns.outCollection]
inclusions=[pim_ns.allCollection, pim_ns.inCollection, pim_ns.outCollection, pim_ns.trashCollection]
def installParcel(parcel, oldVersion=None): import scripts as Scripts from osaf import sharing, startup from osaf.framework import scripting pim_ns = schema.ns('osaf.pim', parcel) sharing_ns = schema.ns('osaf.sharing', parcel) me = pim.Contact.update(parcel, 'me', displayName=_(u'Me'), contactName=pim.ContactName.update(parcel, 'meName', firstName=_(u'Chandler'), lastName=_(u'User') ), references=[pim_ns.currentContact] ) # The Sidebar collection sidebarListCollection = pim.ListCollection.update(parcel, 'sidebarCollection', inclusions=[pim_ns.allCollection, pim_ns.trashCollection, pim_ns.inCollection, pim_ns.outCollection] ) sharing.WebDAVAccount.update(parcel, 'CosmoWebDAVAccount', displayName=_(u'Cosmo Sharing Service'), host=u'cosmo-demo.osafoundation.org', path=u'/home/<username>', username=u'', password=u'', useSSL=True, port=443, references=[sharing_ns.currentWebDAVAccount] ) preReply = pim.EmailAddress.update(parcel, 'PredefinedReplyAddress') preSmtp = pim.mail.SMTPAccount.update(parcel, 'PredefinedSMTPAccount', displayName=_(u'Outgoing %(accountType)s mail') % {'accountType': 'SMTP'}, references=[pim_ns.currentSMTPAccount] ) pim.mail.IMAPAccount.update(parcel, 'PredefinedIMAPAccount', displayName=_(u'Incoming %(accountType)s mail') % {'accountType': 'IMAP'}, replyToAddress=preReply, defaultSMTPAccount=preSmtp, references=[pim_ns.currentMailAccount] ) pim.mail.POPAccount.update(parcel, 'PredefinedPOPAccount', displayName=_(u'Incoming %(accountType)s mail') % {'accountType': 'POP'}, replyToAddress=preReply, defaultSMTPAccount=preSmtp ) testReply = pim.mail.EmailAddress.update(parcel, 'TestReplyAddress') #[i18n] Test Acccounts are not displayed to the user and do not require localization testSmtp = pim.mail.SMTPAccount.update(parcel, 'TestSMTPAccount', displayName=u'Test SMTP Account', isActive=False ) pim.mail.IMAPAccount.update(parcel, 'TestIMAPAccount', displayName=u'Test IMAP mail', replyToAddress=testReply, defaultSMTPAccount=testSmtp, isActive=False ) pim.mail.POPAccount.update(parcel, 'TestPOPAccount', displayName=u'Test POP mail', replyToAddress=testReply, defaultSMTPAccount=testSmtp, isActive=False ) osafDev = pim.Contact.update(parcel, 'OSAFContact', emailAddress=u'dev@osafoundation.org', contactName=pim.ContactName.update(parcel, 'OSAFContactName', firstName=u'OSAF', lastName=u'Development' ) ) noonToday = datetime.datetime.combine( datetime.date.today(), datetime.time(12, tzinfo=ICUtzinfo.floating)) WelcomeEvent = pim.EventStamp.update(parcel, 'WelcomeEvent', displayName=_(u'Welcome to Chandler %(version)s') % {'version': version.version}, startTime=noonToday, duration=datetime.timedelta(minutes=120), anyTime=False, creator=osafDev, location=pim.Location.update(parcel, "OSAFLocation", displayName=_("Open Source Applications Foundation") ), ) schema.ns('osaf.pim', parcel.itsView).allCollection.add(WelcomeEvent) body = _(u"""Welcome to the Chandler %(version)s!
a2c61092e8d2f9fe862764cf43ea36cb7ef1cb45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a2c61092e8d2f9fe862764cf43ea36cb7ef1cb45/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 1553, 2183, 12, 1065, 2183, 16, 1592, 1444, 33, 7036, 4672, 225, 1930, 8873, 487, 2850, 6513, 628, 1140, 1727, 1930, 21001, 16, 11850, 628, 1140, 1727, 18, 12303, 1930, 2728, 310, 225, 293, 381, 67, 2387, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 84, 381, 2187, 779, 2183, 13, 21001, 67, 2387, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 31615, 2187, 779, 2183, 13, 225, 1791, 273, 293, 381, 18, 6567, 18, 2725, 12, 1065, 2183, 16, 296, 3501, 2187, 16218, 33, 67, 12, 89, 11, 4667, 19899, 5388, 461, 33, 84, 381, 18, 6567, 461, 18, 2725, 12, 1065, 2183, 16, 296, 3501, 461, 2187, 22033, 33, 67, 12, 89, 11, 782, 464, 749, 19899, 23439, 33, 67, 12, 89, 11, 1299, 6134, 262, 16, 5351, 22850, 84, 381, 67, 2387, 18, 2972, 6567, 65, 262, 282, 468, 1021, 26248, 3215, 1849, 23364, 682, 2532, 273, 293, 381, 18, 682, 2532, 18, 2725, 12, 1065, 2183, 16, 296, 26417, 2532, 2187, 2823, 16377, 22850, 84, 381, 67, 2387, 18, 454, 2532, 16, 293, 381, 67, 2387, 18, 267, 2532, 16, 293, 381, 67, 2387, 18, 659, 2532, 16, 293, 381, 67, 2387, 18, 28665, 2532, 65, 262, 282, 21001, 18, 4079, 17735, 3032, 18, 2725, 12, 1065, 2183, 16, 296, 39, 538, 8683, 4079, 17735, 3032, 2187, 16218, 33, 67, 12, 89, 11, 39, 538, 8683, 2638, 5968, 1956, 19899, 1479, 33, 89, 11, 14445, 8683, 17, 27928, 18, 538, 1727, 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, 3799, 1553, 2183, 12, 1065, 2183, 16, 1592, 1444, 33, 7036, 4672, 225, 1930, 8873, 487, 2850, 6513, 628, 1140, 1727, 1930, 21001, 16, 11850, 628, 1140, 1727, 18, 12303, 1930, 2728, 310, 225, 293, 381, 67, 2387, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 84, 381, 2187, 779, 2183, 13, 21001, 67, 2387, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 31615, 2187, 779, 2183, 13, 225, 1791, 273, 293, 381, 18, 6567, 18, 2725, 12, 1065, 2183, 16, 296, 3501, 2187, 16218, 33, 67, 12, 89, 11, 4667, 19899, 5388, 461, 33, 84, 381, 18, 6567, 461, 18, 2725, 12, 1065, 2183, 16, 296, 3501, 461, 2187, 22033, 33, 67, 12, 89, 11, 782, 464, 2 ]
obj_pool = {} module_object_list = {}
def __init__(self, name, value, exc_type='warning'): self.name = name self.exc_type = exc_type self.value = value self.args = (exc_type,name)
3a7b523cc53888d654dced2b95ac5e41a720ee9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/3a7b523cc53888d654dced2b95ac5e41a720ee9f/osv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 460, 16, 3533, 67, 723, 2218, 8551, 11, 4672, 365, 18, 529, 273, 508, 365, 18, 10075, 67, 723, 273, 3533, 67, 723, 365, 18, 1132, 273, 460, 365, 18, 1968, 273, 261, 10075, 67, 723, 16, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 460, 16, 3533, 67, 723, 2218, 8551, 11, 4672, 365, 18, 529, 273, 508, 365, 18, 10075, 67, 723, 273, 3533, 67, 723, 365, 18, 1132, 273, 460, 365, 18, 1968, 273, 261, 10075, 67, 723, 16, 529, 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 ]
def header_update_column_widths(self):
def header_save_column_widths(self):
def header_update_column_widths(self): if not self.withdrawn and self.expanded: width = self.current.allocation.width + self.expanderwindow.get_vscrollbar().allocation.width if width <= 10 or self.columns[0] <= 10: # Make sure we only set self.colwidthpercents if self.current # has its normal allocated width: return for i, column in enumerate(self.columns): if i == len(self.columns)-1: self.columnwidths[i] = min(column.get_width(), column.get_fixed_width()) else: self.columnwidths[i] = column.get_width() # Save widths as percentages for when the application is resized. self.colwidthpercents[i] = float(self.columnwidths[i])/width self.resizing_columns = False
76017b062cd0df10c980ce59656031dbb2d651b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/76017b062cd0df10c980ce59656031dbb2d651b7/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1446, 67, 5688, 67, 2827, 67, 17043, 12, 2890, 4672, 309, 486, 365, 18, 1918, 9446, 82, 471, 365, 18, 17336, 30, 1835, 273, 365, 18, 2972, 18, 29299, 18, 2819, 397, 365, 18, 12320, 264, 5668, 18, 588, 67, 90, 12033, 3215, 7675, 29299, 18, 2819, 309, 1835, 1648, 1728, 578, 365, 18, 5112, 63, 20, 65, 1648, 1728, 30, 468, 4344, 3071, 732, 1338, 444, 365, 18, 1293, 2819, 8849, 87, 309, 365, 18, 2972, 468, 711, 2097, 2212, 11977, 1835, 30, 327, 364, 277, 16, 1057, 316, 4241, 12, 2890, 18, 5112, 4672, 309, 277, 422, 562, 12, 2890, 18, 5112, 24950, 21, 30, 365, 18, 2827, 17043, 63, 77, 65, 273, 1131, 12, 2827, 18, 588, 67, 2819, 9334, 1057, 18, 588, 67, 12429, 67, 2819, 10756, 469, 30, 365, 18, 2827, 17043, 63, 77, 65, 273, 1057, 18, 588, 67, 2819, 1435, 468, 7074, 15801, 487, 5551, 1023, 364, 1347, 326, 2521, 353, 21615, 18, 365, 18, 1293, 2819, 8849, 87, 63, 77, 65, 273, 1431, 12, 2890, 18, 2827, 17043, 63, 77, 5717, 19, 2819, 365, 18, 455, 6894, 67, 5112, 273, 1083, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1446, 67, 5688, 67, 2827, 67, 17043, 12, 2890, 4672, 309, 486, 365, 18, 1918, 9446, 82, 471, 365, 18, 17336, 30, 1835, 273, 365, 18, 2972, 18, 29299, 18, 2819, 397, 365, 18, 12320, 264, 5668, 18, 588, 67, 90, 12033, 3215, 7675, 29299, 18, 2819, 309, 1835, 1648, 1728, 578, 365, 18, 5112, 63, 20, 65, 1648, 1728, 30, 468, 4344, 3071, 732, 1338, 444, 365, 18, 1293, 2819, 8849, 87, 309, 365, 18, 2972, 468, 711, 2097, 2212, 11977, 1835, 30, 327, 364, 277, 16, 1057, 316, 4241, 12, 2890, 18, 5112, 4672, 309, 277, 422, 562, 12, 2890, 18, 5112, 24950, 21, 30, 365, 18, 2827, 17043, 63, 77, 65, 273, 1131, 12, 2827, 2 ]
df_root = system_output('df -mP / | tail -1').split() self.free_space_mb_root_before = int(df_root[3]) self.usage_percent_root_before = int(df_root[4].rstrip('%')) pickle.dump(self.free_space_mb_root_before, file(self.control + '.fs', 'w'))
def __init__(self, control, jobtag, cont, harness_type=None): """ control The control file (pathname of) jobtag The job tag string (eg "default") cont If this is the continuation of this job harness_type An alternative server harness """ self.autodir = os.environ['AUTODIR'] self.bindir = os.path.join(self.autodir, 'bin') self.libdir = os.path.join(self.autodir, 'lib') self.testdir = os.path.join(self.autodir, 'tests') self.site_testdir = os.path.join(self.autodir, 'site_tests') self.profdir = os.path.join(self.autodir, 'profilers') self.tmpdir = os.path.join(self.autodir, 'tmp') self.resultdir = os.path.join(self.autodir, 'results', jobtag) self.sysinfodir = os.path.join(self.resultdir, 'sysinfo') self.control = os.path.abspath(control)
8887cd2ec58579d83075b9f4aeb1469d46538fbd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/8887cd2ec58579d83075b9f4aeb1469d46538fbd/job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 1719, 2692, 16, 466, 16, 366, 1303, 403, 67, 723, 33, 7036, 4672, 3536, 3325, 1021, 3325, 585, 261, 28336, 434, 13, 1719, 2692, 1021, 1719, 1047, 533, 261, 1332, 315, 1886, 7923, 466, 971, 333, 353, 326, 17378, 434, 333, 1719, 366, 1303, 403, 67, 723, 1922, 10355, 1438, 366, 1303, 403, 3536, 365, 18, 5854, 369, 481, 273, 1140, 18, 28684, 3292, 37, 1693, 1212, 7937, 3546, 365, 18, 4376, 481, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 4757, 6134, 365, 18, 2941, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 2941, 6134, 365, 18, 3813, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 16341, 6134, 365, 18, 4256, 67, 3813, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 4256, 67, 16341, 6134, 365, 18, 16121, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 685, 7540, 414, 6134, 365, 18, 5645, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 5645, 6134, 365, 18, 2088, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 4717, 2187, 1719, 2692, 13, 365, 18, 9499, 10625, 369, 481, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 2088, 1214, 16, 296, 9499, 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, 3325, 16, 1719, 2692, 16, 466, 16, 366, 1303, 403, 67, 723, 33, 7036, 4672, 3536, 3325, 1021, 3325, 585, 261, 28336, 434, 13, 1719, 2692, 1021, 1719, 1047, 533, 261, 1332, 315, 1886, 7923, 466, 971, 333, 353, 326, 17378, 434, 333, 1719, 366, 1303, 403, 67, 723, 1922, 10355, 1438, 366, 1303, 403, 3536, 365, 18, 5854, 369, 481, 273, 1140, 18, 28684, 3292, 37, 1693, 1212, 7937, 3546, 365, 18, 4376, 481, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 4757, 6134, 365, 18, 2941, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 296, 2941, 6134, 365, 2 ]
for path, in cu:
for path, in cu2:
def migrate(self): from conary import trove cu = self.cu logMe(3, "Fixing NULL path hashes...") cu.execute("SELECT instanceId FROM TroveInfo " "WHERE data IS NULL and infotype = ?", trove._TROVEINFO_TAG_PATH_HASHES) cu2 = self.db.cursor() for instanceId, in cu: cu2.execute("SELECT path FROM TroveFiles WHERE instanceId=?", instanceId) ph = trove.PathHashes() for path, in cu: ph.addPath(path) cu2.execute("UPDATE TroveInfo SET data=? " "WHERE instanceId=? and infotype=?", (ph.freeze(), instanceId, trove._TROVEINFO_TAG_PATH_HASHES)) return self.Version
4ff444029abafdb9eb70260628e931f68005c7ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4ff444029abafdb9eb70260628e931f68005c7ae/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 12, 2890, 4672, 628, 225, 356, 814, 1930, 23432, 537, 15985, 273, 365, 18, 6319, 613, 4667, 12, 23, 16, 315, 8585, 310, 3206, 589, 9869, 7070, 13, 15985, 18, 8837, 2932, 4803, 17608, 4571, 399, 303, 537, 966, 315, 315, 12299, 501, 4437, 3206, 471, 8286, 10570, 273, 692, 3113, 23432, 537, 6315, 56, 1457, 3412, 5923, 67, 7927, 67, 4211, 67, 15920, 3991, 13, 15985, 22, 273, 365, 18, 1966, 18, 9216, 1435, 364, 17608, 16, 316, 15985, 30, 15985, 22, 18, 8837, 2932, 4803, 589, 4571, 399, 303, 537, 2697, 4852, 17608, 17282, 3113, 17608, 13, 1844, 273, 23432, 537, 18, 743, 14455, 1435, 364, 589, 16, 316, 15985, 22, 30, 1844, 18, 1289, 743, 12, 803, 13, 15985, 22, 18, 8837, 2932, 8217, 399, 303, 537, 966, 7855, 501, 17282, 315, 315, 12299, 17608, 17282, 471, 8286, 10570, 17282, 3113, 261, 844, 18, 29631, 9334, 17608, 16, 23432, 537, 6315, 56, 1457, 3412, 5923, 67, 7927, 67, 4211, 67, 15920, 3991, 3719, 327, 365, 18, 1444, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 12, 2890, 4672, 628, 225, 356, 814, 1930, 23432, 537, 15985, 273, 365, 18, 6319, 613, 4667, 12, 23, 16, 315, 8585, 310, 3206, 589, 9869, 7070, 13, 15985, 18, 8837, 2932, 4803, 17608, 4571, 399, 303, 537, 966, 315, 315, 12299, 501, 4437, 3206, 471, 8286, 10570, 273, 692, 3113, 23432, 537, 6315, 56, 1457, 3412, 5923, 67, 7927, 67, 4211, 67, 15920, 3991, 13, 15985, 22, 273, 365, 18, 1966, 18, 9216, 1435, 364, 17608, 16, 316, 15985, 30, 15985, 22, 18, 8837, 2932, 4803, 589, 4571, 399, 303, 537, 2697, 4852, 17608, 17282, 3113, 17608, 13, 1844, 273, 23432, 537, 18, 743, 14455, 1435, 364, 589, 16, 316, 15985, 22, 30, 1844, 18, 1289, 2 ]
for mypage in page_results[2:]:
for mypage in page_results:
def send_to_graph(results_server, results_link, title, date, browser_config, results): tbox = title url_format = "http://%s/%s" link_format= "<a href = \"%s\">%s</a>" #value, testname, tbox, timeval, date, branch, buildid, type, data result_format = "%.2f,%s,%s,%d,%d,%s,%s,%s,%s,\n" result_format2 = "%.2f,%s,%s,%d,%d,%s,%s,%s,\n" links = '' for res in results: filename = tempfile.mktemp() tmpf = open(filename, "w") browser_dump, counter_dump = results[res] filename = tempfile.mktemp() tmpf = open(filename, "w") if res == 'ts': i = 0 for val in browser_dump: tmpf.write(result_format % (float(val), res, tbox, i, date, browser_config['branch'], browser_config['buildid'], "discrete", "ms")) i += 1 else: # each line of the string is of the format i;page_name;median;mean;min;max;time vals\n name = '' if ((res == 'tp') or (res == 'tp_js')): name = '_loadtime' for bd in browser_dump: bd.rstrip('\n') page_results = bd.splitlines() i = 0 for mypage in page_results[2:]: r = mypage.split(';') r[1] = r[1].rstrip('/') if r[1].find('/') > -1 : page = r[1].split('/')[1] else: page = r[1] try: val = float(r[2]) except ValueError: print 'WARNING: value error for median in tp' val = 0 tmpf.write(result_format % (val, res + name, tbox, i, date, browser_config['branch'], browser_config['buildid'], "discrete", page)) i += 1 tmpf.flush() tmpf.close() links += post_chunk(results_server, results_link, res, filename) os.remove(filename) for cd in counter_dump: for count_type in cd: val_list = cd[count_type] chunks = chunk_list(val_list) chunk_link = '' i = 0 for chunk in chunks: filename = tempfile.mktemp() tmpf = open(filename, "w") for val in chunk: tmpf.write(result_format2 % (float(val), res + "_" + count_type.replace("%", "Percent"), tbox, i, date, browser_config['branch'], browser_config['buildid'], "discrete")) i += 1 tmpf.flush() tmpf.close() chunk_link = post_chunk(results_server, results_link, '%s_%s (%d values)' % (res, count_type, len(chunk)), filename) os.remove(filename) links += chunk_link lines = links.split('\n') for line in lines: if line == "": continue values = line.split(":") linkName = values[1] if float(values[2]) > 0: linkName += "_T: " + values[2] else: linkName += "_1" url = url_format % (results_server, values[0],) link = link_format % (url, linkName,) print "RETURN: " + link
b0fc6e52c352be592cdfc962460d5c30d088e367 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12156/b0fc6e52c352be592cdfc962460d5c30d088e367/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 2077, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 268, 2147, 273, 2077, 880, 67, 2139, 273, 315, 2505, 23155, 87, 5258, 87, 6, 1692, 67, 2139, 33, 3532, 69, 3897, 273, 22049, 87, 2412, 9822, 87, 1757, 69, 2984, 468, 1132, 16, 1842, 529, 16, 268, 2147, 16, 813, 1125, 16, 1509, 16, 3803, 16, 1361, 350, 16, 618, 16, 501, 563, 67, 2139, 273, 26209, 22, 74, 15529, 87, 15529, 87, 15529, 72, 15529, 72, 15529, 87, 15529, 87, 15529, 87, 15529, 87, 17211, 82, 6, 563, 67, 2139, 22, 273, 26209, 22, 74, 15529, 87, 15529, 87, 15529, 72, 15529, 72, 15529, 87, 15529, 87, 15529, 87, 17211, 82, 6, 4716, 273, 875, 225, 364, 400, 316, 1686, 30, 1544, 273, 13275, 18, 24816, 5814, 1435, 1853, 74, 273, 1696, 12, 3459, 16, 315, 91, 7923, 4748, 67, 8481, 16, 3895, 67, 8481, 273, 1686, 63, 455, 65, 1544, 273, 13275, 18, 24816, 5814, 1435, 1853, 74, 273, 1696, 12, 3459, 16, 315, 91, 7923, 309, 400, 422, 296, 3428, 4278, 277, 273, 374, 364, 1244, 316, 4748, 67, 8481, 30, 1853, 74, 18, 2626, 12, 2088, 67, 2139, 738, 261, 5659, 12, 1125, 3631, 400, 16, 268, 2147, 16, 277, 16, 1509, 16, 4748, 67, 1425, 3292, 7500, 17337, 4748, 67, 1425, 3292, 3510, 350, 17337, 315, 31937, 3113, 315, 959, 6, 3719, 277, 1011, 404, 469, 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, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 2077, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 268, 2147, 273, 2077, 880, 67, 2139, 273, 315, 2505, 23155, 87, 5258, 87, 6, 1692, 67, 2139, 33, 3532, 69, 3897, 273, 22049, 87, 2412, 9822, 87, 1757, 69, 2984, 468, 1132, 16, 1842, 529, 16, 268, 2147, 16, 813, 1125, 16, 1509, 16, 3803, 16, 1361, 350, 16, 618, 16, 501, 563, 67, 2139, 273, 26209, 22, 74, 15529, 87, 15529, 87, 15529, 72, 15529, 72, 15529, 87, 15529, 87, 15529, 87, 15529, 87, 17211, 82, 6, 563, 67, 2139, 22, 273, 26209, 22, 74, 15529, 87, 15529, 87, 15529, 72, 15529, 2 ]
@schema.observer( modificationFor ) def debugModificationFor(self, op, name): if self.modificationFor == self: import pdb; pdb.set_trace()
def removeFromCollection(self, collection, cutting=False): """ If recurring, create a proxy and use its removeFromCollection().
2233052ea4d55aa724a05f7dc1c7bedb4039cbb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2233052ea4d55aa724a05f7dc1c7bedb4039cbb7/Calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22386, 2532, 12, 2890, 16, 1849, 16, 6391, 1787, 33, 8381, 4672, 3536, 971, 26043, 16, 752, 279, 2889, 471, 999, 2097, 22386, 2532, 7675, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22386, 2532, 12, 2890, 16, 1849, 16, 6391, 1787, 33, 8381, 4672, 3536, 971, 26043, 16, 752, 279, 2889, 471, 999, 2097, 22386, 2532, 7675, 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 ]
raise ResourceNotFoundError(path)
raise ResourceNotFoundError(src)
def movedir(self,src,dst,overwrite=False,ignore_errors=False,chunk_size=16384): nsrc = self._normpath(src) ndst = self._normpath(dst) if overwrite and self.isdir(dst): self.removedir(dst) try: self.client.rename(nsrc,ndst) except IOError, e: if getattr(e,"errno",None) == 2: raise ResourceNotFoundError(path) if self.exists(dst): raise DestinationExistsError(dst) if not self.isdir(dirname(dst)): raise ParentDirectoryMissingError(dst,msg="Destination directory does not exist: %(path)s") raise
25035ae0842dabd79bace2e546cea7220fd74c62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/25035ae0842dabd79bace2e546cea7220fd74c62/sftpfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10456, 481, 12, 2890, 16, 4816, 16, 11057, 16, 19274, 33, 8381, 16, 6185, 67, 4324, 33, 8381, 16, 6551, 67, 1467, 33, 2313, 17295, 4672, 3153, 1310, 273, 365, 6315, 7959, 803, 12, 4816, 13, 5346, 334, 273, 365, 6315, 7959, 803, 12, 11057, 13, 309, 6156, 471, 365, 18, 291, 1214, 12, 11057, 4672, 365, 18, 14923, 481, 12, 11057, 13, 775, 30, 365, 18, 2625, 18, 18539, 12, 2387, 1310, 16, 4880, 334, 13, 1335, 8340, 16, 425, 30, 309, 3869, 12, 73, 10837, 19088, 3113, 7036, 13, 422, 576, 30, 1002, 2591, 13276, 12, 4816, 13, 309, 365, 18, 1808, 12, 11057, 4672, 1002, 10691, 4002, 668, 12, 11057, 13, 309, 486, 365, 18, 291, 1214, 12, 12287, 12, 11057, 3719, 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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, 10456, 481, 12, 2890, 16, 4816, 16, 11057, 16, 19274, 33, 8381, 16, 6185, 67, 4324, 33, 8381, 16, 6551, 67, 1467, 33, 2313, 17295, 4672, 3153, 1310, 273, 365, 6315, 7959, 803, 12, 4816, 13, 5346, 334, 273, 365, 6315, 7959, 803, 12, 11057, 13, 309, 6156, 471, 365, 18, 291, 1214, 12, 11057, 4672, 365, 18, 14923, 481, 12, 11057, 13, 775, 30, 365, 18, 2625, 18, 18539, 12, 2387, 1310, 16, 4880, 334, 13, 1335, 8340, 16, 425, 30, 309, 3869, 12, 73, 10837, 19088, 3113, 7036, 13, 422, 576, 30, 1002, 2591, 13276, 12, 4816, 13, 309, 365, 18, 1808, 12, 11057, 4672, 1002, 10691, 4002, 668, 12, 11057, 13, 309, 486, 365, 18, 2 ]
self.itemDataMap[index][1] = status
self.itemDataMap[index]['testresult'] = status
def UpdateItem(self, index, status): self.itemDataMap[index][1] = status self.list.SetStringItem(index, 1, _(afresource.TEST_STATUS_NAME[status])) item = self.list.GetItem(index) item.SetTextColour(self.color[status]) item.SetImage(self.img[status]) self.list.SetItem(item)
ec7bcedffa1a531cf29df3512a587b51ee7cb4e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/561/ec7bcedffa1a531cf29df3512a587b51ee7cb4e1/_trmainframe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 1180, 12, 2890, 16, 770, 16, 1267, 4672, 365, 18, 1726, 31982, 63, 1615, 23962, 3813, 2088, 3546, 273, 1267, 365, 18, 1098, 18, 694, 780, 1180, 12, 1615, 16, 404, 16, 389, 12, 1727, 3146, 18, 16961, 67, 8608, 67, 1985, 63, 2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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2315, 1180, 12, 2890, 16, 770, 16, 1267, 4672, 365, 18, 1726, 31982, 63, 1615, 23962, 3813, 2088, 3546, 273, 1267, 365, 18, 1098, 18, 694, 780, 1180, 12, 1615, 16, 404, 16, 389, 12, 1727, 3146, 18, 16961, 67, 8608, 67, 1985, 63, 2327, 22643, 761, 273, 365, 18, 1098, 18, 967, 1180, 12, 1615, 13, 761, 18, 694, 1528, 26404, 12, 2890, 18, 3266, 63, 2327, 5717, 761, 18, 694, 2040, 12, 2890, 18, 6081, 63, 2327, 5717, 365, 18, 1098, 18, 694, 1180, 12, 1726, 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 ]
ctxt.replaceEntities(1)
if expand_entities: ctxt.replaceEntities(1)
def stringForEntity(node): """Replaces entities in the node.""" text = node.serialize() try: # Lets add document DTD so entities are resolved dtd = node.doc.intSubset() tmp = dtd.serialize() + '<norm>%s</norm>' % text next = 1 except: tmp = '<norm>%s</norm>' % text next = 0 ctxt = libxml2.createDocParserCtxt(tmp) ctxt.replaceEntities(1) ctxt.parseDocument() tree = ctxt.doc() if next: newnode = tree.children.next else: newnode = tree.children result = '' child = newnode.children while child: result += child.serialize('utf-8') child = child.next return result
31083f52c83b44c025cdb8241a0b3621c6a746a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/31083f52c83b44c025cdb8241a0b3621c6a746a6/xml2po.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 533, 1290, 1943, 12, 2159, 4672, 3536, 15189, 5140, 316, 326, 756, 12123, 977, 273, 756, 18, 6288, 1435, 775, 30, 468, 511, 2413, 527, 1668, 10696, 40, 1427, 5140, 854, 4640, 3681, 72, 273, 756, 18, 2434, 18, 474, 20315, 1435, 1853, 273, 3681, 72, 18, 6288, 1435, 397, 2368, 7959, 9822, 87, 1757, 7959, 1870, 738, 977, 1024, 273, 404, 1335, 30, 1853, 273, 2368, 7959, 9822, 87, 1757, 7959, 1870, 738, 977, 1024, 273, 374, 225, 14286, 273, 16394, 22, 18, 2640, 1759, 2678, 28866, 12, 5645, 13, 309, 4542, 67, 9996, 30, 14286, 18, 2079, 8108, 12, 21, 13, 14286, 18, 2670, 2519, 1435, 2151, 273, 14286, 18, 2434, 1435, 309, 1024, 30, 29267, 273, 2151, 18, 5906, 18, 4285, 469, 30, 29267, 273, 2151, 18, 5906, 225, 563, 273, 875, 1151, 273, 29267, 18, 5906, 1323, 1151, 30, 563, 1011, 1151, 18, 6288, 2668, 3158, 17, 28, 6134, 1151, 273, 1151, 18, 4285, 225, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 533, 1290, 1943, 12, 2159, 4672, 3536, 15189, 5140, 316, 326, 756, 12123, 977, 273, 756, 18, 6288, 1435, 775, 30, 468, 511, 2413, 527, 1668, 10696, 40, 1427, 5140, 854, 4640, 3681, 72, 273, 756, 18, 2434, 18, 474, 20315, 1435, 1853, 273, 3681, 72, 18, 6288, 1435, 397, 2368, 7959, 9822, 87, 1757, 7959, 1870, 738, 977, 1024, 273, 404, 1335, 30, 1853, 273, 2368, 7959, 9822, 87, 1757, 7959, 1870, 738, 977, 1024, 273, 374, 225, 14286, 273, 16394, 22, 18, 2640, 1759, 2678, 28866, 12, 5645, 13, 309, 4542, 67, 9996, 30, 14286, 18, 2079, 8108, 12, 21, 13, 14286, 18, 2670, 2519, 1435, 2151, 273, 14286, 18, 2434, 1435, 309, 1024, 30, 29267, 2 ]
self._leakDetector.removeContainerById(id)
self._leakDetector.removeContainerById(objId)
def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this container no longer exists if self.notify.getDebug(): for contName in self._leakDetector.getContainerNameByIdGen(id): yield None self.notify.debug( '%s no longer exists; caught exception in getContainerById (%s)' % ( contName, e)) self._leakDetector.removeContainerById(id) continue if container is None: # this container no longer exists if self.notify.getDebug(): for contName in self._leakDetector.getContainerNameByIdGen(id): yield None self.notify.debug('%s no longer exists; getContainerById returned None' % contName) self._leakDetector.removeContainerById(id) continue try: cLen = len(container) except Exception, e: # this container no longer exists if self.notify.getDebug(): for contName in self._leakDetector.getContainerNameByIdGen(id): yield None self.notify.debug( '%s is no longer a container, it is now %s (%s)' % (contName, safeRepr(container), e)) self._leakDetector.removeContainerById(id) continue self._leakDetector._index2containerId2len[self._index][id] = cLen # compare the current len of each container to past lens if self._index > 0: idx2id2len = self._leakDetector._index2containerId2len for id in idx2id2len[self._index]: yield None if id in idx2id2len[self._index-1]: diff = idx2id2len[self._index][id] - idx2id2len[self._index-1][id] if diff > 0: if diff > idx2id2len[self._index-1][id]: minutes = (self._leakDetector._index2delay[self._index] - self._leakDetector._index2delay[self._index-1]) / 60. name = self._leakDetector.getContainerNameById(id) if idx2id2len[self._index-1][id] != 0: percent = 100. * (float(diff) / float(idx2id2len[self._index-1][id])) try: for container in self._leakDetector.getContainerByIdGen(id): yield None except: # TODO self.notify.debug('caught exception in getContainerByIdGen (1)') else: self.notify.warning( '%s (%s) grew %.2f%% in %.2f minutes (%s items at last measurement, current contents: %s)' % ( name, itype(container), percent, minutes, idx2id2len[self._index][id], fastRepr(container, maxLen=CheckContainers.ReprItems))) yield None if (self._index > 2 and id in idx2id2len[self._index-2] and id in idx2id2len[self._index-3]): diff2 = idx2id2len[self._index-1][id] - idx2id2len[self._index-2][id] diff3 = idx2id2len[self._index-2][id] - idx2id2len[self._index-3][id] if self._index <= 4: if diff > 0 and diff2 > 0 and diff3 > 0: name = self._leakDetector.getContainerNameById(id) try: for container in self._leakDetector.getContainerByIdGen(id): yield None except: # TODO self.notify.debug('caught exception in getContainerByIdGen (2)') else: msg = ('%s (%s) consistently increased in size over the last ' '3 periods (%s items at last measurement, current contents: %s)' % (name, itype(container), idx2id2len[self._index][id], fastRepr(container, maxLen=CheckContainers.ReprItems))) self.notify.warning(msg) yield None elif (id in idx2id2len[self._index-4] and id in idx2id2len[self._index-5]): # if size has consistently increased over the last 5 checks, # send out a warning diff4 = idx2id2len[self._index-3][id] - idx2id2len[self._index-4][id] diff5 = idx2id2len[self._index-4][id] - idx2id2len[self._index-5][id] if diff > 0 and diff2 > 0 and diff3 > 0 and diff4 > 0 and diff5 > 0: name = self._leakDetector.getContainerNameById(id) try: for container in self._leakDetector.getContainerByIdGen(id): yield None except: # TODO self.notify.debug('caught exception in getContainerByIdGen (3)') else: msg = ('%s (%s) consistently increased in size over the last ' '5 periods (%s items at last measurement, current contents: %s)' % (name, itype(container), idx2id2len[self._index][id], fastRepr(container, maxLen=CheckContainers.ReprItems))) self.notify.warning(msg) self.notify.info('sending notification...') yield None messenger.send(self._leakDetector.getLeakEvent(), [container, name]) except Exception, e: print 'CheckContainers job caught exception: %s' % e if __dev__: #raise e pass yield Job.Done
d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 2170, 2673, 1435, 468, 1409, 326, 783, 562, 434, 1517, 1478, 364, 612, 316, 3258, 30, 2824, 599, 775, 30, 364, 563, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 5132, 7642, 12, 350, 4672, 2824, 599, 1478, 273, 563, 1335, 1185, 16, 425, 30, 468, 333, 1478, 1158, 7144, 1704, 309, 365, 18, 12336, 18, 588, 2829, 13332, 364, 466, 461, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 461, 5132, 7642, 12, 350, 4672, 2824, 599, 365, 18, 12336, 18, 4148, 12, 1995, 87, 1158, 7144, 1704, 31, 13537, 1520, 316, 9272, 5132, 6142, 87, 2506, 738, 261, 466, 461, 16, 425, 3719, 365, 6315, 298, 581, 12594, 18, 4479, 2170, 5132, 12, 2603, 548, 13, 1324, 309, 1478, 353, 599, 30, 468, 333, 1478, 1158, 7144, 1704, 309, 365, 18, 12336, 18, 588, 2829, 13332, 364, 466, 461, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 461, 5132, 7642, 12, 350, 4672, 2824, 599, 365, 18, 12336, 18, 4148, 29909, 87, 1158, 7144, 1704, 31, 9272, 5132, 2106, 599, 11, 738, 466, 461, 13, 365, 6315, 298, 581, 12594, 18, 4479, 2170, 5132, 12, 2603, 548, 13, 1324, 775, 30, 276, 2891, 273, 562, 12, 3782, 13, 1335, 1185, 16, 425, 30, 468, 333, 1478, 1158, 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, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 2170, 2673, 1435, 468, 1409, 326, 783, 562, 434, 1517, 1478, 364, 612, 316, 3258, 30, 2824, 599, 775, 30, 364, 563, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 5132, 7642, 12, 350, 4672, 2824, 599, 1478, 273, 563, 1335, 1185, 16, 425, 30, 468, 333, 1478, 1158, 7144, 1704, 309, 365, 18, 12336, 18, 588, 2829, 13332, 364, 466, 461, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 461, 5132, 7642, 12, 350, 4672, 2824, 599, 365, 18, 12336, 18, 2 ]
self.login()
self.login()
def initialise_data(self): """Login, set editor, page and pagelink attributes""" self.login()#anonymous=self.options.anonymous) self.editor = self.options.editor or wikipedia.input(u"Editor to use:") self.setpage()
f42e768094d2426b578dcc7518961d5e56b8f55a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/f42e768094d2426b578dcc7518961d5e56b8f55a/editarticle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21301, 67, 892, 12, 2890, 4672, 3536, 5358, 16, 444, 4858, 16, 1363, 471, 4262, 27269, 1677, 8395, 365, 18, 5819, 1435, 7, 19070, 33, 2890, 18, 2116, 18, 19070, 13, 365, 18, 9177, 273, 365, 18, 2116, 18, 9177, 578, 21137, 18, 2630, 12, 89, 6, 6946, 358, 999, 2773, 13, 365, 18, 542, 2433, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21301, 67, 892, 12, 2890, 4672, 3536, 5358, 16, 444, 4858, 16, 1363, 471, 4262, 27269, 1677, 8395, 365, 18, 5819, 1435, 7, 19070, 33, 2890, 18, 2116, 18, 19070, 13, 365, 18, 9177, 273, 365, 18, 2116, 18, 9177, 578, 21137, 18, 2630, 12, 89, 6, 6946, 358, 999, 2773, 13, 365, 18, 542, 2433, 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 ]
parent = aq_parent(aq_inner(self)) parent_ids = parent.objectIds() if id not in parent_ids:
check_id = getattr(self, 'check_id', None) if check_id is None: parent = aq_parent(aq_inner(self)) parent_ids = parent.objectIds() check_id = lambda id, required: id in parent_ids invalid_id = check_id(id, required=1) if not invalid_id:
def _findUniqueId(self, id): """Find a unique id in the parent folder, based on the given id, by appending -n, where n is a number between 1 and the constant RENAME_AFTER_CREATION_ATTEMPTS, set in config.py. If no id can be found, return None. """ parent = aq_parent(aq_inner(self)) parent_ids = parent.objectIds()
ff3424f1d0da6ffd99d4550e7691240539ec4326 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ff3424f1d0da6ffd99d4550e7691240539ec4326/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 24174, 12, 2890, 16, 612, 4672, 3536, 3125, 279, 3089, 612, 316, 326, 982, 3009, 16, 2511, 603, 326, 864, 612, 16, 635, 19997, 300, 82, 16, 1625, 290, 353, 279, 1300, 3086, 404, 471, 326, 5381, 534, 21150, 67, 18249, 67, 5458, 2689, 67, 789, 16988, 1856, 55, 16, 444, 316, 642, 18, 2074, 18, 971, 1158, 612, 848, 506, 1392, 16, 327, 599, 18, 3536, 982, 273, 279, 85, 67, 2938, 12, 69, 85, 67, 7872, 12, 2890, 3719, 982, 67, 2232, 273, 982, 18, 1612, 2673, 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,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, 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, 4720, 24174, 12, 2890, 16, 612, 4672, 3536, 3125, 279, 3089, 612, 316, 326, 982, 3009, 16, 2511, 603, 326, 864, 612, 16, 635, 19997, 300, 82, 16, 1625, 290, 353, 279, 1300, 3086, 404, 471, 326, 5381, 534, 21150, 67, 18249, 67, 5458, 2689, 67, 789, 16988, 1856, 55, 16, 444, 316, 642, 18, 2074, 18, 971, 1158, 612, 848, 506, 1392, 16, 327, 599, 18, 3536, 982, 273, 279, 85, 67, 2938, 12, 69, 85, 67, 7872, 12, 2890, 3719, 982, 67, 2232, 273, 982, 18, 1612, 2673, 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 ]
return [(left, 'in', rg(ids, table, parent))]
return [(left, 'in', rg(ids, table, parent or table._parent_name))]
def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent)
343f552b9ce6074fd255a350098ce64f7e754679 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/343f552b9ce6074fd255a350098ce64f7e754679/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819, 33, 2472, 13, 327, 3258, 397, 14524, 12, 2232, 22, 16, 1014, 16, 982, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819, 33, 2472, 13, 327, 3258, 397, 14524, 12, 2232, 22, 16, 1014, 16, 982, 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 ]
def FindPcd(self, Arch, ModuleName, Name, Guid, Type, PcdsSet):
def FindPcd(self, Arch, ModuleName, Name, Guid, Type):
def FindPcd(self, Arch, ModuleName, Name, Guid, Type, PcdsSet): NewType = '' DatumType = '' Value = '' Token = '' MaxDatumSize = '' SkuInfoList = {} IsOverrided = False IsFoundInDsc = False IsFoundInDec = False FoundInDecFile = '' # # Second get information from platform database # OwnerPlatform = '' for Dsc in self.Build[Arch].PlatformDatabase.keys(): Pcds = self.Build[Arch].PlatformDatabase[Dsc].Pcds if (Name, Guid) in Pcds: OwnerPlatform = Dsc Pcd = Pcds[(Name, Guid)] if Pcd.Type != '' and Pcd.Type != None: NewType = Pcd.Type if NewType in DataType.PCD_DYNAMIC_TYPE_LIST: NewType = DataType.TAB_PCDS_DYNAMIC elif NewType in DataType.PCD_DYNAMIC_EX_TYPE_LIST: NewType = DataType.TAB_PCDS_DYNAMIC_EX else: NewType = Type
c583042a7ebac8604b26034adbdd555c0bfc36d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/c583042a7ebac8604b26034adbdd555c0bfc36d0/EdkIIWorkspaceBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4163, 52, 4315, 12, 2890, 16, 16959, 16, 5924, 461, 16, 1770, 16, 611, 1911, 16, 1412, 4672, 1166, 559, 273, 875, 20102, 559, 273, 875, 1445, 273, 875, 3155, 273, 875, 4238, 18268, 1225, 273, 875, 10362, 89, 17914, 273, 2618, 2585, 22042, 13898, 273, 1083, 2585, 2043, 382, 40, 1017, 273, 1083, 2585, 2043, 382, 1799, 273, 1083, 10750, 382, 1799, 812, 273, 875, 225, 468, 468, 7631, 336, 1779, 628, 4072, 2063, 468, 16837, 8201, 273, 875, 364, 463, 1017, 316, 365, 18, 3116, 63, 12269, 8009, 8201, 4254, 18, 2452, 13332, 453, 71, 2377, 273, 365, 18, 3116, 63, 12269, 8009, 8201, 4254, 63, 40, 1017, 8009, 28136, 2377, 309, 261, 461, 16, 611, 1911, 13, 316, 453, 71, 2377, 30, 16837, 8201, 273, 463, 1017, 453, 4315, 273, 453, 71, 2377, 63, 12, 461, 16, 611, 1911, 25887, 309, 453, 4315, 18, 559, 480, 875, 471, 453, 4315, 18, 559, 480, 599, 30, 1166, 559, 273, 453, 4315, 18, 559, 309, 1166, 559, 316, 14828, 18, 3513, 40, 67, 40, 25145, 67, 2399, 67, 7085, 30, 1166, 559, 273, 14828, 18, 28899, 67, 3513, 3948, 67, 40, 25145, 1327, 1166, 559, 316, 14828, 18, 3513, 40, 67, 40, 25145, 67, 2294, 67, 2399, 67, 7085, 30, 1166, 559, 273, 14828, 18, 28899, 67, 3513, 3948, 67, 40, 25145, 67, 2294, 469, 30, 1166, 559, 273, 1412, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4163, 52, 4315, 12, 2890, 16, 16959, 16, 5924, 461, 16, 1770, 16, 611, 1911, 16, 1412, 4672, 1166, 559, 273, 875, 20102, 559, 273, 875, 1445, 273, 875, 3155, 273, 875, 4238, 18268, 1225, 273, 875, 10362, 89, 17914, 273, 2618, 2585, 22042, 13898, 273, 1083, 2585, 2043, 382, 40, 1017, 273, 1083, 2585, 2043, 382, 1799, 273, 1083, 10750, 382, 1799, 812, 273, 875, 225, 468, 468, 7631, 336, 1779, 628, 4072, 2063, 468, 16837, 8201, 273, 875, 364, 463, 1017, 316, 365, 18, 3116, 63, 12269, 8009, 8201, 4254, 18, 2452, 13332, 453, 71, 2377, 273, 365, 18, 3116, 63, 12269, 8009, 8201, 4254, 63, 40, 1017, 8009, 28136, 2377, 309, 261, 461, 16, 611, 2 ]
writer = BeakerWriter(journal, offs, filename=name, id=id,
writer = BeakerWriter(journal, offs, id=id, filename=os.path.basename(name), path=os.path.dirname(name),
def get_writer(self, id, name, args=(), kwargs={}): writer = self.__writers.setdefault(id, {}).get(name, None) if writer is None: offss = self.__offsets.get(id, None) if offss is None: offss = self.__offsets[id] = runtimes.TypeDict(self.runtime, 'offsets/%s' % id) offs = offss.get(name, 0) wrargs = self.__writer_args.get(id, None) if wrargs is None: wrargs = self.__writer_args[id] = runtimes.TypeDict(self.runtime, 'writer_args/%s' % id) wrargs[name] = (args, kwargs) jname = self.conf.get('DEFAULT', 'VAR_ROOT') + "/journals/%s/%s" % (id, name) journal = open_(jname, "ab+") writer = BeakerWriter(journal, offs, filename=name, id=id, proxy=self.proxy, *args, **kwargs) writer_set_offset = writer.set_offset def wroff(offs): offss[name] = offs writer_set_offset(offs) writer.set_offset = wroff self.__writers[id][name] = writer return writer
1b06946fb33c7c0aab869fedc66521834aeb3ef4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/1b06946fb33c7c0aab869fedc66521834aeb3ef4/beakerlc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6299, 12, 2890, 16, 612, 16, 508, 16, 833, 33, 9334, 1205, 12938, 4672, 2633, 273, 365, 16186, 5363, 414, 18, 542, 1886, 12, 350, 16, 2618, 2934, 588, 12, 529, 16, 599, 13, 309, 2633, 353, 599, 30, 3397, 1049, 273, 365, 16186, 16542, 18, 588, 12, 350, 16, 599, 13, 309, 3397, 1049, 353, 599, 30, 3397, 1049, 273, 365, 16186, 16542, 63, 350, 65, 273, 1086, 8293, 18, 559, 5014, 12, 2890, 18, 9448, 16, 296, 16542, 5258, 87, 11, 738, 612, 13, 21174, 273, 3397, 1049, 18, 588, 12, 529, 16, 374, 13, 12408, 1968, 273, 365, 16186, 6299, 67, 1968, 18, 588, 12, 350, 16, 599, 13, 309, 12408, 1968, 353, 599, 30, 12408, 1968, 273, 365, 16186, 6299, 67, 1968, 63, 350, 65, 273, 1086, 8293, 18, 559, 5014, 12, 2890, 18, 9448, 16, 296, 6299, 67, 1968, 5258, 87, 11, 738, 612, 13, 12408, 1968, 63, 529, 65, 273, 261, 1968, 16, 1205, 13, 525, 529, 273, 365, 18, 3923, 18, 588, 2668, 5280, 2187, 296, 7716, 67, 9185, 6134, 397, 2206, 78, 6561, 1031, 5258, 87, 5258, 87, 6, 738, 261, 350, 16, 508, 13, 13001, 273, 1696, 67, 12, 78, 529, 16, 315, 378, 15, 7923, 2633, 273, 4823, 6388, 2289, 12, 22644, 16, 21174, 16, 612, 33, 350, 16, 1544, 33, 538, 18, 803, 18, 13909, 12, 529, 3631, 589, 33, 538, 18, 803, 18, 12287, 12, 529, 3631, 2889, 33, 2890, 18, 5656, 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, 6299, 12, 2890, 16, 612, 16, 508, 16, 833, 33, 9334, 1205, 12938, 4672, 2633, 273, 365, 16186, 5363, 414, 18, 542, 1886, 12, 350, 16, 2618, 2934, 588, 12, 529, 16, 599, 13, 309, 2633, 353, 599, 30, 3397, 1049, 273, 365, 16186, 16542, 18, 588, 12, 350, 16, 599, 13, 309, 3397, 1049, 353, 599, 30, 3397, 1049, 273, 365, 16186, 16542, 63, 350, 65, 273, 1086, 8293, 18, 559, 5014, 12, 2890, 18, 9448, 16, 296, 16542, 5258, 87, 11, 738, 612, 13, 21174, 273, 3397, 1049, 18, 588, 12, 529, 16, 374, 13, 12408, 1968, 273, 365, 16186, 6299, 67, 1968, 18, 588, 12, 350, 16, 599, 13, 309, 12408, 1968, 353, 2 ]
fc += str(self.atoms[nn,i]) + "\t"
fc += "%10.5f" % self.atoms[nn,i]
def write_xyz(self, filename="Xyz.out"): """Writes data into a XYZ format file""" fc = "" # Contents of the file fc += str(self.nAtoms) + "\nGenerated by vasputil\n" if not self.cartesian: self.direct2Cartesian() for nn in xrange(self.nAtoms): fc += self.atomSymbols[nn] + "\t" for i in xrange(3): fc += str(self.atoms[nn,i]) + "\t" fc += "\n" f = open(filename, "w") f.write(fc) f.close()
07bbd26db98de8f6c9e659dd00123408cac48e80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14986/07bbd26db98de8f6c9e659dd00123408cac48e80/supercell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 17177, 12, 2890, 16, 1544, 1546, 60, 93, 94, 18, 659, 6, 4672, 3536, 8368, 501, 1368, 279, 30742, 740, 585, 8395, 8036, 273, 1408, 468, 21290, 434, 326, 585, 8036, 1011, 609, 12, 2890, 18, 82, 14280, 13, 397, 1548, 82, 7823, 635, 331, 345, 458, 330, 64, 82, 6, 309, 486, 365, 18, 11848, 13404, 30, 365, 18, 7205, 22, 13006, 13404, 1435, 364, 7761, 316, 12314, 12, 2890, 18, 82, 14280, 4672, 8036, 1011, 365, 18, 7466, 14821, 63, 9074, 65, 397, 1548, 88, 6, 364, 277, 316, 12314, 12, 23, 4672, 8036, 1011, 2213, 2163, 18, 25, 74, 6, 738, 365, 18, 14937, 63, 9074, 16, 77, 65, 8036, 1011, 1548, 82, 6, 284, 273, 1696, 12, 3459, 16, 315, 91, 7923, 284, 18, 2626, 12, 7142, 13, 284, 18, 4412, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 17177, 12, 2890, 16, 1544, 1546, 60, 93, 94, 18, 659, 6, 4672, 3536, 8368, 501, 1368, 279, 30742, 740, 585, 8395, 8036, 273, 1408, 468, 21290, 434, 326, 585, 8036, 1011, 609, 12, 2890, 18, 82, 14280, 13, 397, 1548, 82, 7823, 635, 331, 345, 458, 330, 64, 82, 6, 309, 486, 365, 18, 11848, 13404, 30, 365, 18, 7205, 22, 13006, 13404, 1435, 364, 7761, 316, 12314, 12, 2890, 18, 82, 14280, 4672, 8036, 1011, 365, 18, 7466, 14821, 63, 9074, 65, 397, 1548, 88, 6, 364, 277, 316, 12314, 12, 23, 4672, 8036, 1011, 2213, 2163, 18, 25, 74, 6, 738, 365, 18, 14937, 63, 9074, 16, 77, 65, 8036, 1011, 1548, 82, 2 ]
return result + " ".join(list)
return result + " ".join(format(l) for l in list)
def _linebreak_list(list, per_line=8): result = "" while len(list) > per_line: result += " ".join(list[:per_line]) + "\n" list = list[per_line:] return result + " ".join(list)
e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11985/e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1369, 8820, 67, 1098, 12, 1098, 16, 1534, 67, 1369, 33, 28, 4672, 563, 273, 1408, 1323, 562, 12, 1098, 13, 405, 1534, 67, 1369, 30, 563, 1011, 315, 3552, 5701, 12, 1098, 10531, 457, 67, 1369, 5717, 397, 1548, 82, 6, 666, 273, 666, 63, 457, 67, 1369, 26894, 327, 563, 397, 315, 3552, 5701, 12, 2139, 12, 80, 13, 364, 328, 316, 666, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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1098, 10531, 457, 67, 1369, 5717, 397, 1548, 82, 6, 666, 273, 666, 63, 457, 67, 1369, 26894, 327, 563, 397, 315, 3552, 5701, 12, 2139, 12, 80, 13, 364, 328, 316, 666, 13, 565, 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 ]
headers_end = __build_address_headers(options)
tmpl, headers_end = __build_address_headers(tmpl, options)
def __build_cover(tmpl, total_nr, msg_id, options): """Build the cover message (series description) to be sent via SMTP """ maintainer = __get_maintainer() if not maintainer: maintainer = '' headers_end = __build_address_headers(options) headers_end += 'Message-Id: %s\n' % msg_id if options.refid: headers_end += "In-Reply-To: %s\n" % options.refid headers_end += "References: %s\n" % options.refid headers_end += __build_extra_headers() if options.version: version_str = ' %s' % options.version else: version_str = '' total_nr_str = str(total_nr) patch_nr_str = '0'.zfill(len(total_nr_str)) if total_nr > 1: number_str = ' %s/%s' % (patch_nr_str, total_nr_str) else: number_str = '' tmpl_dict = {'maintainer': maintainer, 'endofheaders': headers_end, 'date': email.Utils.formatdate(localtime = True), 'version': version_str, 'patchnr': patch_nr_str, 'totalnr': total_nr_str, 'number': number_str} try: msg = tmpl % tmpl_dict except KeyError, err: raise CmdException, 'Unknown patch template variable: %s' \ % err except TypeError: raise CmdException, 'Only "%(name)s" variables are ' \ 'supported in the patch template' if options.edit: fname = '.stgitmail.txt' # create the initial file f = file(fname, 'w+') f.write(msg) f.close() # the editor if config.has_option('stgit', 'editor'): editor = config.get('stgit', 'editor') elif 'EDITOR' in os.environ: editor = os.environ['EDITOR'] else: editor = 'vi' editor += ' %s' % fname print 'Invoking the editor: "%s"...' % editor, sys.stdout.flush() print 'done (exit code: %d)' % os.system(editor) # read the message back f = file(fname) msg = f.read() f.close() return msg.strip('\n')
f8d1cf651e6f767e17ea9aad7702a6aaedc2960e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/f8d1cf651e6f767e17ea9aad7702a6aaedc2960e/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 67, 3165, 12, 24717, 16, 2078, 67, 11611, 16, 1234, 67, 350, 16, 702, 4672, 3536, 3116, 326, 5590, 883, 261, 10222, 2477, 13, 358, 506, 3271, 3970, 18102, 3536, 11566, 1521, 273, 1001, 588, 67, 81, 1598, 1521, 1435, 309, 486, 11566, 1521, 30, 11566, 1521, 273, 875, 225, 10720, 16, 1607, 67, 409, 273, 1001, 3510, 67, 2867, 67, 2485, 12, 24717, 16, 702, 13, 1607, 67, 409, 1011, 296, 1079, 17, 548, 30, 738, 87, 64, 82, 11, 738, 1234, 67, 350, 309, 702, 18, 1734, 350, 30, 1607, 67, 409, 1011, 315, 382, 17, 7817, 17, 774, 30, 738, 87, 64, 82, 6, 738, 702, 18, 1734, 350, 1607, 67, 409, 1011, 315, 8221, 30, 738, 87, 64, 82, 6, 738, 702, 18, 1734, 350, 1607, 67, 409, 1011, 1001, 3510, 67, 7763, 67, 2485, 1435, 225, 309, 702, 18, 1589, 30, 1177, 67, 701, 273, 296, 738, 87, 11, 738, 702, 18, 1589, 469, 30, 1177, 67, 701, 273, 875, 225, 2078, 67, 11611, 67, 701, 273, 609, 12, 4963, 67, 11611, 13, 4729, 67, 11611, 67, 701, 273, 296, 20, 10332, 94, 5935, 12, 1897, 12, 4963, 67, 11611, 67, 701, 3719, 309, 2078, 67, 11611, 405, 404, 30, 1300, 67, 701, 273, 296, 738, 87, 5258, 87, 11, 738, 261, 2272, 67, 11611, 67, 701, 16, 2078, 67, 11611, 67, 701, 13, 469, 30, 1300, 67, 701, 273, 875, 225, 10720, 67, 1576, 273, 13666, 81, 1598, 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, 3510, 67, 3165, 12, 24717, 16, 2078, 67, 11611, 16, 1234, 67, 350, 16, 702, 4672, 3536, 3116, 326, 5590, 883, 261, 10222, 2477, 13, 358, 506, 3271, 3970, 18102, 3536, 11566, 1521, 273, 1001, 588, 67, 81, 1598, 1521, 1435, 309, 486, 11566, 1521, 30, 11566, 1521, 273, 875, 225, 10720, 16, 1607, 67, 409, 273, 1001, 3510, 67, 2867, 67, 2485, 12, 24717, 16, 702, 13, 1607, 67, 409, 1011, 296, 1079, 17, 548, 30, 738, 87, 64, 82, 11, 738, 1234, 67, 350, 309, 702, 18, 1734, 350, 30, 1607, 67, 409, 1011, 315, 382, 17, 7817, 17, 774, 30, 738, 87, 64, 82, 6, 738, 702, 18, 1734, 350, 1607, 67, 409, 1011, 2 ]
self.verbosity = 1
self.verbosity = 0
def __init__(self, loader, file): self.file = file self.loader = loader self.tagged = 0 self.colors = [] self.screens = [] self.dashes = [] self.pens = [] self.line_styles = [] self.procindex = [None,] self.bitmapindex = [None,] self.embeddedindex = [None,] self.arrowindex = [None,] self.verbosity = 1 self.angle_factor = 1 self.pages = []
504b3424962c4439e872f80b110653774e635711 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3123/504b3424962c4439e872f80b110653774e635711/ccxloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4088, 16, 585, 4672, 365, 18, 768, 273, 585, 365, 18, 6714, 273, 4088, 365, 18, 23023, 273, 374, 365, 18, 9724, 273, 5378, 365, 18, 1017, 266, 773, 273, 5378, 365, 18, 72, 7690, 273, 5378, 365, 18, 84, 773, 273, 5378, 365, 18, 1369, 67, 10218, 273, 5378, 365, 18, 9381, 1615, 273, 306, 7036, 16, 65, 365, 18, 3682, 1458, 1615, 273, 306, 7036, 16, 65, 365, 18, 20722, 1615, 273, 306, 7036, 16, 65, 365, 18, 7815, 1615, 273, 306, 7036, 16, 65, 365, 18, 16629, 8807, 273, 374, 365, 18, 4341, 67, 6812, 273, 404, 365, 18, 7267, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 18, 23023, 273, 374, 365, 18, 9724, 273, 5378, 365, 18, 1017, 266, 773, 273, 5378, 365, 18, 72, 7690, 273, 5378, 365, 18, 84, 773, 273, 5378, 365, 18, 1369, 67, 10218, 273, 5378, 365, 18, 9381, 1615, 273, 306, 7036, 16, 65, 365, 18, 3682, 1458, 1615, 273, 306, 7036, 16, 65, 365, 18, 20722, 1615, 273, 306, 7036, 16, 65, 365, 18, 7815, 1615, 273, 306, 7036, 16, 65, 365, 18, 16629, 8807, 273, 374, 365, 18, 4341, 67, 6812, 273, 404, 365, 18, 7267, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100 ]
match = _passwdprog.match(user)
match = _passwdprog.match(user)
def splitpasswd(user): global _passwdprog if _passwdprog is None: import re _passwdprog = re.compile('^([^:]*):(.*)$') match = _passwdprog.match(user) if match: return match.group(1, 2) return user, None
2d38d3f1f4ff990c5bea7bc3505e01b697c7563f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2d38d3f1f4ff990c5bea7bc3505e01b697c7563f/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 24002, 12, 1355, 4672, 2552, 389, 24002, 14654, 309, 389, 24002, 14654, 353, 599, 30, 1930, 283, 389, 24002, 14654, 273, 283, 18, 11100, 2668, 66, 8178, 30, 5772, 4672, 14361, 8, 6134, 225, 845, 273, 389, 24002, 14654, 18, 1916, 12, 1355, 13, 309, 845, 30, 327, 845, 18, 1655, 12, 21, 16, 576, 13, 327, 729, 16, 599, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 24002, 12, 1355, 4672, 2552, 389, 24002, 14654, 309, 389, 24002, 14654, 353, 599, 30, 1930, 283, 389, 24002, 14654, 273, 283, 18, 11100, 2668, 66, 8178, 30, 5772, 4672, 14361, 8, 6134, 225, 845, 273, 389, 24002, 14654, 18, 1916, 12, 1355, 13, 309, 845, 30, 327, 845, 18, 1655, 12, 21, 16, 576, 13, 327, 729, 16, 599, 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 ]
print "===============================\n %s\n===============================" % title
print "===============================" print title print "==============================="
def wrapper(*args): print "===============================\n %s\n===============================" % title return f(*args)
384389ba88074400c7a7209aa406ffc0af69d9ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9738/384389ba88074400c7a7209aa406ffc0af69d9ec/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 30857, 1968, 4672, 1172, 315, 2429, 26678, 1546, 1172, 2077, 1172, 315, 2429, 26678, 1546, 327, 284, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 30857, 1968, 4672, 1172, 315, 2429, 26678, 1546, 1172, 2077, 1172, 315, 2429, 26678, 1546, 327, 284, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif (obj1_type == list_type or obj2_type == list_type):
elif obj1_type == list_type or obj2_type == list_type:
def empty_result(obj1,obj2=None): """ This function inspects the arguments and returns an appropriate return type for an operation using the arguments. The object can be filled using result_insert. Parameters: ---------- -> obj1 is a SOM, SO or tuple -> obj2 is a SOM, SO or tuple Returns: ------- <- A tuple containing the requested object (SOM, SO or tuple) and the corresponding descriptor """ obj1_type = get_type(obj1) if obj2 == None: if obj1_type == SOM_type: return (SOM.SOM(), SOM_type) elif obj1_type == SO_type: return (SOM.SO(obj1.dim()), SO_type) elif obj1_type == list_type: return ([], list_type) else: return ([], num_type) # If obj2 != None, go on. else: pass obj2_type = get_type(obj2) if (obj1_type == SOM_type or obj2_type == SOM_type): return (SOM.SOM(), SOM_type) elif (obj1_type == SO_type or obj2_type == SO_type): if obj1_type == SO_type: return (SOM.SO(obj1.dim()), SO_type) elif obj2_type == SO_type: return (SOM.SO(obj2.dim()), SO_type) elif (obj1_type == list_type or obj2_type == list_type): return ([], list_type) else: return ([], num_type)
1a7152ef8214e57cb269e9232349874b9d88a4cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/1a7152ef8214e57cb269e9232349874b9d88a4cc/hlr_data_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1008, 67, 2088, 12, 2603, 21, 16, 2603, 22, 33, 7036, 4672, 3536, 1220, 445, 11085, 326, 1775, 471, 1135, 392, 5505, 327, 618, 364, 392, 1674, 1450, 326, 1775, 18, 1021, 733, 848, 506, 6300, 1450, 563, 67, 6387, 18, 225, 7012, 30, 12181, 317, 1081, 21, 353, 279, 348, 1872, 16, 7460, 578, 3193, 317, 1081, 22, 353, 279, 348, 1872, 16, 7460, 578, 3193, 225, 2860, 30, 18365, 3290, 432, 3193, 4191, 326, 3764, 733, 261, 55, 1872, 16, 7460, 578, 3193, 13, 471, 326, 4656, 4950, 3536, 225, 1081, 21, 67, 723, 273, 336, 67, 723, 12, 2603, 21, 13, 225, 309, 1081, 22, 422, 599, 30, 309, 1081, 21, 67, 723, 422, 348, 1872, 67, 723, 30, 327, 261, 55, 1872, 18, 55, 1872, 9334, 348, 1872, 67, 723, 13, 1327, 1081, 21, 67, 723, 422, 7460, 67, 723, 30, 327, 261, 55, 1872, 18, 3584, 12, 2603, 21, 18, 3509, 1435, 3631, 7460, 67, 723, 13, 1327, 1081, 21, 67, 723, 422, 666, 67, 723, 30, 327, 23265, 6487, 666, 67, 723, 13, 469, 30, 327, 23265, 6487, 818, 67, 723, 13, 468, 971, 1081, 22, 480, 599, 16, 1960, 603, 18, 469, 30, 1342, 225, 1081, 22, 67, 723, 273, 336, 67, 723, 12, 2603, 22, 13, 225, 309, 261, 2603, 21, 67, 723, 422, 348, 1872, 67, 723, 578, 1081, 22, 67, 723, 422, 348, 1872, 67, 723, 4672, 327, 261, 55, 1872, 18, 55, 1872, 9334, 348, 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, 1008, 67, 2088, 12, 2603, 21, 16, 2603, 22, 33, 7036, 4672, 3536, 1220, 445, 11085, 326, 1775, 471, 1135, 392, 5505, 327, 618, 364, 392, 1674, 1450, 326, 1775, 18, 1021, 733, 848, 506, 6300, 1450, 563, 67, 6387, 18, 225, 7012, 30, 12181, 317, 1081, 21, 353, 279, 348, 1872, 16, 7460, 578, 3193, 317, 1081, 22, 353, 279, 348, 1872, 16, 7460, 578, 3193, 225, 2860, 30, 18365, 3290, 432, 3193, 4191, 326, 3764, 733, 261, 55, 1872, 16, 7460, 578, 3193, 13, 471, 326, 4656, 4950, 3536, 225, 1081, 21, 67, 723, 273, 336, 67, 723, 12, 2603, 21, 13, 225, 309, 1081, 22, 422, 599, 30, 309, 1081, 21, 67, 723, 422, 348, 2 ]
if not all_required.has_key(this): all_required[this] = [] required = all_required[this]
propdef = all_propdef[cn]
e58be10f9d0a92bfdb379cbe4e1948b77f52ed44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e58be10f9d0a92bfdb379cbe4e1948b77f52ed44/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2270, 536, 273, 777, 67, 5986, 536, 63, 10305, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2270, 536, 273, 777, 67, 5986, 536, 63, 10305, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
md[self.selections_metadata_name] = [index]
md[self.selection_metadata_name] = [index]
def _select(self, index, append=True): plot = self.component for name in ('index', 'value'): md = getattr(plot, name).metadata selection = md.get(self.selections_metadata_name, None)
605ee9a8a51e3941bff0a40b785047649151e760 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/605ee9a8a51e3941bff0a40b785047649151e760/scatter_inspector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4025, 12, 2890, 16, 770, 16, 714, 33, 5510, 4672, 3207, 273, 365, 18, 4652, 364, 508, 316, 7707, 1615, 2187, 296, 1132, 11, 4672, 3481, 273, 3869, 12, 4032, 16, 508, 2934, 4165, 4421, 273, 3481, 18, 588, 12, 2890, 18, 10705, 87, 67, 4165, 67, 529, 16, 599, 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,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 4672, 3207, 273, 365, 18, 4652, 364, 508, 316, 7707, 1615, 2187, 296, 1132, 11, 4672, 3481, 273, 3869, 12, 4032, 16, 508, 2934, 4165, 4421, 273, 3481, 18, 588, 12, 2890, 18, 10705, 87, 67, 4165, 67, 529, 16, 599, 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 ]
if timeslot is None:
if timeslot is not None:
def catalog(self, request, tl, one, two, module, extra, prog, timeslot=None): """ Return the program class catalog """ context = {} dt_approved = GetNode( 'V/Flags/Class/Approved' )
328fb862c237d89a2c9f223cbea2f0482e2c4153 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/328fb862c237d89a2c9f223cbea2f0482e2c4153/studentclassregmodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 12, 2890, 16, 590, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 16, 4124, 23372, 33, 7036, 4672, 3536, 2000, 326, 5402, 667, 6222, 3536, 225, 819, 273, 2618, 3681, 67, 25990, 273, 968, 907, 12, 296, 58, 19, 5094, 19, 797, 19, 31639, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 12, 2890, 16, 590, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 16, 4124, 23372, 33, 7036, 4672, 3536, 2000, 326, 5402, 667, 6222, 3536, 225, 819, 273, 2618, 3681, 67, 25990, 273, 968, 907, 12, 296, 58, 19, 5094, 19, 797, 19, 31639, 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 ]
mul1s reg, t1
mul1s reg, t1, flags=(CF,OF)
def macroop IMUL_R_M
b64d0bdeda1662091746c3695b4429fcc6f69342 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/b64d0bdeda1662091746c3695b4429fcc6f69342/multiply_and_divide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 6246, 1506, 67, 54, 67, 49, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11522, 556, 6246, 1506, 67, 54, 67, 49, 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 ]
import mimetools, StringIO headers = mimetools.Message(StringIO.StringIO( 'Content-Length: %d\n' % retrlen)) else: headers = noheaders()
headers += "Content-Length: %d\n" % retrlen headers = mimetools.Message(StringIO.StringIO(headers))
def open_ftp(self, url): """Use FTP protocol.""" host, path = splithost(url) if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) user, host = splituser(host) if user: user, passwd = splitpasswd(user) else: passwd = None host = unquote(host) user = unquote(user or '') passwd = unquote(passwd or '') host = socket.gethostbyname(host) if not port: import ftplib port = ftplib.FTP_PORT else: port = int(port) path, attrs = splitattr(path) path = unquote(path) dirs = path.split('/') dirs, file = dirs[:-1], dirs[-1] if dirs and not dirs[0]: dirs = dirs[1:] if dirs and not dirs[0]: dirs[0] = '/' key = user, host, port, '/'.join(dirs) # XXX thread unsafe! if len(self.ftpcache) > MAXFTPCACHE: # Prune the cache, rather arbitrarily for k in self.ftpcache.keys(): if k != key: v = self.ftpcache[k] del self.ftpcache[k] v.close() try: if not self.ftpcache.has_key(key): self.ftpcache[key] = \ ftpwrapper(user, passwd, host, port, dirs) if not file: type = 'D' else: type = 'I' for attr in attrs: attr, value = splitvalue(attr) if attr.lower() == 'type' and \ value in ('a', 'A', 'i', 'I', 'd', 'D'): type = value.upper() (fp, retrlen) = self.ftpcache[key].retrfile(file, type) if retrlen is not None and retrlen >= 0: import mimetools, StringIO headers = mimetools.Message(StringIO.StringIO( 'Content-Length: %d\n' % retrlen)) else: headers = noheaders() return addinfourl(fp, headers, "ftp:" + url) except ftperrors(), msg: raise IOError, ('ftp error', msg), sys.exc_info()[2]
2078c4109a32f378e49883f3fb164d94045ff893 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2078c4109a32f378e49883f3fb164d94045ff893/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 11727, 12, 2890, 16, 880, 4672, 3536, 3727, 19324, 1771, 12123, 1479, 16, 589, 273, 6121, 483, 669, 12, 718, 13, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 296, 2135, 1479, 864, 6134, 1479, 16, 1756, 273, 1416, 655, 12, 2564, 13, 729, 16, 1479, 273, 1416, 1355, 12, 2564, 13, 309, 729, 30, 729, 16, 19093, 273, 1416, 24002, 12, 1355, 13, 469, 30, 19093, 273, 599, 1479, 273, 25611, 12, 2564, 13, 729, 273, 25611, 12, 1355, 578, 28707, 19093, 273, 25611, 12, 24002, 578, 28707, 1479, 273, 2987, 18, 75, 546, 669, 1637, 529, 12, 2564, 13, 309, 486, 1756, 30, 1930, 11038, 6673, 1756, 273, 11038, 6673, 18, 17104, 67, 6354, 469, 30, 1756, 273, 509, 12, 655, 13, 589, 16, 3422, 273, 1416, 1747, 12, 803, 13, 589, 273, 25611, 12, 803, 13, 7717, 273, 589, 18, 4939, 2668, 2473, 13, 7717, 16, 585, 273, 7717, 10531, 17, 21, 6487, 7717, 18919, 21, 65, 309, 7717, 471, 486, 7717, 63, 20, 14542, 7717, 273, 7717, 63, 21, 26894, 309, 7717, 471, 486, 7717, 63, 20, 14542, 7717, 63, 20, 65, 273, 2023, 498, 273, 729, 16, 1479, 16, 1756, 16, 2023, 18, 5701, 12, 8291, 13, 468, 11329, 2650, 7127, 5, 309, 562, 12, 2890, 18, 1222, 2436, 807, 13, 405, 4552, 4464, 3513, 37, 5007, 30, 468, 2301, 7556, 326, 1247, 16, 9178, 10056, 86, 10243, 364, 417, 316, 365, 18, 1222, 2436, 807, 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, 1696, 67, 11727, 12, 2890, 16, 880, 4672, 3536, 3727, 19324, 1771, 12123, 1479, 16, 589, 273, 6121, 483, 669, 12, 718, 13, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 296, 2135, 1479, 864, 6134, 1479, 16, 1756, 273, 1416, 655, 12, 2564, 13, 729, 16, 1479, 273, 1416, 1355, 12, 2564, 13, 309, 729, 30, 729, 16, 19093, 273, 1416, 24002, 12, 1355, 13, 469, 30, 19093, 273, 599, 1479, 273, 25611, 12, 2564, 13, 729, 273, 25611, 12, 1355, 578, 28707, 19093, 273, 25611, 12, 24002, 578, 28707, 1479, 273, 2987, 18, 75, 546, 669, 1637, 529, 12, 2564, 13, 309, 486, 1756, 30, 1930, 11038, 6673, 1756, 273, 11038, 6673, 18, 2 ]
if (config["collection"]["editable"] and None != os.getenv ("EDITOR", None)): os.system (os.getenv ("EDITOR") + " \"" + filename + "\"")
if config["collection"]["editable"]: invokeEditor (editor, filename)
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Change to the base path. os.chdir (os.path.dirname (starting_filename)) core_state["curr_base_path"] = "" # There are three windows: a top status bar, a primary screen, and a bottom # status bar. There is also the main screen, of course. Create them. top = meta_screen.subwin (1, meta_x, 0, 0) main = meta_screen.subwin (meta_y - 2, meta_x, 1, 0) bottom = meta_screen.subwin (1, meta_x, meta_y - 1, 0) # Read in the configuration. config = core_state["config"] = generateConfiguration () # Okay. History's actually a bad name for this right now, but it'll have # to do. This is a list of pages; it normally tracks history, but can # also track search results. At the beginning, the only element in the # history is the starting page; others will be added, subtracted, etc. core_state["history"] = [] historyAdd(core_state, os.path.basename (starting_filename)) core_state["history_position"] = 0 fresh_page = True done = False curses.def_prog_mode () main_needs_redraw = True while not done: current_loc = core_state["history"][core_state["history_position"]] if fresh_page: filename = current_loc["filename"] core_state["curr_base_path"] = os.path.dirname (filename) readHyltFile (filename, core_state)
dffc05987167f1e73f81ee3a2be7db157a9223cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/dffc05987167f1e73f81ee3a2be7db157a9223cd/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 7576, 358, 326, 1026, 589, 18, 1140, 18, 343, 1214, 261, 538, 18, 803, 18, 12287, 261, 18526, 67, 3459, 3719, 2922, 67, 2019, 9614, 17016, 67, 1969, 67, 803, 11929, 273, 1408, 282, 468, 6149, 854, 8925, 9965, 30, 279, 1760, 1267, 4653, 16, 279, 3354, 5518, 16, 471, 279, 5469, 468, 1267, 4653, 18, 225, 6149, 353, 2546, 326, 2774, 5518, 16, 434, 4362, 18, 225, 1788, 2182, 18, 1760, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 374, 16, 374, 13, 2774, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 3901, 67, 93, 300, 576, 16, 2191, 67, 92, 16, 404, 16, 374, 13, 5469, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 2191, 67, 93, 300, 404, 16, 374, 13, 225, 468, 2720, 316, 326, 1664, 18, 642, 273, 2922, 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, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 7576, 358, 326, 1026, 589, 18, 1140, 18, 343, 1214, 261, 538, 18, 803, 18, 12287, 261, 18526, 67, 2 ]
raise
def start(self, local_sdp, remote_sdp, stream_index): context = 'sdp_negotiation' try: self.remote_identity = CPIMIdentity(self.session.remote_identity.uri, self.session.remote_identity.display_name) remote_media = remote_sdp.media[stream_index] media_attributes = dict((attr.name, attr.value) for attr in remote_media.attributes) remote_accept_types = media_attributes.get('accept-types') # TODO: update accept_types and accept_wrapped_types from remote_media # TODO: chatroom, recvonly/sendonly? self.cpim_enabled = contains_mime_type(self.accept_types, 'message/cpim') self.private_messages_allowed = self.cpim_enabled # and isfocus and 'private-messages' in chatroom remote_uri_path = media_attributes.get('path') if remote_uri_path is None: raise AttributeError("remote SDP media does not have 'path' attribute") full_remote_path = [parse_uri(uri) for uri in remote_uri_path.split()] context = 'start' self.msrp = self.msrp_connector.complete(full_remote_path) self.msrp_session = MSRPSession(self.msrp, accept_types=self.accept_types, on_incoming_cb=self._on_incoming) self.msrp_connector = None self._on_start() except Exception, ex: ndata = NotificationData(context=context, failure=Failure(), reason=str(ex) or type(ex).__name__) self.notification_center.post_notification('MediaStreamDidFail', self, ndata) raise else: self.notification_center.post_notification('MediaStreamDidStart', self) while self.message_queue: self._send_raw_message(*self.message_queue.popleft()) # what if starting has failed? should I generate MSRPChatDidNotDeliver per each message?
7426ae2cdbd3e4d6acdb27a63d2d82db1b095660 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/7426ae2cdbd3e4d6acdb27a63d2d82db1b095660/msrpstream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 1191, 67, 6427, 84, 16, 2632, 67, 6427, 84, 16, 1407, 67, 1615, 4672, 819, 273, 296, 6427, 84, 67, 14518, 352, 7072, 11, 775, 30, 365, 18, 7222, 67, 10781, 273, 385, 1102, 49, 4334, 12, 2890, 18, 3184, 18, 7222, 67, 10781, 18, 1650, 16, 365, 18, 3184, 18, 7222, 67, 10781, 18, 5417, 67, 529, 13, 2632, 67, 5829, 273, 2632, 67, 6427, 84, 18, 5829, 63, 3256, 67, 1615, 65, 3539, 67, 4350, 273, 2065, 12443, 1747, 18, 529, 16, 1604, 18, 1132, 13, 364, 1604, 316, 2632, 67, 5829, 18, 4350, 13, 2632, 67, 9436, 67, 2352, 273, 3539, 67, 4350, 18, 588, 2668, 9436, 17, 2352, 6134, 468, 2660, 30, 1089, 2791, 67, 2352, 471, 2791, 67, 18704, 67, 2352, 628, 2632, 67, 5829, 468, 2660, 30, 7916, 13924, 16, 10665, 3700, 19, 4661, 3700, 35, 365, 18, 4057, 381, 67, 5745, 273, 1914, 67, 11757, 67, 723, 12, 2890, 18, 9436, 67, 2352, 16, 296, 2150, 19, 4057, 381, 6134, 365, 18, 1152, 67, 6833, 67, 8151, 273, 365, 18, 4057, 381, 67, 5745, 468, 471, 353, 13923, 471, 296, 1152, 17, 6833, 11, 316, 7916, 13924, 2632, 67, 1650, 67, 803, 273, 3539, 67, 4350, 18, 588, 2668, 803, 6134, 309, 2632, 67, 1650, 67, 803, 353, 599, 30, 6394, 2932, 7222, 348, 8640, 3539, 1552, 486, 1240, 296, 803, 11, 1566, 7923, 1983, 67, 7222, 67, 803, 273, 306, 2670, 67, 1650, 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, 787, 12, 2890, 16, 1191, 67, 6427, 84, 16, 2632, 67, 6427, 84, 16, 1407, 67, 1615, 4672, 819, 273, 296, 6427, 84, 67, 14518, 352, 7072, 11, 775, 30, 365, 18, 7222, 67, 10781, 273, 385, 1102, 49, 4334, 12, 2890, 18, 3184, 18, 7222, 67, 10781, 18, 1650, 16, 365, 18, 3184, 18, 7222, 67, 10781, 18, 5417, 67, 529, 13, 2632, 67, 5829, 273, 2632, 67, 6427, 84, 18, 5829, 63, 3256, 67, 1615, 65, 3539, 67, 4350, 273, 2065, 12443, 1747, 18, 529, 16, 1604, 18, 1132, 13, 364, 1604, 316, 2632, 67, 5829, 18, 4350, 13, 2632, 67, 9436, 67, 2352, 273, 3539, 67, 4350, 18, 588, 2668, 9436, 17, 2352, 6134, 468, 2 ]
so_dim.id = kwargs.get("so_id", 0)
so_dim.id = kwargs.get("so_id", som[0].id)
def create_E_vs_Q_dgs(som, E_i, Q_final, **kwargs): """ This function starts with the rebinned energy transfer and turns this into a 2D spectra with E and Q axes for DGS instruments. @param som: The input object with initial IGS wavelength axis @type som: C{SOM.SOM} @param E_i: The initial energy for the given data. @type E_i: C{tuple} @param Q_final: The momentum transfer axis to rebin the data to @type Q_final: C{nessi_list.NessiList} @param kwargs: A list of keyword arguments that the function accepts: @keyword corner_geom: The filename that contains the corner geometry information. @type corner_geom: C{string} @keyword so_id: The identifier represents a number, string, tuple or other object that describes the resulting C{SO} @type so_id: C{int}, C{string}, C{tuple}, C{pixel ID} @keyword y_label: The y axis label @type y_label: C{string} @keyword y_units: The y axis units @type y_units: C{string} @keyword x_labels: This is a list of names that sets the individual x axis labels @type x_labels: C{list} of C{string}s @keyword x_units: This is a list of names that sets the individual x axis units @type x_units: C{list} of C{string}s @keyword split: This flag causes the counts and the fractional area to be written out into separate files. @type split: C{boolean} @keyword configure: This is the object containing the driver configuration. @type configure: C{Configure} @keyword timer: Timing object so the function can perform timing estimates. @type timer: C{sns_timer.DiffTime} @return: Object containing a 2D C{SO} with E and Q axes @rtype: C{SOM.SOM} """ import array_manip import axis_manip import common_lib import hlr_utils import nessi_list import SOM # Check for keywords t = kwargs.get("timer") corner_geom = kwargs.get("corner_geom", "") configure = kwargs.get("configure") split = kwargs.get("split", False) # Setup output object so_dim = SOM.SO(dim) so_dim.axis[0].val = Q_final so_dim.axis[1].val = som[0].axis[0].val # E_t # Calculate total 2D array size N_tot = len(so_dim.axis[0].val) * len(so_dim.axis[1].val) # Create y and var_y lists from total 2D size so_dim.y = nessi_list.NessiList(N_tot) so_dim.var_y = nessi_list.NessiList(N_tot) # Create area sum and errors for the area sum lists from total 2D size area_sum = nessi_list.NessiList(N_tot) area_sum_err2 = nessi_list.NessiList(N_tot) # Convert initial energy to initial wavevector l_i = common_lib.energy_to_wavelength(E_i) k_i = common_lib.wavelength_to_scalar_k(l_i) # Since all the data is rebinned to the same energy transfer axis, we can # calculate the final energy axis once E_t = som[0].axis[0].val if som[0].axis[0].var is not None: E_t_err2 = som[0].axis[0].var else: import nessi_list E_t_err2 = nessi_list.NessiList(len(E_t)) E_f = array_manip.sub_ncerr(E_i[0], E_i[1], E_t, E_t_err2) # Now we can get the final wavevector l_f = axis_manip.energy_to_wavelength(E_f[0], E_f[1]) k_f = axis_manip.wavelength_to_scalar_k(l_f[0], l_f[1]) # Grab the instrument from the som inst = som.attr_list.instrument # Get the corner geoemetry information if t is not None: t.getTime(False) corner_angles = hlr_utils.get_corner_geometry(corner_geom) if t is not None: t.getTime(msg="After reading in corner geometry information ") # Iterate though the data len_som = hlr_utils.get_length(som) for i in xrange(len_som): map_so = hlr_utils.get_map_so(som, None, i) yval = hlr_utils.get_value(som, i, "SOM", "y") yerr2 = hlr_utils.get_err2(som, i, "SOM", "y") cangles = corner_angles[str(map_so.id)] avg_theta1 = (cangles.getPolar(0) + cangles.getPolar(1)) / 2.0 avg_theta2 = (cangles.getPolar(2) + cangles.getPolar(3)) / 2.0 (Q1, Q1_err2) = axis_manip.init_scatt_wavevector_to_scalar_Q(k_i[0][:-1], k_i[1][:-1], k_f[0], k_f[1], avg_theta1, 0.0) (Q2, Q2_err2) = axis_manip.init_scatt_wavevector_to_scalar_Q(k_i[0][:-1], k_i[1][:-1], k_f[0], k_f[1], avg_theta2, 0.0) (Q3, Q3_err2) = axis_manip.init_scatt_wavevector_to_scalar_Q(k_i[0][1:], k_i[1][1:], k_f[0], k_f[1], avg_theta1, 0.0) (Q4, Q4_err2) = axis_manip.init_scatt_wavevector_to_scalar_Q(k_i[0][1:], k_i[1][1:], k_f[0], k_f[1], avg_theta2, 0.0) try: (y_2d, y_2d_err2, area_new) = axis_manip.rebin_2D_quad_to_rectlin(Q_1, E_t[:-1], Q_2, E_t[:-1], Q_3, E_t[1:], Q_4, E_t[1:], counts, counts_err2, so_dim.axis[0].val, so_dim.axis[1].val) except IndexError, e: # Get the offending index from the error message index = int(str(e).split()[1].split('index')[-1].strip('[]')) print "Id:", map_so.id print "Index:", index print "Verticies: %f, %f, %f, %f, %f, %f, %f, %f" % (Q_1[index], E_t_1[index], Q_2[index], E_t_2[index], Q_3[index], E_t_3[index], Q_4[index], E_t_4[index]) raise IndexError(str(e)) # Add in together with previous results (so_dim.y, so_dim.var_y) = array_manip.add_ncerr(so_dim.y, so_dim.var_y, y_2d, y_2d_err2) (area_sum, area_sum_err2) = array_manip.add_ncerr(area_sum, area_sum_err2, area_new, area_sum_err2) # Check for so_id keyword argument so_dim.id = kwargs.get("so_id", 0) comb_som = SOM.SOM() comb_som.copyAttributes(som) comb_som = __set_som_attributes(comb_som, inst_name, **kwargs) if split: comb_som.append(so_dim) # Write out summed counts into file hlr_utils.write_file(configure.output, "text/Dave2d", comb_som, output_ext="cnt", verbose=configure.verbose, data_ext=configure.ext_replacement, path_replacement=configure.path_replacement, message="summed counts") # Replace counts data with fractional area. The axes remain the same comb_som[0].y = area_sum comb_som[0].var_y = area_sum_err2 # Write out summed counts into file hlr_utils.write_file(configure.output, "text/Dave2d", comb_som, output_ext="fra", verbose=configure.verbose, data_ext=configure.ext_replacement, path_replacement=configure.path_replacement, message="fractional area") else: # Divide summed fractional counts by the sum of the fractional areas (so_dim.y, so_dim.var_y) = array_manip.div_ncerr(so_dim.y, so_dim.var_y, area_sum, area_sum_err2) comb_som.append(so_dim) del so_dim return comb_som
3ee4cd3bf77e1cc98e4ce15d6821d6f11fa9c3e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/3ee4cd3bf77e1cc98e4ce15d6821d6f11fa9c3e4/hlr_create_E_vs_Q_dgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 41, 67, 6904, 67, 53, 67, 72, 564, 12, 87, 362, 16, 512, 67, 77, 16, 2238, 67, 6385, 16, 2826, 4333, 4672, 3536, 1220, 445, 2542, 598, 326, 283, 4757, 11748, 12929, 7412, 471, 20748, 333, 1368, 279, 576, 40, 23242, 354, 598, 512, 471, 2238, 6515, 364, 463, 16113, 29555, 18, 225, 632, 891, 4737, 30, 1021, 810, 733, 598, 2172, 13102, 55, 21410, 2654, 632, 723, 4737, 30, 385, 95, 55, 1872, 18, 55, 1872, 97, 225, 632, 891, 512, 67, 77, 30, 1021, 2172, 12929, 364, 326, 864, 501, 18, 632, 723, 512, 67, 77, 30, 385, 95, 8052, 97, 225, 632, 891, 2238, 67, 6385, 30, 1021, 10382, 379, 7412, 2654, 358, 283, 4757, 326, 501, 358, 632, 723, 2238, 67, 6385, 30, 385, 95, 4496, 77, 67, 1098, 18, 50, 403, 77, 682, 97, 225, 632, 891, 1205, 30, 432, 666, 434, 4932, 1775, 716, 326, 445, 8104, 30, 225, 632, 11041, 11055, 67, 10049, 30, 1021, 1544, 716, 1914, 326, 11055, 5316, 1779, 18, 632, 723, 11055, 67, 10049, 30, 385, 95, 1080, 97, 225, 632, 11041, 1427, 67, 350, 30, 1021, 2756, 8686, 279, 1300, 16, 533, 16, 3193, 578, 1308, 733, 716, 19605, 326, 8156, 385, 95, 3584, 97, 632, 723, 1427, 67, 350, 30, 385, 95, 474, 5779, 385, 95, 1080, 5779, 385, 95, 8052, 5779, 385, 95, 11743, 1599, 97, 225, 632, 11041, 677, 67, 1925, 30, 1021, 677, 2654, 1433, 632, 723, 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, 752, 67, 41, 67, 6904, 67, 53, 67, 72, 564, 12, 87, 362, 16, 512, 67, 77, 16, 2238, 67, 6385, 16, 2826, 4333, 4672, 3536, 1220, 445, 2542, 598, 326, 283, 4757, 11748, 12929, 7412, 471, 20748, 333, 1368, 279, 576, 40, 23242, 354, 598, 512, 471, 2238, 6515, 364, 463, 16113, 29555, 18, 225, 632, 891, 4737, 30, 1021, 810, 733, 598, 2172, 13102, 55, 21410, 2654, 632, 723, 4737, 30, 385, 95, 55, 1872, 18, 55, 1872, 97, 225, 632, 891, 512, 67, 77, 30, 1021, 2172, 12929, 364, 326, 864, 501, 18, 632, 723, 512, 67, 77, 30, 385, 95, 8052, 97, 225, 632, 891, 2238, 67, 6385, 30, 1021, 10382, 379, 7412, 2654, 2 ]
res = func(value) if len(res) > 2: collections, items, value = res else: collections, items = res
try: res = func(value) if len(res) > 2: collections, items, value = res else: collections, items = res except ObjectDoesNotExist: collections = collections.none() items = items.none()
def search(self, request, type = None): """Perform a search through collections and items metadata""" collections = MediaCollection.objects.enriched() items = MediaItem.objects.enriched() input = request.REQUEST criteria = {}
5fd5df913604911f8008a002a26c683002577f27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12043/5fd5df913604911f8008a002a26c683002577f27/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 590, 16, 618, 273, 599, 4672, 3536, 4990, 279, 1623, 3059, 6980, 471, 1516, 1982, 8395, 6980, 273, 6128, 2532, 18, 6911, 18, 275, 12761, 329, 1435, 1516, 273, 6128, 1180, 18, 6911, 18, 275, 12761, 329, 1435, 810, 273, 590, 18, 5519, 3582, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 590, 16, 618, 273, 599, 4672, 3536, 4990, 279, 1623, 3059, 6980, 471, 1516, 1982, 8395, 6980, 273, 6128, 2532, 18, 6911, 18, 275, 12761, 329, 1435, 1516, 273, 6128, 1180, 18, 6911, 18, 275, 12761, 329, 1435, 810, 273, 590, 18, 5519, 3582, 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 ]
msg=u"vCard for %s:\n" % (stanza.get_from(),)
msg = u"vCard for %s:\n" % (unicode(stanza.get_from()),)
def vcard_response(self,stanza): try: node=stanza.get_query() if node: vcard=VCard(node) else: vcard=None except (ValueError,),e: vcard=None if vcard is None: self.error(u"Invalid vCard received from "+stanza.get_from().as_unicode()) return self.cjc.set_user_info(stanza.get_from(),"vcard",vcard) msg=u"vCard for %s:\n" % (stanza.get_from(),) msg+=u" Full name: %s\n" % (vcard.fn.value) if vcard.n.given: msg += u" Given name: %s\n" % (vcard.n.given) if vcard.n.middle: msg += u" Middle name: %s\n" % (vcard.n.middle) if vcard.n.family: msg += u" Family name: %s\n" % (vcard.n.family) for title in vcard.title: msg += u" Title: %s\n" % (title.value) for role in vcard.role: msg += u" Role: %s\n" % (role.value) for email in vcard.email: if "internet" in email.type: msg += u" E-Mail: %s\n" % (email.address,) for nick in vcard.nickname: msg += u" Nick: %s\n" % (nick.value,) for photo in vcard.photo: if photo.uri: msg += u" Photo: %s\n" % (photo.uri,) else: msg += u" Photo: cannot display\n" for logo in vcard.logo: if logo.uri: msg += u" Logo: %s\n" % (logo.uri,) else: msg += u" Logo: cannot display\n" for bday in vcard.bday: msg += u" Birthday: %s\n" % (bday,) for adr in vcard.adr: msg += u" Address (%s):\n" % (u", ".join(adr.type),) if adr.pobox: msg += u" PO Box: %s\n" % (adr.pobox,) if adr.extadr: msg += u" %s\n" % (adr.extadr,) if adr.street: msg += u" Street: %s\n" % (adr.street,) if adr.locality: msg += u" Locality: %s\n" % (adr.locality,) if adr.region: msg += u" Region: %s\n" % (adr.region,) if adr.pcode: msg += u" Postal code: %s\n" % (adr.pcode,) if adr.ctry: msg += u" Country: %s\n" % (adr.ctry,) for label in vcard.label: msg += u" Address label (%s):\n" % (u", ".join(label.type),) for l in label.lines: msg += u" %s\n" % (l,) for tel in vcard.tel: msg += u" Phone (%s): %s\n" % (u", ".join(tel.type), tel.number) for jabberid in vcard.jabberid: msg += u" JID: %s\n" % (jabberid.value,) for mailer in vcard.mailer: msg += u" Mailer: %s\n" % (mailer.value,) for tz in vcard.tz: msg += u" Time zone: %s\n" % (tz.value,) for geo in vcard.geo: msg += u" Geolocation: %s, %s\n" % (geo.lat, geo.lon) for org in vcard.org: msg += u" Organization: %s\n" % (org.name, ) if org.unit: msg += u" Org. unit: %s\n" % (org.unit, ) for categories in vcard.categories: msg += u" Categories: %s\n" % (u", ".join(categories.keywords),) for note in vcard.note: msg += u" Note: %s\n" % (note.value,) for sound in vcard.sound: if sound.uri: msg += u" Sound: %s\n" % (sound.uri,) else: msg += u" Sound: cannot play\n" for uid in vcard.uid: msg += u" User id: %s\n" % (uid.value,) for url in vcard.url: msg += u" URL: %s\n" % (url.value,) for desc in vcard.desc: msg += u" Description: %s\n" % (desc.value,) self.info(msg)
b8468c0a12ddf237c3c850d0955f27458f918042 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/b8468c0a12ddf237c3c850d0955f27458f918042/vcard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29760, 67, 2740, 12, 2890, 16, 541, 11939, 4672, 775, 30, 756, 33, 541, 11939, 18, 588, 67, 2271, 1435, 309, 756, 30, 29760, 33, 58, 6415, 12, 2159, 13, 469, 30, 29760, 33, 7036, 1335, 261, 23610, 16, 3631, 73, 30, 29760, 33, 7036, 309, 29760, 353, 599, 30, 365, 18, 1636, 12, 89, 6, 1941, 331, 6415, 5079, 628, 13773, 541, 11939, 18, 588, 67, 2080, 7675, 345, 67, 9124, 10756, 327, 365, 18, 71, 78, 71, 18, 542, 67, 1355, 67, 1376, 12, 541, 11939, 18, 588, 67, 2080, 9334, 6, 90, 3327, 3113, 90, 3327, 13, 1234, 273, 582, 6, 90, 6415, 364, 738, 87, 5581, 82, 6, 738, 261, 9124, 12, 541, 11939, 18, 588, 67, 2080, 1435, 3631, 13, 225, 1234, 15, 33, 89, 6, 11692, 508, 30, 282, 738, 87, 64, 82, 6, 738, 261, 90, 3327, 18, 4293, 18, 1132, 13, 309, 29760, 18, 82, 18, 10822, 30, 1234, 1011, 582, 6, 16803, 508, 30, 225, 738, 87, 64, 82, 6, 738, 261, 90, 3327, 18, 82, 18, 10822, 13, 309, 29760, 18, 82, 18, 18661, 30, 1234, 1011, 582, 6, 490, 3132, 508, 30, 738, 87, 64, 82, 6, 738, 261, 90, 3327, 18, 82, 18, 18661, 13, 309, 29760, 18, 82, 18, 9309, 30, 1234, 1011, 582, 6, 19343, 508, 30, 738, 87, 64, 82, 6, 738, 261, 90, 3327, 18, 82, 18, 9309, 13, 364, 2077, 316, 29760, 18, 2649, 30, 1234, 1011, 582, 6, 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, 29760, 67, 2740, 12, 2890, 16, 541, 11939, 4672, 775, 30, 756, 33, 541, 11939, 18, 588, 67, 2271, 1435, 309, 756, 30, 29760, 33, 58, 6415, 12, 2159, 13, 469, 30, 29760, 33, 7036, 1335, 261, 23610, 16, 3631, 73, 30, 29760, 33, 7036, 309, 29760, 353, 599, 30, 365, 18, 1636, 12, 89, 6, 1941, 331, 6415, 5079, 628, 13773, 541, 11939, 18, 588, 67, 2080, 7675, 345, 67, 9124, 10756, 327, 365, 18, 71, 78, 71, 18, 542, 67, 1355, 67, 1376, 12, 541, 11939, 18, 588, 67, 2080, 9334, 6, 90, 3327, 3113, 90, 3327, 13, 1234, 273, 582, 6, 90, 6415, 364, 738, 87, 5581, 82, 6, 738, 261, 9124, 12, 541, 11939, 2 ]
url = '/' + os.path.join(self.absolute_url(1), rel_dir, dirname) +\ '/plfng_view?portal_status_message=Directory created' REQUEST.RESPONSE.redirect(url) security.declareProtected('View', 'getProperties')
redir_dest = make_url(self, 'plfng_view') msg = '?portal_status_message='+destpath+' created.' REQUEST.RESPONSE.redirect(redir_dest + msg) return security.declareProtected('View', 'getProperties')
def create_directory(self, dirname, REQUEST): """ create a sub-directory """ dirname = dirname.replace('\\','/') if dirname.startswith('/') or dirname.find('..') > -1 or \ dirname.find(':') > -1: msg="create directory aborted: illegal directory name: " + dirname zLOG.LOG('PloneLocalFolderNG', zLOG.INFO , msg ) REQUEST.RESPONSE.redirect(REQUEST['URL1']+\ '/plfng_view?portal_status_message=' + msg) return 0
4f60f681cc7277bf1f7923bd74aacd6bf3d7674f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/4f60f681cc7277bf1f7923bd74aacd6bf3d7674f/PloneLocalFolderNG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5149, 12, 2890, 16, 4283, 16, 12492, 4672, 3536, 752, 279, 720, 17, 5149, 3536, 4283, 273, 4283, 18, 2079, 2668, 1695, 17023, 2473, 13, 309, 4283, 18, 17514, 1918, 2668, 2473, 13, 578, 4283, 18, 4720, 2668, 838, 6134, 405, 300, 21, 578, 521, 4283, 18, 4720, 2668, 2497, 13, 405, 300, 21, 30, 1234, 1546, 2640, 1867, 18166, 30, 16720, 1867, 508, 30, 315, 397, 4283, 998, 4842, 18, 4842, 2668, 1749, 476, 2042, 3899, 4960, 2187, 998, 4842, 18, 5923, 269, 1234, 262, 12492, 18, 14508, 18, 7590, 12, 5519, 3292, 1785, 21, 3546, 16971, 1173, 412, 74, 3368, 67, 1945, 35, 24386, 67, 2327, 67, 2150, 2218, 397, 1234, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5149, 12, 2890, 16, 4283, 16, 12492, 4672, 3536, 752, 279, 720, 17, 5149, 3536, 4283, 273, 4283, 18, 2079, 2668, 1695, 17023, 2473, 13, 309, 4283, 18, 17514, 1918, 2668, 2473, 13, 578, 4283, 18, 4720, 2668, 838, 6134, 405, 300, 21, 578, 521, 4283, 18, 4720, 2668, 2497, 13, 405, 300, 21, 30, 1234, 1546, 2640, 1867, 18166, 30, 16720, 1867, 508, 30, 315, 397, 4283, 998, 4842, 18, 4842, 2668, 1749, 476, 2042, 3899, 4960, 2187, 998, 4842, 18, 5923, 269, 1234, 262, 12492, 18, 14508, 18, 7590, 12, 5519, 3292, 1785, 21, 3546, 16971, 1173, 412, 74, 3368, 67, 1945, 35, 24386, 67, 2327, 67, 2150, 2218, 397, 1234, 13, 327, 374, 2 ]
return tup("wine", c.file)
return tup("wine", c.file.path)
def app_wine(self, c): return tup("wine", c.file)
8e1de9174e18bf804bde3186a3a893698fcf7f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/8e1de9174e18bf804bde3186a3a893698fcf7f78/apps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 595, 67, 91, 558, 12, 2890, 16, 276, 4672, 327, 15822, 2932, 91, 558, 3113, 276, 18, 768, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 595, 67, 91, 558, 12, 2890, 16, 276, 4672, 327, 15822, 2932, 91, 558, 3113, 276, 18, 768, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
args [] chandlerBin ... chandlerHome ... dryrun False func False funcSuite False help False mode None noEnv False noStop False parcelPath .../tools/QATestScripts/DataFiles perf False profile False profileDir .../test_profile recorded False runchandler {'debug': '.../debug/RunChandler...', 'release': '.../release/RunChandler...'} runpython {'debug': '.../debug/RunPython...', 'release': '.../release/RunPython...'} selftest True single tbox False toolsDir .../tools unit False unitSuite False verbose False
args [] chandlerBin ... chandlerHome ... dryrun False func False funcSuite False help False mode None noEnv False noStop False parcelPath tools/QATestScripts/DataFiles perf False profile False profileDir test_profile recorded False runchandler {'debug': '.../debug/RunChandler...', 'release': '.../release/RunChandler...'} runpython {'debug': '.../debug/RunPython...', 'release': '.../release/RunPython...'} selftest True single tbox False toolsDir tools unit False unitSuite False verbose False
def checkOptions(options): """ Sanity check options. Some options may be changed, and some combinations will be warned about while some combinations will result in program exit. >>> options = parseOptions() >>> checkOptions(options) >>> d = eval(str(options)) >>> keys = d.keys() >>> keys.sort() >>> for key in keys: ... print key, d[key], args [] chandlerBin ... chandlerHome ... dryrun False func False funcSuite False help False mode None noEnv False noStop False parcelPath .../tools/QATestScripts/DataFiles perf False profile False profileDir .../test_profile recorded False runchandler {'debug': '.../debug/RunChandler...', 'release': '.../release/RunChandler...'} runpython {'debug': '.../debug/RunPython...', 'release': '.../release/RunPython...'} selftest True single tbox False toolsDir .../tools unit False unitSuite False verbose False """ if options.help: print __doc__ sys.exit(2) if options.dryrun: options.verbose = True options.toolsDir = os.path.abspath(os.path.dirname(__file__)) if 'CHANDLERHOME' in os.environ: options.chandlerHome = os.path.realpath(os.environ['CHANDLERHOME']) else: options.chandlerHome = os.path.abspath(os.path.join(options.toolsDir, '..')) if 'CHANDLERBIN' in os.environ: options.chandlerBin = os.path.realpath(os.environ['CHANDLERBIN']) else: options.chandlerBin = options.chandlerHome options.parcelPath = os.path.join(options.chandlerHome, 'tools', 'QATestScripts', 'DataFiles') options.profileDir = os.path.join(options.chandlerHome, 'test_profile') #build_lib.initLog(os.path.join(options.logPath, 'rt.log'), prefix='', echo=(not options.quiet)) if not os.path.isdir(options.chandlerBin): log('Unable to locate CHANDLERBIN directory', error=True) sys.exit(3) if options.single and \ (options.unit or options.unitSuite or options.funcSuite or \ options.func or options.perf): log('Single test run (-t) only allowed by itself', error=True) sys.exit(1) if options.single: newsingle = [] for single in options.single.split(','): if single[-3:] != '.py': newsingle.append(single + '.py') else: newsingle.append(single) options.single = ','.join(newsingle) options.runpython = {} options.runchandler = {} for mode in [ 'debug', 'release' ]: if os.name == 'nt' or sys.platform == 'cygwin': options.runpython[mode] = os.path.join(options.chandlerBin, mode, 'RunPython.bat') options.runchandler[mode] = os.path.join(options.chandlerBin, mode, 'RunChandler.bat') else: options.runpython[mode] = os.path.join(options.chandlerBin, mode, 'RunPython') options.runchandler[mode] = os.path.join(options.chandlerBin, mode, 'RunChandler') if options.noEnv: for item in _ignoreEnvNames: try: if item in os.environ: os.environ.pop(item) except: log('Unable to remove "%s" from the environment' % item)
58706c198c72ae85bd163dd339d4081bdd26b7be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/58706c198c72ae85bd163dd339d4081bdd26b7be/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1320, 12, 2116, 4672, 3536, 23123, 866, 702, 18, 10548, 702, 2026, 506, 3550, 16, 471, 2690, 17265, 903, 506, 1894, 329, 2973, 1323, 2690, 17265, 903, 563, 316, 5402, 2427, 18, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 302, 273, 5302, 12, 701, 12, 2116, 3719, 4080, 1311, 273, 302, 18, 2452, 1435, 4080, 1311, 18, 3804, 1435, 4080, 364, 498, 316, 1311, 30, 1372, 377, 1172, 498, 16, 302, 63, 856, 6487, 833, 5378, 462, 464, 749, 9913, 1372, 462, 464, 749, 8684, 1372, 10299, 2681, 1083, 1326, 1083, 1326, 13587, 1083, 2809, 1083, 1965, 599, 1158, 3491, 1083, 1158, 4947, 1083, 779, 2183, 743, 8513, 19, 53, 789, 395, 15041, 19, 751, 2697, 14184, 1083, 3042, 1083, 3042, 1621, 1842, 67, 5040, 16421, 1083, 1086, 343, 464, 749, 13666, 4148, 4278, 296, 2777, 19, 4148, 19, 1997, 782, 464, 749, 7821, 16, 296, 9340, 4278, 296, 2777, 19, 9340, 19, 1997, 782, 464, 749, 7821, 97, 1086, 8103, 13666, 4148, 4278, 296, 2777, 19, 4148, 19, 1997, 15774, 7821, 16, 296, 9340, 4278, 296, 2777, 19, 9340, 19, 1997, 15774, 7821, 97, 365, 3813, 1053, 2202, 225, 268, 2147, 1083, 8513, 1621, 8513, 2836, 1083, 2836, 13587, 1083, 3988, 1083, 3536, 309, 702, 18, 5201, 30, 1172, 1001, 2434, 972, 2589, 18, 8593, 12, 22, 13, 225, 309, 702, 18, 25011, 2681, 30, 702, 18, 11369, 273, 1053, 225, 702, 18, 6642, 1621, 273, 1140, 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, 866, 1320, 12, 2116, 4672, 3536, 23123, 866, 702, 18, 10548, 702, 2026, 506, 3550, 16, 471, 2690, 17265, 903, 506, 1894, 329, 2973, 1323, 2690, 17265, 903, 563, 316, 5402, 2427, 18, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 302, 273, 5302, 12, 701, 12, 2116, 3719, 4080, 1311, 273, 302, 18, 2452, 1435, 4080, 1311, 18, 3804, 1435, 4080, 364, 498, 316, 1311, 30, 1372, 377, 1172, 498, 16, 302, 63, 856, 6487, 833, 5378, 462, 464, 749, 9913, 1372, 462, 464, 749, 8684, 1372, 10299, 2681, 1083, 1326, 1083, 1326, 13587, 1083, 2809, 1083, 1965, 599, 1158, 3491, 1083, 1158, 4947, 1083, 779, 2183, 743, 8513, 19, 53, 2 ]
self.jsEnv.attachListener(self)
self.js_env.attachListener(self)
def jsPopup (self, attrs, name): """check if attrs[name] javascript opens a popup window""" val = resolve_html_entities(attrs[name]) if not val: return self.jsEnv.attachListener(self) try: self.jsEnv.executeScriptAsFunction(val, 0.0) except jslib.error, msg: pass self.jsEnv.detachListener(self) res = self.popup_counter self.popup_counter = 0 return res
475def66113a258d59f287a283585f27e07dd77a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/475def66113a258d59f287a283585f27e07dd77a/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 13770, 261, 2890, 16, 3422, 16, 508, 4672, 3536, 1893, 309, 3422, 63, 529, 65, 11341, 10400, 279, 10431, 2742, 8395, 1244, 273, 2245, 67, 2620, 67, 9996, 12, 7039, 63, 529, 5717, 309, 486, 1244, 30, 327, 365, 18, 2924, 67, 3074, 18, 7331, 2223, 12, 2890, 13, 775, 30, 365, 18, 2924, 3491, 18, 8837, 3651, 1463, 2083, 12, 1125, 16, 374, 18, 20, 13, 1335, 525, 24760, 18, 1636, 16, 1234, 30, 1342, 365, 18, 2924, 3491, 18, 8238, 497, 2223, 12, 2890, 13, 400, 273, 365, 18, 16086, 67, 7476, 365, 18, 16086, 67, 7476, 273, 374, 327, 400, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 13770, 261, 2890, 16, 3422, 16, 508, 4672, 3536, 1893, 309, 3422, 63, 529, 65, 11341, 10400, 279, 10431, 2742, 8395, 1244, 273, 2245, 67, 2620, 67, 9996, 12, 7039, 63, 529, 5717, 309, 486, 1244, 30, 327, 365, 18, 2924, 67, 3074, 18, 7331, 2223, 12, 2890, 13, 775, 30, 365, 18, 2924, 3491, 18, 8837, 3651, 1463, 2083, 12, 1125, 16, 374, 18, 20, 13, 1335, 525, 24760, 18, 1636, 16, 1234, 30, 1342, 365, 18, 2924, 3491, 18, 8238, 497, 2223, 12, 2890, 13, 400, 273, 365, 18, 16086, 67, 7476, 365, 18, 16086, 67, 7476, 273, 374, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print map
def calculateRanges(sizeZ, sizeT, commandArgs): planeMap = {}; if(commandArgs["planeMap"]=={}): if(commandArgs["zStart"]==commandArgs["zEnd"]): commandArgs["zEnd"] = commandArgs["zEnd"]+1; if(commandArgs["tStart"]==commandArgs["tEnd"]): commandArgs["tEnd"] = commandArgs["tEnd"]+1; if(inRange(commandArgs["zStart"], commandArgs["zEnd"], sizeZ+1)): zRange = range(commandArgs["zStart"],commandArgs["zEnd"]); else: zRange = range(0, sizeZ) if(inRange(commandArgs["tStart"], commandArgs["tEnd"], sizeT+1)): tRange = range(commandArgs["tStart"],commandArgs["tEnd"]); else: tRange = range(0, sizeT) planeMap = buildPlaneMapFromRanges(zRange, tRange); else: map = commandArgs["planeMap"]; print map planeMap = unrollPlaneMap(map); return planeMap;
5d400fe366d73bb74f028b732cd5bc090e9b320d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/5d400fe366d73bb74f028b732cd5bc090e9b320d/makemovie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 9932, 12, 1467, 62, 16, 963, 56, 16, 1296, 2615, 4672, 11017, 863, 273, 2618, 31, 309, 12, 3076, 2615, 9614, 21314, 863, 11929, 631, 2916, 4672, 309, 12, 3076, 2615, 9614, 94, 1685, 11929, 631, 3076, 2615, 9614, 94, 1638, 11929, 4672, 1296, 2615, 9614, 94, 1638, 11929, 273, 1296, 2615, 9614, 94, 1638, 6, 3737, 21, 31, 309, 12, 3076, 2615, 9614, 88, 1685, 11929, 631, 3076, 2615, 9614, 88, 1638, 11929, 4672, 1296, 2615, 9614, 88, 1638, 11929, 273, 1296, 2615, 9614, 88, 1638, 6, 3737, 21, 31, 309, 12, 267, 2655, 12, 3076, 2615, 9614, 94, 1685, 6, 6487, 1296, 2615, 9614, 94, 1638, 6, 6487, 963, 62, 15, 21, 3719, 30, 998, 2655, 273, 1048, 12, 3076, 2615, 9614, 94, 1685, 6, 6487, 3076, 2615, 9614, 94, 1638, 11929, 1769, 469, 30, 998, 2655, 273, 1048, 12, 20, 16, 963, 62, 13, 309, 12, 267, 2655, 12, 3076, 2615, 9614, 88, 1685, 6, 6487, 1296, 2615, 9614, 88, 1638, 6, 6487, 963, 56, 15, 21, 3719, 30, 268, 2655, 273, 1048, 12, 3076, 2615, 9614, 88, 1685, 6, 6487, 3076, 2615, 9614, 88, 1638, 11929, 1769, 469, 30, 268, 2655, 273, 1048, 12, 20, 16, 963, 56, 13, 11017, 863, 273, 1361, 19505, 863, 1265, 9932, 12, 94, 2655, 16, 268, 2655, 1769, 469, 30, 852, 273, 1296, 2615, 9614, 21314, 863, 11929, 31, 11017, 863, 273, 640, 2693, 19505, 863, 12, 1458, 1769, 327, 11017, 863, 31, 225, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 9932, 12, 1467, 62, 16, 963, 56, 16, 1296, 2615, 4672, 11017, 863, 273, 2618, 31, 309, 12, 3076, 2615, 9614, 21314, 863, 11929, 631, 2916, 4672, 309, 12, 3076, 2615, 9614, 94, 1685, 11929, 631, 3076, 2615, 9614, 94, 1638, 11929, 4672, 1296, 2615, 9614, 94, 1638, 11929, 273, 1296, 2615, 9614, 94, 1638, 6, 3737, 21, 31, 309, 12, 3076, 2615, 9614, 88, 1685, 11929, 631, 3076, 2615, 9614, 88, 1638, 11929, 4672, 1296, 2615, 9614, 88, 1638, 11929, 273, 1296, 2615, 9614, 88, 1638, 6, 3737, 21, 31, 309, 12, 267, 2655, 12, 3076, 2615, 9614, 94, 1685, 6, 6487, 1296, 2615, 9614, 94, 1638, 6, 6487, 963, 62, 15, 21, 3719, 30, 998, 2 ]
pchange = self.changelog.read(p1) pmmap = self.manifest.read(pchange[0])
c1 = self.changelog.read(p1) c2 = self.changelog.read(p2) m1 = self.manifest.read(c1[0]) mf1 = self.manifest.readflags(c1[0]) m2 = self.manifest.read(c2[0])
def rawcommit(self, files, text, user, date, p1=None, p2=None): p1 = p1 or self.dirstate.parents()[0] or nullid p2 = p2 or self.dirstate.parents()[1] or nullid pchange = self.changelog.read(p1) pmmap = self.manifest.read(pchange[0]) tr = self.transaction() mmap = {} linkrev = self.changelog.count() for f in files: try: t = file(f).read() except IOError: self.ui.warn("Read file %s error, skipped\n" % f) continue r = self.file(f) # FIXME - need to find both parents properly prev = pmmap.get(f, nullid) mmap[f] = r.add(t, tr, linkrev, prev)
d28dfb673f54a4ab197cab7a012ae86c69a139b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/d28dfb673f54a4ab197cab7a012ae86c69a139b4/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 7371, 12, 2890, 16, 1390, 16, 977, 16, 729, 16, 1509, 16, 293, 21, 33, 7036, 16, 293, 22, 33, 7036, 4672, 293, 21, 273, 293, 21, 578, 365, 18, 72, 920, 340, 18, 12606, 1435, 63, 20, 65, 578, 446, 350, 293, 22, 273, 293, 22, 578, 365, 18, 72, 920, 340, 18, 12606, 1435, 63, 21, 65, 578, 446, 350, 276, 21, 273, 365, 18, 24083, 12970, 18, 896, 12, 84, 21, 13, 276, 22, 273, 365, 18, 24083, 12970, 18, 896, 12, 84, 22, 13, 312, 21, 273, 365, 18, 14357, 18, 896, 12, 71, 21, 63, 20, 5717, 14749, 21, 273, 365, 18, 14357, 18, 896, 7133, 12, 71, 21, 63, 20, 5717, 312, 22, 273, 365, 18, 14357, 18, 896, 12, 71, 22, 63, 20, 5717, 225, 433, 273, 365, 18, 7958, 1435, 30749, 273, 2618, 1692, 9083, 273, 365, 18, 24083, 12970, 18, 1883, 1435, 364, 284, 316, 1390, 30, 775, 30, 268, 273, 585, 12, 74, 2934, 896, 1435, 1335, 8340, 30, 365, 18, 4881, 18, 8935, 2932, 1994, 585, 738, 87, 555, 16, 9700, 64, 82, 6, 738, 284, 13, 1324, 436, 273, 365, 18, 768, 12, 74, 13, 468, 9852, 300, 1608, 358, 1104, 3937, 6298, 8214, 2807, 273, 7430, 1458, 18, 588, 12, 74, 16, 446, 350, 13, 30749, 63, 74, 65, 273, 436, 18, 1289, 12, 88, 16, 433, 16, 1692, 9083, 16, 2807, 13, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 7371, 12, 2890, 16, 1390, 16, 977, 16, 729, 16, 1509, 16, 293, 21, 33, 7036, 16, 293, 22, 33, 7036, 4672, 293, 21, 273, 293, 21, 578, 365, 18, 72, 920, 340, 18, 12606, 1435, 63, 20, 65, 578, 446, 350, 293, 22, 273, 293, 22, 578, 365, 18, 72, 920, 340, 18, 12606, 1435, 63, 21, 65, 578, 446, 350, 276, 21, 273, 365, 18, 24083, 12970, 18, 896, 12, 84, 21, 13, 276, 22, 273, 365, 18, 24083, 12970, 18, 896, 12, 84, 22, 13, 312, 21, 273, 365, 18, 14357, 18, 896, 12, 71, 21, 63, 20, 5717, 14749, 21, 273, 365, 18, 14357, 18, 896, 7133, 12, 71, 21, 63, 20, 5717, 2 ]
len_prompt = len(self._continuation_prompt)
line, col = cursor.blockNumber(), cursor.columnNumber()
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modifiers() & QtCore.Qt.AltModifier shift_down = event.modifiers() & QtCore.Qt.ShiftModifier
4212c3a5a35f1a8330abc93ed6ed15b0e6ceb3a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/4212c3a5a35f1a8330abc93ed6ed15b0e6ceb3a1/console_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2575, 67, 2188, 67, 8698, 67, 856, 1028, 12, 2890, 16, 871, 4672, 3536, 4008, 498, 2641, 364, 326, 6808, 977, 3604, 358, 752, 279, 2983, 17, 5625, 1560, 18, 3536, 10883, 329, 273, 1083, 3347, 273, 365, 6315, 7098, 18, 955, 6688, 1435, 1754, 273, 3347, 18, 3276, 1435, 498, 273, 871, 18, 856, 1435, 6414, 67, 2378, 273, 365, 6315, 7098, 67, 856, 67, 2378, 12, 2575, 18, 15432, 10756, 3770, 67, 2378, 273, 871, 18, 15432, 1435, 473, 20193, 18, 23310, 18, 10655, 9829, 4654, 67, 2378, 273, 871, 18, 15432, 1435, 473, 20193, 18, 23310, 18, 10544, 9829, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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3347, 273, 365, 6315, 7098, 18, 955, 6688, 1435, 1754, 273, 3347, 18, 3276, 1435, 498, 273, 871, 18, 856, 1435, 6414, 67, 2378, 273, 365, 6315, 7098, 67, 856, 67, 2378, 12, 2575, 18, 15432, 10756, 3770, 67, 2378, 273, 871, 18, 15432, 1435, 473, 20193, 18, 23310, 18, 10655, 9829, 4654, 67, 2378, 273, 871, 18, 15432, 1435, 473, 20193, 18, 23310, 18, 10544, 9829, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ret.append(('user', u))
ret.append(('user', u, u))
def listUsersAndRoles(self,): """ listUsersAndRoles(self,) => list of tuples
508ebeccb11fe240e74cedc43a998bbd8c378447 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/508ebeccb11fe240e74cedc43a998bbd8c378447/GroupUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6588, 1876, 6898, 12, 2890, 16, 4672, 3536, 666, 6588, 1876, 6898, 12, 2890, 16, 13, 516, 666, 434, 10384, 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,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6898, 12, 2890, 16, 4672, 3536, 666, 6588, 1876, 6898, 12, 2890, 16, 13, 516, 666, 434, 10384, 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 ]
print dirpath
def ShowDialogImportDirectory(self): # Offer to save current project if necessary session = ses.Session() st = session.project_status if (st == const.PROJ_NEW) or (st == const.PROJ_CHANGE): filename = session.project_path[1] answer = dialog.SaveChangesDialog2(filename) if answer: self.ShowDialogSaveProject()
effbb9a2aa1544431774c17b256fffff9cfdd9f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/effbb9a2aa1544431774c17b256fffff9cfdd9f2/control.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9674, 6353, 5010, 2853, 12, 2890, 4672, 468, 25753, 358, 1923, 783, 1984, 309, 4573, 1339, 273, 24138, 18, 2157, 1435, 384, 273, 1339, 18, 4406, 67, 2327, 309, 261, 334, 422, 1866, 18, 3373, 46, 67, 12917, 13, 578, 261, 334, 422, 1866, 18, 3373, 46, 67, 14473, 4672, 1544, 273, 1339, 18, 4406, 67, 803, 63, 21, 65, 5803, 273, 6176, 18, 4755, 7173, 6353, 22, 12, 3459, 13, 309, 5803, 30, 365, 18, 5706, 6353, 4755, 4109, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9674, 6353, 5010, 2853, 12, 2890, 4672, 468, 25753, 358, 1923, 783, 1984, 309, 4573, 1339, 273, 24138, 18, 2157, 1435, 384, 273, 1339, 18, 4406, 67, 2327, 309, 261, 334, 422, 1866, 18, 3373, 46, 67, 12917, 13, 578, 261, 334, 422, 1866, 18, 3373, 46, 67, 14473, 4672, 1544, 273, 1339, 18, 4406, 67, 803, 63, 21, 65, 5803, 273, 6176, 18, 4755, 7173, 6353, 22, 12, 3459, 13, 309, 5803, 30, 365, 18, 5706, 6353, 4755, 4109, 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 ]
if v[0] != 32 or not self.auto_open:
if v.message != 32 or not self.auto_open:
def request(self, method, url, body=None, headers={}): """Send a complete request to the server."""
495cdb0087a23582cf0d23523fdb2653128103b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/495cdb0087a23582cf0d23523fdb2653128103b7/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 12938, 4672, 3536, 3826, 279, 3912, 590, 358, 326, 1438, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 12938, 4672, 3536, 3826, 279, 3912, 590, 358, 326, 1438, 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 ]
editor = self._app.pref.get_external_app("image_editor") if editor is not None: try: proc = subprocess.Popen([editor.prog, image_path]) except OSError, e: self.emit("error", _("Could not open Image Editor."), e, None) else: self.emit("error", _("You must specify an Image Editor in Application Options."), None, None)
self._app.run_external_app("image_editor", image_path)
def _on_edit_image(self, menuitem): """Edit image in Image Editor"""
cf4702fd4c7aef7905a4b8e6244f14a028fd1214 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/cf4702fd4c7aef7905a4b8e6244f14a028fd1214/main_window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 67, 4619, 67, 2730, 12, 2890, 16, 3824, 1726, 4672, 3536, 4666, 1316, 316, 3421, 18451, 8395, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 67, 4619, 67, 2730, 12, 2890, 16, 3824, 1726, 4672, 3536, 4666, 1316, 316, 3421, 18451, 8395, 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 ]
ram_used = float(perf_data[0][1]) swap_used = float(perf_data[1][1]) virt_used = ram_used + swap_used
ram_used = float(perf_data[0][1]) swap_used = float(perf_data[1][1]) virt_used = ram_used + swap_used
def perfometer_check_mk_mem_used(row, check_command, perf_data): h = '<table><tr>' ram_total = float(perf_data[0][6]) swap_total = float(perf_data[1][6]) virt_total = ram_total + swap_total ram_used = float(perf_data[0][1]) swap_used = float(perf_data[1][1]) virt_used = ram_used + swap_used state = row["service_state"] ram_color, swap_color = { 0: ("#80ff40", "#008030"), 1: ("#ff2", "#dd0"), 2:("#f44", "#d00"), 3:("#fa2", "#d80") }[state] h += perfometer_td(100 * ram_used / virt_total, ram_color) h += perfometer_td(100 * swap_used / virt_total, swap_color) if virt_used < ram_total: h += perfometer_td(100 * (ram_total - virt_used) / virt_total, "#ccf") h += perfometer_td(100 * (virt_total - ram_total) / virt_total, "#fff") else: h += perfometer_td(100 * (virt_total - virt_used), "#fff") h += "</tr></table>" return "%d%%" % (100 * (virt_used / ram_total)), h
9203eee79d2d06bf53c5e661a4c3d9cf996b4b20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/9203eee79d2d06bf53c5e661a4c3d9cf996b4b20/check_mk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14184, 362, 847, 67, 1893, 67, 24816, 67, 3917, 67, 3668, 12, 492, 16, 866, 67, 3076, 16, 14184, 67, 892, 4672, 366, 273, 2368, 2121, 4438, 313, 1870, 24975, 67, 4963, 273, 1431, 12, 19825, 67, 892, 63, 20, 6362, 26, 5717, 7720, 67, 4963, 273, 1431, 12, 19825, 67, 892, 63, 21, 6362, 26, 5717, 331, 2714, 67, 4963, 273, 24975, 67, 4963, 397, 7720, 67, 4963, 225, 24975, 67, 3668, 282, 273, 1431, 12, 19825, 67, 892, 63, 20, 6362, 21, 5717, 7720, 67, 3668, 225, 273, 1431, 12, 19825, 67, 892, 63, 21, 6362, 21, 5717, 331, 2714, 67, 3668, 225, 273, 24975, 67, 3668, 397, 7720, 67, 3668, 225, 919, 273, 1027, 9614, 3278, 67, 2019, 11929, 24975, 67, 3266, 16, 7720, 67, 3266, 273, 288, 374, 30, 7566, 7, 3672, 1403, 7132, 3113, 6619, 713, 3672, 5082, 6, 3631, 404, 30, 7566, 7, 1403, 22, 3113, 6619, 449, 20, 6, 3631, 576, 30, 2932, 7, 74, 6334, 3113, 6619, 72, 713, 6, 3631, 890, 30, 2932, 7, 507, 22, 3113, 6619, 72, 3672, 7923, 289, 63, 2019, 65, 366, 1011, 14184, 362, 847, 67, 4465, 12, 6625, 380, 24975, 67, 3668, 342, 331, 2714, 67, 4963, 16, 24975, 67, 3266, 13, 366, 1011, 14184, 362, 847, 67, 4465, 12, 6625, 380, 7720, 67, 3668, 342, 331, 2714, 67, 4963, 16, 7720, 67, 3266, 13, 309, 331, 2714, 67, 3668, 411, 24975, 67, 4963, 30, 366, 1011, 14184, 362, 847, 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, 14184, 362, 847, 67, 1893, 67, 24816, 67, 3917, 67, 3668, 12, 492, 16, 866, 67, 3076, 16, 14184, 67, 892, 4672, 366, 273, 2368, 2121, 4438, 313, 1870, 24975, 67, 4963, 273, 1431, 12, 19825, 67, 892, 63, 20, 6362, 26, 5717, 7720, 67, 4963, 273, 1431, 12, 19825, 67, 892, 63, 21, 6362, 26, 5717, 331, 2714, 67, 4963, 273, 24975, 67, 4963, 397, 7720, 67, 4963, 225, 24975, 67, 3668, 282, 273, 1431, 12, 19825, 67, 892, 63, 20, 6362, 21, 5717, 7720, 67, 3668, 225, 273, 1431, 12, 19825, 67, 892, 63, 21, 6362, 21, 5717, 331, 2714, 67, 3668, 225, 273, 24975, 67, 3668, 397, 7720, 67, 3668, 225, 919, 273, 1027, 9614, 2 ]
s = SeqDict() s[10] = 'ten' s[20] = 'twenty' s[30] = 'thirty' del s[20] verify(s[10] == 'ten') verify(s.keys() == [10, 30]) verify(s.has_key(10)) verify(not s.has_key(20)) verify(10 in s) verify(20 not in s) verify([k for k in s] == [10, 30]) verify(len(s) == 2) verify(list(s.iteritems()) == [(10,'ten'), (30, 'thirty')]) verify(list(s.iterkeys()) == [10, 30]) verify(list(s.itervalues()) == ['ten', 'thirty']) verify(s.values() == ['ten', 'thirty']) verify(s.items() == [(10,'ten'), (30, 'thirty')]) verify(s.get(10) == 'ten') verify(s.get(15,'fifteen') == 'fifteen') verify(s.get(15) == None) verify(s.setdefault(40, 'forty') == 'forty') verify(s.setdefault(10, 'null') == 'ten') del s[40] verify(s.pop(10) == 'ten') verify(10 not in s) s[10] = 'ten' k, v = s.popitem() verify(k not in s) s[k] = v s.clear() verify(len(s) == 0) try: s.popitem() except KeyError: pass else: verify(0, "popitem from an empty list should raise KeyError") s.update({10: 'ten', 20:'twenty'}) verify(s[10]=='ten' and s[20]=='twenty') verify(s == {10: 'ten', 20:'twenty'}) t = SeqDict() t[20] = 'twenty' t[10] = 'ten' verify(s == t)
class UserDictMixinTest(unittest.TestCase): def test_all(self): s = SeqDict() s[10] = 'ten' s[20] = 'twenty' s[30] = 'thirty' del s[20] self.assertEqual(s[10], 'ten') self.assertEqual(s.keys(), [10, 30]) self.assert_(s.has_key(10)) self.assert_(not s.has_key(20)) self.assert_(10 in s) self.assert_(20 not in s) self.assertEqual([k for k in s], [10, 30]) self.assertEqual(len(s), 2) self.assertEqual(list(s.iteritems()), [(10,'ten'), (30, 'thirty')]) self.assertEqual(list(s.iterkeys()), [10, 30]) self.assertEqual(list(s.itervalues()), ['ten', 'thirty']) self.assertEqual(s.values(), ['ten', 'thirty']) self.assertEqual(s.items(), [(10,'ten'), (30, 'thirty')]) self.assertEqual(s.get(10), 'ten') self.assertEqual(s.get(15,'fifteen'), 'fifteen') self.assertEqual(s.get(15), None) self.assertEqual(s.setdefault(40, 'forty'), 'forty') self.assertEqual(s.setdefault(10, 'null'), 'ten') del s[40] self.assertEqual(s.pop(10), 'ten') self.assert_(10 not in s) s[10] = 'ten' k, v = s.popitem() self.assert_(k not in s) s[k] = v s.clear() self.assertEqual(len(s), 0) self.assertRaises(KeyError, s.popitem) s.update({10: 'ten', 20:'twenty'}) self.assertEqual(s[10], 'ten') self.assertEqual(s[20], 'twenty') self.assertEqual(s, {10: 'ten', 20:'twenty'}) t = SeqDict() t[20] = 'twenty' t[10] = 'ten' self.assertEqual(s, t) def test_main(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(UserDictTest)) suite.addTest(unittest.makeSuite(UserDictMixinTest)) test.test_support.run_suite(suite) if __name__ == "__main__": test_main()
def keys(self): return list(self.keylist)
3a4e8a6bb4c25c84225e9b991dd48d988e14a5bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3a4e8a6bb4c25c84225e9b991dd48d988e14a5bc/test_userdict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 12, 2890, 4672, 327, 666, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 12, 2890, 4672, 327, 666, 12, 2890, 18, 856, 1098, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
len = 1 << 20
len = 1 << 10
def readfile(pid, oid): len = 1 << 20 # 1 MB chunk size pos = 0 while True: command = OSDCommand() command.set_read(pid, oid, len, pos) run(command) if command.inlen == 0: break stdout.write(command.indata) pos += command.inlen
beb971f1cc15ac8efdfeb47155988403683d415f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/beb971f1cc15ac8efdfeb47155988403683d415f/readfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 768, 12, 6610, 16, 7764, 4672, 562, 273, 404, 2296, 1728, 225, 468, 404, 17897, 2441, 963, 949, 273, 374, 1323, 1053, 30, 1296, 273, 5932, 40, 2189, 1435, 1296, 18, 542, 67, 896, 12, 6610, 16, 7764, 16, 562, 16, 949, 13, 1086, 12, 3076, 13, 309, 1296, 18, 267, 1897, 422, 374, 30, 898, 3909, 18, 2626, 12, 3076, 18, 728, 396, 13, 949, 1011, 1296, 18, 267, 1897, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 768, 12, 6610, 16, 7764, 4672, 562, 273, 404, 2296, 1728, 225, 468, 404, 17897, 2441, 963, 949, 273, 374, 1323, 1053, 30, 1296, 273, 5932, 40, 2189, 1435, 1296, 18, 542, 67, 896, 12, 6610, 16, 7764, 16, 562, 16, 949, 13, 1086, 12, 3076, 13, 309, 1296, 18, 267, 1897, 422, 374, 30, 898, 3909, 18, 2626, 12, 3076, 18, 728, 396, 13, 949, 1011, 1296, 18, 267, 1897, 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 ]
crm_case as c, project_task as t where t.case_id=c.id and p.id=t.project_id \
crm_case as c where p.id=c.project_id \
def _get_details(self, cr, uid, ids_project, context={}, *arg): # Todo: 1. Reload button gives error for project # 2. Test/Check if not ids_project: return {} result = {} for id in ids_project: result[id] = { 'tasks_detail': '', 'bugs': '', 'features': '', 'support_req': '', 'doc': '' } ids = ",".join(map(str, ids_project))
63aca3f99a9c76ca2e99c049a801f7d6f1039030 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/63aca3f99a9c76ca2e99c049a801f7d6f1039030/portal_project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6395, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 67, 4406, 16, 819, 28793, 380, 3175, 4672, 468, 399, 7370, 30, 404, 18, 23086, 3568, 14758, 555, 364, 1984, 468, 4202, 576, 18, 7766, 19, 1564, 309, 486, 3258, 67, 4406, 30, 327, 2618, 563, 273, 2618, 364, 612, 316, 3258, 67, 4406, 30, 563, 63, 350, 65, 273, 288, 296, 9416, 67, 8992, 4278, 10226, 296, 19381, 4278, 10226, 296, 7139, 4278, 10226, 296, 13261, 67, 3658, 4278, 10226, 296, 2434, 4278, 875, 289, 3258, 273, 5753, 18, 5701, 12, 1458, 12, 701, 16, 3258, 67, 4406, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 486, 3258, 67, 4406, 30, 327, 2618, 563, 273, 2618, 364, 612, 316, 3258, 67, 4406, 30, 563, 63, 350, 65, 273, 288, 296, 9416, 67, 8992, 4278, 10226, 296, 19381, 4278, 10226, 296, 7139, 4278, 10226, 296, 13261, 67, 3658, 4278, 10226, 296, 2434, 4278, 875, 289, 3258, 273, 5753, 18, 5701, 12, 1458, 12, 701, 16, 3258, 67, 4406, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
security.declareProtected(permissions.View,
security.declareProtected(CMFCorePermissions.View,
def widgets(self): """Returns a dictionary that contains a widget for each field, using the field name as key."""
67576cc5acaaf506c58ee3fea91da40c0a6516a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/67576cc5acaaf506c58ee3fea91da40c0a6516a2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10965, 12, 2890, 4672, 3536, 1356, 279, 3880, 716, 1914, 279, 3604, 364, 1517, 652, 16, 1450, 326, 652, 508, 487, 498, 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, 0, 0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, 3536, 1356, 279, 3880, 716, 1914, 279, 3604, 364, 1517, 652, 16, 1450, 326, 652, 508, 487, 498, 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 ]