rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if self.logfiles and stdout:
if True and stdout:
def print_stdout(stdout): """Print stdout line-by-line to avoid overflowing buffers.""" print ">>>>>>>" for line in stdout.splitlines(): print line print "<<<<<<<"
1abf2ac8e89d2c894f44248eb0cf28b3f4d79ed2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/1abf2ac8e89d2c894f44248eb0cf28b3f4d79ed2/runxpcshelltests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 10283, 12, 10283, 4672, 3536, 5108, 3909, 980, 17, 1637, 17, 1369, 358, 4543, 9391, 310, 9664, 12123, 1172, 315, 9778, 9778, 9778, 2984, 364, 980, 316, 3909, 18, 4939, 3548, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 10283, 12, 10283, 4672, 3536, 5108, 3909, 980, 17, 1637, 17, 1369, 358, 4543, 9391, 310, 9664, 12123, 1172, 315, 9778, 9778, 9778, 2984, 364, 980, 316, 3909, 18, 4939, 3548, 13...
while operator_stack and self.operand_stack and prec<=precedence[operator_stack[-1]]:
while operator_stack and prec<=precedence[operator_stack[-1]]:
def parse_expr(self, s): tokens = tokenize(s) if not tokens: return "" self.operand_stack = [] operator_stack = []
70c8b710a8de83174da25060b4d44bd705ee7275 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/70c8b710a8de83174da25060b4d44bd705ee7275/expr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8638, 12, 2890, 16, 272, 4672, 2430, 273, 13672, 12, 87, 13, 309, 486, 2430, 30, 327, 1408, 225, 365, 18, 4063, 464, 67, 3772, 273, 5378, 3726, 67, 3772, 273, 5378, 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, 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, 67, 8638, 12, 2890, 16, 272, 4672, 2430, 273, 13672, 12, 87, 13, 309, 486, 2430, 30, 327, 1408, 225, 365, 18, 4063, 464, 67, 3772, 273, 5378, 3726, 67, 3772, 273, 5378, 2, -100...
self.flag_command(self.session.set_WEP)
self.flag_command(self.session.set_WEP, line)
def do_wep(self, line): self.flag_command(self.session.set_WEP) return 0
6348a397444293213ebed29101e9e92278a42177 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10805/6348a397444293213ebed29101e9e92278a42177/linksys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 91, 881, 12, 2890, 16, 980, 4672, 365, 18, 6420, 67, 3076, 12, 2890, 18, 3184, 18, 542, 67, 6950, 52, 16, 980, 13, 327, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 91, 881, 12, 2890, 16, 980, 4672, 365, 18, 6420, 67, 3076, 12, 2890, 18, 3184, 18, 542, 67, 6950, 52, 16, 980, 13, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -...
app.percentDone = self.percentDone app.shareRating = self.shareRating app.upTotal = upTotal app.downTotal = downTotal
def display(self, statistics): fractionDone = statistics.get('fractionDone') activity = statistics.get('activity') timeEst = statistics.get('timeEst') downRate = statistics.get('downRate') upRate = statistics.get('upRate') spew = statistics.get('spew')
f61984e994b779f023d0b71bbeccf485c95c9a29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2550/f61984e994b779f023d0b71bbeccf485c95c9a29/tfmainline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 7691, 4672, 8330, 7387, 273, 7691, 18, 588, 2668, 16744, 7387, 6134, 5728, 273, 7691, 18, 588, 2668, 9653, 6134, 813, 9122, 273, 7691, 18, 588, 2668, 957, 9122, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 7691, 4672, 8330, 7387, 273, 7691, 18, 588, 2668, 16744, 7387, 6134, 5728, 273, 7691, 18, 588, 2668, 9653, 6134, 813, 9122, 273, 7691, 18, 588, 2668, 957, 9122, 6134,...
getDateFormatString( 'month' ) == '%Y-%m' getDateFormatString( 3600 ) == getDateFormatString( 'hour' ) == '%Y-%m-%d %H' getDateFormatString( None ) -> raise TypeError getDateFormatString( 'garbage' ) -> raise ValueError
get_date_format_string('month') == '%Y-%m' get_date_format_string(3600) == get_date_format_string('hour') == '%Y-%m-%d %H' get_date_format_string(None) -> raise TypeError get_date_format_string('garbage') -> raise ValueError
def getDateFormatString( period ): """ for a given period (e.g. 'month', 'day', or some numeric interval such as 3600 (in secs)), return the format string that can be used with strftime to format that time to specify the times across that interval, but no more detailed. so, getDateFormatString( 'month' ) == '%Y-%m' getDateFormatString( 3600 ) == getDateFormatString( 'hour' ) == '%Y-%m-%d %H' getDateFormatString( None ) -> raise TypeError getDateFormatString( 'garbage' ) -> raise ValueError """ # handle the special case of 'month' which doesn't have # a static interval in seconds if isinstance( period, basestring ) and string.lower( period ) == 'month': result = '%Y-%m' else: filePeriodSecs = getPeriodSeconds( period ) formatPieces = ( '%Y', '-%m-%d', ' %H', '-%M', '-%S' ) intervals = ( secondsPerYear, secondsPerDay, secondsPerHour, secondsPerMinute, 1 ) mods = map( lambda interval: filePeriodSecs % interval, intervals ) formatPieces = formatPieces[ : mods.index( 0 ) + 1 ] result = string.join( formatPieces, '' ) return result
ccdd4176bbf664bc1e8b113fff77933c61ec889b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/865/ccdd4176bbf664bc1e8b113fff77933c61ec889b/datetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10713, 1630, 780, 12, 3879, 262, 30, 3536, 364, 279, 864, 3879, 261, 73, 18, 75, 18, 296, 7496, 2187, 296, 2881, 2187, 578, 2690, 6389, 3673, 4123, 487, 12396, 261, 267, 18043, 13, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10713, 1630, 780, 12, 3879, 262, 30, 3536, 364, 279, 864, 3879, 261, 73, 18, 75, 18, 296, 7496, 2187, 296, 2881, 2187, 578, 2690, 6389, 3673, 4123, 487, 12396, 261, 267, 18043, 13, 363...
EXAMPLES:
EXAMPLES::
def explain_pickle_string(pickle, in_current_sage=False, default_assumptions=False, eval=False, preparse=True, pedantic=False): r""" This is a helper function for explain_pickle. It takes a decompressed pickle string as input; other than that, its options are all the same as explain_pickle. EXAMPLES: sage: sage.misc.explain_pickle.explain_pickle_string(dumps("Hello, world", compress=False)) 'Hello, world' (See the documentation for explain_pickle for many more examples.) """ sib = SageInputBuilder(preparse=preparse) pe = PickleExplainer(sib, in_current_sage=in_current_sage, default_assumptions=default_assumptions, pedantic=pedantic) v = pe.run_pickle(pickle) ans = sib.result(sib(v)) if eval: if default_assumptions: raise ValueError, "Not safe to evaluate code generated with default_assumptions" from sage.misc.sage_eval import sage_eval result = sage_eval(ans, preparse=preparse) print ans return result else: return ans
3bed29c45c1270055cd235e22fd02f632971b39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3bed29c45c1270055cd235e22fd02f632971b39e/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19765, 67, 20847, 67, 1080, 12, 20847, 16, 316, 67, 2972, 67, 87, 410, 33, 8381, 16, 805, 67, 428, 379, 573, 33, 8381, 16, 5302, 33, 8381, 16, 675, 2670, 33, 5510, 16, 31840, 9941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19765, 67, 20847, 67, 1080, 12, 20847, 16, 316, 67, 2972, 67, 87, 410, 33, 8381, 16, 805, 67, 428, 379, 573, 33, 8381, 16, 5302, 33, 8381, 16, 675, 2670, 33, 5510, 16, 31840, 9941, ...
self.proc.communicate("q")
self.proc.communicate()
def wait(self): self.trace("wait") self.proc.communicate("q")
2a92b06809ecd18febc84a31c5919d61914fbff9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1375/2a92b06809ecd18febc84a31c5919d61914fbff9/run.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 365, 18, 5129, 2932, 7048, 7923, 365, 18, 9381, 18, 5702, 318, 2659, 2932, 85, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 365, 18, 5129, 2932, 7048, 7923, 365, 18, 9381, 18, 5702, 318, 2659, 2932, 85, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
olist[0].transport.startReading() olist[1].transport.startReading()
olist[0].transport.registerProducer(olist[1], 0) olist[1].transport.registerProducer(olist[0], 0)
def onActivateStream(self, iq): sid = hashSID(iq.query["sid"], iq["from"], str(iq.query.activate))
26dc22b4b597351de5bae35a9b6ca4059e4c0a95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5317/26dc22b4b597351de5bae35a9b6ca4059e4c0a95/proxy65.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 21370, 1228, 12, 2890, 16, 24288, 4672, 7348, 273, 1651, 30287, 12, 18638, 18, 2271, 9614, 7453, 6, 6487, 24288, 9614, 2080, 6, 6487, 609, 12, 18638, 18, 2271, 18, 10014, 3719, 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, 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, 21370, 1228, 12, 2890, 16, 24288, 4672, 7348, 273, 1651, 30287, 12, 18638, 18, 2271, 9614, 7453, 6, 6487, 24288, 9614, 2080, 6, 6487, 609, 12, 18638, 18, 2271, 18, 10014, 3719, 2, ...
def get_top_tags(api_key, api_secret, session_key):
def get_top_tags(api_key, api_secret, session_key=""):
def get_top_tags(api_key, api_secret, session_key): """Returns a sequence of the most used Last.fm tags as a sequence of TopItem objects.""" doc = _Request("tag.getTopTags", dict(), api_key, api_secret, session_key).execute(True) list = [] for node in doc.getElementsByTagName("tag"): tag = Tag(_extract(node, "name"), api_key, api_secret, session_key) weight = _extract(node, "count") list.append(TopItem(tag, weight)) return list
8d8063afe8067477accae5bef5e470a4a3cbfa5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/8d8063afe8067477accae5bef5e470a4a3cbfa5d/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3669, 67, 4156, 12, 2425, 67, 856, 16, 1536, 67, 5875, 16, 1339, 67, 856, 1546, 6, 4672, 3536, 1356, 279, 3102, 434, 326, 4486, 1399, 6825, 18, 25089, 2342, 487, 279, 3102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3669, 67, 4156, 12, 2425, 67, 856, 16, 1536, 67, 5875, 16, 1339, 67, 856, 1546, 6, 4672, 3536, 1356, 279, 3102, 434, 326, 4486, 1399, 6825, 18, 25089, 2342, 487, 279, 3102, ...
out += perform_list_alerts(uid)
out += perform_list_alerts(uid, ln=ln)
def perform_remove_alert(alert_name, id_user, id_query, id_basket, uid, ln=cdslang): """perform_remove_alert: remove an alert from the database input: identifier of the user; identifier of the query; identifier of the basket output: confirmation message + the list of alerts Web page""" # set variables out = "" # remove a row from the alerts table: user_query_basket query = """DELETE FROM user_query_basket WHERE id_user='%s' AND id_query='%s' AND id_basket='%s'""" query %= (id_user, id_query, id_basket) run_sql(query) out += "The alert <b>%s</b> has been removed from your profile.<br /><br />\n" % alert_name out += perform_list_alerts(uid) return out
124d6760a9d4787977d71940620091faa2e26475 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/124d6760a9d4787977d71940620091faa2e26475/webalert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4479, 67, 11798, 12, 11798, 67, 529, 16, 612, 67, 1355, 16, 612, 67, 2271, 16, 612, 67, 26219, 16, 4555, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 16092, 67, 4479, 67, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 67, 11798, 12, 11798, 67, 529, 16, 612, 67, 1355, 16, 612, 67, 2271, 16, 612, 67, 26219, 16, 4555, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 16092, 67, 4479, 67, 117...
self.__saveEntityList( 'System', aSystemPath, aSubSystemList ) self.__saveEntityList( 'Variable', aSystemPath, aVariableList ) self.__saveEntityList( 'Process', aSystemPath, aProcessList )
self.__saveEntityList( anEml, 'System', aSystemPath, aSubSystemList ) self.__saveEntityList( anEml, 'Variable', aSystemPath, aVariableList ) self.__saveEntityList( anEml, 'Process', aSystemPath, aProcessList )
def __saveEntity( self, aSystemPath='/' ):
44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5688, 1943, 12, 365, 16, 279, 3163, 743, 2218, 2473, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5688, 1943, 12, 365, 16, 279, 3163, 743, 2218, 2473, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.say_public("Please wait, assigning roles...")
self.say_public("A new game has begun! Please wait, assigning roles...")
def start_game(self, game_starter): "Initialize a werewolf game -- assign roles and notify all players." chname, chobj = self.channels.items()[0]
970324441f83f848aee177c07ff73ee5b1cf261e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3953/970324441f83f848aee177c07ff73ee5b1cf261e/wolfbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 13957, 12, 2890, 16, 7920, 67, 10983, 387, 4672, 315, 7520, 279, 22646, 359, 355, 74, 7920, 1493, 2683, 4900, 471, 5066, 777, 18115, 1199, 462, 529, 16, 462, 2603, 273, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 13957, 12, 2890, 16, 7920, 67, 10983, 387, 4672, 315, 7520, 279, 22646, 359, 355, 74, 7920, 1493, 2683, 4900, 471, 5066, 777, 18115, 1199, 462, 529, 16, 462, 2603, 273, 365, 1...
self.attr_list = other.attr_list
self.attr_list = copy.copy(other.attr_list)
def copyAttributes(self,other): self.setTitle(other.getTitle()) self.setDataSetType(other.getDataSetType()) self.setAllAxisLabels(other.getAllAxisLabels()) self.setAllAxisUnits(other.getAllAxisUnits()) self.setYLabel(other.getYLabel()) self.setYUnits(other.getYUnits()) self.attr_list = other.attr_list
7b9a587c21474ec2aa06522172e41c73af238e29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/762/7b9a587c21474ec2aa06522172e41c73af238e29/som.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 2498, 12, 2890, 16, 3011, 4672, 365, 18, 542, 4247, 12, 3011, 18, 588, 4247, 10756, 365, 18, 542, 13676, 559, 12, 3011, 18, 588, 13676, 559, 10756, 365, 18, 542, 1595, 6558, 5888...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 2498, 12, 2890, 16, 3011, 4672, 365, 18, 542, 4247, 12, 3011, 18, 588, 4247, 10756, 365, 18, 542, 13676, 559, 12, 3011, 18, 588, 13676, 559, 10756, 365, 18, 542, 1595, 6558, 5888...
self.p.portal.registerChecker( PublicKeyCredentialsCheckerDB(self.clientdb))
self.p.portal.registerChecker(PublicKeyCredentialsCheckerDB(self.clientdb))
def setUp(self): self.jobdb = JobDatabaseSQLite(test=True) self.monitordb = MonitorDatabase(test=True) self.clientdb = ClientDatabase(test=True) self.dsage_server = DSageServer(self.jobdb, self.monitordb, self.clientdb, log_level=5) self.realm = Realm(self.dsage_server) self.p = _SSHKeyPortalRoot(portal.Portal(self.realm)) self.clientdb = ClientDatabase(test=True) self.p.portal.registerChecker( PublicKeyCredentialsCheckerDB(self.clientdb)) self.client_factory = pb.PBServerFactory(self.p) self.hostname = 'localhost' self.server = reactor.listenTCP(0, self.client_factory) self.port = self.server.getHost().port # public key authentication information self.username = USERNAME self.pubkey_file = PUBKEY_FILE self.privkey_file = PRIVKEY_FILE self.public_key_string = keys.getPublicKeyString( filename=self.pubkey_file) self.private_key = keys.getPrivateKeyObject(filename=self.privkey_file) self.public_key = keys.getPublicKeyObject(self.public_key_string) self.alg_name = 'rsa' self.blob = keys.makePublicKeyBlob(self.public_key) self.data = Data self.signature = keys.signData(self.private_key, self.data) self.creds = credentials.SSHPrivateKey(self.username, self.alg_name, self.blob, self.data, self.signature) c = ConfigParser.ConfigParser() c.read(os.path.join(DSAGE_DIR, 'client.conf')) username = c.get('auth', 'username') pubkey_file = c.get('auth', 'pubkey_file') self.clientdb.add_user(username, pubkey_file)
009c01c68df54cfe66e28a58082ca4ebe208fee6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/009c01c68df54cfe66e28a58082ca4ebe208fee6/test_remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 4688, 1966, 273, 3956, 4254, 3997, 1137, 12, 3813, 33, 5510, 13, 365, 18, 2586, 305, 517, 70, 273, 14086, 4254, 12, 3813, 33, 5510, 13, 365, 18, 2625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 12, 2890, 4672, 365, 18, 4688, 1966, 273, 3956, 4254, 3997, 1137, 12, 3813, 33, 5510, 13, 365, 18, 2586, 305, 517, 70, 273, 14086, 4254, 12, 3813, 33, 5510, 13, 365, 18, 2625, ...
prod_by_loc = product_obj.product_by_location( cursor, user, location_ids, context=context):
prod_by_loc = product_obj.products_by_location( cursor, user, location_ids, context=context)
def _complete(self, cursor, user, data, context=None): line_obj = self.pool.get('stock.inventory.line') product_obj = self.pool.get('product.product') inventories = inventory_obj.browse(cursor, user, data['ids'], context=context) locations_ids = [] inv_by_loc = {} for inventory in inventories: location_ids.append(inventory.location.id) inv_by_loc[inventory.location.id] = inventory.id prod_by_loc = product_obj.product_by_location( cursor, user, location_ids, context=context):
97b5b7f758f2acb4fc87255ae834f7b7b898c215 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/97b5b7f758f2acb4fc87255ae834f7b7b898c215/inventory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6226, 12, 2890, 16, 3347, 16, 729, 16, 501, 16, 819, 33, 7036, 4672, 980, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 26024, 18, 1369, 6134, 3017, 67, 2603, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6226, 12, 2890, 16, 3347, 16, 729, 16, 501, 16, 819, 33, 7036, 4672, 980, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 26024, 18, 1369, 6134, 3017, 67, 2603, 273, 365...
mod.builtin = not parent or parent.builtin
mod.builtin = parent.builtin
def parse_module(name, ast=None, parent=None, node=None): # --- valid name? for c in name: if not c in string.letters+string.digits+'_.': print ("*ERROR*:%s.py: module names should consist of letters, digits and underscores" % name) sys.exit() # --- parse ident = name.split('.')[-1] mod = module(ident, node) mod.builtin = False if ast: # XXX mod.ast = ast mod.filename = name+'.py' mod.dir = '' mod.mod_path = [name] mod.mod_dir = [] else: # --- locate module relname = name.replace('.', '/') relpath = name.split('.') if parent: path = connect_paths(parent.dir, relname) else: path = name libpath = connect_paths(getgx().libdir, relname) rootpath = connect_paths(os.getcwd(), relname) if os.path.isfile(path+'.py'): # local module mod.filename = path+'.py' if parent: mod.mod_path = parent.mod_dir + relpath else: mod.mod_path = relpath split = path.split('/') mod.dir = '/'.join(split[:-1]) mod.mod_dir = mod.mod_path[:-1] mod.builtin = not parent or parent.builtin elif os.path.isfile(connect_paths(path, '__init__.py')): mod.filename = connect_paths(path, '__init__.py') if parent: mod.mod_path = parent.mod_dir + relpath else: mod.mod_path = relpath mod.dir = path mod.mod_dir = mod.mod_path mod.builtin = not parent or parent.builtin elif os.path.isfile(rootpath+'.py'): # root module mod.filename = rootpath+'.py' mod.mod_path = relpath split = rootpath.split('/') mod.dir = '/'.join(split[:-1]) mod.mod_dir = mod.mod_path[:-1] elif os.path.isfile(connect_paths(rootpath, '__init__.py')): mod.filename = connect_paths(rootpath, '__init__.py') mod.mod_path = relpath mod.dir = rootpath mod.mod_dir = mod.mod_path elif os.path.isfile(libpath+'.py'): # library module mod.filename = libpath+'.py' mod.mod_path = relpath split = libpath.split('/') mod.dir = '/'.join(split[:-1]) mod.mod_dir = mod.mod_path[:-1] mod.builtin = True elif os.path.isfile(connect_paths(libpath, '__init__.py')): mod.filename = connect_paths(libpath, '__init__.py') mod.mod_path = relpath mod.dir = libpath mod.mod_dir = mod.mod_path mod.builtin = True else: error('cannot locate module: '+name, node) modpath = '.'.join(mod.mod_path) if modpath in getgx().modules: # cached? return getgx().modules[modpath] #print 'not cached', modpath getgx().modules[modpath] = mod mod.ast = parsefile(mod.filename) old_mv = getmv() mod.mv = mv = moduleVisitor(mod) setmv(mv) mv.visit = mv.dispatch mv.visitor = mv mv.dispatch(mod.ast) mv = old_mv setmv(mv) mod.funcs = mod.mv.funcs mod.classes = mod.mv.classes return mod
d7ff07b382c793e4aea86abd70975b573665754e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/d7ff07b382c793e4aea86abd70975b573665754e/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2978, 12, 529, 16, 3364, 33, 7036, 16, 982, 33, 7036, 16, 756, 33, 7036, 4672, 468, 9948, 923, 508, 35, 364, 276, 316, 508, 30, 309, 486, 276, 316, 533, 18, 26054, 15, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2978, 12, 529, 16, 3364, 33, 7036, 16, 982, 33, 7036, 16, 756, 33, 7036, 4672, 468, 9948, 923, 508, 35, 364, 276, 316, 508, 30, 309, 486, 276, 316, 533, 18, 26054, 15, 10...
lastest_rev = self.revisions[-1]["revision"].value
latest_rev = self.revisions[-1]["revision"].value
def compare_revisions(self, widget, data=None): earliest_rev = self.revisions[0]["revision"].value lastest_rev = self.revisions[-1]["revision"].value path_item = self.paths[0] url = self.caller.root_url + path_item self.caller.view_diff_for_path(url, latest_rev, sidebyside=True, earliest_revision_number=earliest_rev)
8affb5c80d9939939aa665d0ad698648dbaaee54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/8affb5c80d9939939aa665d0ad698648dbaaee54/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 29892, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 20674, 67, 9083, 273, 365, 18, 29892, 63, 20, 6362, 6, 13057, 6, 8009, 1132, 4891, 67, 9083, 273, 365, 18, 29892, 18919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 67, 29892, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 20674, 67, 9083, 273, 365, 18, 29892, 63, 20, 6362, 6, 13057, 6, 8009, 1132, 4891, 67, 9083, 273, 365, 18, 29892, 18919, ...
self.adjustSize()
def updateQuestion(self): self.adjustSize() if self.item == None: return if self.item.cat.name != "<default>": self.question_label.setText(preprocess("Question: " + \ self.item.cat.name)) self.question.setText(preprocess(self.item.q)) if self.answer.text() != "": self.answer.setText(preprocess(self.item.a))
84f9fdc37189ed6da27216ea3112529907c0eb85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1240/84f9fdc37189ed6da27216ea3112529907c0eb85/main_dlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11665, 12, 2890, 4672, 225, 309, 365, 18, 1726, 422, 599, 30, 327, 225, 309, 365, 18, 1726, 18, 2574, 18, 529, 480, 3532, 1886, 2984, 30, 365, 18, 4173, 67, 1925, 18, 542, 1528...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11665, 12, 2890, 4672, 225, 309, 365, 18, 1726, 422, 599, 30, 327, 225, 309, 365, 18, 1726, 18, 2574, 18, 529, 480, 3532, 1886, 2984, 30, 365, 18, 4173, 67, 1925, 18, 542, 1528...
self.start()
def __init__(self, expire, cb_func=None): self._start = None self._expire = expire self._cb = cb_func self.start()
23320cbeed85d0fd35ebd60be84fe7c53807eeb1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3386/23320cbeed85d0fd35ebd60be84fe7c53807eeb1/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6930, 16, 2875, 67, 644, 33, 7036, 4672, 365, 6315, 1937, 273, 599, 365, 6315, 14070, 273, 6930, 365, 6315, 7358, 273, 2875, 67, 644, 365, 18, 1937, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6930, 16, 2875, 67, 644, 33, 7036, 4672, 365, 6315, 1937, 273, 599, 365, 6315, 14070, 273, 6930, 365, 6315, 7358, 273, 2875, 67, 644, 365, 18, 1937, 1435...
self.texturePathList = r"/usr/aqsis/textures" self.displayPathList = r"/usr/aqsis/displays" self.archivePathList = r"/usr/aqsis/archives" self.proceduralPathList = r"/usr/aqsis/procedurals"
def getSettings(self, button): # let's try the Registry! try: settings = Blender.Registry.GetKey("BtoR", True) # check everywhere for BtoR settings. except: settings = False if settings: # settings were found, btor was setup previously, let's get the information self.haveSetup = True # I've got the information self.renderer = settings["renderer"] # string self.binaryPath = settings["Binaries"] # string self.shaderPathList = settings["Shaders"] # string self.texturePathList = settings["Textures"] # string self.displayPathList = settings["Displays"] # string self.archivePathList = settings["Archives"] # string self.proceduralPathList = settings["Procedurals"] # string self.outputPath = settings["outputPath"] # string self.use_slparams = settings["use_slparams"] # boolean else: self.haveSetup = False # no info self.renderer = "AQSIS" # this should eventually change to use settings stored in either the blender registry, or something else # default to aqsis, since we've got no actual information if os.name <> "posix" or os.name <> "mac": self.binaryPath = r'C:\Program Files\Aqsis\\bin' self.shaderPathList = r"C:\Program Files\Aqsis\Shaders" self.texturePathList = r"C:\Program Files\Aqsis\Textures" self.displayPathList = r"C:\Program Files\Aqsis\Displays" self.archivePathList = r"C:\Program Files\Aqsis\Archives" self.proceduralPathList = r"C:\Program Files\Aqsis\Procedurals" self.outputPath = r'C:\temp' else: self.binaryPath = r"/usr/aqsis/bin" self.shaderPathList = r"/usr/aqsis/shaders/" self.texturePathList = r"/usr/aqsis/textures" self.displayPathList = r"/usr/aqsis/displays" self.archivePathList = r"/usr/aqsis/archives" self.proceduralPathList = r"/usr/aqsis/procedurals" self.outputPath = r"/temp/" self.use_slparams = True # set this to true by default # surf the environment and get the shader paths from the env vars for this renderer # step one, test the $HOME/shaders thing # news flash: Set this up on failure of the settings load if self.renderers[self.renderer][5] <> None: # the renderer root should have no need of multiple search paths if os.getenv(self.renderers[self.renderer][5]) <> None: self.shaderPathList = self.shaderPathList + (os.getenv(self.renderers[self.renderer][5]) + os.sep + "shaders" + os.sep) + os.pathsep if self.renderers[self.renderer][6] <> None: if os.getenv(self.renderers[self.renderer][6]) <> None: #if self.renderers[self.renderer][6].find self.shaderPathList = self.shaderPathList + os.getenv(self.renderers[self.renderer][6]) # that should be that.
74bddf362fa2502791a0646abd613f6613d08c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/74bddf362fa2502791a0646abd613f6613d08c8a/BtoRMain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18283, 12, 2890, 16, 3568, 4672, 468, 2231, 1807, 775, 326, 5438, 5, 775, 30, 1947, 273, 8069, 2345, 18, 4243, 18, 967, 653, 2932, 38, 869, 54, 3113, 1053, 13, 468, 866, 3614, 6051, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18283, 12, 2890, 16, 3568, 4672, 468, 2231, 1807, 775, 326, 5438, 5, 775, 30, 1947, 273, 8069, 2345, 18, 4243, 18, 967, 653, 2932, 38, 869, 54, 3113, 1053, 13, 468, 866, 3614, 6051, ...
if (self.compiler.find_library_file(lib_dirs, 'ncurses')):
if (self.compiler.find_library_file(lib_dirs, 'ncursesw')): curses_libs = ['ncursesw'] exts.append( Extension('_curses', ['_cursesmodule.c'], libraries = curses_libs) ) elif (self.compiler.find_library_file(lib_dirs, 'ncurses')):
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')
a55e55e9f3034ceacbf90facc1a0548d63250df4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a55e55e9f3034ceacbf90facc1a0548d63250df4/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
self.stc.electricReturn()
self.autoindent.processReturn(self.stc)
def checkReturn(self, pair): dprint(pair) prepareSTC(self.stc, pair[0]) dprint("after prepareSTC") self.stc.electricReturn() dprint("after electricReturn") assert checkSTC(self.stc, pair[0], pair[1])
b93e070c1a4094eeee5fc333b2dc6a433a0a320c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/b93e070c1a4094eeee5fc333b2dc6a433a0a320c/test_indent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 990, 12, 2890, 16, 3082, 4672, 302, 1188, 12, 6017, 13, 2911, 882, 39, 12, 2890, 18, 334, 71, 16, 3082, 63, 20, 5717, 302, 1188, 2932, 5205, 2911, 882, 39, 7923, 365, 18, 6079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 990, 12, 2890, 16, 3082, 4672, 302, 1188, 12, 6017, 13, 2911, 882, 39, 12, 2890, 18, 334, 71, 16, 3082, 63, 20, 5717, 302, 1188, 2932, 5205, 2911, 882, 39, 7923, 365, 18, 6079, ...
def extract_extension_options(field_list, option_spec):
def extract_extension_options(field_list, options_spec):
def extract_extension_options(field_list, option_spec): """ Return a dictionary mapping extension option names to converted values. :Parameters: - `field_list`: A flat field list without field arguments, where each field body consists of a single paragraph only. - `option_spec`: Dictionary mapping known option names to a conversion function such as `int` or `float`. :Exceptions: - `KeyError` for unknown option names. - `ValueError` for invalid option values (raised by the conversion function). - `DuplicateOptionError` for duplicate options. - `BadOptionError` for invalid fields. - `BadOptionDataError` for invalid option data (missing name, missing data, bad quotes, etc.). """ option_list = extract_options(field_list) option_dict = assemble_option_dict(option_list, option_spec) return option_dict
f7999939795674d6bb9916ebbf4bd199ddce697a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/f7999939795674d6bb9916ebbf4bd199ddce697a/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 6447, 67, 2116, 12, 1518, 67, 1098, 16, 702, 67, 2793, 4672, 3536, 2000, 279, 3880, 2874, 2710, 1456, 1257, 358, 5970, 924, 18, 225, 294, 2402, 30, 300, 1375, 1518, 67, 1098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2608, 67, 6447, 67, 2116, 12, 1518, 67, 1098, 16, 702, 67, 2793, 4672, 3536, 2000, 279, 3880, 2874, 2710, 1456, 1257, 358, 5970, 924, 18, 225, 294, 2402, 30, 300, 1375, 1518, 67, 1098,...
print 'Usage: %s ce' %(Script.scriptName)
Script.showHelp()
def usage(): print 'Usage: %s ce' %(Script.scriptName) DIRAC.exit(2)
07d3b192bfbbf07ce0f2ef2ef8835d68849d1c75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/07d3b192bfbbf07ce0f2ef2ef8835d68849d1c75/dirac-admin-bdii-ce-state.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 7739, 18, 4500, 6696, 1435, 18544, 2226, 18, 8593, 12, 22, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 7739, 18, 4500, 6696, 1435, 18544, 2226, 18, 8593, 12, 22, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class TestSelectSkinView(ptc.FunctionalTestCase):
class TestSelectSkinView(base.BaseFunctionalTestCase):
def testSelectedSkinHasProperCSSClass(self): st = getToolByName(self.folder, "portal_skins") skins = st.getSkinSelections() actions = self.menu.getMenuItems(self.folder, self.request) action = [a for a in actions if a["title"] == skins[0]][0] self.assertEqual("actionMenu", action["extra"]["class"]) set_selected_default_skin(self.folder, skins[0]) self.assertEqual(skins[0], get_selected_default_skin(self.folder)) actions = self.menu.getMenuItems(self.folder, self.request) action = [a for a in actions if a["title"] == skins[0]][0] self.assertEqual("actionMenuSelected", action["extra"]["class"])
1bd0163763e58b854569a506d2538cc71f97eeaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10439/1bd0163763e58b854569a506d2538cc71f97eeaf/test_menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7416, 26827, 5582, 626, 457, 10276, 797, 12, 2890, 4672, 384, 273, 336, 6364, 5911, 12, 2890, 18, 5609, 16, 315, 24386, 67, 7771, 2679, 7923, 4343, 2679, 273, 384, 18, 588, 26827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7416, 26827, 5582, 626, 457, 10276, 797, 12, 2890, 4672, 384, 273, 336, 6364, 5911, 12, 2890, 18, 5609, 16, 315, 24386, 67, 7771, 2679, 7923, 4343, 2679, 273, 384, 18, 588, 26827, ...
\code{cusp\_only} is True, return only a basis for the cuspidal
``cusp_only`` is True, return only a basis for the cuspidal
def victor_miller_basis(k, prec=10, cusp_only=False, var='q'): r""" Compute and return the Victor-Miller basis for modular forms of weight k and level 1 to precision $O(q^prec)$. if \code{cusp\_only} is True, return only a basis for the cuspidal subspace. INPUT: k -- an integer prec -- (default: 10) a positive integer cusp_only -- bool (default: False) var -- string (default: 'q' OUTPUT: A sequence whose entries are power series in ZZ[[var]]. EXAMPLES: sage: victor_miller_basis(1, 6) [] sage: victor_miller_basis(0, 6) [ 1 + O(q^6) ] sage: victor_miller_basis(2, 6) [] sage: victor_miller_basis(4, 6) [ 1 + 240*q + 2160*q^2 + 6720*q^3 + 17520*q^4 + 30240*q^5 + O(q^6) ] sage: victor_miller_basis(6, 6, var='w') [ 1 - 504*w - 16632*w^2 - 122976*w^3 - 532728*w^4 - 1575504*w^5 + O(w^6) ] sage: victor_miller_basis(6, 6) [ 1 - 504*q - 16632*q^2 - 122976*q^3 - 532728*q^4 - 1575504*q^5 + O(q^6) ] sage: victor_miller_basis(12, 6) [ 1 + 196560*q^2 + 16773120*q^3 + 398034000*q^4 + 4629381120*q^5 + O(q^6), q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6) ] sage: victor_miller_basis(12, 6, cusp_only=True) [ q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6) ] sage: victor_miller_basis(24, 6, cusp_only=True) [ q + 195660*q^3 + 12080128*q^4 + 44656110*q^5 + O(q^6), q^2 - 48*q^3 + 1080*q^4 - 15040*q^5 + O(q^6) ] sage: victor_miller_basis(24, 6) [ 1 + 52416000*q^3 + 39007332000*q^4 + 6609020221440*q^5 + O(q^6), q + 195660*q^3 + 12080128*q^4 + 44656110*q^5 + O(q^6), q^2 - 48*q^3 + 1080*q^4 - 15040*q^5 + O(q^6) ] sage: victor_miller_basis(32, 6) [ 1 + 2611200*q^3 + 19524758400*q^4 + 19715347537920*q^5 + O(q^6), q + 50220*q^3 + 87866368*q^4 + 18647219790*q^5 + O(q^6), q^2 + 432*q^3 + 39960*q^4 - 1418560*q^5 + O(q^6) ] sage: victor_miller_basis(40,200)[1:] == victor_miller_basis(40,200,cusp_only=True) True sage: victor_miller_basis(200,40)[1:] == victor_miller_basis(200,40,cusp_only=True) True """ k = Integer(k) if k%2 == 1 or k==2: return Sequence([]) elif k < 0: raise ValueError, "k must be non-negative" elif k == 0: return Sequence([PowerSeriesRing(ZZ,var)(1).add_bigoh(prec)], cr=True) e = k.mod(12) if e == 2: e += 12 n = (k-e) // 12 if n == 0 and cusp_only: return Sequence([]) # If prec is less than or equal to the dimension of the space of # cusp forms, which is just n, then we know the answer, and we # simply return it. if prec <= n: q = PowerSeriesRing(ZZ,var).gen(0) err = bigO(q**prec) ls = [0] * (n+1) if not cusp_only: ls[0] = 1 + err for i in range(1,prec): ls[i] = q**i + err for i in range(prec,n+1): ls[i] = err return Sequence(ls, cr=True) F6 = ((-504)*eisenstein_series_qexp(6,prec,var=var)).change_ring(ZZ) if e == 0: A = F6.parent()(1) elif e == 4: A = (240*eisenstein_series_qexp(4,prec,var=var)).change_ring(ZZ) elif e == 6: A = F6 elif e == 8: A = (480*eisenstein_series_qexp(8,prec,var=var)).change_ring(ZZ) elif e == 10: A = (-264*eisenstein_series_qexp(10,prec,var=var)).change_ring(ZZ) else: # e == 14 A = (-24*eisenstein_series_qexp(14,prec,var=var)).change_ring(ZZ) if n == 0: return Sequence([A], cr=True) F6_squared = F6**2 D = delta_qexp(prec,var=var) Fprod = F6_squared Dprod = D R = A.parent() if cusp_only: ls = [R(0)] + [A] * n start = 1 else: ls = [A] * (n+1) start = 0 for i in range(1,n+1): ls[n-i] *= Fprod ls[i] *= Dprod Fprod *= F6_squared Dprod *= D Dprod = Dprod.add_bigoh(prec) if cusp_only: M = Matrix(ZZ, n, prec, [x.list() for x in ls[1:]]) for i in range(n): for j in range(i): M.add_multiple_of_row(j,i,-M[j][i+1]) else: M = Matrix(ZZ, n+1, prec, [x.list() for x in ls]) for i in range(1,n+1): for j in range(i): M.add_multiple_of_row(j,i,-M[j][i]) return Sequence([ R(x.list()).add_bigoh(prec) for x in M.rows() ], cr=True)
74511b3d93eade71ef872d996d1e319e0fe69c98 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/74511b3d93eade71ef872d996d1e319e0fe69c98/vm_basis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28873, 280, 67, 81, 24462, 67, 23774, 12, 79, 16, 13382, 33, 2163, 16, 27964, 84, 67, 3700, 33, 8381, 16, 569, 2218, 85, 11, 4672, 436, 8395, 8155, 471, 327, 326, 776, 933, 280, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28873, 280, 67, 81, 24462, 67, 23774, 12, 79, 16, 13382, 33, 2163, 16, 27964, 84, 67, 3700, 33, 8381, 16, 569, 2218, 85, 11, 4672, 436, 8395, 8155, 471, 327, 326, 776, 933, 280, 17, ...
except (IOError, WindowsError):
except ERRORS:
def loadstatus(name): try: f = open(name, 'rb') except (IOError, WindowsError): return {} try: try: data = cPickle.load(f) except EOFError: return {} finally: f.close() return data
f43d63a1fb84363e18dab3b62a9988c5afafca58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10193/f43d63a1fb84363e18dab3b62a9988c5afafca58/lint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 2327, 12, 529, 4672, 775, 30, 284, 273, 1696, 12, 529, 16, 296, 6731, 6134, 1335, 5475, 55, 30, 327, 2618, 775, 30, 775, 30, 501, 273, 276, 17968, 298, 18, 945, 12, 74, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 2327, 12, 529, 4672, 775, 30, 284, 273, 1696, 12, 529, 16, 296, 6731, 6134, 1335, 5475, 55, 30, 327, 2618, 775, 30, 775, 30, 501, 273, 276, 17968, 298, 18, 945, 12, 74, 13, 1...
if type(key) == StringType:
if isinstance(key, StringType):
def __getitem__(self, key): try: return self.data[key] except KeyError: if type(key) == StringType: return '%('+key+')s' else: return '<Missing key: %s>' % `key`
326a1174d730585329db1c3a321d5c94c17af0b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/326a1174d730585329db1c3a321d5c94c17af0b2/SafeDict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 775, 30, 327, 365, 18, 892, 63, 856, 65, 1335, 4999, 30, 309, 1549, 12, 856, 16, 31570, 4672, 327, 1995, 2668, 15, 856, 15, 6134, 87, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 775, 30, 327, 365, 18, 892, 63, 856, 65, 1335, 4999, 30, 309, 1549, 12, 856, 16, 31570, 4672, 327, 1995, 2668, 15, 856, 15, 6134, 87, 11, ...
if result.isdigit():
if isinstance(result, str) and result.isdigit():
def get(self, name, default=None): vimname = 'g:ropevim_%s' % name if str(vim.eval('exists("%s")' % vimname)) == '0': return default result = vim.eval(vimname) if result.isdigit(): return int(result) return result
203f358cef531aa9e33a68ad08d3e6b1d541afa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8284/203f358cef531aa9e33a68ad08d3e6b1d541afa3/ropevim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 508, 16, 805, 33, 7036, 4672, 18727, 529, 273, 296, 75, 30, 303, 347, 90, 381, 10185, 87, 11, 738, 508, 309, 609, 12, 90, 381, 18, 8622, 2668, 1808, 27188, 87, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 508, 16, 805, 33, 7036, 4672, 18727, 529, 273, 296, 75, 30, 303, 347, 90, 381, 10185, 87, 11, 738, 508, 309, 609, 12, 90, 381, 18, 8622, 2668, 1808, 27188, 87, 3...
sage: print L.is_empty_column(0)
sage: L.is_empty_column(0)
def is_empty_column(self, c): """ Checks if column c of the partial latin square self is empty.
79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 5531, 67, 2827, 12, 2890, 16, 276, 4672, 3536, 13074, 309, 1057, 276, 434, 326, 4702, 30486, 8576, 365, 353, 1008, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 5531, 67, 2827, 12, 2890, 16, 276, 4672, 3536, 13074, 309, 1057, 276, 434, 326, 4702, 30486, 8576, 365, 353, 1008, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
context['classes'] = self.user.getTaughtClasses().filter(parent_program = self.program)
""" Sets the 'classes' template variable to contain the list of classes that the current user is teaching """ if not context.has_key('classes'): context['classes'] = self.user.getTaughtClasses().filter(parent_program = self.program)
def prepare(self, context): context['classes'] = self.user.getTaughtClasses().filter(parent_program = self.program) return context
8ee381881e93abac6feabcf989b45a3bc64812c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/8ee381881e93abac6feabcf989b45a3bc64812c9/adminreviewapps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 16, 819, 4672, 3536, 11511, 326, 296, 4701, 11, 1542, 2190, 358, 912, 326, 666, 434, 3318, 716, 326, 783, 729, 353, 6489, 497, 310, 3536, 1377, 309, 486, 819, 18, 5332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 12, 2890, 16, 819, 4672, 3536, 11511, 326, 296, 4701, 11, 1542, 2190, 358, 912, 326, 666, 434, 3318, 716, 326, 783, 729, 353, 6489, 497, 310, 3536, 1377, 309, 486, 819, 18, 5332,...
MessageDialog ("Question", "Really delete device and all applications in it?", ["Yes", "No"], self.doRemoveItem) else: MessageDialog ("Notice", "Select a device or application.") def doRemoveItem (self, buttonName): if buttonName != "Yes": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node)
dialog = gtk.MessageDialog ( mainWindow, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, "Really delete device and all applications in it?") else: raise Exception ("This should never happen.") response = dialog.run() dialog.destroy () if response != gtk.RESPONSE_YES: return
def removeItem (self, widget): try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": MessageDialog ("Question", "Really delete application \"" + obj.name + "\"?", ["Yes", "No"], self.doRemoveItem) elif type == "device": MessageDialog ("Question", "Really delete device and all applications in it?", ["Yes", "No"], self.doRemoveItem) else: MessageDialog ("Notice", "Select a device or application.")
44ba4a387d4167dedba8d083a763a0b3d1a1236b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/44ba4a387d4167dedba8d083a763a0b3d1a1236b/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29178, 261, 2890, 16, 3604, 4672, 775, 30, 756, 273, 365, 18, 588, 6233, 1435, 1335, 12977, 668, 30, 327, 618, 16, 1081, 273, 365, 18, 2159, 67, 588, 67, 492, 67, 892, 261, 2159, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29178, 261, 2890, 16, 3604, 4672, 775, 30, 756, 273, 365, 18, 588, 6233, 1435, 1335, 12977, 668, 30, 327, 618, 16, 1081, 273, 365, 18, 2159, 67, 588, 67, 492, 67, 892, 261, 2159, 13,...
else: if start_dir.endswith('build'): print 'coverage_posix.py: doing a "cd src" to accomodate buildbot PWD' os.chdir('src')
def GenerateLcovPosix(self): """Convert profile data to lcov on Mac or Linux.""" start_dir = os.getcwd() if self.IsLinux(): # With Linux/make (e.g. the coverage_run target), the current # directory for this command is .../build/src/chrome but we need # to be in .../build/src for the relative path of source files # to be correct. However, when run from buildbot, the current # directory is .../build. Accommodate. # On Mac source files are compiled with abs paths so this isn't # a problem. # This is a bit of a hack. The best answer is to require this # script be run in a specific directory for all cases (from # Makefile or from buildbot). if start_dir.endswith('chrome'): print 'coverage_posix.py: doing a "cd .." to accomodate Linux/make PWD' os.chdir('..') elif self.IsMac(): pass else: # windows if start_dir.endswith('build'): print 'coverage_posix.py: doing a "cd src" to accomodate buildbot PWD' os.chdir('src')
f8f2eac7aa00ef3eac8237a6e3501152d70c7018 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/f8f2eac7aa00ef3eac8237a6e3501152d70c7018/coverage_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 48, 14014, 1616, 697, 12, 2890, 4672, 3536, 2723, 3042, 501, 358, 9109, 1527, 603, 13217, 578, 13318, 12123, 787, 67, 1214, 273, 1140, 18, 588, 11089, 1435, 309, 365, 18, 2520, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6654, 48, 14014, 1616, 697, 12, 2890, 4672, 3536, 2723, 3042, 501, 358, 9109, 1527, 603, 13217, 578, 13318, 12123, 787, 67, 1214, 273, 1140, 18, 588, 11089, 1435, 309, 365, 18, 2520, 194...
nstart, nend = iter.forward_search(name, gtk.TEXT_SEARCH_VISIBLE_ONLY)
result = iter.forward_search(name, gtk.TEXT_SEARCH_VISIBLE_ONLY) if result is None: break nstart, nend = result
def mark_problems(editor, problems): start, end = editor.buffer.get_bounds() if editor.buffer.get_tag_table().lookup('flakes'): editor.buffer.remove_tag_by_name('flakes', start, end) for line, name, message in problems: iter = editor.buffer.get_iter_at_line(line-1) while iter.get_line() == line - 1: nstart, nend = iter.forward_search(name, gtk.TEXT_SEARCH_VISIBLE_ONLY) if nstart.starts_word() and nend.ends_word(): break iter = nend editor.buffer.apply_tag(get_tag(editor), nstart, nend)
f2bfd33a6440b137c0c081425ee1b120652e478e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/f2bfd33a6440b137c0c081425ee1b120652e478e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 67, 29812, 12, 9177, 16, 9688, 4672, 787, 16, 679, 273, 4858, 18, 4106, 18, 588, 67, 10576, 1435, 225, 309, 4858, 18, 4106, 18, 588, 67, 2692, 67, 2121, 7675, 8664, 2668, 2242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2267, 67, 29812, 12, 9177, 16, 9688, 4672, 787, 16, 679, 273, 4858, 18, 4106, 18, 588, 67, 10576, 1435, 225, 309, 4858, 18, 4106, 18, 588, 67, 2692, 67, 2121, 7675, 8664, 2668, 2242, ...
elif iquad in (IHR, IHK):
def torpedo(origin, course, dispersion, number, nburst): "Let a photon torpedo fly" shoved = False ac = course + 0.25*dispersion angle = (15.0-ac)*0.5235988 bullseye = (15.0 - course)*0.5235988 delta = coord(-math.sin(angle), math.cos(angle)) bigger = max(abs(delta.i), abs(delta.j)) delta /= bigger x = origin.i; y = origin.j w = coord(0, 0); jw = coord(0, 0) if not damaged(DSRSENS) or game.condition=="docked": setwnd(srscan_window) else: setwnd(message_window) # Loop to move a single torpedo for step in range(1, 15+1): x += delta.i y += delta.j w = coord(x, y).snaptogrid() if not VALID_SECTOR(w.i, w.j): break iquad=game.quad[w.i][w.j] tracktorpedo(origin, w, step, number, nburst, iquad) if iquad==IHDOT: continue # hit something setwnd(message_window) if damaged(DSRSENS) and not game.condition=="docked": skip(1); # start new line after text track if iquad in (IHE, IHF): # Hit our ship skip(1) prout(_("Torpedo hits %s.") % crmshp()) hit = 700.0 + randreal(100) - \ 1000.0 * (w-origin).distance() * math.fabs(math.sin(bullseye-angle)) newcnd(); # we're blown out of dock # We may be displaced. if game.landed or game.condition=="docked": return hit # Cheat if on a planet ang = angle + 2.5*(randreal()-0.5) temp = math.fabs(math.sin(ang)) if math.fabs(math.cos(ang)) > temp: temp = math.fabs(math.cos(ang)) xx = -math.sin(ang)/temp yy = math.cos(ang)/temp jw.i = int(w.i+xx+0.5) jw.j = int(w.j+yy+0.5) if not VALID_SECTOR(jw.i, jw.j): return hit if game.quad[jw.i][jw.j]==IHBLANK: finish(FHOLE) return hit if game.quad[jw.i][jw.j]!=IHDOT: # can't move into object return hit game.sector = jw proutn(crmshp()) shoved = True elif iquad in (IHC, IHS): # Hit a commander if withprob(0.05): prout(crmena(True, iquad, "sector", w) + _(" uses anti-photon device;")) prout(_(" torpedo neutralized.")) return None elif iquad in (IHR, IHK): # Hit a regular enemy # find the enemy for enemy in game.enemies: if w == enemy.kloc: break kp = math.fabs(enemy.kpower) h1 = 700.0 + randrange(100) - \ 1000.0 * (w-origin).distance() * math.fabs(math.sin(bullseye-angle)) h1 = math.fabs(h1) if kp < h1: h1 = kp if enemy.kpower < 0: enemy.kpower -= -h1 else: enemy.kpower -= h1 if enemy.kpower == 0: deadkl(w, iquad, w) return None proutn(crmena(True, iquad, "sector", w)) # If enemy damaged but not destroyed, try to displace ang = angle + 2.5*(randreal()-0.5) temp = math.fabs(math.sin(ang)) if math.fabs(math.cos(ang)) > temp: temp = math.fabs(math.cos(ang)) xx = -math.sin(ang)/temp yy = math.cos(ang)/temp jw.i = int(w.i+xx+0.5) jw.j = int(w.j+yy+0.5) if not VALID_SECTOR(jw.i, jw.j): prout(_(" damaged but not destroyed.")) return if game.quad[jw.i][jw.j]==IHBLANK: prout(_(" buffeted into black hole.")) deadkl(w, iquad, jw) return None if game.quad[jw.i][jw.j]!=IHDOT: # can't move into object prout(_(" damaged but not destroyed.")) return None proutn(_(" damaged--")) enemy.kloc = jw shoved = True break elif iquad == IHB: # Hit a base skip(1) prout(_("***STARBASE DESTROYED..")) game.state.baseq = filter(lambda x: x != game.quadrant, game.state.baseq) game.quad[w.i][w.j]=IHDOT game.base.invalidate() game.state.galaxy[game.quadrant.i][game.quadrant.j].starbase -= 1 game.state.chart[game.quadrant.i][game.quadrant.j].starbase -= 1 game.state.basekl += 1 newcnd() return None elif iquad == IHP: # Hit a planet prout(crmena(True, iquad, "sector", w) + _(" destroyed.")) game.state.nplankl += 1 game.state.galaxy[game.quadrant.i][game.quadrant.j].planet = None game.iplnet.pclass = "destroyed" game.iplnet = None game.plnet.invalidate() game.quad[w.i][w.j] = IHDOT if game.landed: # captain perishes on planet finish(FDPLANET) return None elif iquad == IHW: # Hit an inhabited world -- very bad! prout(crmena(True, iquad, "sector", w) + _(" destroyed.")) game.state.nworldkl += 1 game.state.galaxy[game.quadrant.i][game.quadrant.j].planet = None game.iplnet.pclass = "destroyed" game.iplnet = None game.plnet.invalidate() game.quad[w.i][w.j] = IHDOT if game.landed: # captain perishes on planet finish(FDPLANET) prout(_("You have just destroyed an inhabited planet.")) prout(_("Celebratory rallies are being held on the Klingon homeworld.")) return None elif iquad == IHSTAR: # Hit a star if withprob(0.9): nova(w) else: prout(crmena(True, IHSTAR, "sector", w) + _(" unaffected by photon blast.")) return None elif iquad == IHQUEST: # Hit a thingy if not (game.options & OPTION_THINGY) or withprob(0.3): skip(1) prouts(_("AAAAIIIIEEEEEEEEAAAAAAAAUUUUUGGGGGHHHHHHHHHHHH!!!")) skip(1) prouts(_(" HACK! HACK! HACK! *CHOKE!* ")) skip(1) proutn(_("Mr. Spock-")) prouts(_(" \"Fascinating!\"")) skip(1) deadkl(w, iquad, w) else: # Stas Sergeev added the possibility that # you can shove the Thingy and piss it off. # It then becomes an enemy and may fire at you. thing.angry = True shoved = True return None elif iquad == IHBLANK: # Black hole skip(1) prout(crmena(True, IHBLANK, "sector", w) + _(" swallows torpedo.")) return None elif iquad == IHWEB: # hit the web skip(1) prout(_("***Torpedo absorbed by Tholian web.")) return None elif iquad == IHT: # Hit a Tholian h1 = 700.0 + randrange(100) - \ 1000.0 * (w-origin).distance() * math.fabs(math.sin(bullseye-angle)) h1 = math.fabs(h1) if h1 >= 600: game.quad[w.i][w.j] = IHDOT deadkl(w, iquad, w) game.tholian = None return None skip(1) proutn(crmena(True, IHT, "sector", w)) if withprob(0.05): prout(_(" survives photon blast.")) return None prout(_(" disappears.")) game.tholian.move(None) game.quad[w.i][w.j] = IHWEB dropin(IHBLANK) return None else: # Problem! skip(1) proutn("Don't know how to handle torpedo collision with ") proutn(crmena(True, iquad, "sector", w)) skip(1) return None break if curwnd!=message_window: setwnd(message_window) if shoved: game.quad[w.i][w.j]=IHDOT game.quad[jw.i][jw.j]=iquad prout(_(" displaced by blast to Sector %s ") % jw) for ll in range(len(game.enemies)): game.enemies[ll].kdist = game.enemies[ll].kavgd = (game.sector-game.enemies[ll].kloc).distance() game.enemies.sort(lambda x, y: cmp(x.kdist, y.kdist)) return None skip(1) prout(_("Torpedo missed.")) return None;
4162df86eb0d33c39014a02075294128fd2ca84d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/4162df86eb0d33c39014a02075294128fd2ca84d/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8934, 1845, 83, 12, 10012, 16, 4362, 16, 16232, 722, 16, 1300, 16, 4264, 18593, 4672, 315, 24181, 279, 24542, 265, 8934, 1845, 83, 21434, 6, 699, 9952, 273, 1083, 1721, 273, 4362, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8934, 1845, 83, 12, 10012, 16, 4362, 16, 16232, 722, 16, 1300, 16, 4264, 18593, 4672, 315, 24181, 279, 24542, 265, 8934, 1845, 83, 21434, 6, 699, 9952, 273, 1083, 1721, 273, 4362, 397, ...
set()
bag()
def __str__(self): """ The printable string appears just like a set, except that each element is raised to the power of the multiplicity if it is greater than 1.
3325486bf02adc2f21c90c503985367500ba994b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/3325486bf02adc2f21c90c503985367500ba994b/collections_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 1021, 23474, 533, 14606, 2537, 3007, 279, 444, 16, 1335, 716, 1517, 930, 353, 11531, 358, 326, 7212, 434, 326, 3309, 20458, 309, 518, 353, 6802, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 1021, 23474, 533, 14606, 2537, 3007, 279, 444, 16, 1335, 716, 1517, 930, 353, 11531, 358, 326, 7212, 434, 326, 3309, 20458, 309, 518, 353, 6802, 235...
mode._optimizer=gof.Query(["canonicalize"]) mode._optimizer=mode._optimizer.excluding('local_elemwise_fusion') for id, [g, sym_inputs, val_inputs, nb_elemwise, out_dtype] in enumerate(cases): f = compile.function(list(sym_inputs), g, mode=mode) out = f(*val_inputs) assert(len(f.maker.env.toposort())==nb_elemwise) assert(out_dtype==out.dtype)
old_optimizer = mode._optimizer try: mode._optimizer=gof.Query(["canonicalize"]) mode._optimizer=mode._optimizer.excluding('local_elemwise_fusion') for id, [g, sym_inputs, val_inputs, nb_elemwise, out_dtype] in enumerate(cases): f = compile.function(list(sym_inputs), g, mode=mode) out = f(*val_inputs) assert(len(f.maker.env.toposort())==nb_elemwise) assert(out_dtype==out.dtype) finally: mode._optimizer = old_optimizer
def test_elemwise_multiple_inputs_optimisation(self): """ verify that the Canonizer merge sequential Elemwise({mul,add}) part 1 This part are that case that is done, but don't include case that are not implemented but are suposed to be. Test with and without DimShuffle """ shp=(5,5) fx, fy, fz = fmatrices('xyz') dx, dy, dz = dmatrices('xyz') fv = fvector('r').dimshuffle('x',0) dv = dvector('s').dimshuffle('x',0) fxv = numpy.asarray(numpy.random.rand(*shp),dtype='float32') fyv = numpy.asarray(numpy.random.rand(*shp),dtype='float32') fzv = numpy.asarray(numpy.random.rand(*shp),dtype='float32') fvv = numpy.asarray(numpy.random.rand(shp[0]),dtype='float32').reshape(1,shp[0]) dxv = numpy.asarray(numpy.random.rand(*shp),dtype='float64') dyv = numpy.asarray(numpy.random.rand(*shp),dtype='float64') dzv = numpy.asarray(numpy.random.rand(*shp),dtype='float64') dvv = numpy.asarray(numpy.random.rand(shp[0]),dtype='float64').reshape(1,shp[0]) cases = [ (fx+fy,(fx,fy),(fxv,fyv),1,'float32'), (fx*fy,(fx,fy),(fxv,fyv),1,'float32'),
4be478ff21e207903e6b29142f0227b2ff48249b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/4be478ff21e207903e6b29142f0227b2ff48249b/test_opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10037, 2460, 67, 9622, 67, 10029, 67, 16689, 10742, 12, 2890, 4672, 3536, 3929, 716, 326, 4480, 265, 1824, 2691, 21210, 10223, 2460, 12590, 16411, 16, 1289, 6792, 1087, 404, 1220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10037, 2460, 67, 9622, 67, 10029, 67, 16689, 10742, 12, 2890, 4672, 3536, 3929, 716, 326, 4480, 265, 1824, 2691, 21210, 10223, 2460, 12590, 16411, 16, 1289, 6792, 1087, 404, 1220...
ids = self.search(cr, uid, [('key','=',key),('key2','=',key2),('name','=',name),('model','=',model),('res_id','=',res_id)])
ids = self.search(cr, uid, [('key','=',key),('key2','=',key2),('name','=',name),('model','=',model),('res_id','=',res_id), ('user_id','=',preserve_user and uid)])
def set(self, cr, uid, key, key2, name, models, value, replace=True, isobject=False, meta=False, preserve_user=False): if not isobject: value = pickle.dumps(value) if meta: meta = pickle.dumps(meta) ids_res = [] for model in models: if type(model)==type([]) or type(model)==type(()): model,res_id = model else: res_id=False if replace: ids = self.search(cr, uid, [('key','=',key),('key2','=',key2),('name','=',name),('model','=',model),('res_id','=',res_id)]) self.unlink(cr, uid, ids) vals = { 'name': name, 'value': value, 'model': model, 'object': isobject, 'key': key, 'key2': key2 and key2[:200], 'meta': meta, 'user_id': preserve_user and uid, } if res_id: vals['res_id']= res_id ids_res.append(self.create(cr, uid, vals)) return ids_res
54e23b779b4dc63712f555b232787d8891cc7a90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/54e23b779b4dc63712f555b232787d8891cc7a90/ir_values.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 4422, 16, 4555, 16, 498, 16, 498, 22, 16, 508, 16, 3679, 16, 460, 16, 1453, 33, 5510, 16, 353, 1612, 33, 8381, 16, 2191, 33, 8381, 16, 9420, 67, 1355, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 4422, 16, 4555, 16, 498, 16, 498, 22, 16, 508, 16, 3679, 16, 460, 16, 1453, 33, 5510, 16, 353, 1612, 33, 8381, 16, 2191, 33, 8381, 16, 9420, 67, 1355, 33, 8381, ...
netsvc.Logger().notifyChannel("net-rpc", netsvc.LOG_WARNING, "exception: %" % str(e))
netsvc.Logger().notifyChannel("net-rpc", netsvc.LOG_WARNING, "exception: %s" % str(e))
def run(self): # import select self.running = True try: ts = tiny_socket.mysocket(self.sock) except: self.threads.remove(self) self.running = False return False while self.running: try: msg = ts.myreceive() except: self.threads.remove(self) self.running = False return False try: result = self.dispatch(msg[0], msg[1], msg[2:]) ts.mysend(result) except netsvc.OpenERPDispatcherException, e: try: new_e = Exception(tools.exception_to_unicode(e.exception)) # avoid problems of pickeling ts.mysend(new_e, exception=True, traceback=e.traceback) except: self.running = False break except Exception, e: # this code should not be reachable, therefore we warn netsvc.Logger().notifyChannel("net-rpc", netsvc.LOG_WARNING, "exception: %" % str(e)) break
1c88c3a749548b30f90a8a628f613f28c2cba96e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/1c88c3a749548b30f90a8a628f613f28c2cba96e/netrpc_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1930, 2027, 365, 18, 8704, 273, 1053, 775, 30, 3742, 273, 24405, 67, 7814, 18, 81, 1900, 1861, 12, 2890, 18, 15031, 13, 1335, 30, 365, 18, 12495, 18, 4479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 1930, 2027, 365, 18, 8704, 273, 1053, 775, 30, 3742, 273, 24405, 67, 7814, 18, 81, 1900, 1861, 12, 2890, 18, 15031, 13, 1335, 30, 365, 18, 12495, 18, 4479, ...
dialog = gtk.Window() dialog.set_title('Open 3D') dialog.set_border_width(10) dialog.set_resizable(False) gvhtml.set_help_topic( dialog, 'open3d.html' ) box = gtk.VBox(homogeneous=False, spacing=5) dialog.add(box)
dialog = Dialog3D(self)
def open_3D_request(self, *args): """ 3D File Open Dialog for selecting drape and height data """ self.make_active() self.drape_dataset = None self.DEM_dataset = None
7b9cc4439de70c9e94f690aaebb89ce455ec8b28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/7b9cc4439de70c9e94f690aaebb89ce455ec8b28/gvviewwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 23, 40, 67, 2293, 12, 2890, 16, 380, 1968, 4672, 3536, 890, 40, 1387, 3502, 17242, 364, 24674, 302, 25360, 471, 2072, 501, 3536, 365, 18, 6540, 67, 3535, 1435, 365, 18, 72, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 23, 40, 67, 2293, 12, 2890, 16, 380, 1968, 4672, 3536, 890, 40, 1387, 3502, 17242, 364, 24674, 302, 25360, 471, 2072, 501, 3536, 365, 18, 6540, 67, 3535, 1435, 365, 18, 72, ...
if size is not None: if i==-1 and len(c) > size: i=size-1 elif size <= i: i = size -1
def readline(self, size=-1): if size < 0: size = sys.maxint bufs = [] readsize = min(100, size) # Read from the file in small chunks while True: if size == 0: return "".join(bufs) # Return resulting line
8cdb86f4f4e29fe44e6c1f56381203bdad29fefb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8cdb86f4f4e29fe44e6c1f56381203bdad29fefb/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 309, 963, 411, 374, 30, 963, 273, 2589, 18, 1896, 474, 1681, 87, 273, 5378, 855, 1467, 273, 1131, 12, 6625, 16, 963, 13, 565, 468, 2720, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 309, 963, 411, 374, 30, 963, 273, 2589, 18, 1896, 474, 1681, 87, 273, 5378, 855, 1467, 273, 1131, 12, 6625, 16, 963, 13, 565, 468, 2720, 62...
mod = self.model.editor.openOrGotoModule(obj.func_code.co_filename)
path = os.path.abspath(obj.func_code.co_filename) mod, cntrl = self.model.editor.openOrGotoModule(path)
def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module
a278e70d9fcdc5da539495de8ca5a2ce08caf5cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a278e70d9fcdc5da539495de8ca5a2ce08caf5cd/PySourceView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 12481, 6563, 12, 2890, 16, 2076, 16, 980, 16, 980, 2279, 16, 787, 16, 2154, 4672, 3536, 531, 1107, 2794, 628, 605, 12481, 24273, 1259, 1528, 12418, 21294, 16, 525, 23868, 358, 8266,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 12481, 6563, 12, 2890, 16, 2076, 16, 980, 16, 980, 2279, 16, 787, 16, 2154, 4672, 3536, 531, 1107, 2794, 628, 605, 12481, 24273, 1259, 1528, 12418, 21294, 16, 525, 23868, 358, 8266,...
assert success.findAll('form')[1].get('action') == '/p/test/bugs/1/update_ticket'
assert success.findAll('form')[0].get('action') == '/p/test/bugs/1/update_ticket'
def test_new_ticket_validation(self): summary = 'ticket summary' response = self.app.get('/bugs/new/') assert not response.html.find('div', {'class':'error'}) form = response.form # try submitting with no summary set and check for error message error_form = form.submit() error_message = error_form.html.find('div', {'class':'error'}) assert error_message assert (error_message.string == 'Please enter a value' or \ error_message.string == 'Missing value') assert error_message.findPreviousSibling('input').get('name') == 'ticket_form.summary' # set a summary, submit, and check for success error_form.form['ticket_form.summary'] = summary success = error_form.form.submit().follow().html assert success.findAll('form')[1].get('action') == '/p/test/bugs/1/update_ticket' assert success.find('input', {'name':'summary'}).get('value') == summary
83d3f2fdc0bfc86df09a19e405572c8ac8fc7702 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/83d3f2fdc0bfc86df09a19e405572c8ac8fc7702/test_root.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2704, 67, 16282, 67, 8685, 12, 2890, 4672, 4916, 273, 296, 16282, 4916, 11, 766, 273, 365, 18, 2910, 18, 588, 2668, 19, 19381, 19, 2704, 2473, 13, 1815, 486, 766, 18, 2620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2704, 67, 16282, 67, 8685, 12, 2890, 4672, 4916, 273, 296, 16282, 4916, 11, 766, 273, 365, 18, 2910, 18, 588, 2668, 19, 19381, 19, 2704, 2473, 13, 1815, 486, 766, 18, 2620, ...
descr += '\n\n'
def __decode_header(header): """Decode a qp-encoded e-mail header as per rfc2047""" try: words_enc = decode_header(header) hobj = make_header(words_enc) except Exception, ex: raise CmdException, 'header decoding error: %s' % str(ex) return unicode(hobj).encode('utf-8')
f21ba53677d2e5820f2dc1774871bf8464729eea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/f21ba53677d2e5820f2dc1774871bf8464729eea/imprt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3922, 67, 3374, 12, 3374, 4672, 3536, 6615, 279, 22859, 17, 10787, 425, 17, 4408, 1446, 487, 1534, 16590, 21573, 27, 8395, 775, 30, 4511, 67, 1331, 273, 2495, 67, 3374, 12, 3374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3922, 67, 3374, 12, 3374, 4672, 3536, 6615, 279, 22859, 17, 10787, 425, 17, 4408, 1446, 487, 1534, 16590, 21573, 27, 8395, 775, 30, 4511, 67, 1331, 273, 2495, 67, 3374, 12, 3374, ...
- a list containing the projective points of X over the finite field, sorted
- a list containing the projective points of ``X`` over the finite field, sorted.
def enum_projective_finite_field(X): """ Enumerates projective points on scheme X defined over a finite field INPUT: - ``X`` - a scheme defined over a finite field or set of abstract rational points of such a scheme OUTPUT: - a list containing the projective points of X over the finite field, sorted EXAMPLES:: sage: F = GF(53) sage: P.<X,Y,Z> = ProjectiveSpace(2,F) sage: from sage.schemes.generic.rational_point import enum_projective_finite_field sage: len(enum_projective_finite_field(P(F))) 2863 sage: 53^2+53+1 2863 :: sage: F = GF(9,'a') sage: P.<X,Y,Z> = ProjectiveSpace(2,F) sage: C = Curve(X^3-Y^3+Z^2*Y) sage: enum_projective_finite_field(C(F)) [(0 : 0 : 1), (0 : 1 : 1), (0 : 2 : 1), (1 : 1 : 0), (a + 1 : 2*a : 1), (a + 1 : 2*a + 1 : 1), (a + 1 : 2*a + 2 : 1), (2*a + 2 : a : 1), (2*a + 2 : a + 1 : 1), (2*a + 2 : a + 2 : 1)] :: sage: F = GF(5) sage: P2F.<X,Y,Z> = ProjectiveSpace(2,F) sage: enum_projective_finite_field(P2F) [(0 : 0 : 1), (0 : 1 : 0), (0 : 1 : 1), (0 : 2 : 1), (0 : 3 : 1), (0 : 4 : 1), (1 : 0 : 0), (1 : 0 : 1), (1 : 1 : 0), (1 : 1 : 1), (1 : 2 : 1), (1 : 3 : 1), (1 : 4 : 1), (2 : 0 : 1), (2 : 1 : 0), (2 : 1 : 1), (2 : 2 : 1), (2 : 3 : 1), (2 : 4 : 1), (3 : 0 : 1), (3 : 1 : 0), (3 : 1 : 1), (3 : 2 : 1), (3 : 3 : 1), (3 : 4 : 1), (4 : 0 : 1), (4 : 1 : 0), (4 : 1 : 1), (4 : 2 : 1), (4 : 3 : 1), (4 : 4 : 1)] ALGORITHM: Checks all points in projective space to see if they lie on X. NOTE: Warning:if X given as input is defined over an infinite field then this code will not finish! AUTHORS: John Cremona and Charlie Turner (06-2010) """ if is_Scheme(X): X = X(X.base_ring()) n = X.codomain().ambient_space().ngens()-1 F = X.value_ring() pts = [] for k in range(n+1): for c in cartesian_product_iterator([F for _ in range(k)]): try: pts.append(X(list(c)+[1]+[0]*(n-k))) except: pass pts.sort() return pts
4968c6606a1d4065f615cfb67c0adf8d6828df4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/4968c6606a1d4065f615cfb67c0adf8d6828df4e/rational_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 4406, 688, 67, 9551, 67, 1518, 12, 60, 4672, 3536, 6057, 264, 815, 1984, 688, 3143, 603, 4355, 1139, 2553, 1879, 279, 25922, 652, 225, 12943, 30, 225, 300, 12176, 60, 10335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2792, 67, 4406, 688, 67, 9551, 67, 1518, 12, 60, 4672, 3536, 6057, 264, 815, 1984, 688, 3143, 603, 4355, 1139, 2553, 1879, 279, 25922, 652, 225, 12943, 30, 225, 300, 12176, 60, 10335, ...
elif cacheheads and tiprev < cacherevs[0]: _debug(ui, 'tag cache: tip rev decremented (from %d to %d), ' 'so we must be destroying nodes\n' % (cacherevs[0], tiprev))
def _readtagcache(ui, repo): '''Read the tag cache and return a tuple (heads, fnodes, cachetags, shouldwrite). If the cache is completely up-to-date, cachetags is a dict of the form returned by _readtags(); otherwise, it is None and heads and fnodes are set. In that case, heads is the list of all heads currently in the repository (ordered from tip to oldest) and fnodes is a mapping from head to .hgtags filenode. If those two are set, caller is responsible for reading tag info from each head.''' try: cachefile = repo.opener('tags.cache', 'r') # force reading the file for static-http cachelines = iter(cachefile) _debug(ui, 'reading tag cache from %s\n' % cachefile.name) except IOError: cachefile = None # The cache file consists of lines like # <headrev> <headnode> [<tagnode>] # where <headrev> and <headnode> redundantly identify a repository # head from the time the cache was written, and <tagnode> is the # filenode of .hgtags on that head. Heads with no .hgtags file will # have no <tagnode>. The cache is ordered from tip to oldest (which # is part of why <headrev> is there: a quick visual check is all # that's required to ensure correct order). # # This information is enough to let us avoid the most expensive part # of finding global tags, which is looking up <tagnode> in the # manifest for each head. cacherevs = [] # list of headrev cacheheads = [] # list of headnode cachefnode = {} # map headnode to filenode if cachefile: for line in cachelines: if line == "\n": break line = line.rstrip().split() cacherevs.append(int(line[0])) headnode = bin(line[1]) cacheheads.append(headnode) if len(line) == 3: fnode = bin(line[2]) cachefnode[headnode] = fnode tipnode = repo.changelog.tip() tiprev = len(repo.changelog) - 1 # Case 1 (common): tip is the same, so nothing has changed. # (Unchanged tip trivially means no changesets have been added. # But, thanks to localrepository.destroyed(), it also means none # have been destroyed by strip or rollback.) if cacheheads and cacheheads[0] == tipnode and cacherevs[0] == tiprev: _debug(ui, "tag cache: tip unchanged\n") tags = _readtags(ui, repo, cachelines, cachefile.name) cachefile.close() return (None, None, tags, False) if cachefile: cachefile.close() # ignore rest of file repoheads = repo.heads() # Case 2 (uncommon): empty repo; get out quickly and don't bother # writing an empty cache. if repoheads == [nullid]: return ([], {}, {}, False) # Case 3 (uncommon): cache file missing or empty. if not cacheheads: _debug(ui, 'tag cache: cache file missing or empty\n') # Case 4 (uncommon): tip rev decreased. This should only happen # when we're called from localrepository.destroyed(). Refresh the # cache so future invocations will not see disappeared heads in the # cache. elif cacheheads and tiprev < cacherevs[0]: _debug(ui, 'tag cache: tip rev decremented (from %d to %d), ' 'so we must be destroying nodes\n' % (cacherevs[0], tiprev)) # Case 5 (common): tip has changed, so we've added/replaced heads. else: _debug(ui, 'tag cache: tip has changed (%d:%s); must find new heads\n' % (tiprev, short(tipnode))) # Luckily, the code to handle cases 3, 4, 5 is the same. So the # above if/elif/else can disappear once we're confident this thing # actually works and we don't need the debug output. # N.B. in case 4 (nodes destroyed), "new head" really means "newly # exposed". newheads = [head for head in repoheads if head not in set(cacheheads)] _debug(ui, 'tag cache: found %d head(s) not in cache: %s\n' % (len(newheads), map(short, newheads))) # Now we have to lookup the .hgtags filenode for every new head. # This is the most expensive part of finding tags, so performance # depends primarily on the size of newheads. Worst case: no cache # file, so newheads == repoheads. for head in newheads: cctx = repo[head] try: fnode = cctx.filenode('.hgtags') cachefnode[head] = fnode except error.LookupError: # no .hgtags file on this head pass # Caller has to iterate over all heads, but can use the filenodes in # cachefnode to get to each .hgtags revision quickly. return (repoheads, cachefnode, None, True)
b2451d75e661d2c1bb8833ce32d5b7db4222606b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/b2451d75e661d2c1bb8833ce32d5b7db4222606b/tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 2692, 2493, 12, 4881, 16, 3538, 4672, 9163, 1994, 326, 1047, 1247, 471, 327, 279, 3193, 261, 20263, 16, 2295, 1145, 16, 7122, 278, 1341, 16, 1410, 2626, 2934, 225, 971, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 2692, 2493, 12, 4881, 16, 3538, 4672, 9163, 1994, 326, 1047, 1247, 471, 327, 279, 3193, 261, 20263, 16, 2295, 1145, 16, 7122, 278, 1341, 16, 1410, 2626, 2934, 225, 971, 326, ...
sys.stdout = StringIO() self.assertRaises(self.parser.parse_args, (cmdline_args,), None, SystemExit, expected_output, self.redirected_stdout) sys.stdout = sys.__stdout__
save_stdout = sys.stdout try: sys.stdout = StringIO() self.assertRaises(self.parser.parse_args, (cmdline_args,), None, SystemExit, expected_output, self.redirected_stdout) finally: sys.stdout = save_stdout
def assertStdoutEquals(self, cmdline_args, expected_output): """Assert the parser prints the expected output on stdout.""" sys.stdout = StringIO() self.assertRaises(self.parser.parse_args, (cmdline_args,), None, SystemExit, expected_output, self.redirected_stdout) sys.stdout = sys.__stdout__
c0a05538975d90418acf7315c3002f8af7498aef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c0a05538975d90418acf7315c3002f8af7498aef/test_optparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 27334, 8867, 12, 2890, 16, 22877, 67, 1968, 16, 2665, 67, 2844, 4672, 3536, 8213, 326, 2082, 14971, 326, 2665, 876, 603, 3909, 12123, 2589, 18, 10283, 273, 15777, 1435, 365, 18, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 27334, 8867, 12, 2890, 16, 22877, 67, 1968, 16, 2665, 67, 2844, 4672, 3536, 8213, 326, 2082, 14971, 326, 2665, 876, 603, 3909, 12123, 2589, 18, 10283, 273, 15777, 1435, 365, 18, 11...
self._actions = tuple( actions )
self._actions = tuple( new_actions )
def moveUpActions( self, selections=(), REQUEST=None ):
e9c8a13140af38feffb39ac4a9168fd6a776baf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/e9c8a13140af38feffb39ac4a9168fd6a776baf4/ActionProviderBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 1211, 6100, 12, 365, 16, 21738, 33, 9334, 12492, 33, 7036, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 1211, 6100, 12, 365, 16, 21738, 33, 9334, 12492, 33, 7036, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
data.filename, fname)
data.orig_filename, fname)
def _RealGetContents(self): """Read in the table of contents for the ZIP file.""" fp = self.fp endrec = _EndRecData(fp) if not endrec: raise BadZipfile, "File is not a zip file" if self.debug > 1: print endrec size_cd = endrec[5] # bytes in central directory offset_cd = endrec[6] # offset of central directory self.comment = endrec[8] # archive comment # endrec[9] is the offset of the "End of Central Dir" record x = endrec[9] - size_cd # "concat" is zero, unless zip was concatenated to another file concat = x - offset_cd if self.debug > 2: print "given, inferred, offset", offset_cd, x, concat # self.start_dir: Position of start of central directory self.start_dir = offset_cd + concat fp.seek(self.start_dir, 0) total = 0 while total < size_cd: centdir = fp.read(46) total = total + 46 if centdir[0:4] != stringCentralDir: raise BadZipfile, "Bad magic number for central directory" centdir = struct.unpack(structCentralDir, centdir) if self.debug > 2: print centdir filename = fp.read(centdir[_CD_FILENAME_LENGTH]) # Create ZipInfo instance to store file information x = ZipInfo(filename) x.extra = fp.read(centdir[_CD_EXTRA_FIELD_LENGTH]) x.comment = fp.read(centdir[_CD_COMMENT_LENGTH]) total = (total + centdir[_CD_FILENAME_LENGTH] + centdir[_CD_EXTRA_FIELD_LENGTH] + centdir[_CD_COMMENT_LENGTH]) x.header_offset = centdir[_CD_LOCAL_HEADER_OFFSET] + concat # file_offset must be computed below... (x.create_version, x.create_system, x.extract_version, x.reserved, x.flag_bits, x.compress_type, t, d, x.CRC, x.compress_size, x.file_size) = centdir[1:12] x.volume, x.internal_attr, x.external_attr = centdir[15:18] # Convert date/time code to (year, month, day, hour, min, sec) x.date_time = ( (d>>9)+1980, (d>>5)&0xF, d&0x1F, t>>11, (t>>5)&0x3F, (t&0x1F) * 2 ) self.filelist.append(x) self.NameToInfo[x.filename] = x if self.debug > 2: print "total", total for data in self.filelist: fp.seek(data.header_offset, 0) fheader = fp.read(30) if fheader[0:4] != stringFileHeader: raise BadZipfile, "Bad magic number for file header" fheader = struct.unpack(structFileHeader, fheader) # file_offset is computed here, since the extra field for # the central directory and for the local file header # refer to different fields, and they can have different # lengths data.file_offset = (data.header_offset + 30 + fheader[_FH_FILENAME_LENGTH] + fheader[_FH_EXTRA_FIELD_LENGTH]) fname = fp.read(fheader[_FH_FILENAME_LENGTH]) if fname != data.filename: raise RuntimeError, \ 'File name in directory "%s" and header "%s" differ.' % ( data.filename, fname)
8e36d28f3c082d7c10e5d7cbbb5301ec6e0d7d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8e36d28f3c082d7c10e5d7cbbb5301ec6e0d7d32/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6955, 967, 6323, 12, 2890, 4672, 3536, 1994, 316, 326, 1014, 434, 2939, 364, 326, 18277, 585, 12123, 4253, 273, 365, 18, 7944, 679, 3927, 273, 389, 1638, 5650, 751, 12, 7944, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6955, 967, 6323, 12, 2890, 4672, 3536, 1994, 316, 326, 1014, 434, 2939, 364, 326, 18277, 585, 12123, 4253, 273, 365, 18, 7944, 679, 3927, 273, 389, 1638, 5650, 751, 12, 7944, 13, ...
end = desc.index("%", begin) size_s = desc[begin:end].strip()
try: end = desc.index("%", begin) size_s = desc[begin:end].strip() except ValueError: size_s = desc[begin:].strip()
def _get_size(self, desc):
bfc9fcee57eb68e87b93f523bec4041319733b46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/bfc9fcee57eb68e87b93f523bec4041319733b46/pacman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1467, 12, 2890, 16, 3044, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1467, 12, 2890, 16, 3044, 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, ...
messages = self.pimpinstaller.install(list, output)
messages = pimpinstaller.install(list, output)
def installpackage(self, sel, output, recursive, force): pkg = self.packages[sel] list, messages = self.pimpinstaller.prepareInstall(pkg, force, recursive) if messages: return messages messages = self.pimpinstaller.install(list, output) return messages
dd738d3f8838235fe8273214c0e4b4f4a993a3c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dd738d3f8838235fe8273214c0e4b4f4a993a3c0/PackageManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 5610, 12, 2890, 16, 357, 16, 876, 16, 5904, 16, 2944, 4672, 3475, 273, 365, 18, 10308, 63, 1786, 65, 666, 16, 2743, 273, 365, 18, 84, 14532, 20163, 18, 9366, 6410, 12, 10657, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5610, 12, 2890, 16, 357, 16, 876, 16, 5904, 16, 2944, 4672, 3475, 273, 365, 18, 10308, 63, 1786, 65, 666, 16, 2743, 273, 365, 18, 84, 14532, 20163, 18, 9366, 6410, 12, 10657, 1...
res = self.db._query(req,connection)
res = self.db._query( req, connection )
def _getStatusInt(self,status,connection=False): connection = self._getConnection(connection) req = "SELECT StatusID FROM FC_Statuses WHERE Status = '%s';" % status res = self.db._query(req,connection) if not res['OK']: return res if res['Value']: return S_OK(res['Value'][0][0]) req = "INSERT INTO FC_Statuses (Status) VALUES ('%s');" % status res = self.db._update(req,connection) if not res['OK']: return res return S_OK(res['lastRowId'])
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1482, 1702, 12, 2890, 16, 2327, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 1111, 273, 315, 4803, 2685, 734, 4571, 478, 39, 67, 15220, 4852, 2685...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1482, 1702, 12, 2890, 16, 2327, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 1111, 273, 315, 4803, 2685, 734, 4571, 478, 39, 67, 15220, 4852, 2685...
result = self.getJobAttributes( ['Status','MinorStatus','VerifiedFlag','RescheduleCounter',
result = self.getJobAttributes( jobID, ['Status','MinorStatus','VerifiedFlag','RescheduleCounter',
def rescheduleJob (self, jobID): """ Reschedule the given job to run again from scratch. Retain the already defined parameters in the parameter Attic """ # Check Verified Flag result = self.getJobAttributes( ['Status','MinorStatus','VerifiedFlag','RescheduleCounter', 'Owner','OwnerDN','OwnerGroup','DIRACSetup'] ) if result['OK']: resultDict = result['value'] else: return S_ERROR('JobDB.getJobAttributes: can not retrieve job attributes')
0ecb01bb0c9469e809c37f1ee45961ae66054880 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/0ecb01bb0c9469e809c37f1ee45961ae66054880/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 400, 2847, 2278, 261, 2890, 16, 28913, 4672, 3536, 1124, 2847, 326, 864, 1719, 358, 1086, 3382, 628, 15289, 18, 17100, 530, 326, 1818, 2553, 1472, 316, 326, 1569, 6020, 335, 3536, 468, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 400, 2847, 2278, 261, 2890, 16, 28913, 4672, 3536, 1124, 2847, 326, 864, 1719, 358, 1086, 3382, 628, 15289, 18, 17100, 530, 326, 1818, 2553, 1472, 316, 326, 1569, 6020, 335, 3536, 468, 2...
if s[0] == '.': s = '%2e' + s[1:]
if len(s) > 0 and s[0] == '.': s = '%2e' + s[1:]
def quoteAddress(s): '''Quote an address so that it's safe to store in the file-system. Address can either be a domain name, or local part. Returns the quoted address.''' s = urllib.quote(s, '@_-+') if s[0] == '.': s = '%2e' + s[1:] return(s)
b141148e7fa3a46d168f9527a4cfc0cc8f8e353b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11927/b141148e7fa3a46d168f9527a4cfc0cc8f8e353b/tumgreyspfsupp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 1887, 12, 87, 4672, 9163, 10257, 392, 1758, 1427, 716, 518, 1807, 4183, 358, 1707, 316, 326, 585, 17, 4299, 18, 5267, 848, 3344, 506, 279, 2461, 508, 16, 578, 1191, 1087, 18, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 1887, 12, 87, 4672, 9163, 10257, 392, 1758, 1427, 716, 518, 1807, 4183, 358, 1707, 316, 326, 585, 17, 4299, 18, 5267, 848, 3344, 506, 279, 2461, 508, 16, 578, 1191, 1087, 18, 286...
('RemoveVideos', gtk.STOCK_REMOVE, menubar.getLabel('RemoveVideos'), menubar.getShortcut('RemoveVideos').GTKString(), None, self.on_remove_video_activate),
('RemoveVideos', gtk.STOCK_REMOVE, _(menubar.getLabel('RemoveVideos')), menubar.getShortcut('RemoveVideos').GTKString(), None, self.on_remove_video_activate),
def actionGroups (self): confirmMainThread() actionGroups = {} actionGroups["VideoSelected"] = gtk.ActionGroup("VideoSelected") actionGroups["VideosSelected"] = gtk.ActionGroup("VideosSelected") actionGroups["VideoPlaying"] = gtk.ActionGroup("VideoPlaying") actionGroups["VideoPlayable"] = gtk.ActionGroup("VideoPlayable") actionGroups["ChannelSelected"] = gtk.ActionGroup("ChannelSelected") actionGroups["ChannelsSelected"] = gtk.ActionGroup("ChannelsSelected") actionGroups["ChannelFolderSelected"] = gtk.ActionGroup("ChannelFolderSelected") actionGroups["ChannelLikeSelected"] = gtk.ActionGroup("ChannelLikeSelected") actionGroups["ChannelLikesSelected"] = gtk.ActionGroup("ChannelLikesSelected") actionGroups["PlaylistLikeSelected"] = gtk.ActionGroup("PlaylistLikeSelected") actionGroups["PlaylistLikesSelected"] = gtk.ActionGroup("PlaylistLikesSelected") actionGroups["Ubiquitous"] = gtk.ActionGroup("Ubiquitous")
02b643760c3610b49adef3a30a46f9e196a9b641 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/02b643760c3610b49adef3a30a46f9e196a9b641/callbackhandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 3621, 261, 2890, 4672, 6932, 6376, 3830, 1435, 1301, 3621, 273, 2618, 1301, 3621, 9614, 10083, 7416, 11929, 273, 22718, 18, 1803, 1114, 2932, 10083, 7416, 7923, 1301, 3621, 9614, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1301, 3621, 261, 2890, 4672, 6932, 6376, 3830, 1435, 1301, 3621, 273, 2618, 1301, 3621, 9614, 10083, 7416, 11929, 273, 22718, 18, 1803, 1114, 2932, 10083, 7416, 7923, 1301, 3621, 9614, 58, ...
security.declareProtected(permissions.View, 'copy')
security.declareProtected(CMFCorePermissions.View, 'copy')
def __add__(self, other): """Returns a new Schemata object that contains all fields and layers from ``self`` and ``other``. """
b9a35d44b511b5a532334179a24412a4695367d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b9a35d44b511b5a532334179a24412a4695367d1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 4672, 3536, 1356, 279, 394, 348, 1036, 396, 733, 716, 1914, 777, 1466, 471, 6623, 628, 12176, 2890, 10335, 471, 12176, 3011, 68, 8338, 3536, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 4672, 3536, 1356, 279, 394, 348, 1036, 396, 733, 716, 1914, 777, 1466, 471, 6623, 628, 12176, 2890, 10335, 471, 12176, 3011, 68, 8338, 3536, 2, -100,...
"exit": self.close,
"exit": self.cancel,
def __init__(self, session): Screen.__init__(self, session) self["red"] = Pixmap() self["green"] = Pixmap() self["yellow"] = Pixmap() self["blue"] = Pixmap() self["red_text"] = Label() self["green_text"] = Label() self["yellow_text"] = Label() self["blue_text"] = Label() self.updateColors() self["pretext"] = Label(_("Shutdown Dreambox after")) self["input"] = Input(text = str(self.session.nav.SleepTimer.getCurrentSleepTime()), maxSize = False, type = Input.NUMBER) self["aftertext"] = Label(_("minutes")) self["actions"] = NumberActionMap(["SleepTimerEditorActions"], { "exit": self.close, "select": self.select, "1": self.keyNumberGlobal, "2": self.keyNumberGlobal, "3": self.keyNumberGlobal, "4": self.keyNumberGlobal, "5": self.keyNumberGlobal, "6": self.keyNumberGlobal, "7": self.keyNumberGlobal, "8": self.keyNumberGlobal, "9": self.keyNumberGlobal, "0": self.keyNumberGlobal, "selectLeft": self.selectLeft, "selectRight": self.selectRight, "disableTimer": self.disableTimer, "toggleAction": self.toggleAction, "toggleAsk": self.toggleAsk }, -1)
2e670b5e69b463895aeab6268bf67fa35ba73c21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/2e670b5e69b463895aeab6268bf67fa35ba73c21/SleepTimerEdit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 225, 365, 9614, 1118, 11929, 273, 453, 697, 1458, 1435, 365, 9614, 11571, 11929, 273, 453, 697...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1339, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 225, 365, 9614, 1118, 11929, 273, 453, 697, 1458, 1435, 365, 9614, 11571, 11929, 273, 453, 697...
def generateWordLetter(self, new_thesaurus):
def generateWordLetter(self):
def generateWordLetter(self, new_thesaurus): up, down = self.word_generator if (1 << len(up)) <= self.uniq: raise Exception("No more shit! (more than %u words)" % (1 << len(up))) word = "" word = chr(ord('a') + self.uniq % 26) index = self.uniq / 26 self.uniq = self.uniq + 1 if index == 1: return "a"+word index = index - 1 while 0 < index: word = word + chr(ord('a')+index % 26) index = index / 26 return word[::-1]
562905e2a6815b9950a501214d1feb649e21a1f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2280/562905e2a6815b9950a501214d1feb649e21a1f5/tachatte.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 3944, 13938, 12, 2890, 4672, 731, 16, 2588, 273, 365, 18, 1095, 67, 8812, 309, 261, 21, 2296, 562, 12, 416, 3719, 1648, 365, 18, 31649, 30, 1002, 1185, 2932, 2279, 1898, 699, 305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 3944, 13938, 12, 2890, 4672, 731, 16, 2588, 273, 365, 18, 1095, 67, 8812, 309, 261, 21, 2296, 562, 12, 416, 3719, 1648, 365, 18, 31649, 30, 1002, 1185, 2932, 2279, 1898, 699, 305...
def fl_set_xyplot_ybounds(ob, ymin, ymax): """ fl_set_xyplot_ybounds(ob, ymin, ymax) """ _fl_set_xyplot_ybounds(ob, ymin, ymax)
def fl_set_xyplot_ybounds(obj, ymin, ymax): """ fl_set_xyplot_ybounds(obj, ymin, ymax) """ _fl_set_xyplot_ybounds(obj, ymin, ymax)
def fl_set_xyplot_ybounds(ob, ymin, ymax): """ fl_set_xyplot_ybounds(ob, ymin, ymax) """ _fl_set_xyplot_ybounds(ob, ymin, ymax)
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1698, 4032, 67, 93, 10576, 12, 2603, 16, 15763, 16, 15275, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 93, 10576, 12, 2603, 16, 15763, 16, 15275, 13, 3536, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1698, 4032, 67, 93, 10576, 12, 2603, 16, 15763, 16, 15275, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 93, 10576, 12, 2603, 16, 15763, 16, 15275, 13, 3536, 225, ...
threading.Thread(target=run).start()
threading.Thread(target=run).start()
def run(): with JSContext(g) as ctxt: ctxt.eval(""" started.wait(); for (i=0; i<10; i++) { sleep(100); } finished.release(); """)
550f86f8e1997ee990877076421feaf1936da8eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5451/550f86f8e1997ee990877076421feaf1936da8eb/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 598, 6756, 1042, 12, 75, 13, 487, 14286, 30, 14286, 18, 8622, 2932, 3660, 5746, 18, 7048, 5621, 225, 364, 261, 77, 33, 20, 31, 277, 32, 2163, 31, 277, 27245, 288, 5329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 598, 6756, 1042, 12, 75, 13, 487, 14286, 30, 14286, 18, 8622, 2932, 3660, 5746, 18, 7048, 5621, 225, 364, 261, 77, 33, 20, 31, 277, 32, 2163, 31, 277, 27245, 288, 5329, ...
except KeyboardInterrupt: raise except:
except Exception:
def run(self, result=None): if result is None: result = self.defaultTestResult() result.startTest(self) testMethod = getattr(self, self._testMethodName) try: try: self.setUp() except KeyboardInterrupt: raise except: result.addError(self, self._exc_info()) return
f64c3e352b01b2c5c40815e4240b2d73462e2ba7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/f64c3e352b01b2c5c40815e4240b2d73462e2ba7/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 309, 563, 353, 599, 30, 563, 273, 365, 18, 1886, 4709, 1253, 1435, 563, 18, 1937, 4709, 12, 2890, 13, 1842, 1305, 273, 3869, 12, 2890, 16, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 309, 563, 353, 599, 30, 563, 273, 365, 18, 1886, 4709, 1253, 1435, 563, 18, 1937, 4709, 12, 2890, 13, 1842, 1305, 273, 3869, 12, 2890, 16, 36...
print _('You must specify at least one file to add')
print >>sys.stderr, _('You must specify at least one file to add')
def command_add(args, dbpath): parser = get_parser(_(
aab8744748b031f43fe9148ccb2cdc2e9db72d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/aab8744748b031f43fe9148ccb2cdc2e9db72d82/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 1289, 12, 1968, 16, 1319, 803, 4672, 2082, 273, 336, 67, 4288, 24899, 12, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 1289, 12, 1968, 16, 1319, 803, 4672, 2082, 273, 336, 67, 4288, 24899, 12, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"""Usage: %(program)s [-v] [-c] [[-C class] -S field=value]* <instance home> [method]
"""Usage: %(program)s [-v] [-c class] [[-C class] -S field=value]* <instance home> [method]
def usage(args, message=None): if message is not None: print message print _(
7b226a82b723bac587accc5791b8298e420222e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7b226a82b723bac587accc5791b8298e420222e9/roundup_mailgw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 1968, 16, 883, 33, 7036, 4672, 309, 883, 353, 486, 599, 30, 1172, 883, 1172, 389, 12, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 1968, 16, 883, 33, 7036, 4672, 309, 883, 353, 486, 599, 30, 1172, 883, 1172, 389, 12, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Illusion = None Explain = False print Illusion,Explain
pass
def openDialog(): """Create and display the dialog""" global dialog,explanation data_items = [ I('Illusion',Illusion,choices=method.keys()), I('Explain',Explain,text='Show explanation'), ] dialog = widgets.NewInputDialog( data_items, caption='Optical illusions', actions = [('Done',close), ('Next',next), ('Explain',explain), ('Show',show)], default='Show' ) dialog.timeout = timeOut dialog.show()
6210a03dd61eaa6c2a5dd0338f889207d9d173e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/6210a03dd61eaa6c2a5dd0338f889207d9d173e8/OpticalIllusions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 6353, 13332, 3536, 1684, 471, 2562, 326, 6176, 8395, 2552, 6176, 16, 338, 15854, 501, 67, 3319, 273, 306, 467, 2668, 45, 2906, 7063, 2187, 45, 2906, 7063, 16, 11937, 33, 2039, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 6353, 13332, 3536, 1684, 471, 2562, 326, 6176, 8395, 2552, 6176, 16, 338, 15854, 501, 67, 3319, 273, 306, 467, 2668, 45, 2906, 7063, 2187, 45, 2906, 7063, 16, 11937, 33, 2039, 18, ...
self.tag_modelsort.set_sort_func(COL_ID, self.tag_sort_func)
def __init__(self,req): self.req = req self.collapsed_tags = [] self.tag_model = TagTreeModel(requester=self.req) self.tag_modelfilter = self.tag_model.filter_new() self.tag_modelfilter.set_visible_func(self.tag_visible_func) self.tag_modelsort = gtk.TreeModelSort(self.tag_modelfilter) self.tag_modelsort.set_sort_func(COL_ID, self.tag_sort_func) self.tags_tv = TagTreeView() self.tags_tv.set_model(self.tag_modelsort) self.tag_modelsort.set_sort_column_id(COL_ID, gtk.SORT_ASCENDING)
7ea0e178d6b093c6151c06606aad9dacac39174e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/7ea0e178d6b093c6151c06606aad9dacac39174e/tagtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3658, 4672, 365, 18, 3658, 273, 1111, 365, 18, 1293, 13886, 67, 4156, 273, 5378, 365, 18, 2692, 67, 2284, 273, 4034, 2471, 1488, 12, 26192, 33, 2890, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3658, 4672, 365, 18, 3658, 273, 1111, 365, 18, 1293, 13886, 67, 4156, 273, 5378, 365, 18, 2692, 67, 2284, 273, 4034, 2471, 1488, 12, 26192, 33, 2890, 18,...
if siblings: return apply(VFQuery.Or, siblings).Not() else: return VFQuery("1")
if siblings: return apply(VFQuery.Or, siblings) else: return VFQuery("0")
def find_vfqrepl(self, foldername): """Returns vfquery that VFOLDER:foldername represents""" lowercase = string.lower(foldername) if lowercase == "notsiblings": # Disjoin negations of child vfqs siblings = map(lambda x: x.vfquery, self.vf.getsiblings()) if siblings: return apply(VFQuery.Or, siblings).Not() else: return VFQuery("1") elif lowercase == "children": children = map(lambda x: x.vfquery, self.vf.getchildren()) if children: return apply(VFQuery.Or, children) else: return VFQuery("0") else: vf = vfolder_find(foldername) if not vf: raise QueryException("Can't find folder "+foldername+ " in query from "+self.vf.name) else: return VFolder(vf).vfquery
2a1f7430d7f536381e0559ee31064212bc097beb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3083/2a1f7430d7f536381e0559ee31064212bc097beb/vfolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 90, 19206, 26745, 12, 2890, 16, 3009, 529, 4672, 3536, 1356, 28902, 2271, 716, 776, 17357, 30, 5609, 529, 8686, 8395, 12400, 273, 533, 18, 8167, 12, 5609, 529, 13, 309, 12400, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 67, 90, 19206, 26745, 12, 2890, 16, 3009, 529, 4672, 3536, 1356, 28902, 2271, 716, 776, 17357, 30, 5609, 529, 8686, 8395, 12400, 273, 533, 18, 8167, 12, 5609, 529, 13, 309, 12400, ...
str += ' <td><code><b>'
str += ' <td><b>'
def _var_summary_line(self, var, container): vname = var.name() if var.type(): vtype = self._dom_to_html(var.type(), container, 10).strip() else: vtype = '&nbsp;' if var.descr(): vsum = ' - ' +self._summary(var, container) else: title = self._var_value_tooltip(var) val = self._pprint_var_value(var, context='summary') vsum = ' = <span title="%s">%s</span>' % (title, val) str = '<tr><td align="right" valign="top" ' str += 'width="15%"><font size="-1">'+vtype+'</font></td>\n' str += ' <td><code><b>'
8f24852c950a066a730545d7f2f1e4914eba4d1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8f24852c950a066a730545d7f2f1e4914eba4d1b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1401, 67, 7687, 67, 1369, 12, 2890, 16, 569, 16, 1478, 4672, 331, 529, 273, 569, 18, 529, 1435, 309, 569, 18, 723, 13332, 26504, 273, 365, 6315, 9859, 67, 869, 67, 2620, 12, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1401, 67, 7687, 67, 1369, 12, 2890, 16, 569, 16, 1478, 4672, 331, 529, 273, 569, 18, 529, 1435, 309, 569, 18, 723, 13332, 26504, 273, 365, 6315, 9859, 67, 869, 67, 2620, 12, 140...
(item not in cfg.forceLast))] + \ cfg.forceLast
(item not in cfg.forceLast))] + cfg.forceLast
def __init__(self, filename): """ Parses the content of the named file and stores the values. """ lines = [line[:-1] # Assumes end-of-line character is present for line in open(filename) if line != "\n"] # Skip blank lines
294f42fc2771f31c9e0ae4b105afb1c8b33fb4d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7735/294f42fc2771f31c9e0ae4b105afb1c8b33fb4d9/mergejs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 4672, 3536, 2280, 2420, 326, 913, 434, 326, 4141, 585, 471, 9064, 326, 924, 18, 3536, 2362, 273, 306, 1369, 10531, 17, 21, 65, 468, 25374, 679, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 4672, 3536, 2280, 2420, 326, 913, 434, 326, 4141, 585, 471, 9064, 326, 924, 18, 3536, 2362, 273, 306, 1369, 10531, 17, 21, 65, 468, 25374, 679, 17,...
userDirectory = "/lhcb/user/%s/%s" % (username[0],username)
userDirectory = "/%s/user/%s/%s" % (vo,username[0],username)
def createUserDirectory(self,username): """ Creates the user directory """ res = self.__checkArgumentFormat(username) if not res['OK']: return res usernames = res['Value'].keys() successful = {} failed = {} created = self.__openSession() for username in usernames: userDirectory = "/lhcb/user/%s/%s" % (username[0],username) res = self.__makeDirs(userDirectory,0755) if res['OK']: successful[username] = userDirectory else: failed[username] = res['Message'] if created: self.__closeSession() resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict)
992e7c345c87fdb085d04fe01cb600595fde3ea5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/992e7c345c87fdb085d04fe01cb600595fde3ea5/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22992, 2853, 12, 2890, 16, 5053, 4672, 3536, 10210, 326, 729, 1867, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 5053, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 27675, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22992, 2853, 12, 2890, 16, 5053, 4672, 3536, 10210, 326, 729, 1867, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 5053, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 27675, 273,...
print "Adding Qline: %s" % nickmask
LOG.info( "Adding Qline: %s" % nickmask )
def handleCmd_TKL(self, prefix, args):
1a57390c60627da9e810a0212997b3f88d2873a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/1a57390c60627da9e810a0212997b3f88d2873a4/dtella_bridgeserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for attr in ['html', 'user_view', 'notebook', 'conf']:
for attr in ['html', 'notebook', 'conf']:
def __getstate__(self): """ The getstate method makes sure that the self.__cells dictionary is not saved in the pickle since it could be huge. OUTPUT: a dictionary; same as self.__dict__ but with some fields deleted.
ce19910ee1e98fe74ab083bfd08ae089c16616bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ce19910ee1e98fe74ab083bfd08ae089c16616bf/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 3536, 1021, 336, 2019, 707, 7297, 3071, 716, 326, 365, 16186, 14741, 3880, 353, 486, 5198, 316, 326, 13379, 3241, 518, 3377, 506, 366, 21627, 18, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 3536, 1021, 336, 2019, 707, 7297, 3071, 716, 326, 365, 16186, 14741, 3880, 353, 486, 5198, 316, 326, 13379, 3241, 518, 3377, 506, 366, 21627, 18, 22...
elif instanceof(value, str):
elif isinstance(value, str):
def _set_value(self, value): if value is None: self.__value = self._xml_default_value elif instanceof(value, str): if value not in self._xml_values: raise ValueError("Illegal value for element type %s; acceptable types are: %s" % (self.__class__.__name__, ', '.join(self._xml_values))) elif self._xml_ext_type is None or not isinstance(value, self._xml_ext_type): raise ValueError("Invalid value for element type %s: got type %s" % (self.__class__.__name, value.__class__.__name__)) self.__value = value
d5f3623411c31950593a79f5e21c379631bfa725 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/d5f3623411c31950593a79f5e21c379631bfa725/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 1132, 12, 2890, 16, 460, 4672, 309, 460, 353, 599, 30, 365, 16186, 1132, 273, 365, 6315, 2902, 67, 1886, 67, 1132, 1327, 1549, 12, 1132, 16, 609, 4672, 309, 460, 486, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 1132, 12, 2890, 16, 460, 4672, 309, 460, 353, 599, 30, 365, 16186, 1132, 273, 365, 6315, 2902, 67, 1886, 67, 1132, 1327, 1549, 12, 1132, 16, 609, 4672, 309, 460, 486, 3...
sage: g.vertex_connectivity()
sage: g.vertex_connectivity()
def vertex_connectivity(self, value_only=True, sets=False, solver=None, verbose=0): r""" Returns the vertex connectivity of the graph. For more information, see the `Wikipedia article on connectivity <http://en.wikipedia.org/wiki/Connectivity_(graph_theory)>`_. INPUT:
5e5675fbbda4b56d6c68a34b01203655c16cdb9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5e5675fbbda4b56d6c68a34b01203655c16cdb9e/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5253, 67, 3612, 2818, 12, 2890, 16, 460, 67, 3700, 33, 5510, 16, 1678, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, 326, 5253, 20301, 434, 326, 2667, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5253, 67, 3612, 2818, 12, 2890, 16, 460, 67, 3700, 33, 5510, 16, 1678, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, 326, 5253, 20301, 434, 326, 2667, 18, 2...
SpecializedSetup<%(name)s, 0>();
SpecializedSetup<%(name)s, 0>(true);
def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """
b112298f642b44d190d201a64cdc60963266551a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/b112298f642b44d190d201a64cdc60963266551a/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 923, 67, 3813, 273, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 923, 67, 3813, 273, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
depends = ['generic_fblas.pyf', 'generic_fblas1.pyf', 'generic_fblas2.pyf', 'generic_fblas3.pyf', 'interface_gen.py'],
depends = depends,
def generate_pyf(extension, build_dir): name = extension.name.split('.')[-1] target = join(build_dir,target_dir,name+'.pyf') if name[0]=='c' and atlas_version is None and newer(__file__,target): f = open(target,'w') f.write('python module '+name+'\n') f.write('usercode void empty_module(void) {}\n') f.write('interface\n') f.write('subroutine empty_module()\n') f.write('intent(c) empty_module\n') f.write('end subroutine empty_module\n') f.write('end interface\nend python module'+name+'\n') f.close() return target if newer_group(extension.depends,target): generate_interface(name, extension.depends[0], target, skip_names[name]) return target
802087c638223dc5305723856ee071e063533573 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/802087c638223dc5305723856ee071e063533573/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2074, 74, 12, 6447, 16, 1361, 67, 1214, 4672, 508, 273, 2710, 18, 529, 18, 4939, 2668, 1093, 13, 18919, 21, 65, 1018, 273, 1233, 12, 3510, 67, 1214, 16, 3299, 67, 1214, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2074, 74, 12, 6447, 16, 1361, 67, 1214, 4672, 508, 273, 2710, 18, 529, 18, 4939, 2668, 1093, 13, 18919, 21, 65, 1018, 273, 1233, 12, 3510, 67, 1214, 16, 3299, 67, 1214, 16,...
userobj.setPasswordDisableAfterExpire(self.disableexpireedit.value())
userobj.setPasswordDisableAfterExpire(self.pwsec_tab.disableexpireedit.value())
def __updateObjectFromGUI(self,userobj): username = unicode(self.details_tab.loginnameedit.text()) userobj.setUsername(username) userobj.setRealName(unicode(self.details_tab.realnameedit.text()))
1d76bafccae32c758c8aabc95fa046bae46639e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1669/1d76bafccae32c758c8aabc95fa046bae46639e4/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 921, 1265, 43, 5370, 12, 2890, 16, 1355, 2603, 4672, 2718, 273, 5252, 12, 2890, 18, 6395, 67, 7032, 18, 5819, 529, 4619, 18, 955, 10756, 729, 2603, 18, 542, 8575, 12, 5053,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2725, 921, 1265, 43, 5370, 12, 2890, 16, 1355, 2603, 4672, 2718, 273, 5252, 12, 2890, 18, 6395, 67, 7032, 18, 5819, 529, 4619, 18, 955, 10756, 729, 2603, 18, 542, 8575, 12, 5053,...
if spath[1] == "sony":
if spath[0] == "sony":
def parse_repo_path(self, path): spath = path.split(".") if len(spath) < 2: raise ValueError("Repo path '%s' is too short", path) if spath[0] == "pme": lpar_id = 1 elif spath[0] == "cur": lpar_id = self.lv1_get_logical_partition_id() else: try: lpar_id = int(spath[0]) except ValueError: raise ValueError("Unknown LPAR ID '%s'"%spath[0]) spath = spath[1:] vid = 0 if spath[1] == "sony": spath = spath[1:] vid = 0x8000000000000000 if len(spath) < 1: raise ValueError("Repo path '%s' is too short"%path) if len(spath) > 4: raise ValueError("Repo path '%s' is too long"%path) key = [lpar_id] for i, sk in enumerate(spath): num = 0 if '#' in sk: sk, num = sk.split('#') num = int(num) if i == 0 and len(sk) > 4 or len(sk) > 8: raise ValueError("Repo path component '%s' is too long"%sk) if i == 0 and len(sk) == 0: raise ValueError("First path component is required not to be empty") sk = struct.unpack(">Q", (sk+("\x00"*8))[:8])[0] if i == 0: sk = vid + (sk>>32) sk += num key.append(sk) if len(key) < 5: key += [0]*(5-len(key)) return tuple(key)
6c2547272fa036f020a2dfd0a2fc38791274b977 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12735/6c2547272fa036f020a2dfd0a2fc38791274b977/netrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7422, 67, 803, 12, 2890, 16, 589, 4672, 272, 803, 273, 589, 18, 4939, 2932, 1199, 13, 309, 562, 12, 87, 803, 13, 411, 576, 30, 1002, 2068, 2932, 8791, 589, 1995, 87, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7422, 67, 803, 12, 2890, 16, 589, 4672, 272, 803, 273, 589, 18, 4939, 2932, 1199, 13, 309, 562, 12, 87, 803, 13, 411, 576, 30, 1002, 2068, 2932, 8791, 589, 1995, 87, 11, ...
return GnuFCompiler.get_flags_opt(self)
return GnuFCompiler.get_flags_opt(self)
def get_flags_opt(self):
8a0ae9f4540d8644e66668a6198faa3a6a8577a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/8a0ae9f4540d8644e66668a6198faa3a6a8577a5/gnu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7133, 67, 3838, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7133, 67, 3838, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
CORE_PROFILE = Option('profile server core', odesc='<profile trace path>',
CORE_PROFILE = Option('profile',
def colon_split(c_string): if c_string: return c_string.split(':') return []
8d1a245e484cdac468d84fb823ba5b4cec3c27ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/8d1a245e484cdac468d84fb823ba5b4cec3c27ba/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13336, 67, 4939, 12, 71, 67, 1080, 4672, 309, 276, 67, 1080, 30, 327, 276, 67, 1080, 18, 4939, 2668, 2497, 13, 327, 5378, 225, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13336, 67, 4939, 12, 71, 67, 1080, 4672, 309, 276, 67, 1080, 30, 327, 276, 67, 1080, 18, 4939, 2668, 2497, 13, 327, 5378, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
' note ' : ' 500__a:', ' n ' : ' 500__a:',
'note' : '500__a:', 'n' : '500__a:',
def __init__(self, message): """Initialization.""" self.message = message
9ac6f199aca80bde5350b014ceb25041ee84876b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/9ac6f199aca80bde5350b014ceb25041ee84876b/search_engine_query_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 3536, 17701, 12123, 365, 18, 2150, 273, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 3536, 17701, 12123, 365, 18, 2150, 273, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
select.select([options.conn], [], [], timeout)
select.select([options.conn], [], [options.conn], \ timeout)
def serverloop(options, skype): timeout = 1; # in seconds skype_ping_period = 5 bitlbee_ping_period = 10 bitlbee_pong_timeout = 30 now = time.time() skype_ping_start_time = now bitlbee_ping_start_time = now options.last_bitlbee_pong = now in_error = [] handler_ok = True while (len(in_error) == 0) and handler_ok and options.conn: ready_to_read, ready_to_write, in_error = \ select.select([options.conn], [], [], timeout) now = time.time() handler_ok = True if len(ready_to_read) == 1: handler_ok = input_handler(ready_to_read.pop()) # don't ping bitlbee/skype if they already received data bitlbee_ping_start_time = now skype_ping_start_time = now if (now - skype_ping_period > skype_ping_start_time) and handler_ok: handler_ok = skype_idle_handler(skype) skype_ping_start_time = now if now - bitlbee_ping_period > bitlbee_ping_start_time: handler_ok = bitlbee_idle_handler(skype) bitlbee_ping_start_time = now if options.last_bitlbee_pong: if (now - options.last_bitlbee_pong) > bitlbee_pong_timeout: dprint("Bitlbee pong timeout") # TODO is following line necessary? Should there be a options.conn.unwrap() somewhere? # options.conn.shutdown() if options.conn: options.conn.close() options.conn = False else: dprint("%f seconds since last PONG" % (now - options.last_bitlbee_pong)) else: options.last_bitlbee_pong = now dprint("Serverloop done")
b642f262fe0be68b06063180faabf3766352db08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11861/b642f262fe0be68b06063180faabf3766352db08/skyped.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 6498, 12, 2116, 16, 4343, 388, 4672, 2021, 273, 404, 31, 468, 316, 3974, 4343, 388, 67, 1382, 67, 6908, 273, 1381, 2831, 20404, 1340, 67, 1382, 67, 6908, 273, 1728, 2831, 20404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 6498, 12, 2116, 16, 4343, 388, 4672, 2021, 273, 404, 31, 468, 316, 3974, 4343, 388, 67, 1382, 67, 6908, 273, 1381, 2831, 20404, 1340, 67, 1382, 67, 6908, 273, 1728, 2831, 20404, ...
pass
def debug(msg): """"Log debugging messages (function/method calls, traceback outputs).""" pass #print "\t%s" %msg
6acd774ca12e273be29b34a624d9a639fbccd65d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/6acd774ca12e273be29b34a624d9a639fbccd65d/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 3536, 6, 1343, 10450, 2743, 261, 915, 19, 2039, 4097, 16, 10820, 6729, 13, 12123, 468, 1188, 1548, 88, 9, 87, 6, 738, 3576, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 3536, 6, 1343, 10450, 2743, 261, 915, 19, 2039, 4097, 16, 10820, 6729, 13, 12123, 468, 1188, 1548, 88, 9, 87, 6, 738, 3576, 282, 2, -100, -100, -100, -100, -100, ...
psave((self.layers, [l.__class__ for l in self.layers]), file)
psave((self.err, [l.__class__ for l in self.layers]), file)
def _save_(self, file): r"""save state to a file""" file.write('NN2') psave((self.layers, [l.__class__ for l in self.layers]), file) for l in self.layers: l.savef(file)
a71be54531c7cb456976ec6c845f0a5183c1c928 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3400/a71be54531c7cb456976ec6c845f0a5183c1c928/net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 12, 2890, 16, 585, 4672, 436, 8395, 5688, 919, 358, 279, 585, 8395, 585, 18, 2626, 2668, 12225, 22, 6134, 4250, 836, 12443, 2890, 18, 370, 16, 306, 80, 16186, 1106, 972,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 12, 2890, 16, 585, 4672, 436, 8395, 5688, 919, 358, 279, 585, 8395, 585, 18, 2626, 2668, 12225, 22, 6134, 4250, 836, 12443, 2890, 18, 370, 16, 306, 80, 16186, 1106, 972,...
self.assertRaises(socket.error, smtplib.SMTP, "localhost", "bogus")
self.assertRaises(socket.error, smtplib.SMTP, "localhost", "bogus")
def testNonnumericPort(self): # check that non-numeric port raises ValueError self.assertRaises(socket.error, smtplib.SMTP, "localhost", "bogus")
221b34d59e4109e6912d6d0a112231b29655742d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/221b34d59e4109e6912d6d0a112231b29655742d/test_smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3989, 5246, 2617, 12, 2890, 4672, 468, 866, 716, 1661, 17, 5246, 1756, 14183, 2068, 365, 18, 11231, 12649, 6141, 12, 7814, 18, 1636, 16, 272, 1010, 6673, 18, 55, 14636, 16, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3989, 5246, 2617, 12, 2890, 4672, 468, 866, 716, 1661, 17, 5246, 1756, 14183, 2068, 365, 18, 11231, 12649, 6141, 12, 7814, 18, 1636, 16, 272, 1010, 6673, 18, 55, 14636, 16, 315, ...
return self._executeSingleStorageElementFunction(storageElementName,physicalFile,'prestageFileStatus') else: return self._executeStorageElementFunction(storageElementName,physicalFile,'prestageFileStatus') def pinStorageFile(self,physicalFile,storageElementName,lifetime=60*60*24,singleFile=False):
return self._executeSingleStorageElementFunction( storageElementName, physicalFile, 'prestageFileStatus' ) else: return self._executeStorageElementFunction( storageElementName, physicalFile, 'prestageFileStatus' ) def pinStorageFile( self, physicalFile, storageElementName, lifetime=60 * 60 * 24, singleFile=False ):
def getPrestageStorageFileStatus(self,physicalFile,storageElementName,singleFile=False): """ Obtain the status of a pre-stage request 'physicalFile' is the pfn(s) to obtain the status 'storageElementName' is the Storage Element """ if singleFile: return self._executeSingleStorageElementFunction(storageElementName,physicalFile,'prestageFileStatus') else: return self._executeStorageElementFunction(storageElementName,physicalFile,'prestageFileStatus')
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12822, 12869, 3245, 812, 1482, 12, 2890, 16, 20441, 812, 16, 5697, 30584, 16, 7526, 812, 33, 8381, 4672, 3536, 24850, 326, 1267, 434, 279, 675, 17, 12869, 590, 225, 296, 20441, 812, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12822, 12869, 3245, 812, 1482, 12, 2890, 16, 20441, 812, 16, 5697, 30584, 16, 7526, 812, 33, 8381, 4672, 3536, 24850, 326, 1267, 434, 279, 675, 17, 12869, 590, 225, 296, 20441, 812, 11, ...
:: sage: D = DiGraph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: list(D.breadth_first_search(0)) [0, 1, 2, 3, 4]
By default, the edge direction of a digraph is respected, but this can be overridden by the ``ignore_direction`` parameter:: sage: D = DiGraph( { 0: [1,2,3], 1: [4,5], 2: [5], 3: [6], 5: [7], 6: [7], 7: [0]})
def depth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a depth-first ordering. INPUT: - ``u`` - vertex at which to start search - ``ignore_direction`` - (default False) only applies to directed graphs. If True, searches across edges in either direction. EXAMPLES:: sage: G = Graph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: list(G.breadth_first_search(0)) [0, 1, 4, 2, 3] sage: list(G.depth_first_search(0)) [0, 4, 3, 2, 1] :: sage: D = DiGraph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: list(D.breadth_first_search(0)) [0, 1, 2, 3, 4] sage: list(D.depth_first_search(0)) [0, 1, 2, 3, 4] :: sage: D = DiGraph({1:[0], 2:[0]}) sage: list(D.depth_first_search(0)) [0] sage: list(D.depth_first_search(0, ignore_direction=True)) [0, 2, 1] """ # This function is straight from an old version of networkx if not self._directed or ignore_direction: neighbors=self.neighbor_iterator else: neighbors=self.successor_iterator # nlist=[] # list of nodes in a DFS preorder seen={} # nodes seen queue=[u] # use as LIFO queue seen[u]=True while queue: v=queue.pop() # nlist.append(v) yield v for w in neighbors(v): if w not in seen: seen[w]=True queue.append(w)
86c87838982df2cf8d1498df619239da8ff542e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/86c87838982df2cf8d1498df619239da8ff542e3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3598, 67, 3645, 67, 3072, 12, 2890, 16, 582, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 6928, 316, 279, 3598, 17, 3645, 9543, 18, 225, 12943, 30, 282, 300, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3598, 67, 3645, 67, 3072, 12, 2890, 16, 582, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 6928, 316, 279, 3598, 17, 3645, 9543, 18, 225, 12943, 30, 282, 300, 225, ...
conf.env['LIBDIR'] = conf.env['PREFIX'] + '/lib/'
conf.env['LIBDIR'] = os.path.join(conf.env['PREFIX'], 'lib')
def append_cxx_flags(vals): conf.env.append_value('CCFLAGS', vals.split()) conf.env.append_value('CXXFLAGS', vals.split())
4e3ee97298ecf6faef09e60dfd5dc87604ca1e63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/399/4e3ee97298ecf6faef09e60dfd5dc87604ca1e63/autowaf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 71, 5279, 67, 7133, 12, 4524, 4672, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 6743, 17836, 2187, 5773, 18, 4939, 10756, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 39, 5619, 178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 71, 5279, 67, 7133, 12, 4524, 4672, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 6743, 17836, 2187, 5773, 18, 4939, 10756, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 39, 5619, 178...
navtrail = '''<a class="navtrail" href="%s/admin/index.%s.html">%s</a>''' % \ (config.weburl, ln, _("Admin Area"))
navtrail = '''<a class="navtrail" href="%s/help/admin">%s</a>''' % \ (config.weburl, _("Admin Area"))
def index(req, ln=config.cdslang): """ Main BibFormat administration page. Displays a warning if we find out that etc/biformat dir is not writable by us (as most opeation of BibFormat must write in this directory). @param ln: language """ warnings = [] #FIXME Remove when removing Migration Kit from invenio.bibformat_migration_kit_assistant_lib \ import can_write_migration_status_file if not can_write_migration_status_file(): warnings.append(("WRN_BIBFORMAT_CANNOT_WRITE_MIGRATION_STATUS")) if not bibformatadminlib.can_write_etc_bibformat_dir(): warnings.append(("WRN_BIBFORMAT_CANNOT_WRITE_IN_ETC_BIBFORMAT")) ln = wash_language(ln) _ = gettext_set_language(ln) # Check if user is authorized to administer # If not, still display page but offer to log in try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) (auth_code, auth_msg) = check_user(req, 'cfgbibformat') if not auth_code: is_admin = True else: is_admin = False navtrail = '''<a class="navtrail" href="%s/admin/index.%s.html">%s</a>''' % \ (config.weburl, ln, _("Admin Area")) return page(title=_("BibFormat Admin"), body=bibformatadminlib.perform_request_index(ln=ln, warnings=warnings, is_admin=is_admin), language=ln, uid=uid, navtrail = navtrail, lastupdated=__lastupdated__, req=req, warnings=warnings)
90f9fa8813116e63e7be94e284925bcddc29c1ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/90f9fa8813116e63e7be94e284925bcddc29c1ba/bibformatadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 3658, 16, 7211, 33, 1425, 18, 4315, 2069, 539, 4672, 3536, 12740, 605, 495, 1630, 3981, 4218, 1363, 18, 225, 9311, 87, 279, 3436, 309, 732, 1104, 596, 716, 5527, 19, 70, 6854,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 770, 12, 3658, 16, 7211, 33, 1425, 18, 4315, 2069, 539, 4672, 3536, 12740, 605, 495, 1630, 3981, 4218, 1363, 18, 225, 9311, 87, 279, 3436, 309, 732, 1104, 596, 716, 5527, 19, 70, 6854,...
def DelStruc(id):
def DelStruc(sid):
def DelStruc(id): """ Delete a structure type @param id: structure type ID @return: 0 if bad structure type ID is passed 1 otherwise the structure type is deleted. All data and other structure types referencing to the deleted structure type will be displayed as array of bytes. """ s = idaapi.get_struc(id) if not s: return 0 return idaapi.del_struc(s)
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 1585, 5286, 12, 7453, 4672, 3536, 2504, 279, 3695, 618, 225, 632, 891, 612, 30, 3695, 618, 1599, 225, 632, 2463, 30, 374, 309, 5570, 3695, 618, 1599, 353, 2275, 404, 3541, 326, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 1585, 5286, 12, 7453, 4672, 3536, 2504, 279, 3695, 618, 225, 632, 891, 612, 30, 3695, 618, 1599, 225, 632, 2463, 30, 374, 309, 5570, 3695, 618, 1599, 353, 2275, 404, 3541, 326, 3...
self._currentModuleListShort = []
del self._selectedModulesList[:]
def _handlerModuleCatsListCtrlSelected(self, event): self._graphFrame.modulesListCtrl.DeleteAllItems()
51c5910e4eac54c43da38659cc13a89af630b345 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/51c5910e4eac54c43da38659cc13a89af630b345/graphEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4176, 3120, 39, 2323, 682, 12418, 7416, 12, 2890, 16, 871, 4672, 365, 6315, 4660, 3219, 18, 6400, 682, 12418, 18, 2613, 1595, 3126, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4176, 3120, 39, 2323, 682, 12418, 7416, 12, 2890, 16, 871, 4672, 365, 6315, 4660, 3219, 18, 6400, 682, 12418, 18, 2613, 1595, 3126, 1435, 2, -100, -100, -100, -100, -100, -100, -100...
while subjobsize > maxsize and self.numfiles > 1:
while subjobsize > maxsize and nrfiles > 1:
def split(self,job):
30af3ed580bfb24efde9f1b112a6ae6ecc72bfd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/30af3ed580bfb24efde9f1b112a6ae6ecc72bfd1/DQ2JobSplitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 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, ...
[ 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, 1416, 12, 2890, 16, 4688, 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, -10...
r""" The nonprime numbers, starting with 1. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A018252;a The nonprime numbers. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a(2) 4 sage: a(9) 15 sage: a.list(10) [1, 4, 6, 8, 9, 10, 12, 14, 15, 16] AUTHOR: -- Jaap Spies (2007-02-04) """ def __init__(self):
def __init__(self): r""" The nonprime numbers, starting with 1. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A018252;a The nonprime numbers. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a(2) 4 sage: a(9) 15 sage: a.list(10) [1, 4, 6, 8, 9, 10, 12, 14, 15, 16] AUTHOR: -- Jaap Spies (2007-02-04) """
def list(self, n): try: if len(self._b) <= n: raise IndexError else: return self._b[:n] except (AttributeError, IndexError): self._precompute() # try again return self.list(n)
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 775, 30, 309, 562, 12, 2890, 6315, 70, 13, 1648, 290, 30, 1002, 10195, 469, 30, 327, 365, 6315, 70, 10531, 82, 65, 1335, 261, 1499, 668, 16, 10195, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 775, 30, 309, 562, 12, 2890, 6315, 70, 13, 1648, 290, 30, 1002, 10195, 469, 30, 327, 365, 6315, 70, 10531, 82, 65, 1335, 261, 1499, 668, 16, 10195, 4672...
ok = type == SyntaxError
ok = type is SyntaxError
def unpackerror(self): type, value, tb = sys.exc_info() ok = type == SyntaxError if ok: try: msg, (dummy_filename, lineno, offset, line) = value except: ok = 0 if ok: return msg, lineno, offset, line else: return None
2fac57a506ff1be64ad2b1b6b103465aad5f5d3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2fac57a506ff1be64ad2b1b6b103465aad5f5d3b/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 1636, 12, 2890, 4672, 618, 16, 460, 16, 8739, 273, 2589, 18, 10075, 67, 1376, 1435, 1529, 273, 618, 353, 18453, 309, 1529, 30, 775, 30, 1234, 16, 261, 21050, 67, 3459, 16, 7586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6167, 1636, 12, 2890, 4672, 618, 16, 460, 16, 8739, 273, 2589, 18, 10075, 67, 1376, 1435, 1529, 273, 618, 353, 18453, 309, 1529, 30, 775, 30, 1234, 16, 261, 21050, 67, 3459, 16, 7586, ...
user = ""
data = node.get('user') user = convert_from_str(data, 'str')
def bool_conv(x): s = str(x).upper() if s == 'TRUE': return True if s == 'FALSE': return False
3e9473dbf8fb704899606e4928bba1e72e5dbe6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/3e9473dbf8fb704899606e4928bba1e72e5dbe6f/locator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1426, 67, 4896, 12, 92, 4672, 272, 273, 609, 12, 92, 2934, 5797, 1435, 309, 272, 422, 296, 18724, 4278, 327, 1053, 309, 272, 422, 296, 21053, 4278, 327, 1083, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1426, 67, 4896, 12, 92, 4672, 272, 273, 609, 12, 92, 2934, 5797, 1435, 309, 272, 422, 296, 18724, 4278, 327, 1053, 309, 272, 422, 296, 21053, 4278, 327, 1083, 2, -100, -100, -100, -100...
>>> entry1.occurences = [('testfile', 12),('another_file', 1)]
>>> entry1.occurrences = [('testfile', 12),('another_file', 1)]
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
ff9943af59a4994cd9185e9c75a8b1d02243ae04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/ff9943af59a4994cd9185e9c75a8b1d02243ae04/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 24899, 2890, 16, 1308, 4672, 309, 389, 2890, 18, 3576, 350, 405, 1308, 18, 3576, 350, 30, 327, 404, 1327, 389, 2890, 18, 3576, 350, 411, 1308, 18, 3576, 350, 30, 327, 300, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 24899, 2890, 16, 1308, 4672, 309, 389, 2890, 18, 3576, 350, 405, 1308, 18, 3576, 350, 30, 327, 404, 1327, 389, 2890, 18, 3576, 350, 411, 1308, 18, 3576, 350, 30, 327, 300, 21, ...
pyautolib.PyUITestSuite.__init__(self, args)
pyautolib.PyUITestSuite.__init__(self, args, clear_profile, homepage)
def __init__(self, methodName='runTest', extra_chrome_flags=None): """Initialize PyUITest.
1c7ab112b8fd89fc71616f789ad0474489b02d18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/1c7ab112b8fd89fc71616f789ad0474489b02d18/pyauto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4918, 2218, 2681, 4709, 2187, 2870, 67, 343, 10896, 67, 7133, 33, 7036, 4672, 3536, 7520, 4707, 57, 1285, 395, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4918, 2218, 2681, 4709, 2187, 2870, 67, 343, 10896, 67, 7133, 33, 7036, 4672, 3536, 7520, 4707, 57, 1285, 395, 18, 2, -100, -100, -100, -100, -100, -100, ...
return dict[name[0].upper() + name[1:]]
if name: return dict[name[0].upper() + name[1:]] raise KeyError
def nget(dict, name): "normalize names" try: return dict[name] except KeyError: return dict[name[0].upper() + name[1:]]
fd458dd8de66896822a330a4df962e4f7a1bb604 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/fd458dd8de66896822a330a4df962e4f7a1bb604/zipwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 588, 12, 1576, 16, 508, 4672, 315, 12237, 1257, 6, 775, 30, 327, 2065, 63, 529, 65, 1335, 4999, 30, 309, 508, 30, 327, 2065, 63, 529, 63, 20, 8009, 5797, 1435, 397, 508, 63, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 588, 12, 1576, 16, 508, 4672, 315, 12237, 1257, 6, 775, 30, 327, 2065, 63, 529, 65, 1335, 4999, 30, 309, 508, 30, 327, 2065, 63, 529, 63, 20, 8009, 5797, 1435, 397, 508, 63, 2...
self.stack.pop()
if tag in self.stack: while self.stack[-1] != tag: self.stack.pop() self.stack.pop()
def handle_endtag(self, tag): self.stack.pop()
82daff0dc995c983e0e01da2f60fb4e1a8381a4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5012/82daff0dc995c983e0e01da2f60fb4e1a8381a4b/validators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 409, 2692, 12, 2890, 16, 1047, 4672, 365, 18, 3772, 18, 5120, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 409, 2692, 12, 2890, 16, 1047, 4672, 365, 18, 3772, 18, 5120, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return S_OK()
return S_OK([])
def __addFilesToTransformation(self,transID,fileIDs,connection=False): req = "SELECT FileID from TransformationFiles WHERE TransformationID = %d AND FileID IN (%s);" % (transID,intListToString(fileIDs)) res = self._query(req,connection) if not res['OK']: return res for tuple in res['Value']: fileIDs.remove(tuple[0]) if not fileIDs: return S_OK() req = "INSERT INTO TransformationFiles (TransformationID,FileID,LastUpdate,InsertedTime) VALUES" for fileID in fileIDs: req = "%s (%d,%d,UTC_TIMESTAMP(),UTC_TIMESTAMP())," % (req,transID,fileID) req = req.rstrip(',') res = self._update(req,connection) if not res['OK']: return res return S_OK(fileIDs)
1dd4def8e8958676bbd568033b9ca89046f263d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/1dd4def8e8958676bbd568033b9ca89046f263d0/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 2697, 774, 15292, 12, 2890, 16, 2338, 734, 16, 768, 5103, 16, 4071, 33, 8381, 4672, 1111, 273, 315, 4803, 1387, 734, 628, 21274, 2697, 4852, 21274, 734, 273, 738, 72, 4116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 2697, 774, 15292, 12, 2890, 16, 2338, 734, 16, 768, 5103, 16, 4071, 33, 8381, 4672, 1111, 273, 315, 4803, 1387, 734, 628, 21274, 2697, 4852, 21274, 734, 273, 738, 72, 4116, ...
varnames.append(name[1][1])
src = DottedName(src, name[1][1]) var_proxies[name[1][1]] = ValueDocProxy(src)
def process_import(self, cmd, names, pseudo_docstring): """ The statement handler for import statements. This handler adds a C{VariableDoc} to the parent C{APIDoc} for each name that is created by importing. These C{VariableDoc}s have empty C{ValueDoc}s, and are marked as imported (i.e., C{L{is_imported<VariableDoc.is_imported>}=True}).
d4b62290bc22e63f8cc96e7c77bc6b16300b943b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d4b62290bc22e63f8cc96e7c77bc6b16300b943b/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 5666, 12, 2890, 16, 1797, 16, 1257, 16, 12454, 67, 24675, 4672, 3536, 1021, 3021, 1838, 364, 1930, 6317, 18, 225, 1220, 1838, 4831, 279, 385, 95, 3092, 1759, 97, 358, 326, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 5666, 12, 2890, 16, 1797, 16, 1257, 16, 12454, 67, 24675, 4672, 3536, 1021, 3021, 1838, 364, 1930, 6317, 18, 225, 1220, 1838, 4831, 279, 385, 95, 3092, 1759, 97, 358, 326, 98...